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

chore: stop running postgres-only tests if DB is not set#18784

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

Conversation

spikecurtis
Copy link
Contributor

@spikecurtisspikecurtis commentedJul 8, 2025
edited
Loading

Fixescoder/internal#695

PostgreSQL tests are getting run in a non-postgres CI job because the tests don't get skipped if theDB= env is unset. This PR adds a skip for them.

They are flaking in thetest-go-race CI job. They run fine in thetest-go-race-pg job, which pre-creates the postgres server, so the flakiness is almost certainly related to spinning up the database server.

@spikecurtisGraphite App
Copy link
ContributorAuthor

This stack of pull requests is managed byGraphite. Learn more aboutstacking.

@spikecurtisspikecurtis marked this pull request as ready for reviewJuly 8, 2025 11:47
@@ -93,7 +93,7 @@ func initDefaultConnection(t TBSubset) error {
if !containsAnySubstring(errString, retryableErrSubstrings) {
break
}
t.Logf("failed to connect to postgres, retrying: %s", errString)
t.Logf("%sfailed to connect to postgres, retrying: %s", time.Now().Format(time.StampMilli), errString)
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

added this because it looks like we only retried 3 times, even though we're supposed to wait 10 seconds. Timestamp information will be helpful if we hit it again.

@spikecurtisspikecurtis merged commitbf0271f intomainJul 8, 2025
41 checks passed
@spikecurtisGraphite App
Copy link
ContributorAuthor

Merge activity

@spikecurtisspikecurtis deleted the spike/internal-695-disable-db-tests-without-postgres branchJuly 8, 2025 11:56
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJul 8, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@hugodutkahugodutkahugodutka approved these changes

Assignees

@spikecurtisspikecurtis

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

flake: postgresql connection reset
2 participants
@spikecurtis@hugodutka

[8]ページ先頭

©2009-2025 Movatter.jp