Skip to content

[CI][CTS] Checkout cts filter from testing branch #17228

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

Merged
merged 8 commits into from
Mar 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/sycl-linux-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ jobs:
uses: ./devops/actions/run-tests/cts
with:
ref: ${{ inputs.tests_ref || 'main' }}
cts_exclude_ref: ${{ inputs.repo_ref }}
extra_cmake_args: ${{ inputs.extra_cmake_args }}
cts_testing_mode: ${{ inputs.cts_testing_mode }}
sycl_cts_artifact: ${{ inputs.sycl_cts_artifact }}
Expand Down
32 changes: 23 additions & 9 deletions devops/actions/run-tests/cts/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ name: 'Run SYCL CTS tests'
inputs:
ref:
description: "Commit SHA or branch to checkout tests"
required: false
default: "main"
required: true
cts_exclude_ref:
description: "Commit SHA or branch to checkout the cts_exclude_filter dir"
required: true
extra_cmake_args:
required: false
cts_testing_mode:
Expand All @@ -19,6 +21,18 @@ inputs:
runs:
using: "composite"
steps:
- name: Checkout cts_exclude_filter folder
uses: actions/checkout@v4
with:
ref: ${{ inputs.cts_exclude_ref }}
path: cts_exclude
sparse-checkout: |
sycl/cts_exclude_filter
- name: Move sycl to root
shell: bash
run: |
mv cts_exclude/sycl .
rm -rf cts_exclude
- name: Checkout SYCL CTS tests
if: inputs.cts_testing_mode != 'run-only'
uses: ./devops/actions/cached_checkout
Expand All @@ -42,11 +56,11 @@ runs:
# If CTS_TESTS_TO_BUILD is null - use filter
if [ -z "$CTS_TESTS_TO_BUILD" ]; then
if [ "${{ contains(inputs.cts_testing_mode, 'build-only') }}" = "true" ]; then
cts_exclude_filter=$PWD/devops/cts_exclude_filter_compfails
cts_exclude_filter=$PWD/sycl/cts_exclude_filter/compfails
elif [ "${{ contains(inputs.target_devices, 'opencl:cpu') }}" = "true" ]; then
cts_exclude_filter=$PWD/devops/cts_exclude_filter_OCL_CPU
cts_exclude_filter=$PWD/sycl/cts_exclude_filter/OCL_CPU
elif [ "${{ contains(inputs.target_devices, 'level_zero:gpu') }}" = "true" ]; then
cts_exclude_filter=$PWD/devops/cts_exclude_filter_L0_GPU
cts_exclude_filter=$PWD/sycl/cts_exclude_filter/L0_GPU
fi

# List excluded SYCL CTS categories:
Expand Down Expand Up @@ -105,8 +119,8 @@ runs:

# If the suite was built on another machine then the build contains the full
# set of tests. We have special files to filter out some test categories,
# see "devops/cts_exclude_filter_*". Each configuration has its own file, e.g.
# there is "cts_exclude_filter_OCL_CPU" for opencl:cpu device. Therefore,
# see "sycl/cts_exclude_filter/*". Each configuration has its own file, e.g.
# there is "cts_exclude_filter/OCL_CPU" for opencl:cpu device. Therefore,
# these files may differ from each other, so when there is a pre-built set of
# tests, we need to filter it according to the filter-file.
- name: Filter SYCL CTS test categories
Expand All @@ -115,9 +129,9 @@ runs:
run: |
cts_exclude_filter=""
if [ "${{ contains(inputs.target_devices, 'opencl:cpu') }}" = "true" ]; then
cts_exclude_filter=$PWD/devops/cts_exclude_filter_OCL_CPU
cts_exclude_filter=$PWD/sycl/cts_exclude_filter/OCL_CPU
elif [ "${{ contains(inputs.target_devices, 'level_zero:gpu') }}" = "true" ]; then
cts_exclude_filter=$PWD/devops/cts_exclude_filter_L0_GPU
cts_exclude_filter=$PWD/sycl/cts_exclude_filter/L0_GPU
fi

while IFS= read -r line; do
Expand Down
File renamed without changes.
File renamed without changes.
Loading