Skip to content

ci: split the cross-compile lane into one job per target, with timeouts - #13

Merged
tannevaled merged 3 commits into
mainfrom
ci/cross-matrix
Nov 29, 2026
Merged

tannevaled merged 3 commits into
mainfrom
ci/cross-matrix

Conversation

@tannevaled

@tannevaled tannevaled commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Why

The cross job vetted 44 GOOS/GOARCH targets x 2 tag sets (88 vets) serially in one job with no timeout-minutes. Measured (ghget repos/go-scikit/ruby/actions/runs/<id>/jobs):

run cross wall time other longest job
#11 run 46262284261 1h19m37s (success) test macos default 10m18s
main ee70ddc run 46278547621 still in_progress at 2h+ after start test macos default 10m18s

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/crossplan derives the matrix from go tool dist list minus 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, or go build of the non-main packages for android/ios, CGO_ENABLED=0).
  • cross keeps the old check name compile on every target rbgo builds for as 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/protection 404, rulesets and rules/branches/main []), so no rename constraint exists, and the name is kept anyway.

Equal coverage

TestMatrixCoversTheOldLoop computes the old loop's set (go tool dist list, drop plan9/, x "" and rbgo_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 44 cross <target> jobs). The cross-plan log 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 if go list finds no package. internal/crossplan is 100% covered and mutation-swept.

🤖 Generated with Claude Code

tannevaled and others added 3 commits November 29, 2026 17:44
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>
@tannevaled
tannevaled merged commit 00491d7 into main Nov 29, 2026
60 checks passed
@tannevaled
tannevaled deleted the ci/cross-matrix branch November 29, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant