Repository navigation
Browse daemon skips port 10080, which Chromium refuses, and a process-census test stops flaking - #4554
Merged
Conversation
…-census test stops flaking A random browse or terminal-agent port that lands on 10080 is drawn again, because Chromium refuses that port and the welcome page failed with net::ERR_UNSAFE_PORT (Free Tests 44539190714). The bootstrap retention census skips a same-user process that was unreadable and has already exited, instead of throwing (Free Tests 44548125960). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
… access Review-Finding: p1/specialist-batched#1 reader=testing 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>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Merged
capy-ai Bot
added a commit
that referenced
this pull request
Nov 20, 2026
- Two /ship approval records stop needing workarounds. (#4549) - For contributors: the paid auto-decide check counts a start step that ran while the skill loaded. (#4543) - The destructive-command check closes three ways past its disk-wipe and force-push blocks. (#4534) - A green CI run still counts when the repository's artifact storage is full. (#4536) - `/cso` now audits repositories that track symlinks. (#4567) - A doc-sync eval stops failing when the audit child drops one field from its result line. (#4555) - The browse daemon no longer picks port 10080, which Chromium refuses to open. (#4554) - Opted-in telemetry now says why a skill run ended, which coding agent and model family ran it, and whether an upgrade worked. (#4542) - A preregistration with only its write-up and plain data now gets the write-up review: one reviewer, one round. (#4544) - When owner rulings don't clear a stopped review, `gstack-review-read` now says which findings are left. (#4553) - The prompt-routing hook now names your installed bug-fix skill on bug reports, alone, and never puts /verify ahead of it. (#4539) - Owner rulings now close a stopped review whose findings were logged in a findings file. (#4568) - /ship can finish after the owner accepts a stopped review's findings as open notes. (#4552) - /ship no longer starts the full test suite on your machine when CI's earlier run can't be reused (GST-3277). (#4565) - The prompt-routing hook no longer acts on words inside backticks. (#4566) - In Claude Code, a gstack skill's start step now runs when the skill loads, so the model can't skip it. (#4509) - gstack's telemetry backend only accepts writes through its own validated endpoint, and the community dashboard now counts real use. (#4537) - gstack now says what it's adding before it adds a background job or a browser extension. (#4538) - For contributors: every flaky pass in Free Tests is now recorded. (#4572) - For contributors: Free Tests on pull requests starts its test shards one round of small jobs sooner. (#4570) - Secret values written as `name=value` at the end of a path are now hidden. (#4571) 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.
The browse daemon no longer picks port 10080, which Chromium refuses to open, so its welcome page can't fail with
net::ERR_UNSAFE_PORT.This fixes two flaky free tests at their cause: the xvfb welcome test and the paid-shard retention check.
Nothing for the reader to do.
What changed
browse/src/port-allocator.ts: a random draw that lands on a port Chromium blocks (CHROMIUM_UNSAFE_PORTS, fromkRestrictedPortsin Chromium'snet/base/port_util.cc; 10080 is the only one inside 10000-49151) is drawn again. ExplicitBROWSE_PORTvalues are unchanged.test/bootstrap-retention.test.ts: a new test covers a same-user process that denies its fd table and exits during the census. It fails against main's helper and passes here.ARCHITECTURE.md: the port-selection paragraph says a draw on 10080 is redrawn.changelog.d/flaky-fix-2026-11-20-port-and-census.md: the release-note fragment.test/helpers/bootstrap-retention.ts: when the process census at scope creation getsEACCES/EPERMon a same-user process and that process has already exited, it skips it instead of throwing. A live uninspectable process is still recorded as before, and every other error still throws. Skipping can only shorten the tolerated list, so the later quiet check is as strict as before.Evidence
browse/test/xvfb.test.ts"welcome: startup settles welcome before publishing daemon readiness": the daemon log tail printedFailed to navigate to welcome page: goto: net::ERR_UNSAFE_PORT at http://127.0.0.1:10080/welcome. The new allocator test is red on main (Expected: not 10080) and green here.test/bootstrap-retention-shard.test.ts"ack-failure preserves the real attempt through runner cleanup": the controller exited 1 withEACCES: permission denied, readlink '/proc/60805/cwd'atcreateBootstrapRetentionScope(bootstrap-retention.ts:158). Stress repro (8 loops forking children that callprctl(PR_SET_DUMPABLE, 0)and exit, while creating 3,000 scopes): main 9 of 3,000 failed (4 readlink cwd, 5 scandir fd); this branch 0 of 3,000.terminal-agent-port-range+findport16/16;bootstrap-retention+bootstrap-retention-shard40/40; typecheck clean.Agent notes
Daily flaky pass 2026-11-20 (GSTA-668, GST-3276). Ledger: handoffs/flaky-ledger.md.
Approvals
No approvals recorded for branch flaky-fix-2026-11-20-port-and-census.
Plan: exempt: flaky
Plan check: exempt flaky
Review (one pass, light depth, one fix round): the batched specialist found one INFORMATIONAL test gap at
test/helpers/bootstrap-retention.ts:163, fixed in f048b78. The adversarial reader raised three Low notes, left noted: an explicitBROWSE_PORT=10080is still accepted (pre-existing); the unsafe-port set is copied by hand from Chromium's list; the changelog's "one in 39,000" rounds 39,151.Gate edits: none detected (gate scan tagged 0 hunks)
Exploratory QA smoke: 2 probes, pass (port-range tests and bootstrap-retention tests at head).
Run note: the first /ship preflight ran with the full-suite lane before CI had finished, which started
bun run testlocally by mistake. It was killed after about 7 minutes; preflight reran with the targeted lane, and the full lane is carried from CI run 44755725292.Paid probes selected by eval-select (browse-basic, browse-snapshot, diagram-triplet, qa-bootstrap) were not dispatched, per the lane's decision.