feat(gen): parallel six-arch build at large resource_class for cli repos#2028
Merged
Conversation
… repos For cli-flavour Go repos the generated go-build job now sets build_concurrency: auto and resource_class: large. GOCACHE persistence (architect-orb #838, orb v9.5.0+) makes warm builds fast, but the six-arch cross-compile is still cold after every go.sum bump, so parallelising it on a larger box removes the remaining critical-path cost. Service repos unchanged, no signing or nancy changes. Implements #2017; part of giantswarm/giantswarm#36941. Co-authored-by: Cursor <cursoragent@cursor.com>
a3affbc to
648dcdb
Compare
5 tasks
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 generated
architect/go-buildjob is the critical-path CI gate on everyci.generate: trueGo repo. architect-orb #838 (orb v9.5.0+, already the pinnedOrbVersion: 9.5.2) persists$GOCACHEso warm builds are fast (measured 5.1x on muster), but thecli-flavour six-arch cross-compile is still cold after everygo.sumbump and runs sequentially on 2 vCPUs.Proposed solution
For
cli-flavour Go repos (the{{- if .ReleaseBinaries }}six-arch matrix block), the generatedgo-buildjob now sets the orb'sbuild_concurrency: autoandresource_class: large, so the cold cross-compile parallelises across cores instead of running sequentially.build_concurrencyis opt-in in the orb precisely because it only pays off at a largerresource_class.OrbVersionalready points at9.5.2(contains Update module golang.org/x/net to v0.22.0 #838 from v9.5.0) — no bump needed.mcp-kubernetes.cli.workflows.yml) regenerated; newTest_CLIParallelBuildasserts the knobs are cli-only.Acceptance criteria
OrbVersionpoints at the architect-orb release containing Update module golang.org/x/net to v0.22.0 #838 (9.5.2).workflows.ymlfor a cli-flavour repo setsbuild_concurrency+resource_class: largeongo-build.circleci_test.gopasses.Implements #2017; part of giantswarm/giantswarm#36941.
Made with Cursor