Files
FairMQ/test/ci/locks/README.md
Dennis Klein bb5c0a998c ci: install deps from committed lockfiles when present
Reusing concretization between the weekly buildcache (fresh) and weekday CI
(reuse) can drift if runner externals change, causing avoidable cache misses.

- setup-deps installs from test/ci/locks/<env>-gcc<N>.lock when it exists,
  skipping concretization for byte-identical hashes; falls back to the spec
  yaml otherwise
- buildcache exports each env's spack.lock as a downloadable artifact so the
  lockfiles can be regenerated on the ubuntu-24.04 runner and committed
- document the manual regeneration flow in test/ci/locks/README.md
2026-05-31 21:15:44 +02:00

22 lines
929 B
Markdown

# Committed spack lockfiles
`setup-deps` installs from `<env>-gcc<N>.lock` here when a matching file exists,
skipping concretization so the resolved hashes match the binaries the buildcache
pushed (guaranteed cache hits). When no lockfile is present it falls back to
concretizing from `test/ci/spack-<env>.yaml`.
## Regenerating
Lockfiles pin host externals (glibc, system gcc), so they must be concretized on
the same runner image CI uses (`ubuntu-24.04`) — do **not** generate them on a
local machine.
1. Run the `Spack Buildcache` workflow (push to `dev`/`master` touching the spack
configs, or `workflow_dispatch`). It concretizes fresh (`fresh: 'true'`),
pushes binaries, and uploads each env's `spack.lock` as a `lock-<env>-gcc<N>`
artifact.
2. Download the artifacts and commit them here as `<env>-gcc<N>.lock`.
Regenerate whenever the specs in `test/ci/spack-*.yaml` change or the runner
image is bumped.