Repository navigation
fix(ci): the image smoke's exec task binds its own management port - #1445
Conversation
|
Review (GPT 6.1 Sol, xhigh) found no blocker. Its two notes:
|
The smoke picked a free port, released it, and passed the number to the exec container, which binds it about 400 ms later. Twice in about 880 runs since 1 November something else held it by then, and the job failed with "Execution management could not listen on 127.0.0.1:<port>". The smoke never calls the management port, so the supervisor now binds port 0, as local tasks already do. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Step 4 passed once the supervisor and its standby workerd were running. A supervisor that then failed to listen exited 1, and stop() accepts any exit but 137. The step now also waits for "listening on" and names the port. Co-Authored-By: Claude Opus 5.5 <[email protected]>
b064c7c to
26fc26b
Compare
Acceptance: PASS with notesChecked Done means
Used Local evidenceFault injection: The fault run exited 1 as expected. Every heavy/Docker command used Golden journeys
Rollback answers: They match the diff. Reverting this CI-script-only change leaves no deployed schema, data, external effects or runtime contract behind; the previous release remains compatible. No Not run
Notes
|
#1456) ## What changed This adds release 44's What's new entry, written from `b653816`. It covers everything merged since release 43's `through` (`1cbd39f`), and sets the `patchy` release to `0.44.0` in `packages/patchy/package.json` and `CURRENT_RELEASE`. | Change | PRs | | --- | --- | | New: Connect GitHub | #1448, #1451 | | New: Pin patches to your sidebar | #1437 | | Improved: Patchy works in Firefox | #1427 | | Improved: Your agent's Patchy skill keeps up | #1446 | | Fixed: Dialogs close in Firefox | #1427 | | Fixed: Publishing a tool no longer fails by chance | #1444 | | Behind the scenes: agents read what each tier means before picking one | #1438 | #1445 is CI only and has no line. #1422 is release 43's own entry. ## Look at - **The entry**, at the top of `releases` in `packages/core/src/whatsNew.ts`. - **GitHub is announced because this deploy makes it available.** The production App is registered and its five settings are in place, so GitHub is offered in Integrations once this ships. The code was run against real GitHub before it merged (#1451). One check stays open on #1440: someone who administers a repository without owning its organization. That case fails closed until it is shown. - **One test changed with it.** With GitHub off, a test searched the whole catalogue page for the word "GitHub". The entry puts that word in the What's new bell on every page, so the test now checks for the catalogue's own GitHub card and link instead. - **`pidgeon-suite` and `pidgeon-live` are red for a reason outside this release:** Pidgeon is retiring the API the integration calls (#1457). Neither is a required check, and this release neither fixes nor worsens it. - **Rollback safety, from the live commit `5decfef` (release 43) to this PR's merge.** #1448 and #1451 are labelled `one-way`; the rest are not, and each says release 43 reads what it leaves. - #1448 adds migration 43's three tables and five host settings. Release 43 ignores both, and the rollback rehearsal passed on #1448's head. - #1437 adds a personal pins table that release 43 never reads. - A patch version that declares a GitHub connection is what release 43 can't read. None can exist before this release. If this release misbehaves, roll back to `5decfef` (release 43) while no patch version declares a GitHub connection. Once one does, rolling back past #1448 would break that patch, because release 43 can't read a `github` declaration; fix forward instead. ## How it was verified `pnpm format:check`, the What's new tests, the API suites and GitHub's page tests pass locally. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required - **What does a revert leave behind?** Nothing: the entry and the version number are in the tree. - **Does the release before it still work with that?** Yes. Written by Claude Fable 5.2 in Claude Code, through T3 Code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Fable 5.2 <[email protected]>
What changed
The
server-imagejob sometimes failed at the smoke's exec step: the supervisor couldn't listen on the management port the script picked for it, because something else held it by then (#1443). The supervisor now binds a port of its own, as local tasks already do.Closes #1443
Look at
scripts/server-image-smoke.mjs, step 4.freePort()bound127.0.0.1:0, closed it, and handed the number to the exec container, which binds it about 400 ms later:That's 2 of about 880 runs since 1 November that reached the step. The smoke never calls the management API, so
EXECUTION_MANAGEMENT_PORTis now0. With port 0, the image's supervisor reports what it bound:I could not find which process took the port on the runner. The supervisor's own proxy binds port 0 just before management and could get it, but at about 1 in 7,000 per run that is unlikely. Survivors of the stopped hosts, the sockets they leave, and client connections are ruled out (#1443). Port 0 closes the gap whatever took it.
The step also waits for the supervisor's "listening on" line now. Before, it passed once the supervisor and its standby workerd were running: a supervisor that failed to listen after that exited 1, and
stop()accepts any exit but 137.The hosts' ports and callback ports keep
freePort(). The callbacks must be known before either host starts, and that step never failed.How it was verified
The edited script passed locally against the image built by the failing run (
server-image-linux-amd64from run 43508394544), every step through[image-smoke] passed:The
server-imagejob runs it on this PR.Not shown: the flake not coming back. It hit about 1 in 440 runs, so only time shows that.
Release impact
CI script only.
Diagnosed and fixed by Claude Opus 5.5 in Claude Code (T3 Code).
🤖 Generated with Claude Code