Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: handle 'connection reset by peer' in postgres test utility#18423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
blink-so wants to merge1 commit intomainfromfix-postgres-connection-reset

Conversation

blink-so[bot]
Copy link
Contributor

This PR fixes the flaky PostgreSQL connection issue reported incoder/internal#695.

Problem

Tests were failing with "connection reset by peer" errors when trying to connect to PostgreSQL. The current error handling logic only recognized "connection refused" and "No connection could be made" as reasons to start a new postgres container, but didn't handle connection resets.

Solution

Added "connection reset by peer" to the list of error strings that should trigger starting a new postgres container in the test utility.

Testing

  • Verified the code compiles successfully
  • The fix follows the existing pattern for error handling in the same function

Fixescoder/internal#695

Add 'connection reset by peer' to the list of errors that should triggerstarting a new postgres container in the test utility. This fixes flakytests that fail when PostgreSQL resets connections.Fixes:coder/internal#695Co-authored-by: ibetitsmike <203725896+ibetitsmike@users.noreply.github.com>
@github-actionsgithub-actionsbot added the staleThis issue is like stale bread. labelJun 26, 2025
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJun 27, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

staleThis issue is like stale bread.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

flake: postgresql connection reset

1 participant

@spikecurtis

[8]ページ先頭

©2009-2025 Movatter.jp