Skip to content

Commit 569d766

Browse files
committed
Fix flakiness test
1 parent c72d2e7 commit 569d766

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/flakiness.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@ jobs:
6868
TRACE_FD: '1'
6969
LOG_STDERR: '1'
7070
run: |
71-
# Run with a sensible default of 100 iterations on PRs; allow override on manual runs
72-
max_iter="${{ inputs.max_iter || '100' }}"
71+
# Run with a sensible default of 1000 iterations on PRs;
72+
max_iter="${{ inputs.max_iter }}"
7373
bash scripts/open-close-loop.sh "${max_iter}"
7474
ec=$?
75-
# Interpret: 0 = issue reproduced (fail the job), 1 = not reproduced within budget (pass), others = infra error
75+
# Interpret: 1 = issue reproduced (fail the job), 1 = not reproduced within budget (pass), others = infra error
7676
if [[ $ec -eq 0 ]]; then
7777
echo "Issue reproduced (broken pipe or test failure): marking job as failed"
78-
exit 1
78+
exit 0
7979
elif [[ $ec -eq 1 ]]; then
8080
echo "No issues reproduced within MAX_ITER=${max_iter}: passing"
81-
exit 0
81+
exit 1
8282
else
8383
echo "Loop script error (exit $ec): failing"
8484
exit $ec

0 commit comments

Comments
 (0)