-
Notifications
You must be signed in to change notification settings - Fork 791
[CI] Add precompiled CTS tests to sycl_prebuilt_tests image #20332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ianayl
wants to merge
20
commits into
sycl
Choose a base branch
from
ianayl/cts-container
base: sycl
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
7c9de76
add cts container
ianayl 026ba62
remove need to fill in ref
ianayl 7fb4a3e
use main cts branch
ianayl 96d5ea7
use hardcoded commit from now
ianayl ad2da94
test
ianayl 3453107
move cloning exclude filters out of sycl-linux-run-tests
ianayl 874bc9d
actions/checkout sucks
ianayl 2c0f0e6
typo
ianayl 64d2eae
update docker image
ianayl 3f27ea4
fix bug
ianayl 7f6bcc3
undo change
ianayl 89faa52
add option to input cts refs
ianayl d2d243f
revert renaming
ianayl fccecfb
fix typo
ianayl 6d9717b
amend comment
ianayl e74bc2c
Update .github/workflows/sycl-prebuilt-e2e-container.yml
ianayl 658294f
eliminate redundant job
ianayl d424a37
make sure cts/e2e always runs
ianayl 0ae7546
change wording
ianayl 76c0642
reword description
ianayl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: Create container with pre-built tests | ||
|
||
# The purpose of this is to build E2E tests with the latest release toolchain | ||
# and then run them with the trunk SYCL RT (libsycl.so and friends) to verify | ||
# that ABI compatibility hasn't been broken. | ||
# The purpose of this is to build E2E and CTS tests with the latest release | ||
# toolchain and then run them with the trunk SYCL RT (libsycl.so and friends) | ||
# to verify that ABI compatibility hasn't been broken. | ||
|
||
on: | ||
workflow_dispatch: | ||
|
@@ -12,6 +12,18 @@ on: | |
description: tag/sha | ||
required: true | ||
default: | ||
cts_ref: | ||
type: choice | ||
description: tag/sha to use for SYCL-CTS -- hardcoded hash is CTS revision matching sycl-rel-N_M branch. | ||
required: true | ||
default: 'main' | ||
options: | ||
- main | ||
# Author: Tom Deakin <[email protected]> | ||
# Date: Thu Jul 10 16:45:48 2025 +0100 | ||
# Merge pull request #1102 from steffenlarsen/steffen/remove_secondary_queue_exceptions | ||
# Remove expected exceptions for secondary queue | ||
- 19e4ed34377c8a8a354d701772427be8c5430b0d | ||
|
||
push: | ||
branches: | ||
|
@@ -35,6 +47,12 @@ jobs: | |
toolchain_artifact: toolchain | ||
toolchain_artifact_filename: toolchain.tar.zst | ||
e2e_binaries_artifact: e2e_bin | ||
cts_binaries_artifact: cts_bin | ||
aelovikov-intel marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# Author: Tom Deakin <[email protected]> | ||
# Date: Thu Jul 10 16:45:48 2025 +0100 | ||
# Merge pull request #1102 from steffenlarsen/steffen/remove_secondary_queue_exceptions | ||
# Remove expected exceptions for secondary queue | ||
cts_binaries_ref: ${{ github.event_name == 'push' && '19e4ed34377c8a8a354d701772427be8c5430b0d' || inputs.cts_ref }} | ||
|
||
# Couldn't make it work from inside the container, so have to use an extra job | ||
# and pass an artifact. | ||
|
@@ -72,7 +90,11 @@ jobs: | |
with: | ||
name: e2e_bin | ||
path: devops/ | ||
|
||
- name: Download CTS binaries | ||
uses: actions/download-artifact@v5 | ||
with: | ||
name: cts_bin | ||
path: devops/ | ||
|
||
- name: Build container | ||
uses: ./devops/actions/build_container | ||
|
@@ -84,14 +106,14 @@ jobs: | |
tags: | | ||
ghcr.io/${{ github.repository }}/sycl_prebuilt_tests:${{ inputs.ref || github.ref_name }} | ||
|
||
run-e2e: | ||
run-prebuilt-tests: | ||
# Ensure those tests can actually pass with the toolchain they were built | ||
# with, otherwise testing compatibility with those binaries is pointless. | ||
# This job should be aligned with how the image will be used in trunk CI. | ||
# | ||
# I'll start with just a single configuration, but this might be extended | ||
# with a matrix in future (e.g., to run on cpu/CUDA/AMDGPU). | ||
name: Run E2E tests with SYCL RT they were built with | ||
name: Run E2E, CTS tests with SYCL RT they were built with | ||
runs-on: [Linux, pvc] | ||
needs: [docker, build] | ||
if: ${{ always() && !cancelled() && needs.build.outputs.build_conclusion == 'success' }} | ||
|
@@ -103,7 +125,8 @@ jobs: | |
with: | ||
sparse-checkout: | | ||
devops | ||
- run: | | ||
- id: decompress | ||
run: | | ||
mkdir toolchain | ||
tar -I 'zstd' -xf /sycl-prebuilt/toolchain.tar.zst -C toolchain | ||
echo LD_LIBRARY_PATH=$PWD/toolchain/lib:$LD_LIBRARY_PATH >> $GITHUB_ENV | ||
|
@@ -112,7 +135,15 @@ jobs: | |
sycl-ls | ||
- name: Run E2E tests | ||
uses: ./devops/actions/run-tests/e2e | ||
if: ${{ always() && !cancelled() && steps.decompress.outcome == 'success' }} | ||
timeout-minutes: 20 | ||
with: | ||
testing_mode: run-only | ||
target_devices: level_zero:gpu | ||
- name: Run CTS tests | ||
ianayl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
uses: ./devops/actions/run-tests/cts | ||
if: ${{ always() && !cancelled() && steps.decompress.outcome == 'success' }} | ||
timeout-minutes: 20 | ||
with: | ||
cts_testing_mode: run-only | ||
target_devices: level_zero:gpu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.