From fdbb34c77e702c751cf96f19c5dd1b0985465436 Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Mon, 26 May 2025 13:50:13 +0300 Subject: [PATCH] .github/workflows: Improve regression test failure detection in GitHub Actions Update the run_regression_tests workflow to fail if "Compiling the patched kernel" is missing or if any non-zero error count ("N errors") or "FAILED" is detected after the marker. The previous check missed multi-digit error counts and did not handle a missing marker, which could result in undetected failures. --- .github/workflows/run_regression_tests.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_regression_tests.yaml b/.github/workflows/run_regression_tests.yaml index 16c03cf28..cc81c12ba 100644 --- a/.github/workflows/run_regression_tests.yaml +++ b/.github/workflows/run_regression_tests.yaml @@ -74,7 +74,15 @@ jobs: ./scripts/run-regression-tests -l -q -k -d /tmp/scst-${{matrix.version}} ${{matrix.version}}-nc-ns-nm | tee output.txt - cat output.txt | grep -A1 "Compiling the patched kernel" | grep -e "FAILED" -e "[^0] errors" > /dev/null 2>&1 && err=1 + if ! grep -q "Compiling the patched kernel" output.txt; then + echo "::error ::run-regression-tests failed" + err=1 + else + if grep -A1 "Compiling the patched kernel" output.txt | grep -E -q "FAILED|[1-9][0-9]* errors"; then + echo "::error ::Regression test failed" + err=1 + fi + fi rm -f output.txt