Skip to content

Commit 106ed96

Browse files
author
Shubham Vasudeo Desai
committed
Check if any tests failed again
1 parent 0687049 commit 106ed96

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/macos.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)