-
Notifications
You must be signed in to change notification settings - Fork 58
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
test: rebalance test suite #5972
Conversation
This pull request adds or modifies JavaScript ( |
224f998
to
a3c4215
Compare
@@ -198,7 +198,7 @@ jobs: | |||
env: | |||
# split tests across multiple machines | |||
CI_NODE_INDEX: ${{ matrix.machine }} | |||
CI_NODE_TOTAL: 4 | |||
CI_NODE_TOTAL: 5 |
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.
Matches the number of machines from line 128 (i.e. machine: ['0', '1', '2', '3', '4']
)
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.
https://github.com/avajs/ava/blob/024de32a15aba9fac4002aa8d3c2c076955f44f4/docs/recipes/splitting-tests-ci.md#splitting-tests-on-github-actions for reference with CI_NODE_INDEX
being 0-based
@@ -2,7 +2,7 @@ import baseConfig from '../../ava.base.js' | |||
|
|||
const config = { | |||
...baseConfig, | |||
files: ['tests/*.{cjs,mjs,js}', 'tests/**/tests.{cjs,mjs,js}'], |
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.
This first glob is no longer used
a3c4215
to
7c339d9
Compare
Summary
Runnpm run test:measure
to rebalance the test suite (ResolvesMissing test metadata for ...
warnings)ava
default settings insteadtools
packageava
test distribution in github workflowTests are now better balanced across test runners