Repository navigation
ci(k8s-e2e): cut execution qualification provisioning time - #2434
Merged
rdimitrov merged 1 commit intoOct 20, 2026
Merged
Conversation
rdimitrov
force-pushed
the
ci/k8s-e2e-faster-provisioning
branch
from
October 20, 2026 09:46
a2ee421 to
81bf395
Compare
rdimitrov
added a commit
that referenced
this pull request
Oct 20, 2026
The previous wait matched status.hard to spec.hard, but #2434's warm-cache run still hit Forbidden on the first create: the API server also requires status.used for every listed resource, and the ExecutionEnvironment count is only computed once the quota controller discovers the newly installed CRD. Wait until every spec.hard key has a matching status.hard value and a status.used entry (the same condition failure-evidence.jq reports), and log how long the wait took. Co-Authored-By: Claude Opus 5.5 <[email protected]>
rdimitrov
force-pushed
the
ci/k8s-e2e-faster-provisioning
branch
2 times, most recently
from
October 20, 2026 10:50
b688eaa to
08a835d
Compare
Give the execution shards a job-owned Go module and build cache, saved once per go.sum by shard 1 outside pull requests. The shared setup-go entry never warmed ko's -trimpath compiles and lost its save race to the sibling job. Compile the host-side templates tool and qualification test binary with ko's CGO_ENABLED=0 -trimpath configuration so they reuse ko's packages, and start the test compile right after the ko builds. Load the workload and its two derivatives, which share the Go base layers, from one archive. Co-Authored-By: Claude Opus 5.5 <[email protected]>
rdimitrov
force-pushed
the
ci/k8s-e2e-faster-provisioning
branch
from
October 20, 2026 11:19
08a835d to
160f184
Compare
6 of 7 tasks
Member
Author
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.
Depends on #2432 (stacked on its branch, which touches the same
k8s-e2e.ymlandrun.sh).Summary
Cuts per-shard provisioning of
execution-production-e2efrom ~11-12 min to ~4 min, bringing the k8s-e2e workflow's wall-clock from 23m20s to 13m01s with the same tests.Provisioning was almost all cold Go compiles:
k8s e2e (kind)job) never matched ko's-trimpathcompiles, and the execution shards lost the race to save it. The execution job now restores its own~/go/pkg/mod+~/.cache/go-buildentry keyed on Go version + go.sum hashes (about 1.4GB). Only shard 1 saves it, and only outside pull requests, once per go.sum (the key is immutable). PRs read main's entry, so PR runs add nothing to the repo's 10GB cache budget.go run ./deploy/execution-templatestook 146s in the deployment phase because it compiled cold while competing with the test-binary build. It andgo test -cnow use ko'sCGO_ENABLED=0 -trimpathconfiguration. Measured locally from a ko-warm cache: templates tool 7s vs 41s.timeoutguard went from 5m to 8m to cover a cold cache under more CPU contention.--multi-image-archiveon podman).cert-manager was considered and left alone: its install is 23s of the deployment phase.
Measurements (per shard, seconds)
* In the cold run the unrelated
k8s e2e (kind)job was the slowest at 18m30s. In the warm run it took 10m22s.Eviction risk: the repo's Actions cache is already over its 10GB limit (13.9GB), and GitHub evicts the least recently used entries first. This branch's entry was evicted within about an hour, so dispatch run 39403108418 ran cold (~17-19 min). On main, every PR run reads the entry, which keeps it recently used, but pruning stale PR-ref
setup-goentries would make this more reliable.PRs get the warm numbers once a push to main has saved the entry. After a go.sum change, the first run restores the previous entry via
restore-keys, so only changed modules recompile.Test plan
go test ./deploy/mecatl-execution-kind/... ./deploy/execution-templates/...ingolang:1.27.2(with jq). ThescriptRangefixtures were updated for the moved compile block, the new compile flags, and the multi-imagesave.actionlint .github/workflows/k8s-e2e.ymltask lint: one gosec G703 finding inenvironment/microvm/launch_ownership_darwin.go. That macOS-only file is untouched here and isn't in the Linux CI lint.workflow_dispatchruns on this branch (cold, then warm), all jobs green.🤖 Generated with Claude Code