-
Notifications
You must be signed in to change notification settings - Fork 79
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
chore: upgrade jest to 29 #2747
Conversation
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.
I noted the timeout increase, which raises questions that are probably answerable, more than need changes.
@@ -4,7 +4,7 @@ import { sleep } from './sleep'; | |||
const defaultSettings: RetrySettings = { | |||
times: Infinity, | |||
delayMS: 1000 * 10, // 10 seconds | |||
timeoutMS: 1000 * 60 * 20, // 20 minutes | |||
timeoutMS: 1000 * 60 * 25, // 25 minutes |
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.
What did you encounter that caused the bump from 20 to 25 minutes on the timeout?
I would guess this means our e2e tests slowed down by ~25%, which might be enough to be worth an investigation. If you have already done the investigation, whats driving the increase and can we do better?
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.
There is a performance degradation with newer versions of Jest when run with node < 20 (jestjs/jest#11956). We currently support Node 18. Node 18 will be EOL in 8 months, so we should look into upgrading to Node 20.
0baca8c
to
9d262d6
Compare
0abd8c3
to
9d36991
Compare
@@ -6,7 +6,6 @@ env: | |||
AMPLIFY_PATH: /root/.npm-global/lib/node_modules/@aws-amplify/cli-internal/bin/amplify | |||
CI: true | |||
CODEBUILD: true | |||
NODE_OPTIONS: --max-old-space-size=8096 |
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.
These were ignored.
Description of changes
Upgrade Jest to 29. This is necessary to upgrade amplify-backend packages to GA versions.
jest.setTimeout()
is ignored if run async'ly inbeforeAll()
hook jestjs/jest#9359BUILD_GENERAL1_LARGE
and single test instances are usingBUILD_GENERAL1_MEDIUM
.CDK / CloudFormation Parameters Changed
N/A
Issue #, if available
#2741
Description of how you validated changes
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.