Skip to content

flake: TestUserTailnetTelemetry/invalid_header #1390

@flake-investigator

Description

@flake-investigator

CI Run: https://github.com/coder/coder/actions/runs/22838619737 (job: test-go-pg (windows-2022))
Commit: aba3832b155f00e9f4adf360e6b529f802aecdf2 (fix: update the compaction message to be the "user" role) by Kyle Carberry
Failure time: 2026-03-09 04:58:23Z

Error evidence:

workspaceagents_test.go:3062:
Error: "2026-03-09 04:46:25.7349357 +0000 UTC m=+94.337331901" is not greater than or equal to "2026-03-09 04:46:25.734936 +0000 UTC"
Test: TestUserTailnetTelemetry/invalid_header

Failing assertion in TestUserTailnetTelemetry:

predialTime := time.Now()
...
require.GreaterOrEqual(t, telemetryConnection.ConnectedAt, predialTime)

Root cause classification: Flaky test (timing/precision mismatch). The comparison between telemetryConnection.ConnectedAt and predialTime can fail by sub-microsecond differences on Windows; predialTime is captured with time.Now() and may be slightly later than the server timestamp.

Assignment analysis:

  • git log --oneline -10 --follow coderd/workspaceagents_test.go
    • 81468323 fix(coderd): use dbtime.Now() instead of time.Now() in test assertions against DB timestamps (Cian Johnston)
      Recent changes in this test file were made by Cian Johnston and include timestamp assertion adjustments, so assigning to johnstcn.

Related issues: none found (searched TestUserTailnetTelemetry, invalid_header, workspaceagents_test.go:3062, and error message).
Reproduction: intermittent; not yet known.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions