Skip to content

flake: TestProvisionerJobQueueWaitMetric #1354

@flake-investigator

Description

@flake-investigator

CI Run: https://github.com/coder/coder/actions/runs/21974897464 (job: test-go-pg (macos-latest))
Commit: 2cc8cc59faf16c82d6abb58114023915c1d13483 (chore: tell claude to use react-query) by ケイラ
Failure time: 2026-02-13 04:52:59Z

Error:
TestProvisionerJobQueueWaitMetric failed at coderd/workspaces_test.go:5940
"-0.020158" is not greater than "0"
Message: import job queue wait should be non-zero

Log snippet:

Error Trace: /Users/runner/work/coder/coder/coderd/workspaces_test.go:5940
Error:       "-0.020158" is not greater than "0"
Test:        TestProvisionerJobQueueWaitMetric
Messages:    import job queue wait should be non-zero

Root cause classification: Flaky test (metric sample sum went negative/zero; timing/measurement issue on macOS).
Race/Panic/OOM evidence: none observed in logs.

Assignment analysis:

  • git log --oneline -10 --follow coderd/workspaces_test.go
    • 5f3be6b feat: add provisioner job queue wait time histogram and jobs enqueued counter (Callum Styan)
      Most recent meaningful change added the metric and assertions in this test, so assigning to cstyan.

Related issues: none found (searched TestProvisionerJobQueueWaitMetric, queue wait, provisioner job queue wait metric).

Reproduction: not known; intermittent on macOS CI.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions