ci: detect Yocto release from layer.conf and fix clone timeouts#281
Draft
ajlennon wants to merge 1 commit into
Draft
ci: detect Yocto release from layer.conf and fix clone timeouts#281ajlennon wants to merge 1 commit into
ajlennon wants to merge 1 commit into
Conversation
PR #278 CI failed cloning poky via git:// (connection timed out after ~5 minutes). Git protocol is blocked on the self-hosted runner network. Changes: - Read LAYERSERIES_COMPAT_mono from conf/layer.conf to select the correct Yocto release for each PR/branch automatically - Use HTTPS for legacy poky monorepo clones (styhead, etc.) - Add wrynose (6.0) support via individual layer clones (bitbake 2.18, openembedded-core, meta-yocto, meta-openembedded) - Add whinlatter (5.3+) layer clone path alongside wrynose - Bump checkout/upload-artifact to Node 24 native versions - Drop hardcoded styhead matrix branch so fork PRs testing wrynose no longer attempt to build against the wrong release Co-authored-by: Alex Lennon <ajlennon@dynamicdevices.co.uk>
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.
Fixes the CI failure on PR #278 (run 28521464897).
Problem
The job failed at Update repo poky after ~5 minutes with:
Two underlying issues:
git://protocol blocked — the workflow cloned poky viagit://git.yoctoproject.org/poky, which is unreachable from the self-hosted runner network. HTTPS works.Hardcoded
styheadmatrix — PR Update layer config to support wrynose release (6.0) #278 setsLAYERSERIES_COMPAT_mono = "wrynose", but CI always built against styhead poky. Even if the clone succeeded, the layer compatibility check would fail.Fix
Refactor
.github/workflows/CI_github.ymlto:LAYERSERIES_COMPAT_monoin the checked-outconf/layer.confbranch: [styhead]from the matrix so fork PRs automatically test against the release declared in their layer.confcheckout@v5,upload-artifact@v6)Once merged to master, re-running PR #278 should clone wrynose layers correctly and proceed to the actual build.