86
86
https://api.github.com/repos/${{github.repository}}/statuses/${{github.event.pull_request.head.sha}} \
87
87
-d '{"state":"pending","description":"The check has been started","context":"build_${{inputs.build_preset}}"}'
88
88
89
- if [[ "${{inputs.run_tests}}" == "true" ]];then
89
+ if [[ "${{inputs.run_tests}}" == "true" ]]; then
90
90
curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{github.token}}" -H "X-GitHub-Api-Version: 2022-11-28" \
91
91
https://api.github.com/repos/${{github.repository}}/statuses/${{github.event.pull_request.head.sha}} \
92
92
-d '{"state":"pending","description":"The check has been started","context":"test_${{inputs.build_preset}}"}'
@@ -187,6 +187,7 @@ runs:
187
187
)
188
188
189
189
TEST_RETRY_COUNT=${{ inputs.test_retry_count }}
190
+ IS_TEST_RESULT_IGNORED=0
190
191
191
192
case "$BUILD_PRESET" in
192
193
debug)
@@ -212,6 +213,7 @@ runs:
212
213
if [ $TEST_RETRY_COUNT -z ]; then
213
214
TEST_RETRY_COUNT=1
214
215
fi
216
+ IS_TEST_RESULT_IGNORED=1
215
217
;;
216
218
release-tsan)
217
219
params+=(
@@ -221,6 +223,7 @@ runs:
221
223
if [ $TEST_RETRY_COUNT -z ]; then
222
224
TEST_RETRY_COUNT=1
223
225
fi
226
+ IS_TEST_RESULT_IGNORED=1
224
227
;;
225
228
release-msan)
226
229
params+=(
@@ -230,12 +233,15 @@ runs:
230
233
if [ $TEST_RETRY_COUNT -z ]; then
231
234
TEST_RETRY_COUNT=1
232
235
fi
236
+ IS_TEST_RESULT_IGNORED=1
233
237
;;
234
238
*)
235
239
echo "Invalid preset: $BUILD_PRESET"
236
240
exit 1
237
241
;;
238
242
esac
243
+
244
+ echo "IS_TEST_RESULT_IGNORED=$IS_TEST_RESULT_IGNORED" >> $GITHUB_ENV
239
245
240
246
if [ $TEST_RETRY_COUNT -z ]; then
241
247
# default is 3 for ordinary build and 1 for sanitizer builds
@@ -434,6 +440,7 @@ runs:
434
440
--status_report_file statusrep.txt \
435
441
--is_retry $IS_RETRY \
436
442
--is_last_retry $IS_LAST_RETRY \
443
+ --is_test_result_ignored $IS_TEST_RESULT_IGNORED \
437
444
--comment_color_file summary_color.txt \
438
445
--comment_text_file summary_text.txt \
439
446
" Tests" $CURRENT_PUBLIC_DIR/ya-test.html "$CURRENT_JUNIT_XML_PATH"
@@ -513,7 +520,7 @@ runs:
513
520
set -x
514
521
if [ true = ${{ inputs.run_tests }} ]; then
515
522
teststatus=$(cat statusrep.txt)
516
- if [[ $teststatus == "success" ]];then
523
+ if [[ $teststatus == "success" ]]; then
517
524
testmessage="The check has been completed successfully"
518
525
else
519
526
testmessage="The check has been failed"
@@ -522,7 +529,7 @@ runs:
522
529
https://api.github.com/repos/${{github.repository}}/statuses/${{github.event.pull_request.head.sha}} \
523
530
-d '{"state":"'$teststatus'","description":"'"$testmessage"'","context":"test_${{inputs.build_preset}}"}'
524
531
525
- if [[ $teststatus != "success" ]];then
532
+ if [[ $teststatus != "success" ]]; then
526
533
echo "status=failed" >> $GITHUB_OUTPUT
527
534
fi
528
535
fi
@@ -531,7 +538,9 @@ runs:
531
538
if : inputs.run_tests
532
539
shell : bash
533
540
run : |
534
- .github/scripts/tests/fail-checker.py "$LAST_JUNIT_REPORT_XML"
541
+ if [ $IS_TEST_RESULT_IGNORED == 0 ]; then
542
+ .github/scripts/tests/fail-checker.py "$LAST_JUNIT_REPORT_XML"
543
+ fi
535
544
536
545
- name : show diff mute_ya.txt
537
546
if : inputs.build_preset == 'relwithdebinfo' && (github.event_name == 'pull_request' || github.event_name == 'pull_request_target')
@@ -623,7 +632,7 @@ runs:
623
632
read -ra comment_arr <<< "$comment_raw"
624
633
625
634
printf "$comment"
626
- if [[ ${comment_raw} != "Error"* ]];then
635
+ if [[ ${comment_raw} != "Error"* ]]; then
627
636
color=${comment_arr[0]}
628
637
replace=$color";;;"
629
638
comment=${comment_raw/$replace/""}
0 commit comments