Skip to content

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
aRustyDev merged 3 commits into
mainfrom
docs/build-stage-1-record
Nov 23, 2026
Merged

aRustyDev merged 3 commits into
mainfrom
docs/build-stage-1-record

Conversation

@aRustyDev

Copy link
Copy Markdown
Owner

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

Cost build / linux is 134 s cold (the server's release build 86.5 s, migrate 21.7 s, the toolchain and a cache miss 11.5 s) and 101 to 102 s warm, a 24% saving. The cache main saved 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 cache
Critical path none. A full run is 594 s and the e2e cell (552 s) sets it; an affected-only run of a server change is set by mutants leg 0 (309 s). linux is the 12th longest of 48 jobs
Probe A (a comment in the server crate, run 45095952963) an affected-only run plans linux with the server's other jobs and skips pg-adapter, workers, web, docs and deny; gate passes
Probe B (#[cfg(not(debug_assertions))] compile_error!, run 45096904701) build / linux failed in 40 s with the planted error, build / verdict failed, and gate failed (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 workflow
The artifact 5.2 MB zipped, downloaded and inspected (not run): two x86-64 ELF executables for GNU/Linux, dynamically linked, not stripped (thrust-server 10.2 MB, migrate 2.6 MB)
Passes 5 to 7 caching pays and stays; parallelising it, or sparing it for a change to a crate's tests, would save nothing a critical path or the runner-second budget (about 2% of a full run) would notice

The section also has the survey of public solutions (taiki-e/upload-rust-binary-action is a candidate for Release, houseabsolute/actions-rust-cross for bsd; 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 red linux now 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)

  • The repository's cache is over its limit: 10,370 MiB of 10,240 across 26 entries. The new entry costs the oldest one its place (the 708 MB mutants cache 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 and docker (stage 5) question; this stage decides nothing about it.

🤖 Generated with Claude Code

aRustyDev and others added 2 commits November 22, 2026 22:09
…, 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
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
aRustyDev temporarily deployed to preview-control-plane November 23, 2026 03:10 — with GitHub Actions Inactive
@aRustyDev
aRustyDev merged commit 4610060 into main Nov 23, 2026
12 checks passed
@aRustyDev
aRustyDev deleted the docs/build-stage-1-record branch November 23, 2026 03:12

This branch was previously deployed

1 inactive deployment
preview-control-plane — 41335092 Deployed Nov 23, 2026 by aRustyDev via reconcile #644
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant