-
Notifications
You must be signed in to change notification settings - Fork 2.2k
ci: enable production integration testing #6886
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #6886 +/- ##
=======================================
Coverage 73.29% 73.29%
=======================================
Files 213 213
Lines 13191 13191
Branches 2486 2486
=======================================
Hits 9668 9668
Misses 3359 3359
Partials 164 164 Continue to review full report at Codecov.
|
| @@ -1,108 +1,120 @@ | |||
| { | |||
| "name": "aws-amplify-react", | |||
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.
Changed spaces to tabs as per our .prettierrc config while I was here. Turn on "Hide whitespace changes" :D
|
iartemiev
left a comment
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.
Looks good William! 👍🏻 Thanks for including the CCI pipeline run
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.
Lets get this merged. Lets keep an eye out for bundle size. Its ok since aws-amplify-react is in maintenance mode rn
sammartinez
left a comment
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 and im OK with the bundle size increase. Thanks for this @wlee221 !
| "./src/Storage/index.ts", | ||
| "./src/Storage/S3Album.ts", |
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 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.
To be honest, I'm not sure :/ But I confirmed manually that all three ./src/index.ts, ./src/Storage/index.ts, and ./src/Storage/S3Album.ts need to be marked sideEffects or modules fail to load. My guess is that the app is expecting S3Album, and all files leading up to it (index.ts -> Storage/index.ts -> src/Storage/S3Album.ts) cannot not be swept.
|
Is there a benefit to running tests in both |
|
With our discussion today, I'll go ahead and merge this. Thanks everyone 👍 |
* Add production testing to ci * Update side effects Co-authored-by: Ashika <[email protected]>
* Add production testing to ci * Update side effects Co-authored-by: Ashika <[email protected]>
|
This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Issue #, if available:
Description of changes: This PR updates integration tests to run on both dev builds and prod builds. This also resolves sideEffects regression in
aws-amplify-reactthat was found along the way.I considered creating a separate job for prod testing, but this was inefficient because we would have to run
persist_to_workspacefor each of our sample to transition from dev to prod.I've tested that all our browser integration tests pass on both prod and dev with the accompanying PR on samples repo. See link to see what this looks like on circleCI!
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.