Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions quest/m0/ci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,13 @@ only what its diff can affect, measured in runner CPU time. Wall clock for its
own sake and replacing cargo are non-goals. mbx already caches each compilation,
so the work is making builds identical enough to hit it (flags in
`.cargo/config.toml`, cargo-hakari), and auditing the package selection `just ci`
already does. Nix builds run sandboxed and cannot reach R2; decided 2026-10-26
from kixelated/rust2's
[Nix build benchmark](https://github.com/kixelated/rust2/pull/63), they move to
crate2nix, whose per-crate derivations `nix.moq.dev` caches.
already does. Nix builds run sandboxed and cannot reach R2, so they stay on crane
for packaging only; CI builds with cargo and mbx. Decided 2026-10-26 from
kixelated/rust2's [Nix build benchmark](https://github.com/kixelated/rust2/pull/63),
in billions of instructions over a clean build, a second package, the moq-net edit,
and a lockfile bump: cargo with mbx totals 9,692 and crane 14,756. crate2nix built
to the release profile totals 14,538: it wins only the lockfile bump (1,255 against
crane's 3,681) and costs 11-27% more on the rest.

Decided 2026-10-25 (maintainer), from a profile of moq-net: monomorphized
generics dominate its build (53% of the library's CPU), and its test target
Expand All @@ -117,7 +120,6 @@ The historical samples locate candidates; they are not controlled benchmarks.
- [Bump to the manifest fix](/quest/m0/ci/mbx-bump.md) - condition: an mbx release contains jdx/mr-boxington#798; then bump the Rust cache's pin
- [Verify the R2 Rust cache](/quest/m0/ci/mbx-r2-verify.md) - measure the hosted Nightly jobs' hits, restore time, and expiry once the bump lands
- [Verify the Nix cache](/quest/m0/ci/nix-cache-verify.md) - confirm CI and releases use `nix.moq.dev` and retire Cachix
- [Build Nix packages with crate2nix](/quest/m0/ci/crate2nix.md) - one derivation per crate cached in nix.moq.dev, with `Cargo.nix` regenerated by CI so contributors never need Nix
- [Unify dependency features](/quest/m0/ci/hakari.md) - a cargo-hakari workspace-hack so every job compiles each dependency alike and mbx hits across jobs
- [Replay full-run failures against the selected gate](/quest/m0/ci/select-audit.md) - every dependency edge `just ci` misses is found and fixed with a test
- [First shared FFI release](/quest/m0/ci/nightly-ffi-reuse.md) - condition: the backport merges and the next `moq-ffi-v*` tag runs `Release FFI`; verify the wrappers
Expand Down
64 changes: 0 additions & 64 deletions quest/m0/ci/crate2nix.md

This file was deleted.

3 changes: 1 addition & 2 deletions quest/m0/ci/hakari.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ feature set in another job is a miss, however warm the cache.
(`cargo hakari disable`), and show each still fails on a planted violation.
- Unifying features means some packages build features they don't use. Measure
whether that costs more CPU than the cache hits save; target, profile, and
`RUSTFLAGS` differences still split keys, and Nix's flags are unified in
[crate2nix](/quest/m0/ci/crate2nix.md).
`RUSTFLAGS` differences still split keys.
- Start from the hit report in [Verify the R2 Rust cache](/quest/m0/ci/mbx-r2-verify.md),
which lists the compilations that miss only because their features or flags
differ.
Expand Down
Loading