verify: refuse to stage a build that predates its sources #538
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/538"
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?
Imported from brcly/TuxBox. Originally posted by csj0oe on 2026-11-29T21:08:16Z.
What
verifystages a suite's prebuilt Windows binary without checking it against the sources. After a merge that changes onlyruntime/xg-layout/,check --no-gpunever runsbuild.py, so an older DLL stays inbuild/and the gates compare new guests against it.This adds an explicit freshness table for the suites whose inputs are a single crate: the newest input modification time is compared with each staged binary, and a stale one stops the run naming the suite, the binary, the newer input and
python build.py <target>.Tests
tests/test_verify.py::BuiltSuiteTestsbuilds a temporary tree and sets mtimes directly, so no Windows binary is needed: a current binary passes, a binary older than one input raises with the input path and the rebuild command in the message. With the guard removed the second test reaches the gate body, which is the failure it now prevents.python tuxbox.py check --no-gpu: all steps pass.