Skip to content

Commit 821810c

Browse files
WIP compatibility testing
1 parent 66f15f4 commit 821810c

File tree

3 files changed

+31
-6
lines changed

3 files changed

+31
-6
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,3 +231,19 @@ jobs:
231231
# toolchain_artifact: ${{ needs.build.outputs.toolchain_artifact }}
232232
# toolchain_artifact_filename: ${{ needs.build.outputs.toolchain_artifact_filename }}
233233
# toolchain_decompress_command: ${{ needs.build.outputs.toolchain_decompress_command }}
234+
235+
compatibility:
236+
needs: [build, detect_changes]
237+
if: ${{ always() && !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
238+
uses: ./.github/workflows/sycl-linux-run-tests.yml
239+
with:
240+
name: E2E Backward ABI compatibility
241+
runner: '["Linux", "pvc"]'
242+
image: ghcr.io/intel/llvm/sycl_e2e_binaries_6.1.0:nightly-2025-07-18
243+
image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
244+
target_devices: level_zero:gpu
245+
repo_ref: nightly-2025-07-18
246+
toolchain_artifact: ${{ needs.build.outputs.toolchain_artifact }}
247+
toolchain_artifact_filename: ${{ needs.build.outputs.toolchain_artifact_filename }}
248+
toolchain_decompress_command: ${{ needs.build.outputs.toolchain_decompress_command }}
249+
e2e_testing_mode: 'run-only'

.github/workflows/sycl-linux-run-tests.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ on:
6060

6161
e2e_binaries_artifact:
6262
description: |
63-
Must be set if `e2e_testing_mode` is equal to `run-only` and the
64-
artifact must exist. Can be set in other modes resulting in artifact
65-
upload.
63+
When set in modes other than `run-only` results in artifact upload.
64+
For `run-only` mode, if specified, means downloading pre-built
65+
binaries from the artifact, otherwise they are expected to be part of
66+
the container.
6667
type: string
6768
default: ''
6869
required: False

devops/actions/run-tests/e2e/action.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,34 @@ runs:
2424
using: "composite"
2525
steps:
2626
- name: Checkout E2E tests
27+
if: ${{ inputs.testing_mode != 'run-only' || inputs.binaries_artifact }}
2728
uses: actions/checkout@v4
2829
with:
2930
path: llvm
3031
ref: ${{ inputs.ref || github.sha }}
3132
sparse-checkout: |
3233
llvm/utils/lit
3334
sycl/test-e2e
34-
3535
- name: Download E2E Binaries
36-
if: inputs.testing_mode == 'run-only'
36+
if: ${{ inputs.testing_mode == 'run-only' && inputs.binaries_artifact != '' }}
3737
uses: actions/download-artifact@v4
3838
with:
3939
name: ${{ inputs.binaries_artifact }}
4040
- name: Extract E2E Binaries
41-
if: inputs.testing_mode == 'run-only'
41+
if: ${{ inputs.testing_mode == 'run-only' && inputs.binaries_artifact != '' }}
4242
shell: bash
4343
run: |
4444
mkdir build-e2e
4545
tar -I 'zstd' -xf e2e_binaries.tar.zst -C build-e2e
4646
47+
- name: Extract E2E tests from container image
48+
if: ${{ inputs.testing_mode == 'run-only' && inputs.binaries_artifact == '' }}
49+
shell: bash
50+
run: |
51+
mkdir build-e2e llvm
52+
tar -I 'zstd' -xf /sycl-prebuilt/e2e_binaries.tar.zst -C build-e2e
53+
tar -I 'zstd' -xf /sycl-prebuilt/e2e_sources.tar.zst -C llvm
54+
4755
- name: Deduce E2E CMake options
4856
if: inputs.testing_mode != 'run-only'
4957
id: cmake_opts

0 commit comments

Comments
 (0)