ci: use OEBasicHash fallback when HASHSERV is unavailable - #16626
Merged
Merged
Conversation
Modern OE-core master enables OEEquivHash by default. When we don't set BB_HASHSERVE (fork PRs where vars context is empty), bitbake falls back to a local sqlite-based hash equivalency DB. This fails on the CI runner because /sstate-cache is an NFS mount: ERROR: Hash equivalency database location (BB_HASHSERVE_DB_DIR=/sstate-cache) cannot be on a NFS mount due to potential NFS locking issues Fix: explicitly set BB_SIGNATURE_HANDLER = "OEBasicHash" in the else branch to fully disable hash equivalence for fork PRs. Internal PRs continue using OEEquivHash with the remote hashserv.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
After PR #16625 fixed the shell quoting, the
ifblock correctly evaluates to false for fork PRs. However, modern OE-core master enablesOEEquivHashby default. Without explicitBB_HASHSERVE, bitbake falls back to a local sqlite DB which fails on the CI NFS-mounted sstate-cache:Fix
Add an
elsebranch that explicitly setsBB_SIGNATURE_HANDLER = "OEBasicHash"to disable hash equivalence entirely for fork PRs.OEEquivHash+ remote hashserv (fast, sstate sharing)OEBasicHash(no hash equivalence, slower but functional)Unblocks #16292.