Commit Graph
2 Commits
Author SHA1 Message Date
Anees Iqbal 42f4510b6e 🔥 Seed only a tree that holds the base's commit
mini-base.sh's seed had a mode for a tree without the base's commit, such as
another repository's: it counted every tracked file as changed and reused only
the dependencies' units. It was never run, and the one such tree on the machine
gains nothing from it. metal2vulkan's Windows jobs build with the gnullvm-host
rustc of the pinned nightly and RUSTFLAGS='--cfg m2v_gpu', into target/gpucfg,
while the base is built by the msvc-host rustc with no such flag, so none of
the base's units match theirs. Such a tree now gets a fresh build, and the seed
says why.
2026-11-20 19:06:28 -08:00
Anees Iqbal 08779e7c0e 🆕 Start the mini's Windows test builds from a kept base build
windows-tests.sh's build job on homelab-mac-mini-2018 compiled every crate and
SDL3's CMake build from nothing in each new workspace: 560 s for the library's
tests at a48b3984af (m3-max-60885), for a commit that changed a few files.

The job now first copies the target/ of a base workspace that the harness keeps
there, a build of development (scripts/internal/mini-base.sh seed). On ReFS,
robocopy clones it without copying data: 5.7 GB and 6592 files in 2 s, taking
41 MiB. The seed then fixes up the copy for the job's tree:
- unchanged tracked files get an old mtime, and changed ones the current time,
  so cargo rebuilds only what changed since the base's commit;
- packages whose units name the base's workspace, or whose sources bake in a
  path that cargo sets but does not track (env!("CARGO_MANIFEST_DIR") and the
  like), are dropped and rebuilt;
- build scripts' output that names the base's workspace is rewritten to name
  the job's.

A seeded job that fails says so in its last lines, naming the base, so a lane
can tell a seed fault from a compile error. MINIBASE=0 builds without the seed,
and where no base is published the build is the same as before.
2026-11-20 19:06:28 -08:00