Skip to content

flake: Test_TaskLogs_Golden (multiple variants) #1561

Closed as not planned
Closed as not planned

Description

@flake-investigator

CI Failure Details

CI Run Link: https://github.com/coder/coder/actions/runs/26843847202
Failed Job: gen (make gen → TZ=UTC go test ./cli -run="Test(CommandHelp|ServerYAML|ErrorExamples|.*Golden)" -update)

Commit Info:

  • SHA: b49344519bd44dd98db76198ed2410fa0fd09d4c
  • Author: Spike Curtis
  • Commit: coder/coder@b493445

Failure Evidence

Multiple CLI golden tests timed out with HTTP context deadlines while talking to the in-process coderd test server. Examples:

TestCommandHelp:
Post "http://127.0.0.1:42043/api/v2/users": context deadline exceeded

Test_TaskLogs_Golden/SnapshotWithLogs_JSON:
Get "http://127.0.0.1:33463/api/v2/users/93586cfb-469e-4271-98b4-2b7e65e31f87": context deadline exceeded

Test_TaskLogs_Golden/ByTaskName_JSON:
Post "http://127.0.0.1:35947/api/v2/tasks/me": context deadline exceeded

Job summary shows the CLI package failing after these subtests:

FAIL	github.com/coder/coder/v2/cli	41.594s

Root Cause Assessment

Likely flaky timing / slow CI in CLI golden tests. Multiple subtests in Test_TaskLogs_Golden (and TestCommandHelp) time out while waiting for coderd test server responses, suggesting the test context expires under load rather than a deterministic logic failure.

No WARNING: DATA RACE, panic, or OOM indicators found in the job logs.

Assignment Analysis

Intended blame command:

  • git blame -L 21,200 cli/task_logs_test.go

Proxy via history (available tooling):

  • git log --oneline -10 --follow cli/task_logs_test.go
    • Most recent substantive change: 4cf8d441 “feat: make coder task send resume paused tasks” — Danielle Maywood

Assigning to @DanielleMaywood as the most recent non-trivial modifier of the failing test file. If a different owner is more appropriate, please reassign.

Related Issues

Reproduction

TZ=UTC go test ./cli -run "Test(CommandHelp|ServerYAML|ErrorExamples|.*Golden)" -update

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions