Skip to content

Commit 8e26d67

Browse files
committed
add UR docker TEST
1 parent 7d92406 commit 8e26d67

File tree

5 files changed

+191
-159
lines changed

5 files changed

+191
-159
lines changed

.github/workflows/sycl-linux-precommit-aws.yml

+96-92
Original file line numberDiff line numberDiff line change
@@ -20,103 +20,107 @@ permissions:
2020
contents: read
2121

2222
jobs:
23-
create-check:
24-
runs-on: [Linux, aux-tasks]
25-
permissions:
26-
checks: write
27-
statuses: write
23+
do-nothing:
24+
runs-on: ubuntu-latest
2825
steps:
29-
- uses: actions/github-script@v7
30-
with:
31-
script: |
32-
const sha = context.payload.workflow_run.head_sha
33-
const run_id = '${{ github.run_id }}'
34-
const this_run_url = 'https://github.com/' + context.repo.owner + '/' + context.repo.repo + '/actions/runs/' + run_id
26+
- run: echo 'do nothing'
27+
# create-check:
28+
# runs-on: [Linux, aux-tasks]
29+
# permissions:
30+
# checks: write
31+
# statuses: write
32+
# steps:
33+
# - uses: actions/github-script@v7
34+
# with:
35+
# script: |
36+
# const sha = context.payload.workflow_run.head_sha
37+
# const run_id = '${{ github.run_id }}'
38+
# const this_run_url = 'https://github.com/' + context.repo.owner + '/' + context.repo.repo + '/actions/runs/' + run_id
3539

36-
// Create commit status.
37-
await github.request('POST /repos/{owner}/{repo}/statuses/{sha}', {
38-
owner: context.repo.owner,
39-
repo: context.repo.repo,
40-
sha: sha,
41-
state: 'pending',
42-
target_url: this_run_url,
43-
description: 'SYCL E2E on AWS CUDA',
44-
context: 'SYCL E2E on AWS CUDA',
45-
})
40+
# // Create commit status.
41+
# await github.request('POST /repos/{owner}/{repo}/statuses/{sha}', {
42+
# owner: context.repo.owner,
43+
# repo: context.repo.repo,
44+
# sha: sha,
45+
# state: 'pending',
46+
# target_url: this_run_url,
47+
# description: 'SYCL E2E on AWS CUDA',
48+
# context: 'SYCL E2E on AWS CUDA',
49+
# })
4650

47-
aws-start:
48-
runs-on: ubuntu-latest
49-
environment: aws
50-
steps:
51-
- uses: actions/checkout@v4
52-
with:
53-
sparse-checkout: devops/actions/aws-ec2
54-
- run: npm install ./devops/actions/aws-ec2
55-
- uses: ./devops/actions/aws-ec2
56-
with:
57-
mode: start
58-
runs-on-list: '[{"runs-on":"aws_cuda-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}","aws-ami":"ami-01cb0573cb039ab24","aws-type":["g5.2xlarge","g5.4xlarge"],"aws-disk":"/dev/sda1:64","aws-spot":"false"}]'
59-
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
60-
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
61-
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
51+
# aws-start:
52+
# runs-on: ubuntu-latest
53+
# environment: aws
54+
# steps:
55+
# - uses: actions/checkout@v4
56+
# with:
57+
# sparse-checkout: devops/actions/aws-ec2
58+
# - run: npm install ./devops/actions/aws-ec2
59+
# - uses: ./devops/actions/aws-ec2
60+
# with:
61+
# mode: start
62+
# runs-on-list: '[{"runs-on":"aws_cuda-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}","aws-ami":"ami-01cb0573cb039ab24","aws-type":["g5.2xlarge","g5.4xlarge"],"aws-disk":"/dev/sda1:64","aws-spot":"false"}]'
63+
# GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
64+
# AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
65+
# AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
6266

63-
e2e-cuda:
64-
needs: [aws-start]
65-
uses: ./.github/workflows/sycl-linux-run-tests.yml
66-
with:
67-
name: CUDA E2E
68-
runner: '["aws_cuda-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}"]'
69-
image: ghcr.io/intel/llvm/ubuntu2204_build:latest
70-
image_options: -u 1001 --gpus all --cap-add SYS_ADMIN --env NVIDIA_DISABLE_REQUIRE=1
71-
target_devices: cuda:gpu
72-
# No idea why but that seems to work and be in sync with the main
73-
# pre-commit workflow.
74-
repo_ref: ${{ github.event.workflow_run.referenced_workflows[0].sha }}
67+
# e2e-cuda:
68+
# needs: [aws-start]
69+
# uses: ./.github/workflows/sycl-linux-run-tests.yml
70+
# with:
71+
# name: CUDA E2E
72+
# runner: '["aws_cuda-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}"]'
73+
# image: ghcr.io/intel/llvm/ubuntu2204_build:latest
74+
# image_options: -u 1001 --gpus all --cap-add SYS_ADMIN --env NVIDIA_DISABLE_REQUIRE=1
75+
# target_devices: cuda:gpu
76+
# # No idea why but that seems to work and be in sync with the main
77+
# # pre-commit workflow.
78+
# repo_ref: ${{ github.event.workflow_run.referenced_workflows[0].sha }}
7579

76-
sycl_toolchain_artifact: sycl_linux_default
77-
sycl_toolchain_archive: llvm_sycl.tar.zst
78-
sycl_toolchain_decompress_command: zstd
80+
# sycl_toolchain_artifact: sycl_linux_default
81+
# sycl_toolchain_archive: llvm_sycl.tar.zst
82+
# sycl_toolchain_decompress_command: zstd
7983

80-
update-check:
81-
needs: [create-check, e2e-cuda]
82-
if: always()
83-
runs-on: [Linux, aux-tasks]
84-
permissions:
85-
checks: write
86-
statuses: write
87-
steps:
88-
- uses: actions/github-script@v7
89-
with:
90-
script: |
91-
const sha = context.payload.workflow_run.head_sha
92-
const run_id = '${{ github.run_id }}'
93-
const this_run_url = 'https://github.com/' + context.repo.owner + '/' + context.repo.repo + '/actions/runs/' + run_id
84+
# update-check:
85+
# needs: [create-check, e2e-cuda]
86+
# if: always()
87+
# runs-on: [Linux, aux-tasks]
88+
# permissions:
89+
# checks: write
90+
# statuses: write
91+
# steps:
92+
# - uses: actions/github-script@v7
93+
# with:
94+
# script: |
95+
# const sha = context.payload.workflow_run.head_sha
96+
# const run_id = '${{ github.run_id }}'
97+
# const this_run_url = 'https://github.com/' + context.repo.owner + '/' + context.repo.repo + '/actions/runs/' + run_id
9498

95-
// Update commit status.
96-
await github.request('POST /repos/{owner}/{repo}/statuses/{sha}', {
97-
owner: context.repo.owner,
98-
repo: context.repo.repo,
99-
sha: sha,
100-
state: '${{ needs.e2e-cuda.result }}',
101-
target_url: this_run_url,
102-
description: 'SYCL E2E on AWS CUDA',
103-
context: 'SYCL E2E on AWS CUDA',
104-
})
99+
# // Update commit status.
100+
# await github.request('POST /repos/{owner}/{repo}/statuses/{sha}', {
101+
# owner: context.repo.owner,
102+
# repo: context.repo.repo,
103+
# sha: sha,
104+
# state: '${{ needs.e2e-cuda.result }}',
105+
# target_url: this_run_url,
106+
# description: 'SYCL E2E on AWS CUDA',
107+
# context: 'SYCL E2E on AWS CUDA',
108+
# })
105109

106-
aws-stop:
107-
needs: [aws-start, e2e-cuda]
108-
if: always()
109-
runs-on: ubuntu-latest
110-
environment: aws
111-
steps:
112-
- uses: actions/checkout@v4
113-
with:
114-
sparse-checkout: devops/actions/aws-ec2
115-
- run: npm install ./devops/actions/aws-ec2
116-
- uses: ./devops/actions/aws-ec2
117-
with:
118-
mode: stop
119-
runs-on-list: '[{"runs-on":"aws_cuda-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}","aws-ami":"ami-01cb0573cb039ab24","aws-type":["g5.2xlarge","g5.4xlarge"],"aws-disk":"/dev/sda1:64","aws-spot":"false"}]'
120-
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
121-
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
122-
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
110+
# aws-stop:
111+
# needs: [aws-start, e2e-cuda]
112+
# if: always()
113+
# runs-on: ubuntu-latest
114+
# environment: aws
115+
# steps:
116+
# - uses: actions/checkout@v4
117+
# with:
118+
# sparse-checkout: devops/actions/aws-ec2
119+
# - run: npm install ./devops/actions/aws-ec2
120+
# - uses: ./devops/actions/aws-ec2
121+
# with:
122+
# mode: stop
123+
# runs-on-list: '[{"runs-on":"aws_cuda-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}","aws-ami":"ami-01cb0573cb039ab24","aws-type":["g5.2xlarge","g5.4xlarge"],"aws-disk":"/dev/sda1:64","aws-spot":"false"}]'
124+
# GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
125+
# AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
126+
# AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}

