Skip to content

flake: TestWorkspaceDormant/StartWakesUpDormantWorkspace #1532

@flake-investigator

Description

@flake-investigator

CI Run: https://github.com/coder/coder/actions/runs/25779961144 (job: test-go-pg (macos-latest))
Commit: eedde58b5574017c3aac51001ee42ba630c496dd (dependabot[bot])
Failure time: 2026-05-13 05:25:54Z

Error evidence:

workspaces_test.go:4614:
Error: "[... audit logs ...]" should have 2 item(s), but has 3
Test: TestWorkspaceDormant/StartWakesUpDormantWorkspace

The extra audit entry appears to be a workspace build stop log arriving after the test resets the auditor (expected only dormancy update + start logs).

Root cause classification: Flaky test (audit log count can include an extra stop entry; ordering/async audit logging makes count nondeterministic).
Race/Panic/OOM evidence: no data race warnings, panics, or OOM indicators found in logs.

Assignment analysis:

  • git log --oneline -10 --follow coderd/workspaces_test.go
    • 19573e8 feat!: patchTemplateMeta to use optional fields (Steven Masley / Emyrk)
      Most recent meaningful changes to the test file are in 19573e8, so assigning to Emyrk.

Related issues: none found (searched "TestWorkspaceDormant", "StartWakesUpDormantWorkspace", "WorkspaceDormant" in coder/internal).

Reproduction: not known; intermittent in nightly gauntlet.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions