Skip to content

Commit

Permalink
[CI] Improve SYCL-CTS job in Nightly workflow (#12934)
Browse files Browse the repository at this point in the history
1. Use the normal runner instead of failing one.
2. Keep executing the test loop if suite fails.
  • Loading branch information
KornevNikita authored Mar 7, 2024
1 parent eca61f1 commit 3d58edd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/sycl-linux-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,17 +297,39 @@ jobs:
if: inputs.tests_selector == 'cts'
env:
ONEAPI_DEVICE_SELECTOR: ${{ inputs.target_devices }}
# By-default GitHub actions execute the "run" shell script with -e option,
# so the execution terminates if any command returns a non-zero status.
# Since we're using a loop to run all test-binaries separately, some test
# may fail and terminate the execution. Setting "shell" value to override
# the default behavior.
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#custom-shell
shell: bash {0}
# FIXME: For some reason the "sub_group api" test-case is failing with
# SIGSEGV while running test_all, so running each binary separately.
# BTW test_all requires a lot of resources to build it, so probably it'll
# be better to build each binary also separately.
# run: |
# ./build-cts/bin/test_all $CTS_TEST_ARGS
run: |
status=""
failed_suites=""
for i in `ls -1 ./build-cts/bin`; do
if [ "$i" != "test_all" ]; then
echo "::group::Running $i"
build-cts/bin/$i
if [ $? -ne 0 ]; then
status=1
if [$failed_suites == ""]; then
failed_suites=$i
else
failed_suites="$failed_suites, $i"
fi
fi
echo "::endgroup::"
fi
done
if [ -n "$status" ]; then
echo "Failed suite(s): $failed_suites"
exit 1
fi
exit 0
2 changes: 1 addition & 1 deletion .github/workflows/sycl-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
target_devices: ext_oneapi_cuda:gpu

- name: SYCL-CTS
runner: '["cts-cpu"]'
runner: '["Linux", "gen12"]'
image: ghcr.io/intel/llvm/ubuntu2204_intel_drivers:latest
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
target_devices: opencl:cpu
Expand Down

0 comments on commit 3d58edd

Please sign in to comment.