Skip to content

flake: TestUserList/SessionAuthErrorHasHelperText (windows) - dbtestutil create database wsarecv aborted #1278

@flake-investigator

Description

@flake-investigator

CI run: https://github.com/coder/coder/actions/runs/21133032582
Commit: d176714f90f2c4dffa4c182722f6b16deface38a (Cian Johnston)
Job: test-go-pg (windows-2022)

What failed

Go test failures in the cli package:

  • TestUserList/SessionAuthErrorHasHelperText (and the parent TestUserList)

Key log excerpt:

Received unexpected error:
create database:
  - create db with template:
    github.com/coder/coder/v2/coderd/database/dbtestutil.createDatabaseFromTemplate
        coderd/database/dbtestutil/postgres.go:204
  - read tcp 127.0.0.1:50677->127.0.0.1:5432: wsarecv: The I/O operation has been aborted because of either a thread exit or an application request.

Initial assessment

This looks like an infrastructure / embedded-postgres stability issue on Windows during test database creation (connection abruptly aborted). It may be intermittent and environment-dependent.

Files implicated by stack trace:

  • coderd/database/dbtestutil/broker.go
  • coderd/database/dbtestutil/postgres.go (createDatabaseFromTemplate)
  • cli/userlist_test.go

Ownership / assignment rationale

Recent substantive work in coderd/database/dbtestutil/postgres.go and related dbtestutil plumbing was done by Spike Curtis (e.g. commits 596fdcba817e, e2076beb9f7a).

Assigning to: @spikecurtis

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions