Repository navigation
v1.92.78.0 test: seven flaky-test repairs and six failure diagnostics from the 2026-11-01 flaky pass (GSTA-240) - #3804
Merged
Merged
Conversation
…2026-11-01 flaky pass (GSTA-240) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…d name it and whether it exited (review finding) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
This was referenced Nov 1, 2026
…a240-flaky Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # test/helpers/restamp-fixture.ts
… main merge Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
With the gstack launch file sourced (it exports
GSTACK_STATE_ROOT), three render-root cases intest/autoplan-publication-guard.test.tsfailed every run on main; they pass once the case clears the state-root variables it does not name.Before/after as text: With the gstack launch file sourced (it exports GSTACK_STATE_ROOT), three render-root cases failed every run on main; they pass once the case clears the state-root variables it does not name
Why
The daily flaky pass for 2026-11-01 found 14 paid and 34 free flake records in 1,053 CI runs, plus five reds crew lanes reported by hand. This PR repairs the ones whose cause the logs prove and whose files no queued PR owns, and adds diagnostics where one red did not show its cause, so the next red names it. No threshold, trial count, case kind or retry changed.
Blast radius
Two product scripts change.
bin/gstack-codex-probeonly changes how a waiter reads an owner-less lock whose age it cannot read (it now waits instead of breaking it), and the wait loop stays bounded by_tries(bin/gstack-codex-probe:640-672, read).bin/gstack-evidenceadds one environment variable,GSTACK_EVIDENCE_LOG, to the lane it spawns, andscripts/lib/free-home-guard.tsignores only that exact path; a foreign write still fails (test/free-home-guard.test.ts, run).scripts/test-free-shards.tschanges only an error message. Everything else is test code. The remote gate ran 4,917 tests with 0 failures on tree 4b786a875c25, and PR CI is green.Approvals
No approvals recorded for branch capy/gsta240-flaky. (Daily flaky pass: exempt from the plan step under the gstack skill's "Plan, approve, ship".)
Summary
Seven flakes stop failing correct runs. A codex-probe waiter that lost a race with the lock holder removed the next owner's lock, so concurrent probes ended
MODEL_PROBE_INCONCLUSIVEin three Free Tests runs. A /ship lane's own evidence log tripped the free runner's real-home check. The autoplan render-root cases read the caller'sGSTACK_STATE_ROOT. The design-detect directory scan slept 1,000 ms against a 1,500 ms batch timeout on macOS. pregate-regate rebuilt one ~3 s fixture in every test. ship-queue-train planted its seam on the name the fixture's owngit maintenanceuses (EEXIST twice). The ship-budget fake child wrote its args file in two steps, so a poll read it empty.Six reds that did not show their cause now print it. The free runner names an unconfirmed browser child and whether it had exited, and five tests print process state, exit status or cleanup events behind their assertion.
Test Coverage
Each changed runtime file has a changed test naming it (coverage map: deterministic, no audit reader). Every repair was proven failing-first: red without the fix (a stat stub for the probe race, an injected 600 ms engine delay, a held
maintenance.lock, a 1 s write window, the launch file'sGSTACK_STATE_ROOT, realgstack-evidenceunder the default guard) and green with it.Tests ran: typecheck count unavailable
Tests ran: focused 704
Pre-Landing Review
No blocking issues remain. Pass 1 (specialists, Red Team): no findings. Step 11: the outside voice (openai/gpt-6.1-sol) found one blocking issue: the first version settled a shard when a recorded browser child the runner never saw had already exited, and it reproduced an exited child leaving a live orphan that the runner then passed. Fixed in 26b4e6e by keeping the failure and naming the child instead. Pass 2 on the fix range (specialists, Red Team): no findings.
REVIEW_LOOP: passes=2 blocking_found=0 deferred=0 noted=0 fixed=0 scope=frozen
Gate edits: none detected (GATE_SCAN tagged=0)
Outside review: completed (openai/gpt-6.1-sol), 1 blocking finding, fixed.
Review notes
Informational, not blocking (native adversarial pass, all Low):
bin/gstack-codex-probe:681: the owner-less break still compares an empty owner string, so a lock that was truly abandoned in its creation window can race a freshmkdir. Pre-existing; this diff narrows the window.bin/gstack-codex-probe:665-667: on a platform where neitherstat -c %Ynorstat -f %mreads a directory's mtime, an owner-less lock now never ages out and probes time out instead. GNU, busybox and BSD stat all read it.scripts/lib/free-home-guard.ts: two lanes sharing one real HOME still see each other's lane logs, and whoever setsGSTACK_EVIDENCE_LOGcan exempt one exact file (that caller already controls the runner's environment).Exploratory QA
Not applicable: test and harness changes with no user-facing surface.
Design Review
No frontend files changed — design review skipped.
Eval Results
No prompt-related files changed — evals skipped. The selector lists 264 gate cases only because
test/helpers/restamp-fixture.tsis a derived reference; its change addscopyFixtureRepoand moves the existing git helper intofixtureGitwithout changingmakeFixtureRepo's behavior. The train's full gate covers them.Plan Completion
Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). Daily flaky pass repairs from the flake ledger.
TODOS
No TODO items completed in this PR.
Documentation
Status: current. No documentation edits were needed.
Scope: base 83ae96e to head 26b4e6e on capy/gsta240-flaky, 19 committed files and no staged, unstaged or untracked changes. The changes are 2 bin scripts, free-home-guard.ts, test-free-shards.ts, 13 test files and the changelog.d fragment. The fragment is the only prose file changed.
Documentation health
Coverage debt: the GSTACK_EVIDENCE_LOG exemption has only code comments and the changelog fragment as reference. The codex-probe lock-age behavior and the browser-ownership error text have no reference docs; these are minor gaps. Diagram drift: none.
Test plan
bun run typecheck: passbun test --timeout=30000, launch-file GSTACK_* unset): 704 pass, 0 fail