Skip to content

flake: Test_localSub_init/CrossSubjectListenerIsolation #1552

@flake-investigator

Description

@flake-investigator

CI Run Link: https://github.com/coder/coder/actions/runs/26576090091
Failing Job: https://github.com/coder/coder/actions/runs/26576090091/job/78296339738 (test-go-pg-17)
Failure time: 2026-05-28T13:08:36Z (same window as Slack alert)

Commit Info:

  • SHA: 12520ee964270e561e0e1b75b765a4194c159c4a
  • Author: Danny Kopping
  • Commit: coder/coder@12520ee

Failure evidence:

=== FAIL: coderd/x/nats Test_localSub_init/CrossSubjectListenerIsolation (25.04s)
    pubsub_internal_test.go:321:
        Error Trace: /home/runner/work/coder/coder/coderd/x/nats/pubsub_internal_test.go:321
        Error:       Condition never satisfied
        Test:        Test_localSub_init/CrossSubjectListenerIsolation

Error analysis:

  • The failing assertion is the require.Eventually that expects fastCount >= total in Test_localSub_init/CrossSubjectListenerIsolation.
  • This indicates the fast subscriber did not receive all expected messages within testutil.WaitLong when a slow subscriber is blocked, despite the test expecting isolation.

Root cause classification:

  • Likely flaky test / timing/backpressure in the NATS local pubsub implementation when a slow subscriber blocks and a fast subscriber should still drain.

Data race / panic / OOM checks:

  • No WARNING: DATA RACE, panic:, or OOM indicators observed in the job logs around the failure.

Precise assignment analysis:

  • Intended blame command:
    • git blame -L 316,333 coderd/x/nats/pubsub_internal_test.go
  • Recent file history:
    • git log --oneline -10 --follow coderd/x/nats/pubsub_internal_test.go
    • Most recent substantive change: f6f284e “feat: add initial NATS implementation (#25602)” by Jon Ayers.
  • Jon Ayers corresponds to GitHub user @sreya per team mapping.

Assignment:

  • Best candidate: @sreya (owner of initial NATS implementation; please reassign if ownership differs).

Related issues search (coder/internal):

  • "Test_localSub_init"
  • "CrossSubjectListenerIsolation"
  • "pubsub_internal_test.go" / "coderd/x/nats"
  • "Condition never satisfied"
    No matches found.

Reproduction (best effort):

go test ./coderd/x/nats -run Test_localSub_init/CrossSubjectListenerIsolation -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