Skip to content

test(k8s): overlap qualification build and accelerate quota sync - #2140

Merged
jbeda merged 2 commits into
mainfrom
perf/k8s-qualification-precompile-quota-timing
Oct 6, 2026
Merged

jbeda merged 2 commits into
mainfrom
perf/k8s-qualification-precompile-quota-timing

Conversation

@jbeda

@jbeda jbeda commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Build the tagged execution-qualification test binary concurrently with deployment, then wait for that exact build and run it from the package directory. On early failure, terminate/reap compilation before collecting diagnostics and deleting the cluster.
  • Set kube-controller-manager --resource-quota-sync-period=10s only in the disposable production Kind fixture, using the kubeadm v1beta3 patch format matched by the pinned Kind node. Keep quota admission, the all-key ResourceQuota status wait, and production safety timeouts unchanged.
  • Record the successful legacy quota wait and last missing allowlisted key; skip security rotation's redundant success-path fixture restore while preserving failure cleanup.

Evidence and validation

  • Before the new flag, the first legacy quota status wait took 1m53s in CI and 3m37.802s locally, last missing count/executionenvironments.execution.mecatl.dev. With the effective 10s flag it took 11.802s and 23.602s in two local production Kind runs; the other two waits were <200ms. The first run set the flag manually on its disposable control plane after an ineffective v1beta4 Kind patch; the second used the committed v1beta3 fixture patch. The live controller-manager Pod arguments confirmed the flag in both runs. These runs are not a stable benchmark.
  • The second full local production Kind qualification passed. The first passed quota and migration checks but failed TestKindExecutionProductionPendingDeleteOutageRecovery (listed=0, exact lookup not_found); the same test passed on the second run. Keep an eye on this intermittent failure rather than attributing it to quota sync without evidence.
  • Focused tests cover the production-only Kind config, failed builds refusing stale binaries, execution flags/working directory, and early failure reaping the compiler. task test, task lint, and task test:race passed after this change; the offline demo passed for the preceding commit.

CI

The pre-flag PR execution job passed in 27m27s, versus 28m40s for the #2124 baseline. Its parallel test compilation took 203s, but the post-deployment wait was 0s. Do not extrapolate the one-run ~73s difference. The current post-flag k8s CI run is still in progress; its timing and result are not yet known.

A prior CI race job found an intermittent race in the unchanged internal/app test diagnostic recorder (childgc_test.go:690-691, TestServerProviderRecovery_Scenario2_EffectiveDelayNeverRetriesEarly_ComposedSecrecy); its failed-job rerun passed.

@jbeda
jbeda marked this pull request as ready for review October 6, 2026 19:57
Keep the change confined to the disposable production Kind cluster and pin the kubeadm patch to the version Kind matches for the node image.

Co-authored-by: Mecatl <[email protected]>
@jbeda jbeda changed the title test(k8s): overlap qualification build and trace quota lag test(k8s): overlap qualification build and accelerate quota sync Oct 6, 2026
@jbeda
jbeda merged commit e731897 into main Oct 6, 2026
36 checks passed
@jbeda
jbeda deleted the perf/k8s-qualification-precompile-quota-timing branch October 6, 2026 22:25
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 7, 2026
2 tasks
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