855. The TLS graph enters the gated build
(The title and slug are provisional.)
Milestone 501 (a TLS client that speaks to one pinned peer) built the client, and nothing checks that it keeps working.
The gap
cryptography_provider, pinned_tls_client and the two programs over them are each their own
workspace. Their crates are fetched only when somebody runs helpers/build-cryptography-exerciser.sh
or helpers/build-pinned-tls-exerciser.sh. Their kernel tests skip in CI. Their host tests run in no
gate at all.
That was milestone 442 (a crypto provider rustls can use on all three bare-metal targets)'s
posture, chosen while the primitives were still calef's to rule on. They are ruled now. §196 (nife
carries TLS) took rustls, and §198 (the glue is ours, the primitives are not) took the primitives,
rsa included. Milestone 801 (packages over the internet) cannot ship a client no gate builds. A
toolchain bump or a std overlay change can break this graph today, and no check would notice.
What it would cost, measured 2026-10-06 on patagonia
- Crates: 70 in
pinned_tls_client's normal graph, 73 inpinned_tls_exerciser's (cargo tree -e normal).deny.tomlandscript/supply-chainalready scan the provider's. - Build time: about 28 s per architecture for
pinned_tls_exerciserfrom clean. Thestdfarm was already built. Under 90 s for all three. - Run time: The kernel test is under 5 s per architecture. The host tests are under 2 s.
- Image size: 1.27 MB (x86_64) to 1.89 MB (riscv64) per program before the archive strips it.
Reuse: the two build helpers as they are and CI's existing crates.io fetch; nothing here is written, and the crates are the ones §196 and §198 already took.
The options
- Build both programs in CI's kernel legs and the host tests in
script/test's host phase, fetching from crates.io as the rest of the workspace does. - The same, vendored: §46 (thin primitives or whole subsystems) says to vendor only what needs a patch, and nothing here does.
- A scheduled, non-gating job: the graph is built nightly and a break is a notice rather than a red pull request.
- Leave it out until milestone 801 needs it.
The lane recommends the first. The second buys nothing §46 asks for. The third finds a break days late, on nobody's pull request. The fourth leaves the client unchecked through the toolchain bumps most likely to break it.
Ruled 2026-10-10 (UTC): option 1
calef launched this milestone on 2026-10-10 (UTC) with "launch 855". Option 1 was the lane's
recommendation and he raised no objection, so option 1 is the ruling; options 2 to 4 were not
contenders. The fork was this block's alone, so the ruling lives here. The dependencies it rests on
were already ruled: §196 (nife carries TLS) and §198 (the glue is ours, the primitives are not),
which are this block's decision dependencies in place of unwritten. No new section was written,
as none was for milestone 121 (ripgrep on nife)'s crates.io fetch in swish-check.
Built (lane milestone/855-the-tls-graph-enters-the-gated-build, PR #1902)
- The kernel legs.
cargo xtask testbuilds the TLS graph's programs for every leg it boots, afterstd_exerciserand before the archive (xtask::farm::tls_graph, provisional). It runs the two helpers as they were, withNIFE_CRYPTO_TRIPLESset to the legs in the run, so--arch riscv64pays for one triple. That putscryptography_exerciser,pinned_tls_exerciserand milestone 801 (packages over the internet)'spackage_fetch_exerciserin every suite archive, and their three tests stop skipping inscript/testand in CI'stestjob alike. A build that breaks fails the gate rather than turning three tests into skips. - Not a
script/ci-buildrow, which is wherergis built. A row would have madescript/testand CI's kernel legs two different suites, and would have needed a CI-only refusal to keep the skip from coming back; building insidetestneeds neither. The CPU-model matrix and the falsification replays go throughcargo xtask testtoo, and build their one triple. - The host phase.
cryptography_providerandpinned_tls_clientrun their own tests, the client's againsthelpers/tls-peer(OpenSSL through Python'sssl), each by--manifest-pathand--locked, besideredoxfs_server. The one test that needs the internet stays#[ignore]d. - The helpers pin
CARGO_TARGET_DIRto the package and build--locked: the copy step reads$SRC/target, and a gate builds the graph its lockfile names. script/supply-chainscanspinned_tls_clientandpinned_tls_exerciserbeside the provider. Both were clean againstdeny.tomlon 2026-10-10.- The helpers share one target directory,
target/tls-graph, so the second reuses the first'sstdand provider graph. uefi-testgives its boots a 180 s hang bound, where they had the runner's 90 s default. The x86_64system_testsboot under OVMF already took 86 s on main, and this milestone's three tests took it to 89 s, then to the bound in run 38084427172, which killed it mid-transcript. A passing boot exits as soon as its suite ends, so the bound costs nothing until something hangs.
What it cost in CI, measured 2026-10-10 (UTC)
Run 38078200852, on the base before QEMU 11.1.2. All three tests passed on every leg, none
skipped: package_fetch_exerciser took 1.1 to 2.1 s per leg, pinned_tls_exerciser 1.1 to
1.8 s, cryptography_exerciser 0.2 to 0.9 s.
added to the test job |
|
|---|---|
| building the programs, three triples, cold | 169 s (83 s and 85 s, separate target directories) |
| host tests, both workspaces, cold fetch and build | about 16 s |
| the three kernel tests, five boots | about 18 s |
| the job | 16.7 min, against a 13.4 min median on main the same day |
A correction, 2026-10-10 (UTC). This lane first read the 17.4 to 18.0 minutes main's test job
took after QEMU 11.1.2 (#1899) as QEMU being slower, projected 855 to 20.7 to 21.3 minutes, and
asked calef how the job should make room. The premise was wrong, as the maintainer found: 265 to
273 s of those runs was rebuilding QEMU on a cache miss (see BUGS), and the suite step itself
went from about 731 s to 750 to 811 s. The question was withdrawn. The figure to judge 855 by is
the job with a warm QEMU cache. Run 38086259776, after the shared target directory, took 15.8
minutes against the budget of 20. QEMU came from cache in 3 s, the programs built in 87.4 s, and
the x86_64 uefi-test boot took 94 s. The longer cpu-matrix shard took 14.4
minutes, up from about 12.8, for its one riscv64 triple.
Architectural parity
All three architectures, by the same suite: each leg builds its own triple and boots its own archive. Nothing here is per-ISA code.
BUGS
package_index_tests' falsification is attested, not replayable. When it was attested no sweep built the TLS graph; the suite now does, so a patch (package_index::public_addressadmitting every address) can be written and replayed. Owed by whoever next touches that test.
Follow-on
- Milestone 801. Its whole-fetch gate runs in CI from this merge; its
BUGSline is removed. - Milestone 501. Its "absent from CI"
BUGSline is removed; the host tests it named run in the host phase.
Index row
The TLS graph enters the gated build: both exerciser programs build in CI's kernel legs, their host tests run in script/test's host phase, and the crates fetch from crates.io as the rest of the workspace does. Milestone 801 (packages over the internet) cannot ship a client no gate builds.