-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Packages in binary cache do not have full_hash even after re-upload. #19665
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingtriageThe issue needs to be prioritizedThe issue needs to be prioritized
Description
Ping @scottwittenburg. After #19209 my CI script constantly uploads all binaries, even if they were downloaded from the same binary cache. My CI scripts ends with:
spack buildcache check --rebuild-on-error --mirror-url s3://spack -s /[some_hash]
if [ $? -eq 1 ]; then
spack buildcache create -af --mirror-url s3://spack --only=package /[some_hash]
fi
and currently it always uploads everything, saying
==> Rebuilding [spec]/[some_hash], reason: full_hash was missing from remote spec.yaml
I've reran the CI job a couple times, and it will always download binaries from cache, build nothing from sources, and subsequently push everything redundantly to the binary cache again.
Indeed when downloading the spec.yaml files I don't see any full_hash entries.
When the user does not require a full hash match, I would expect buildcache check to ignore missing full_hashes on the remote.
Edit, I'll just try to add --require-full-hash-match to my CI-script and the problem should be gone.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtriageThe issue needs to be prioritizedThe issue needs to be prioritized