You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
perf(tests): committed kustomizations render once per test process, with kubectl's offline renderers run as real tools #1732
priority/p0-criticalPriority P0: a release blocker or a critical defectscope/ciGitHub Actions workflows, pre-commit hooks, CI gates, and runnerssource/agentFiled by an agenttype/testType test: a new or changed test
Split from #1725 (CI time budget), so that this row is one issue delivered by one pull request.
Friction
33 tests start a real kubectl, which takes 26s summed.
None of them reaches a cluster. The root conftest's session-wide isolate_kubeconfig gives every test an empty kubeconfig. They run kubectl's offline renderers, kubectl kustomize and one kubectl patch --local, and most of them render the same committed k8s/ kustomizations over and over.
Decision
Recorded on #1725 on 2026-10-20: kubectl's offline renderers read only files and reach no cluster, so tests run them for real, like git. There is no maintained Python kustomize, and a recorded render would check the recording rather than the repository.
Remedy
docs/TESTING.md and ADR 0007 list the offline renderers with git as programs tests run for real.
tests/k8s_manifests.py renders each committed kustomization once per test process and shares the render. A kustomization a test builds under tmp_path renders per call.
Every assertion stays.
Acceptance criteria
docs/TESTING.md and ADR 0007 name kubectl kustomize and kubectl patch --local as real local tools.
The repository-render tests share one render per committed kustomization per process, with the time measured before and after.
priority/p0-criticalPriority P0: a release blocker or a critical defectscope/ciGitHub Actions workflows, pre-commit hooks, CI gates, and runnerssource/agentFiled by an agenttype/testType test: a new or changed test
Activity
perf(tests): committed kustomizations render once per test process, w…
dan-petty commentedon Oct 20, 2026
What changed
#1737, merged into
release/v0.2.38as 2954109.7 file(s) changed.
How it was verified
Check runs at f97b43c:
Acceptance Criteria of
docs/agent/tasks/task-1732-kustomize-renders-once.md:No Acceptance Criteria section.
feat(release): v0.2.38 (#1799)
feat(release): v0.2.38 (#1798)