Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch postgres tests to run in a matrix of versions #2195

Merged
merged 4 commits into from
Jan 10, 2025

Conversation

josephschorr
Copy link
Member

No description provided.

@github-actions github-actions bot added area/datastore Affects the storage system area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) labels Jan 8, 2025
@josephschorr josephschorr force-pushed the pg-test-matrix branch 3 times, most recently from d33ee54 to 2d9d84a Compare January 8, 2025 19:45
Copy link
Contributor

@vroldanbet vroldanbet left a comment

Choose a reason for hiding this comment

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

The changes look good to me; I added some comments.

No need to address this here, but after testing this branch locally, some tests are taking very long locally:

image
image

That also led me to discover that a bunch of tests are not running for testPostgresDatastoreWithoutCommitTimestamps, in particular those in this if statement, is that intentional or an oversight, seems to me like an oversight. It feels like testPostgresDatastoreWithoutCommitTimestamps has drifted from testPostgresDatastore

Now that tests run on their own machines, can we revert #2186?

.github/workflows/build-test.yaml Outdated Show resolved Hide resolved
magefiles/test.go Outdated Show resolved Hide resolved
magefiles/test.go Show resolved Hide resolved
@josephschorr
Copy link
Member Author

seems to me like an oversight

This is intentional - these tests should not run if there is an "in progress" migration step

@josephschorr
Copy link
Member Author

Now that tests run on their own machines, can we revert #2186?

I suspect the answer is "no": the main source of flakiness appears to be the resources of the machines getting exhausted and I suspect running the tests in parallel again will result in more flakiness; we'll have to try it to be sure though

vroldanbet
vroldanbet previously approved these changes Jan 10, 2025
Copy link
Contributor

@vroldanbet vroldanbet left a comment

Choose a reason for hiding this comment

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

LGTM

@vroldanbet vroldanbet marked this pull request as ready for review January 10, 2025 13:58
@vroldanbet vroldanbet requested a review from a team as a code owner January 10, 2025 13:58
datastore: ["crdb", "mysql", "spanner"]
steps:
- uses: "actions/checkout@v4"
if: |
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can put the if on the whole job?

@josephschorr josephschorr added this pull request to the merge queue Jan 10, 2025
Merged via the queue into authzed:main with commit fabeff1 Jan 10, 2025
39 checks passed
@josephschorr josephschorr deleted the pg-test-matrix branch January 10, 2025 22:31
@github-actions github-actions bot locked and limited conversation to collaborators Jan 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/datastore Affects the storage system area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants