diff options
| author | aur-build <aur-build@localhost> | 2026-11-19 11:17:27 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-19 11:17:27 +0000 |
| commit | bc8f069d18c5de3dee04ae303227a255248efc1e (patch) | |
| tree | 35143f64346a2a555672789ae33cbf0905bffc0b /tests/invariants.rs | |
| parent | 99ad2034be8fc5b107205199e19da831596a6791 (diff) | |
| download | aur-build-bc8f069d18c5de3dee04ae303227a255248efc1e.tar.gz aur-build-bc8f069d18c5de3dee04ae303227a255248efc1e.zip | |
pipeline: replace the devtools chroot with pinned pacman -U provisioning
The chroot step existed to run mkarchroot/makechrootpkg, whose sudo
requirement was the whole reason a build had to run on the hub under
root-adjacent rules. The sandbox model makes the chroot redundant: the
sandbox boots from a base that already carries the official packages,
and step 2 now provisions it with a lease manifest instead — every
dependency we publish, pinned to the exact version and digest of the
artifact the index serves. The hub re-hashes every blob before staging
it, installs with pacman -U (no -Sy, no live resolution, no mirror at
build time), and the sandbox's own pacman -Q must confirm the pinned
world landed before a build may start. A byte that hashes differently,
or a world that drifted, fails closed.
The build step is now plain makepkg -c -f: no -s (dependencies arrive
installed; resolving at build time is what the pinning model forbids)
and no -si (ingest signs). mkarchroot/makechrootpkg are gone from the
pipeline and the config; their shims stay as stand-ins for the real
devtools so the shim protocol itself remains exercised. The shim pacman
grew a real fake installed-database: -U refuses bytes that do not hash
to the digest their name claims, -Q reports what landed, so the world
check is a test and not a no-op.
Diffstat (limited to 'tests/invariants.rs')
| -rw-r--r-- | tests/invariants.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/invariants.rs b/tests/invariants.rs index 1f6f7f2..770966f 100644 --- a/tests/invariants.rs +++ b/tests/invariants.rs @@ -159,7 +159,7 @@ fn i5_resume_after_a_crash_repeats_no_completed_step() { pipeline::Outcome::Failed { .. } )); let shim = env.cfg.hooks.shim_dir.clone().unwrap(); - let builds_before = aur_build::shims::called_with(&shim, "makechrootpkg", ""); + let builds_before = aur_build::shims::called_with(&shim, "makepkg", ""); assert_eq!(builds_before, 2, "one build per attempted publish"); // "Restart" the worker on the same build row. @@ -169,7 +169,7 @@ fn i5_resume_after_a_crash_repeats_no_completed_step() { other => panic!("{other:?}"), } assert_eq!( - aur_build::shims::called_with(&shim, "makechrootpkg", ""), + aur_build::shims::called_with(&shim, "makepkg", ""), builds_before, "I5: resuming re-ran the build step" ); |
