Skip to content

ci(build): build.yml, the sixth called workflow, with the linux compile proof (Build phase, stage 1) - #352

Merged
aRustyDev merged 3 commits into
mainfrom
ci/build-stage-linux
Nov 23, 2026
Merged

aRustyDev merged 3 commits into
mainfrom
ci/build-stage-linux

Conversation

@aRustyDev

Copy link
Copy Markdown
Owner

Stage 1 of the Build phase (.agents/plans/ci-workflows/phases/0004-build.md): the template. build.yml is the sixth called workflow, and its first job, linux, is a compile proof: it builds thrust-server and migrate in release for x86_64-unknown-linux-gnu, checks that both binaries exist, and uploads them for three days. It publishes, signs and attests nothing, and has no secret, environment or id-token.

The owner's four answers (2026-11-23, all as recommended) are the first commit.

What it adds

  • build.yml: the job linux and the verdict job every called workflow has (ADR-0102). The commands are the repository's: cargo build --release --locked -p thrust-server, and migrate with the command build-bundle builds it with (the same line, which the wiring test holds equal). "Release" is [profile.release], which is the Worker's (opt-level = "s", fat LTO, one codegen unit): nothing else builds the native server that way in CI, and the contract cells build it in debug.
  • ci.yml: a job build that calls it, in the gate's needs and in VERDICT_JOBS; assert-gate.sh's default list names it.
  • plan-ci.py: the job linux, the workflow build, planned when thrust-server or thrust-adapters-postgres is affected (the crate of migrate); a change to build.yml runs everything.
  • Not here: the deploy bundle. deploy.yml and release.yml still build it with build-bundle and attest it (owner's question 4).

Evidence

Check Result
test_plan_ci.py 7048 checks (the job's cases, the model's rule, the crate of migrate in a graph where the server does not depend on it)
test_workflow_wiring.py 196 checks, with the job's lines one by one
test-ci-scripts.sh, under dash and sh 221 cases (six called workflows; the count it expects is computed, not written)
mutate_gate.py 313 of 313 killed (it was 272), 12 mutants that change nothing survive. 41 new: 18 made for the new call and file, 23 written for the job, the planner and the gate
The binary check's control the step's own text, taken from the file, fails in a directory with no binary, with only thrust-server and with only migrate, and passes with both
ci-commands.py against main 3 jobs appear (linux, verdict, the call), 0 are gone, and the one that changed is the gate's VERDICT_JOBS
The 28 commands of the deps job, cargo deny, fmt, both clippy runs 28 of 28 pass locally
check-book.sh, check-ci-index.sh, lint-all-workflows.sh, actionlint with its control pass

The measurements of the job on a runner (what it costs cold, on a critical path of a full run and of an affected-only run) and the passes that follow come after the first run; they go in the phase document.

🤖 Generated with Claude Code

aRustyDev and others added 3 commits November 22, 2026 20:20
On 2026-11-23 the owner chose the recommended option of each question in phases/0004-build.md: all six stages as compile proofs that publish nothing, one target per stage (x86_64 linux gnu and musl, aarch64-apple-darwin, x86_64-pc-windows-msvc, x86_64-unknown-freebsd), a Dockerfile at stage 5 with its design put to the owner then, and the deploy bundle staying built and attested by deploy.yml and release.yml. The phase document gets the decisions as a table above the questions as asked; the plan's status line and the README say stage 1, linux, the template, is in progress.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…le proof (Build phase, stage 1)

build.yml holds the job linux and the verdict job every called workflow has (ADR-0102). linux builds thrust-server and migrate in release for x86_64-unknown-linux-gnu, checks that both binaries exist, and uploads them for three days; it publishes, signs and attests nothing, and has no secret, environment or id-token. The commands are the repository's: the server under its [profile.release] (which is the Worker's: nothing else builds the native server that way in CI, and the contract cells build it in debug), and migrate with the command build-bundle builds it with (the same line, which the wiring test holds equal). The deploy bundle stays built and attested by deploy.yml and release.yml.

ci.yml gets the call (a job build that runs when the planner's top names it and passes its plan), the gate needs it, and VERDICT_JOBS and assert-gate.sh's default list name it. The planner knows a job linux and a workflow build, plans it when thrust-server or thrust-adapters-postgres is affected (the crate of migrate, tested apart in a graph where the server does not depend on it), and runs everything for build.yml itself.

Tests and controls: test_plan_ci.py (7048 checks) gets the job's cases and the model's rule; test_workflow_wiring.py (196) gets the line-by-line checks of the job (release and locked, migrate's command equal to the bundle's, both binaries checked, a cache key of its own saved on main only, an upload that fails on nothing, no secret); test-ci-scripts.sh (221) lists six workflows and computes the count it expects; mutate_gate.py has a row in CALLS (18 mutants made for the new call and file, as for every called workflow) and 23 written by hand for the job, the planner and the gate, and the driver ends at 313 of 313 killed with its 12 equivalent mutants surviving (it was 272 killed). ci-commands.py against main: three jobs appear (linux, verdict, the call), none is gone, and the one changed job is the gate's VERDICT_JOBS.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
cicd.md gets the row of build.yml, the planner rule for linux, the run-everything list with build.yml, the examples table re-run through the planner (a server change now plans linux), and the counts that moved: six called workflows, 48 gate cases per job and result, 221 cases in test-ci-scripts.sh, 196 wiring checks, 313 mutants with 12 that change nothing (the text said 142, 234 and nine, which an earlier stage had left behind). running.md gets the rows of build and linux and a runbook for a red linux.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@aRustyDev
aRustyDev temporarily deployed to preview-control-plane November 23, 2026 01:29 — with GitHub Actions Inactive
@aRustyDev
aRustyDev enabled auto-merge (squash) November 23, 2026 01:35
@aRustyDev
aRustyDev merged commit 4ac2a53 into main Nov 23, 2026
51 checks passed
@aRustyDev
aRustyDev deleted the ci/build-stage-linux branch November 23, 2026 01:39

This branch was previously deployed

1 inactive deployment
preview-control-plane — a2714bd1 Deployed Nov 23, 2026 by aRustyDev via reconcile #630
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