Skip to content

Commit 2c0d2b3

Browse files
Merge pull request #103 from sebastianwessel/codex/release-test-flake-retry
CI: retry flaky test files once in PR and release
2 parents 616af5f + 94c63e1 commit 2c0d2b3

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/pull_request.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,8 @@ jobs:
3131
bunx tsc --noEmit
3232
for f in $(find src -type f -name '*.test.ts' | sort); do
3333
echo "Running $f"
34-
bun test "$f"
34+
if ! bun test "$f"; then
35+
echo "Retrying $f once after failure..."
36+
bun test "$f"
37+
fi
3538
done

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ jobs:
6666
set -euo pipefail
6767
for f in $(find src -type f -name '*.test.ts' | sort); do
6868
echo "Running $f"
69-
bun test "$f"
69+
if ! bun test "$f"; then
70+
echo "Retrying $f once after failure..."
71+
bun test "$f"
72+
fi
7073
done
7174
7275
- name: Build

0 commit comments

Comments
 (0)