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

[tests] Run unit tests concurrently in chunks #9615

Merged
merged 5 commits into from Mar 7, 2023
Merged

Conversation

styfle
Copy link
Member

@styfle styfle commented Mar 7, 2023

We can separate each package test-unit into a separate job. This will help isolate problems and we can re-run CI for a specific package.

@styfle
Copy link
Member Author

styfle commented Mar 7, 2023

Closing because unit tests are already really fast (roughly 3 min to build and 4 min to run) so this will actually be slower because it will cause actions to get queued due to all the concurrency.

@styfle styfle closed this Mar 7, 2023
@styfle styfle deleted the chunk-unit-tests branch March 7, 2023 16:41
@styfle styfle restored the chunk-unit-tests branch March 7, 2023 17:05
@styfle styfle reopened this Mar 7, 2023
@styfle
Copy link
Member Author

styfle commented Mar 7, 2023

Let's try this out since it appears to fix our unit tests.

@styfle styfle marked this pull request as ready for review March 7, 2023 20:41
@styfle styfle added the pr: automerge Automatically merge the PR when checks pass label Mar 7, 2023
@styfle
Copy link
Member Author

styfle commented Mar 7, 2023

This seems to fix our issue with unit tests being flaky so we can try it out.

TODO: remove Unit / Unit required checks and mark Tests / test-unit as required.

@kodiakhq kodiakhq bot merged commit c062099 into main Mar 7, 2023
@kodiakhq kodiakhq bot deleted the chunk-unit-tests branch March 7, 2023 23:50
styfle added a commit that referenced this pull request Mar 8, 2023
In a previous PR (#9615) the unit tests were moved to separate jobs in
the `test.yml` workflow. So we can now change the `test-unit.yml`
workflow to simply be `test-lint.yml` to avoid redundancy.

I also checked to see if this would affect code coverage but it turns
out codecov was [disabled a long time
ago](https://app.codecov.io/gh/vercel/vercel).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: tests pr: automerge Automatically merge the PR when checks pass semver: none PR is not relevant to publishing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants