Skip to content
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

Fix md5 cache #1354

Closed
wants to merge 6 commits into from
Closed

Fix md5 cache #1354

wants to merge 6 commits into from

Conversation

neolynx
Copy link
Member

@neolynx neolynx commented Oct 2, 2024

Fixes #

Requirements

All new code should be covered with tests, documentation should be updated. CI should pass.

Description of the Change

Checklist

  • unit-test added (if change is algorithm)
  • functional test added/updated (if change is functional)
  • man page updated (if applicable)
  • bash completion updated (if applicable)
  • documentation updated
  • author name in AUTHORS

Kevin Martin and others added 6 commits October 2, 2024 19:28
This change fixes issues causing no matches to occur for existing
objects at S3 in some cases. This issue caused all versions of a
package in a repo to be uploaded again to S3.

Lookups in the cache of file MD5s were failing as the key in the map
had its prefix stripped while the key used for the lookup did not have
the prefix stripped. This change stops stripping the prefix when
building the cache.

Retrieving object MD5s from object metadata (as opposed to the etag
that comes with the object list) were failing as the key in the
metadata map is now "md5" (all lowercase) vs. "Md5" that was used
pre-v2 AWS SDK.
@neolynx neolynx closed this Oct 2, 2024
@neolynx neolynx deleted the fix-md5-cache branch October 2, 2024 19:49
Copy link

codecov bot commented Oct 2, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 74.90%. Comparing base (aff7b0d) to head (80ab393).

Files with missing lines Patch % Lines
s3/public.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1354   +/-   ##
=======================================
  Coverage   74.90%   74.90%           
=======================================
  Files         150      150           
  Lines       17005    17005           
=======================================
  Hits        12738    12738           
  Misses       3255     3255           
  Partials     1012     1012           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant