Skip to content

Commit 5d38727

Browse files
committed
update known_failures for CI
1 parent 8be3c72 commit 5d38727

2 files changed

Lines changed: 21 additions & 9 deletions

File tree

scripts/unit_tests.sh

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,9 @@ run_tests() {
172172
function check_tests {
173173
file="$1"
174174
if ! grep -q "The following tests FAILED" "$file"; then
175-
echo "PASSED"
176175
return 0
177176
else
178177
grep -q -E "The following tests FAILED:" -A 1000 "$file" | sed '/^$/q' | tail -n +2
179-
echo "FAILED"
180178
return 1
181179
fi
182180
}
@@ -185,17 +183,22 @@ set +e # disable exit on error
185183

186184
# Run tests for different configurations
187185
run_tests igpu opencl
188-
igpu_opencl_result=$(check_tests igpu_opencl_make_check_result.txt)
186+
check_tests igpu_opencl_make_check_result.txt
187+
igpu_opencl_exit_code=$?
189188
if [ "$host" = "salami" ]; then
190-
exit $igpu_opencl_result
189+
exit $igpu_opencl_exit_code
191190
fi
192191
run_tests igpu level0
193-
igpu_level0_result=$(check_tests igpu_level0_make_check_result.txt)
192+
check_tests igpu_level0_make_check_result.txt
193+
igpu_level0_exit_code=$?
194194
run_tests dgpu level0
195-
dgpu_level0_result=$(check_tests dgpu_level0_make_check_result.txt)
195+
check_tests dgpu_level0_make_check_result.txt
196+
dgpu_level0_exit_code=$?
196197
run_tests dgpu opencl
197-
dgpu_opencl_result=$(check_tests dgpu_opencl_make_check_result.txt)
198+
check_tests dgpu_opencl_make_check_result.txt
199+
dgpu_opencl_exit_code=$?
198200
run_tests cpu opencl
199-
cpu_opencl_result=$(check_tests cpu_opencl_make_check_result.txt)
200-
exit $((igpu_opencl_result || dgpu_opencl_result || igpu_level0_result || dgpu_level0_result || cpu_opencl_result))
201+
check_tests cpu_opencl_make_check_result.txt
202+
cpu_opencl_exit_code=$?
201203

204+
exit $((igpu_opencl_exit_code || dgpu_opencl_exit_code || igpu_level0_exit_code || dgpu_level0_exit_code || cpu_opencl_exit_code))

tests/known_failures.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,15 @@ cupcake:
482482
OPENCL_CPU:
483483
OPENCL_GPU:
484484
OPENCL_POCL:
485+
meatloaf:
486+
ALL:
487+
Unit_hipMultiStream_sameDevice: 'Started randomly failing on CI node with CL_OUT_OF_RESOURCES'
488+
Unit_hipStreamCreate_MultistreamBasicFunctionalities: 'Started randomly failing on CI node with CL_OUT_OF_RESOURCES'
489+
Unit_hipDeviceSynchronize_Functional: 'Started randomly failing on CI node with CL_OUT_OF_RESOURCES'
490+
LEVEL0_GPU:
491+
OPENCL_CPU:
492+
OPENCL_GPU:
493+
OPENCL_POCL:
485494
salami:
486495
ALL:
487496
LEVEL0_GPU:

0 commit comments

Comments
 (0)