mirror of
https://github.com/coder/coder.git
synced 2026-06-03 04:58:23 +00:00
10a33ebc75
## Summary Change the four main `coderdtest` Await helper functions to poll at `IntervalFast` (25ms) instead of `IntervalMedium` (250ms): - `AwaitTemplateVersionJobCompleted` - `AwaitWorkspaceBuildJobCompleted` - `WorkspaceAgentWaiter.WaitFor` - `WorkspaceAgentWaiter.Wait` These are called **~855 times** across the test suite. Each call previously wasted ~125ms on average waiting for the next poll tick. `AwaitTemplateVersionJobRunning` already used `IntervalFast` — this makes all Await helpers consistent. ## Measured Impact Local benchmarks (postgres, `-short -count=1 -p 8 -parallel 8 -tags=testsmallbatch`): | Package | Before | After | Delta | |---|---|---|---| | enterprise/coderd | 90.8s | 76.0s | **-16.3%** | | coderd | 65.6s | 56.5s | **-13.8%** | | cli | 57.9s | 37.8s | **-34.7%** | | enterprise (root) | 41.1s | 39.9s | -2.9% | | **Sum of all packages** | **623s** | **543s** | **-12.8%** | Zero test failures across all 199 packages.