ci: fix BB_HASHSERVE variable lookup case mismatch - #16623
Merged
Merged
Conversation
The workflow derives a release name (e.g., 'master') from the branch
and uses it to dynamically look up repository variables via bracket
notation: vars[format('HASHSERV_{0}', release)].
GitHub stores variable names uppercased (HASHSERV_MASTER) and bracket
notation is case-sensitive, so 'HASHSERV_master' resolves to empty.
This causes bitbake to fail with:
ERROR: OEEquivHash requires BB_HASHSERVE to be set
Fix: uppercase the release name before outputting it so the lookup
matches the stored variable names.
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
The
build-test-recipeworkflow fails on all machines with:The workflow derives a release name from the branch (e.g.,
master-next→master) and uses it to look up repository variables via bracket notation:${{ vars[format('HASHSERV_{0}', needs.changed.outputs.release)] }}This produces
vars['HASHSERV_master'], but GitHub stores variable names uppercased (HASHSERV_MASTER). Bracket notation access is case-sensitive, so the lookup returns empty string.Fix
Uppercase the release name (
tr '[:lower:]' '[:upper:]') before setting the output, so the format producesHASHSERV_MASTERwhich matches the stored variable.Testing
The job name will now display as
Build, Test qemuarm64 MASTERinstead ofBuild, Test qemuarm64 master— cosmetic only.This unblocks all PRs currently failing CI (e.g., #16292).