-
Notifications
You must be signed in to change notification settings - Fork 817
chore: increase parallelization in e2e tests #12276
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ const RUN_SOLO = [ | |
'src/__tests__/schema-auth-11-a.test.ts', | ||
'src/__tests__/schema-auth-15.test.ts', | ||
'src/__tests__/schema-connection-1.test.ts', | ||
'src/__tests__/studio-modelgen.test.ts', | ||
'src/__tests__/transformer-migrations/searchable-migration.test.ts', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. turns out studio-model gen is happy with some company. |
||
]; | ||
/** | ||
* Most Windows tests only run on 'dev', except for this list of smoke tests. | ||
|
@@ -155,7 +155,7 @@ const TEST_EXCLUSIONS: { l: string[]; w: string[] } = { | |
'src/__tests__/pinpoint/notifications-pinpoint-config-util.ts', | ||
], | ||
}; | ||
const MAX_WORKERS = 3; | ||
const MAX_WORKERS = 4; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we do something like this for the base.yml and config.yml file? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not worth the effort given timeline for this script. |
||
type OS_TYPE = 'w' | 'l'; | ||
type CandidateJob = { | ||
region: string; | ||
|
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.
I don't think we can actually use all 4 cores since jest needs 1 cpu to manage the worker pool & OS; maybe its working now ? I noticed when I tried 4 , it just runs the 4th test at the end of the first 3
Uh oh!
There was an error while loading. Please reload this page.
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.
We added
--forceExit
since then. 4 core CPU can handle more than 4 workers as long as they interrupt and yield the cpu from time to time.See https://app.circleci.com/pipelines/github/aws-amplify/amplify-cli/17621/workflows/123658d9-cf34-4eaf-b32e-def425cac409
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.
Setting maxWorkers beyond CPU count - 1 would be harmful if our tests were CPU bound. But they mostly spawn CLI and wait for it asynchronously.