Skip to content

Isolate mutable fixtures in parallel controller tests - #676

Draft
scotwells wants to merge 1 commit into
mainfrom
codex/fix-parallel-fake-client-races
Draft

scotwells wants to merge 1 commit into
mainfrom
codex/fix-parallel-fake-client-races

Conversation

@scotwells

Copy link
Copy Markdown
Contributor

Parallel DNS and certificate-status tests shared mutable fake-client objects and a runtime Scheme. Fake-client tracker setup assigned ResourceVersions to shared objects, and certificate reads registered kinds in the shared Scheme, producing intermittent race failures in unrelated controller tests.

Give each parallel case deep-copied objects and its own Scheme. No production behavior or test assertions change; parallelism and race detection stay enabled.

Validation: targeted race tests passed 10 repetitions; full validation/controller race suites passed with count=1 and count=3. Lead independently repeated the full suite (validation 1.956s; controller 14.084s). Original failures reproduced on pristine 4c4c48e as well as the HTTPRoute feature branch. No deployment or migration effect; rollback would restore the flaky test fixtures.

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