Skip to content

Commit 3d58edd

Browse files
authored
[CI] Improve SYCL-CTS job in Nightly workflow (#12934)
1. Use the normal runner instead of failing one. 2. Keep executing the test loop if suite fails.
1 parent eca61f1 commit 3d58edd

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,17 +297,39 @@ jobs:
297297
if: inputs.tests_selector == 'cts'
298298
env:
299299
ONEAPI_DEVICE_SELECTOR: ${{ inputs.target_devices }}
300+
# By-default GitHub actions execute the "run" shell script with -e option,
301+
# so the execution terminates if any command returns a non-zero status.
302+
# Since we're using a loop to run all test-binaries separately, some test
303+
# may fail and terminate the execution. Setting "shell" value to override
304+
# the default behavior.
305+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#custom-shell
306+
shell: bash {0}
300307
# FIXME: For some reason the "sub_group api" test-case is failing with
301308
# SIGSEGV while running test_all, so running each binary separately.
302309
# BTW test_all requires a lot of resources to build it, so probably it'll
303310
# be better to build each binary also separately.
304311
# run: |
305312
# ./build-cts/bin/test_all $CTS_TEST_ARGS
306313
run: |
314+
status=""
315+
failed_suites=""
307316
for i in `ls -1 ./build-cts/bin`; do
308317
if [ "$i" != "test_all" ]; then
309318
echo "::group::Running $i"
310319
build-cts/bin/$i
320+
if [ $? -ne 0 ]; then
321+
status=1
322+
if [$failed_suites == ""]; then
323+
failed_suites=$i
324+
else
325+
failed_suites="$failed_suites, $i"
326+
fi
327+
fi
311328
echo "::endgroup::"
312329
fi
313330
done
331+
if [ -n "$status" ]; then
332+
echo "Failed suite(s): $failed_suites"
333+
exit 1
334+
fi
335+
exit 0

.github/workflows/sycl-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
target_devices: ext_oneapi_cuda:gpu
7474

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

0 commit comments

Comments
 (0)