Skip to content

flake: TestTasks #1320

@flake-investigator

Description

@flake-investigator

CI Failure Details

CI Run Link: https://github.com/coder/coder/actions/runs/21516243469

Failed Job: test-go-race-pg

Commit Info:

  • SHA: e45635aab68197bc675d7d752d27c716d90b9b39
  • Author: Jake Howell
  • Date: 2026-01-30

Failure Signature

Job logs only include the gotestsum summary (no stack traces or assertion output present):

=== FAIL: coderd TestTasks (165.04s)
DONE 13841 tests, 66 skipped, 158 failures in 449.770s

Root Cause Hypothesis

No data race warnings, panics, or OOM indicators were found in the job logs after scanning multiple sections. Given the high failure count and long runtime, this likely represents timing/race behavior within the TestTasks subtests under the race build. Additional detail may be in gotests.xml/Datadog since the log does not include per-test failure output.

Assignment Analysis

Failing test is in coderd/aitasks_test.go:

  • TestTasks (line ~41)

Recent meaningful changes to this file:

  • 21eabb1d73 — return log snapshot for paused tasks (Mathias Fredriksson)
  • 25d7f27cdb — add task log snapshot storage endpoint (Mathias Fredriksson)

Assigning to @mafredri as the most recent owner of this test file and the tasks subsystem.

Related Issues

Searches: "TestTasks", "aitasks_test.go"

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions