mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-06-17 09:17:05 +00:00
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
This commit is contained in:
committed by
Dennis Klein
parent
ffc9c60f73
commit
bb5c0a998c
21
test/ci/locks/README.md
Normal file
21
test/ci/locks/README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# 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.
|
||||
Reference in New Issue
Block a user