Repository navigation
docs(plans): record stage 1 of the Build phase (linux): what it costs, the cache, and the probes that show it go red - #355
Merged
Conversation
…, the cache, and the probes that show it go red Stage 1's section in phases/0004-build.md: the job is 134 s cold (the server's release build 86.5 s, migrate 21.7 s) and 101 to 102 s with the cache main saves (222.8 MB; a pull request's run restores it), off every critical path (a full run is 594 s and set by the e2e cell at 552 s; an affected-only run of a server change by mutants leg 0 at 309 s). The repository's release profile is the Worker's, so the native server it makes is 10.2 MB, dynamically linked and not stripped. Two probes (#354, closed unmerged, branch deleted): a comment in the server crate plans linux on an affected-only run and passes; a compile_error! behind cfg(not(debug_assertions)) turns build / linux, build / verdict and gate red and nothing else (21 of 29 jobs green, 5 skipped), because every other job builds in debug. The survey of public solutions names two candidates for later stages (taiki-e/upload-rust-binary-action for Release, houseabsolute/actions-rust-cross for bsd) and the one hand-written line with its control. Passes 5 to 7 are recorded: the cache pays (-24%), and parallelising or sparing the job would save nothing that a critical path or a runner-second budget would notice. running.md's runbook gets the measured time instead of a pointer. The plan's and the README's status lines say stage 1 is done and stage 2, wasm, is next. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
aRustyDev
temporarily deployed
to
preview-control-plane
November 23, 2026 03:10 — with
GitHub Actions
Inactive
…k 89 s on main's run for #353) #353 changed thrust-adapters-postgres, the crate of migrate, so the planner planned build / linux on its push to main: 89 seconds, warm, run 45097099843, gate green. It is the first real change after the stage merged, and 12 s under probe A's 101 s and the dispatch's 102 s (runners differ by about that much, so one run says little). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
aRustyDev
temporarily deployed
to
preview-control-plane
November 23, 2026 03:10 — with
GitHub Actions
Inactive
This branch was previously deployed
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 record of stage 1 of the Build phase (
linux, #352, merged), and what the measurements and the probes showed. Docs only.What it records
build / linuxis 134 s cold (the server's release build 86.5 s,migrate21.7 s, the toolchain and a cache miss 11.5 s) and 101 to 102 s warm, a 24% saving. The cachemainsaved is 222.8 MB, and a pull request's run restores it (probe A).main's own run of the merge took 167 s because it saved the cachemutantsleg 0 (309 s).linuxis the 12th longest of 48 jobs45095952963)linuxwith the server's other jobs and skipspg-adapter,workers,web,docsanddeny;gatepasses#[cfg(not(debug_assertions))] compile_error!, run45096904701)build / linuxfailed in 40 s with the planted error,build / verdictfailed, andgatefailed (build was expected to run and its result is 'failure'). 21 of the 29 jobs succeeded and 5 were skipped: nothing else saw the break, because the cells, the mutants, the tests and clippy build in debug. That is the stage's reason to exist, and the live control of "a planned job that fails turns the gate red" for a new workflowthrust-server10.2 MB,migrate2.6 MB)The section also has the survey of public solutions (
taiki-e/upload-rust-binary-actionis a candidate for Release,houseabsolute/actions-rust-crossforbsd; neither fits a native compile proof), the one hand-written line (the binary check) with why no built-in replaces it, and the failure modes. The probe PR (#354) is closed unmerged and its branch is deleted.running.md's runbook for a redlinuxnow has the measured time. The plan's and the README's status lines say stage 1 is done and stage 2,wasm, is next.Things worth your eye (not blocking)
mutantscache of 2026-11-19).[profile.release]is the Worker's (opt-level = "s", fat LTO, one codegen unit), so the native server it makes is tuned for size (10.2 MB); a server for distribution may want a profile of its own and a static or stripped binary. That is a Phase 4 anddocker(stage 5) question; this stage decides nothing about it.🤖 Generated with Claude Code