Skip to content

Enable Go’s race detector in tests and CI #331

@janetkuo

Description

@janetkuo

Follow up of #292 (comment)

The controllers (SandboxReconciler, SandboxClaimReconciler, SandboxWarmPoolReconciler) run concurrently via controller-runtime. If reconcilers share mutable state without proper synchronization, data races can occur. The codebase already includes pprof block/mutex profiling under --enable-pprof-debug , which helps diagnose contention but does not detect data races.

TODOs:

  • Update dev/tools/test-unit and dev/tools/test-e2e to add -race
  • Update dev doc to note race detection usage and runtime overhead caveats
  • Verify CI passes with -race enabled; fix any detected races

Metadata

Metadata

Labels

good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions