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: improve postgres test time by removing cleanup#7522

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

Merged
kylecarbs merged 1 commit intomainfrompsqltime
May 14, 2023

Conversation

kylecarbs
Copy link
Member

We don't need to delete databases on cleanup... and we don't need to always run without a cache either!

We don't need to delete databases on cleanup... and we don't need toalways run without a cache either!
@kylecarbskylecarbs requested a review fromcoadlerMay 14, 2023 17:18
@kylecarbskylecarbs self-assigned thisMay 14, 2023
-covermode=atomic -coverprofile="gotests.coverage" -timeout=20m\
-parallel=4\
-coverpkg=./...\
-count=1 -race -failfast
Copy link
Contributor

Choose a reason for hiding this comment

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

Why remove? I think it forces go test to not skip cached tests.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Go test caching is pretty effective in reducing only duplicates, we use it for the other jobs

Comment on lines +49 to +52
return"postgres://postgres:postgres@127.0.0.1:5432/"+dbName+"?sslmode=disable",func() {
// We don't need to clean anything up here... it's just a database in a container,
// so cleaning up the container will clean up the database.
},nil
Copy link
Contributor

Choose a reason for hiding this comment

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

is this func only used in ci? would be nice if this only applied in ci so we don't disable cleanup in dogfood.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Nah, it's used outside too. We just don't need to clean this because it isn't actual waste

@kylecarbskylecarbs merged commit26490ae intomainMay 14, 2023
@kylecarbskylecarbs deleted the psqltime branchMay 14, 2023 20:32
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMay 14, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

1 more reviewer

@coadlercoadlercoadler approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

@kylecarbskylecarbs

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@kylecarbs@coadler

[8]ページ先頭

©2009-2025 Movatter.jp