From fb30855ce391a398774bd5885f0821fdf3d8da6b Mon Sep 17 00:00:00 2001 From: garrytan Date: Thu, 29 Oct 2026 16:22:44 +0000 Subject: [PATCH] fix(flaky): stream output, keep unreported runner failures red, fail-closed duplicates and nonzero reruns Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- bin/gstack-flaky | 3 +- lib/flaky-run.ts | 73 +++++++++++++++++++++++++++++++++--------- test/flaky-run.test.ts | 70 ++++++++++++++++++++++++---------------- 3 files changed, 103 insertions(+), 43 deletions(-) diff --git a/bin/gstack-flaky b/bin/gstack-flaky index 7bec3b7ba..60039be8c 100755 --- a/bin/gstack-flaky +++ b/bin/gstack-flaky @@ -41,6 +41,7 @@ const FIX: Record = { FLAKY_RETRIES_HIDDEN: 'set PLAYWRIGHT_JUNIT_INCLUDE_RETRIES=1 where the report is written', FLAKY_COMMAND_FAILED: 'read the command output above: the suite crashed or a non-test step failed; that is a real red', FLAKY_COMMAND_NOT_STARTED: 'check the command after -- (it runs without a shell; wrap it as bash -c "