aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornkozlovskiy <nmk@ydb.tech>2023-12-11 14:32:29 +0300
committernkozlovskiy <nmk@ydb.tech>2023-12-11 15:22:18 +0300
commit7d60b01fe2769f3f14b9ea385c09e7bbbbc5bd6a (patch)
tree71c264a8986534f7c326c032c992d6f4e81b0c7d
parent51e6925a6e95675f3c6aac3a861c42a6927a702e (diff)
downloadydb-7d60b01fe2769f3f14b9ea385c09e7bbbbc5bd6a.tar.gz
ci: check ya test generated junit.xml as a test run success
-rw-r--r--.github/actions/test_ya/action.yml14
1 files changed, 10 insertions, 4 deletions
diff --git a/.github/actions/test_ya/action.yml b/.github/actions/test_ya/action.yml
index 5401a6114c..38d6531c2f 100644
--- a/.github/actions/test_ya/action.yml
+++ b/.github/actions/test_ya/action.yml
@@ -205,10 +205,16 @@ runs:
--canonization-backend=ydb-canondata.storage.yandexcloud.net \
--junit "$JUNIT_REPORT_XML" --output "$OUT_DIR" "${extra_params[@]}" || (
RC=$?
- if [[ $RC -ge 10 && $RC -le 14 ]]; then
- echo "ya test returned failed tests status, recovering.."
- else
- exit $RC
+ if [ $RC -ne 0 ]; then
+ echo "ya test returned $RC, check existence $JUNIT_REPORT_XML"
+ if [ -s "$JUNIT_REPORT_XML" ]; then
+ echo "$JUNIT_REPORT_XML exists"
+ ls -la "$JUNIT_REPORT_XML"
+ else
+ echo "$JUNIT_REPORT_XML doesn't exist or has zero size"
+ ls -la "$JUNIT_REPORT_XML" || true
+ exit $RC
+ fi
fi
)