-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
AWS SDK jsv3 migration #1865
AWS SDK jsv3 migration #1865
Conversation
9c99a68
to
9eea427
Compare
This PR expect for CI fix here: #1862 |
ac686f3
to
6f4912e
Compare
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #1865 +/- ##
==========================================
- Coverage 70.29% 69.73% -0.56%
==========================================
Files 24 24
Lines 2626 2647 +21
Branches 596 601 +5
==========================================
Hits 1846 1846
- Misses 667 690 +23
+ Partials 113 111 -2
☔ View full report in Codecov by Sentry. |
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 (at high level) and seems to work but I'm worried about two new errors during npm i
which seem to have appeared with this PR:
> mwoffliner@1.13.0 build
> ./dev/build.sh
Building at [Do 27 Jul 2023 20:34:36 CEST]
node_modules/@types/imagemin-gifsicle/index.d.ts:7:24 - error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("imagemin")' call instead.
7 import { Plugin } from 'imagemin';
~~~~~~~~~~
node_modules/@types/imagemin-webp/index.d.ts:7:24 - error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("imagemin")' call instead.
7 import { Plugin } from 'imagemin';
~~~~~~~~~~
Found 2 errors in 2 files.
Errors Files
1 node_modules/@types/imagemin-gifsicle/index.d.ts:7
1 node_modules/@types/imagemin-webp/index.d.ts:7
Build Complete at [Do 27 Jul 2023 20:34:48 CEST]
Can we fix them?
I'm surprised the CI goes through with such a severe error during the installation process. Wouldn't that be appropriate to die/stop the CI on such scenarios?
@VadimKovalenkoSNF Please fix the rebase conflict as well. |
6f4912e
to
5c0609c
Compare
TypeScript error (TS1479) highlighted here: microsoft/TypeScript#54523 |
@VadimKovalenkoSNF Do you want me to redo the review? If "yes" please request a new review on Github (see the icon for that on Github). Otherwise, why the codecov goes back? Is the PR fully tested (then it should not go back!)? |
I'll try to increase test coverage here. |
@kelson42 For some reason codecov marks almost everything in S3 module as uncovered, see https://app.codecov.io/gh/openzim/mwoffliner/pull/1865/blob/src/S3.ts |
@VadimKovalenkoSNF We better clarify this... otherwise no way to trust codecov. Maybe the code coverage command does not take in account all the tests? Check with |
@kelson42 I noticed that test coverage of S3 equals to zero during build stage, see - https://github.com/openzim/mwoffliner/actions/runs/5693400834/job/15432418757#step:7:622 I noticed the same issue in another PR, check - https://github.com/openzim/mwoffliner/actions/runs/5684250388/job/15406524636#step:7:677 |
Upd: I was wrong, it seems that the correct report related to S3 is here - https://github.com/openzim/mwoffliner/actions/runs/5693400834/job/15432418757#step:7:221 |
I compared test coverage for S3 between
As you can see, function coverage decreased, but this happened because I've introduced a private method |
Superseeds #1851
Fixes #1840