.github/workflows/sycl-linux-precommit.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ jobs:
3737

3838
build:
3939
needs: [detect_changes]
40-
if: always() && success()
40+
# if: always() && success()
41+
if: false
4142
uses: ./.github/workflows/sycl-linux-build.yml
4243
with:
4344
build_ref: ${{ github.sha }}
@@ -53,7 +54,8 @@ jobs:
5354

5455
run_prebuilt_e2e_tests:
5556
needs: [build, detect_changes]
56-
if: ${{ always() && !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
57+
# if: ${{ always() && !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
58+
if: false
5759
strategy:
5860
fail-fast: false
5961
matrix:
@@ -146,11 +148,12 @@ jobs:
146148

147149
test-perf:
148150
needs: [build, detect_changes]
149-
if: |
150-
always() && !cancelled()
151-
&& needs.build.outputs.build_conclusion == 'success'
152-
&& (contains(github.event.pull_request.labels.*.name, 'run-perf-tests')
153-
|| contains(needs.detect_changes.outputs.filters, 'perf-tests'))
151+
# if: |
152+
# always() && !cancelled()
153+
# && needs.build.outputs.build_conclusion == 'success'
154+
# && (contains(github.event.pull_request.labels.*.name, 'run-perf-tests')
155+
# || contains(needs.detect_changes.outputs.filters, 'perf-tests'))
156+
if: false
154157
strategy:
155158
fail-fast: false
156159
matrix:

.github/workflows/sycl-windows-precommit.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,22 @@ jobs:
3636

3737
build:
3838
needs: [detect_changes]
39-
if: |
40-
always() && success()
41-
&& github.repository == 'intel/llvm'
39+
# if: |
40+
# always() && success()
41+
# && github.repository == 'intel/llvm'
42+
if: false
4243
uses: ./.github/workflows/sycl-windows-build.yml
4344
with:
4445
changes: ${{ needs.detect_changes.outputs.filters }}
4546

4647
e2e:
4748
needs: build
4849
# Continue if build was successful.
49-
if: |
50-
always()
51-
&& !cancelled()
52-
&& needs.build.outputs.build_conclusion == 'success'
50+
# if: |
51+
# always()
52+
# && !cancelled()
53+
# && needs.build.outputs.build_conclusion == 'success'
54+
if: false
5355
strategy:
5456
fail-fast: false
5557
matrix:

.github/workflows/ur-build-hw.yml

+21-2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ on:
2626
required: false
2727
type: string
2828
default: OFF
29+
docker_image:
30+
required: true
31+
type: string
32+
default: ""
2933
workflow_dispatch:
3034
inputs:
3135
adapter_name:
@@ -51,6 +55,10 @@ on:
5155
required: false
5256
type: string
5357
default: OFF
58+
docker_image:
59+
required: true
60+
type: string
61+
default: ""
5462

5563
permissions:
5664
contents: read
@@ -66,7 +74,7 @@ jobs:
6674
adapter_build_hw:
6775
name: Build & CTS
6876
# run only on upstream; forks won't have the HW
69-
if: github.repository == 'intel/llvm'
77+
# if: github.repository == 'intel/llvm'
7078
strategy:
7179
fail-fast: false
7280
matrix:
@@ -83,6 +91,9 @@ jobs:
8391
compiler: [{c: gcc, cxx: g++}]
8492

8593
runs-on: ${{inputs.runner_name}}
94+
container:
95+
image: ${{ inputs.docker_image }}
96+
options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
8697

8798
steps:
8899
# TODO:
@@ -140,6 +151,14 @@ jobs:
140151
# This is to check that install command does not fail
141152
run: cmake --install ${{github.workspace}}/build
142153

154+
- name: Check if GPU is avaliable
155+
run: |
156+
ls -la /dev/dri/
157+
id
158+
dpkg -l | grep level-zero
159+
ldconfig -p | grep libze
160+
ls -la /dev/dri/
161+
143162
- name: Test adapter specific
144163
env:
145164
ZE_ENABLE_LOADER_DEBUG_TRACE: 1
@@ -155,5 +174,5 @@ jobs:
155174
run: env UR_CTS_ADAPTER_PLATFORM="${{matrix.adapter.platform}}" ctest -C ${{matrix.build_type}} --test-dir ${{github.workspace}}/build --output-on-failure -L "conformance" --timeout 600 -VV
156175

157176
- name: Get information about platform
158-
if: ${{ always() }}
177+
# if: ${{ always() }}
159178
run: ${{github.workspace}}/unified-runtime/.github/scripts/get_system_info.sh

0 commit comments

Comments
 (0)