Skip to content

Firestore: Run 'Firestore Integration Tests' jobs in parallel #7558

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

Merged
merged 16 commits into from
Aug 17, 2023

Conversation

dconeybe
Copy link
Contributor

@dconeybe dconeybe commented Aug 15, 2023

Edit test-all.yml to run the Firestore Integration Tests job differently. Previously, it called run_tests_in_ci.js to run the tests; however, this "wrapper" script has issues where the log output is truncated, making it virtually impossible to debug test failures, or even know which tests are failing. After struggling with a fix for the truncation issue (#7553) we eventually gave up and instead just create one job per npm script that gets run. This has a few benefits, not the least of which is the tests truly running in parallel but also does not lead to truncated logs.

This PR is heavily based on a similar change to other Firestore github actions checks: #7523

@dconeybe dconeybe self-assigned this Aug 15, 2023
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Aug 15, 2023

@changeset-bot
Copy link

changeset-bot bot commented Aug 15, 2023

⚠️ No Changeset found

Latest commit: ddaec15

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Aug 15, 2023

- name: Run unit tests
run: |
xvfb-run yarn lerna run --concurrency 4 test:ci --scope '@firebase/firestore*'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

NOTE TO SELF: This also needs to test the other packages, like firestore-compat

@dconeybe dconeybe changed the title Firestore: Run 'Firestore Integration Tests' workflow jobs in parallel Firestore: Run 'Firestore Integration Tests' jobs in parallel Aug 17, 2023
@dconeybe dconeybe marked this pull request as ready for review August 17, 2023 14:26
@dconeybe dconeybe requested review from a team as code owners August 17, 2023 14:26
@dconeybe dconeybe requested a review from wu-hui August 17, 2023 14:26
@dconeybe
Copy link
Contributor Author

@hsubox76 @DellaBitta Could one of you take a look at this PR? I think it needs your approval to merge.

@dconeybe dconeybe merged commit b0d5374 into master Aug 17, 2023
@dconeybe dconeybe deleted the dconeybe/CILogTruncationFix branch August 17, 2023 19:30
@firebase firebase locked and limited conversation to collaborators Sep 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants