Closed rafaelmag110 closed 3 weeks ago
:warning: Please install the to ensure uploads and comments are reliably processed by Codecov.
Attention: Patch coverage is 66.66667%
with 2 lines
in your changes missing coverage. Please review.
Project coverage is 65.53%. Comparing base (
d177a98
) to head (900004a
). Report is 63 commits behind head on main.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
While discussing the changes with @bmg13 we identified another case where having nested folder files would brake the tests. We accounted for that case in the last commit.
@paullatzelsperger This is ready for review. I can't add properly request the review...
What this PR changes/adds
When creating a folder via the AWS console, a 0 byte object with the name of the folder is created. This object is picked up by the s3 listObjects call and passed to
transferParts
as a valid part to be transfered. This creates an unnecessary Part to be uploaded which can be filtered out.Also, the multipart upload logic wasn't able to upload 0 byte files since no empty
completedParts
list can be used in acompletedMultipartUpload
request.Why it does that
To enable the transfer of 0 byte files and remove the unecessary upload of folder 0 byte marker.
Further notes
Some tests where adapted to best represent the testing cases.
Linked Issue(s)
Closes #384