Repository navigation
v1.93.2.0 GSTA-240 follow-up: native cookie cleanup waits for Edge to exit, plus three flaky-test repairs - #3805
Merged
Merged
Conversation
… 30 s local pregate lane, receipt write timeout (GSTA-240 follow-up) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…en Aside absence, register docsync fixture (GSTA-240 follow-up) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…scounted only beside gstack's own browser (review pass 1) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ings (review round 2), parent kill timer gets 2 s over the cleanup budget Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # docs/pregate.md
2 tasks done
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
On the old cleanup code, the two tests that model Windows dropping a Job's process count to zero while terminated Edge is still exiting both failed; with this change they pass.
Before/after as text: Windows drops the Job's process count to zero while terminated Edge is still exiting; on the old code the two tests that model that failed, and they pass once cleanup waits on each process handle
Why
The 2026-11-01 flaky pass (#3804) left four repairs that needed a decision or a file another PR owned. GStack Minder picked them (3a, 2a, 4a, plus the coverage-audit and docsync items) and asked for them as one follow-up off main after #3697 merged. The main one is native cookie import on Windows: the supervisor trusted the Job's process counter, Windows drops that counter while terminated Edge processes still hold the profile's files, so cleanup returned early and the next profile reset hit a sharing violation (
afterAllEPERM in 3 of 3 loaded baseline runs). No threshold, trial count, case kind or retry changed.Blast radius
Product code is three files in
browse/src/cookie-import-native*.ts, Windows-only paths. The supervisor now opens a handle to each process it sees in the import's Job and treats it as active until that handle signals exit; the cleanup budget goes from 5 s to 20 s, and the parent's kill timer is that budget plus 2 s. An idle import still returns as soon as its processes are gone (2 to 57 ms observed)..gstack/pregate.jsonchanges the local runner string tobun test --timeout=30000 {files}, which re-records pregate trust once per machine. Everything else is tests, test helpers, two fixtures and the changelog fragment. The remote gate ran 6,927 tests with 0 failures on tree 099d1f219a1b, and PR CI is green at c713fbb.Approvals
No approvals recorded for branch capy/gsta240-followup. Scope is GStack Minder's 1a/2a/3a/4a decisions and its later do-it (drop 1a, revert two loosenings), under the daily flaky pass's exemption from the plan step.
Summary
browse/src/cookie-import-native-job.ts,-worker.ts,cookie-import-native.ts). Failing-first on Linux: with only the new constant on the old source, the two new tests fail; with the fix, every test in the file passes (image above)..gstack/pregate.json,docs/pregate.md).writecase gets 15 s (test/gstack-ship-receipt.test.ts); it makes about 62 git calls.wc -cbyte counts over in-cwd files the way it already creditswc -l, with a fixture from the train gate red.documentation_sectionso the next paid red says which field was absent; its fixture is registered intest/helpers/free-fixtures-data.ts.Dropped on GStack Minder's call and left Open in the flaky ledger: the autoplan-guard-pty model change (1a; its Sonnet panel failed trial 1 on ordering and trial 2 lost its machine), the coverage-audit
grep | headcredit, and the third-party-actions Aside-absence discount.Review notes
Two review rounds (specialist and red team, then specialist, red team, native adversarial and an outside voice on openai/gpt-6.1-sol), plus one fix-check GStack Minder granted on the final hunks, which found nothing. The outside voice's two Medium items were about the two detector loosenings; both were resolved by reverting those loosenings. Open, not blocking:
TerminateJobObjectis never given a handle, so cleanup can still miss it. Closing that needs Job completion-port tracking; deferred.native_cleanup_failedpast 20 s (6 fails and 10 fails over 3 reps, against 15 fails on the old code). Those are now named failures, notafterAllEPERM (0 of 6 runs, against 3 of 3).Exploratory QA
Not applicable: no user-facing surface beyond a Windows cleanup path covered by the tests above.
Design Review
No frontend files changed — design review skipped.
Eval Results
No skill prompt changed. The paid selector lists every gate case because
test/helpers/free-fixtures-data.tsis in the paid runner's import closure; the change only registers one fixture. The local PR paid lane aborted at its preflight (noclaudeon PATH) and spent nothing; the train's full gate covers these cases.Plan Completion
No plan file bound to this branch. GStack Minder's decisions: 2a, 3a, 4a done; 1a dropped by GStack Minder.
TODOS
No TODO items completed in this PR.
Documentation
Status: current. No documentation edits were needed.
Scope: base 4f5b043, head c713fbb, branch capy/gsta240-followup, mode edit. Audited the 15 committed files; there was no staged, unstaged or untracked content. The change is the Windows native cookie-import cleanup wait, the pregate runner timeout, test and helper fixes, and a changelog fragment.
Documentation health:
bun test --timeout=30000 {files})Coverage debt and diagram drift: none. There is no new public surface, and no diagram entities changed.
Test plan
bun run typecheck: passbun test --timeout=30000, launch-file GSTACK_* unset): 534 pass, 0 fail