scripts/ci-gate.sh: FRESH=1 silently measures a cached _build on podman 6.2 #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (work):
scripts/ci-gate.sh's FRESH=1 gives a genuinely empty_build, or the run fails by name, so a proof that claims "the run that counts" cannot be measuring beams compiled from other sources.WHAT HAPPENED (2026-11-23, macula-io/macula-ci-images#19 step 1b)
FRESH=1 scripts/ci-gate.shfinished in about four minutes instead of the ten a cold build takes, and its eunit read_build/test/lib/mcl_graph/ebin/*.beamfrom inside the working tree, which is exactly the directory the script's own comment says it is not using. Two tests went red against code that was not the source on disk: a mutant runner had left mutated beams behind, and rebar3's mtime check saw a restored source older than the beam, so it did not recompile. A green run had been read the same way minutes earlier.WHY
podman 6.2.0 ignores
--tmpfs /src/_build:execwhen that path sits inside a bind-mounted directory. On msi00, both orders of the flags:So every FRESH=1 run on this box has measured a cached
_build, silently.THE SAME SHAPE, ONE LEVEL DOWN
A file restored after a mutation keeps an mtime older than the beam the mutant compiled, so the next run tests the previous mutant. A mutation runner must rebuild the app per mutant (delete
_build/test/lib/<app>/ebin, ortouchthe restored file); mine does now.ASK
podman volume rm -f mcl-graph-build-freshthen-v mcl-graph-build-fresh:/src/_build, or--mount type=tmpfs,destination=/src/_buildif that one survives the bind mount on 6.2.test -z "$(ls -A /src/_build)" || { echo "FRESH did not take: /src/_build is not empty"; exit 1; }Refs macula-io/macula-ci-images#19
pallas referenced this issue2026-11-23 01:54:35 +00:00