Repository navigation
ci: split the cross-compile lane into one job per target, with timeouts - #13
Merged
Merged
Conversation
The cross job vetted ~48 GOOS/GOARCH targets x 2 tag sets serially in one job with no timeout: 1h19m37s on #11 (run 46262284261), still running at 1h14m+ on main ee70ddc (run 46278547621), blocking every PR. cross-plan derives the target list from `go tool dist list` minus plan9 (internal/crossplan, tested to equal the old loop's target x tags set), cross-target is a fail-fast: false matrix of one job per target (timeout-minutes: 30), and `cross` keeps the old check name as the aggregate (timeout-minutes: 5). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…n empty go list Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Why
The
crossjob vetted 44 GOOS/GOARCH targets x 2 tag sets (88 vets) serially in one job with notimeout-minutes. Measured (ghget repos/go-scikit/ruby/actions/runs/<id>/jobs):It blocks every PR and the v0.3.0 release.
Refs #11, go-embedded-ruby/ruby#832
What
cross-plan(10 min):go run ./internal/crossplanderives the matrix fromgo tool dist listminus plan9 (rbgo does not build for plan9, plan9 does not compile: no errno numbers, no POSIX process/lock calls, four gem drivers go-embedded-ruby/ruby#832), so a new Go port is vetted from its first day. It prints every target+tags pair the jobs run.cross-target(30 min each,fail-fast: false): one job per GOOS/GOARCH, both tag sets inside, exactly the old per-target commands (go vet, orgo buildof the non-main packages for android/ios,CGO_ENABLED=0).crosskeeps the old check namecompile on every target rbgo builds foras the aggregate (if: always(), fails unless plan and every target succeeded, 5 min). Branch protection and rulesets on go-scikit/ruby are empty (branches/main/protection404,rulesetsandrules/branches/main[]), so no rename constraint exists, and the name is kept anyway.Equal coverage
TestMatrixCoversTheOldLoopcomputes the old loop's set (go tool dist list, dropplan9/, x""andrbgo_core) independently and requires the matrix's union of targets x tags to be identical: 44 targets, 88 pairs, from aix/ppc64 to windows/arm64 (CI ran 44cross <target>jobs). Thecross-planlog prints all 88 pairs on every run. Result on this PR: every target job 1m18s to 3m48s, aggregate green, the lane's wall time measured 10m00s instead of 1h20 (the runner concurrency cap staggers the 44 jobs), at about 110 job-minutes against about 80 before. The tag sets now travel in the matrix entry (tagflags), so the job runs exactly what the plan and the test prove. android/ios fail ifgo listfinds no package.internal/crossplanis 100% covered and mutation-swept.🤖 Generated with Claude Code