ci: use BB_HASHSERVE=auto fallback for fork PRs - #16627
Merged
Merged
Conversation
OE-core master now enables OEEquivHash by default in the distro config. Setting BB_SIGNATURE_HANDLER=OEBasicHash in local.conf cannot override this (distro config takes precedence). Without a valid BB_HASHSERVE, bitbake tries to use a local sqlite DB at SSTATE_DIR which fails on the NFS-mounted /sstate-cache: ERROR: Hash equivalency database location (BB_HASHSERVE_DB_DIR) cannot be on a NFS mount Fix: use BB_HASHSERVE="auto" as fallback for fork PRs. This starts a local in-memory hash equivalency server within bitbake, satisfying the OEEquivHash requirement without needing network access or a writable non-NFS filesystem. - Internal PRs: BB_HASHSERVE=<remote server> (shared sstate) - Fork PRs: BB_HASHSERVE=auto (local, no sharing but functional)
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
OE-core master now enables
OEEquivHashat the distro level (not just local.conf). Previous fix attempts:BB_SIGNATURE_HANDLER = "OEBasicHash"→ doesn't override distro-level configBB_HASHSERVE→ bitbake defaults to local sqlite DB atSSTATE_DIRwhich fails on NFSResult:
Fix
Use
BB_HASHSERVE = "auto"as the fallback. This tells bitbake to start a local in-memory hash equivalency server within the process itself — no NFS DB, no network dependency, no external server needed.hashserv-<release>.internal:8686autoBoth always use
BB_SIGNATURE_HANDLER = "OEEquivHash"since the distro mandates it.Unblocks #16292.