File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -261,6 +261,33 @@ jobs:
261261 echo '{"tests": []}' > "${TEMP_RESULTS}"
262262 fi
263263
264+ - name : Check if any tests failed again (macOS)
265+ shell : micromamba-shell {0}
266+ run : |
267+ PR_DIR="pr_${PR_ID}"
268+ CURR_DIR="artifacts/${PR_DIR}/macos"
269+ TEMP_RESULTS="${CURR_DIR}/temp_test_results.json"
270+ FAILED_AGAIN_FILE="${CURR_DIR}/failed_again.txt"
271+
272+ if [[ -f "${TEMP_RESULTS}" ]]; then
273+ echo "Checking if any previously failed tests are still failing..."
274+ jq -r '.tests | map(select(.outcome == "failed")) | .[].nodeid' \
275+ "${TEMP_RESULTS}" > "${FAILED_AGAIN_FILE}" || true
276+ else
277+ echo "No temp JSON results found, assuming no tests failed again."
278+ : > "${FAILED_AGAIN_FILE}"
279+ fi
280+
281+ if [[ -s "${FAILED_AGAIN_FILE}" ]]; then
282+ echo "Some tests failed again. Stopping execution."
283+ echo "Tests failing again:"
284+ cat "${FAILED_AGAIN_FILE}"
285+ exit 1
286+ else
287+ echo "No tests failed again. Continuing with remaining tests..."
288+ fi
289+
290+
264291 - name : Collect all test cases (parallel macOS)
265292 shell : micromamba-shell {0}
266293 run : |
You can’t perform that action at this time.
0 commit comments