- All playbooks
- Slow tests
- Turn off the race detector's exit sleep in short-lived test helper processes
Turn off the race detector's exit sleep in short-lived test helper processes
Synchronous POSIX helper processes in race-built tests exit without the race runtime's final sleep.
Company examples
How OpenClaw used this technique
Read what OpenClaw changed and follow the original sources.
Turn off the race detector's exit sleep in short-lived test helper processes
Synchronous POSIX helper processes in race-built tests exit without the race runtime's final sleep.
- Use it when
- A Go race-mode test suite re-executes the test binary or another race-built helper as a subprocess many times and waits for each to exit.
- Before applying it
- The override applies only to synchronous helper children; race detection, its other options and the parent environment stay as they were.
Company Playbooks
- Read Anthropic’s playbookRun only affected tests
- Read DoorDash’s playbookRun build and test in parallel, sharded across CI agents
- Read Linear’s playbookBenchmark the same job on faster hardware
- Read Mastra’s playbookStarSling runners for the slowest test workflow
- Read OpenAI’s playbookRank CI fixes by the minutes they save
- Read Ramp’s playbookType-check with a native checker
- Read Shopify’s playbookLet an agent iterate against one CI metric
- Read Spotify’s playbookBuild arm64 on native arm64 runners
- Read Stripe’s playbookRun only the tests a change can reach
- Read Uber’s playbookBuild the merge-queue speculations most likely to be needed
- Read OpenClaw’s playbookSelect only the tests and proofs a change can affect