-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
Use GH Actions for parallelism rather than Yarn #1029
Conversation
581e249
to
6a56125
Compare
`yarn test` is a multi-package command: it really runs `yarn test` for each package in parallel using `yarn workspaces foreach`. This works fine as long as all of the tests pass. But because this command produces a lot of output, if tests fail for any package, it can be very difficult to locate the failure. (The same goes for `yarn validate:changelog`.) There are a few ways we could solve this when these commands are run locally, but it's particularly a pain point when run on CI. For this reason, this commit adjusts the GitHub Actions configuration so that we use GitHub Actions instead of Yarn to run these commands in parallel across the monorepo. This means that if tests fail for a particular package, you only see output for that package and no other package.
a868fc4
to
7c8adb2
Compare
Here is a failing build so that you can see what it looks like when tests and/or changelog validation fails: https://github.com/MetaMask/controllers/actions/runs/3716135888 (some jobs are canceled because I pushed a new commit before this was fully finished, but you get the idea) |
This reverts commit 7c8adb2.
Nice. Good idea. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
`yarn test` is a multi-package command: it really runs `yarn test` for each package in parallel using `yarn workspaces foreach`. This works fine as long as all of the tests pass. But because this command produces a lot of output, if tests fail for any package, it can be very difficult to locate the failure. (The same goes for `yarn validate:changelog`.) There are a few ways we could solve this when these commands are run locally, but it's particularly a pain point when run on CI. For this reason, this commit adjusts the GitHub Actions configuration so that we use GitHub Actions instead of Yarn to run these commands in parallel across the monorepo. This means that if tests fail for a particular package, you only see output for that package and no other package.
`yarn test` is a multi-package command: it really runs `yarn test` for each package in parallel using `yarn workspaces foreach`. This works fine as long as all of the tests pass. But because this command produces a lot of output, if tests fail for any package, it can be very difficult to locate the failure. (The same goes for `yarn validate:changelog`.) There are a few ways we could solve this when these commands are run locally, but it's particularly a pain point when run on CI. For this reason, this commit adjusts the GitHub Actions configuration so that we use GitHub Actions instead of Yarn to run these commands in parallel across the monorepo. This means that if tests fail for a particular package, you only see output for that package and no other package.
yarn test
is a multi-package command: it really runsyarn test
foreach package in parallel using
yarn workspaces foreach
. This worksfine as long as all of the tests pass. But because this command produces
a lot of output, if tests fail for any package, it can be very difficult
to locate the failure. (The same goes for
yarn validate:changelog
.)There are a few ways we could solve this when these commands are run
locally, but it's particularly a pain point when run on CI. For this
reason, this commit adjusts the GitHub Actions configuration so that we
use GitHub Actions instead of Yarn to run these commands in parallel
across the monorepo. This means that if tests fail for a particular
package, you only see output for that package and no other package.