Skip to content

flake: TestWorkspaceBuildStatus #1565

Description

@flake-investigator

CI Run: https://github.com/coder/coder/actions/runs/26933139214
Job: https://github.com/coder/coder/actions/runs/26933139214/job/79456825067
Commit: becc858fa85182ed55a45d1a317bc7e60da8f8bb (author: Ethan)

Failure:

workspacebuilds_test.go:1261:
    Error: "[...]" should have 7 item(s), but has 6
    Test:  TestWorkspaceBuildStatus

Error analysis:

  • Test asserts audit log count after workspace build transitions; the audit log slice was one entry short (expected 7, got 6).
  • Likely timing/async audit log emission before the assertion.

Root cause classification: Flaky test (audit log count mismatch).

Race/Panic/OOM evidence: none found in logs (no "WARNING: DATA RACE", "panic:", or OOM signals).

Assignment analysis:

  • git log --oneline -10 --follow coderd/workspacebuilds_test.go
    • 353ebd966 "feat: add link for viewing raw build logs in workspace and template build jobs" (Cian Johnston)
    • Earlier changes are older and not specific to this assertion.
      Most recent non-trivial modifications are by @johnstcn; assigning for triage (assignment somewhat uncertain due to lack of line-level blame in tooling).

Related issues searched (not duplicates):

Reproduction:

  • go test ./coderd -run TestWorkspaceBuildStatus -count=1

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions