You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(sync): dedupe unchanged blob payloads via ETag and content hash #1988
Blob sync (core/pkg/sync/blob/blob_sync.go:82-95) dedupes on ModTime only. Any bucket op that bumps ModTime without changing bytes (re-upload, tag/ACL edit, replication, terraform re-apply) causes a redundant republish.
HTTP sync already handles this correctly using ETag + SHA-3 body hash (core/pkg/sync/http/http_sync.go:180-201, 208-223).
Proposed change
Bring blob to parity with HTTP:
Use attrs.ETag when available (skip fetch on match).
Fall back to existing ModTime check.
After fetch, SHA-3 the body; skip publish if unchanged, as a backup for lack of etag or ModTimes with no material changes.
Test
Unit tests with mock bucket covering:
ETag unchanged -> no fetch, no publish.
ETag changed, ModTime bumped, body identical -> fetch but no publish (SHA guard).
ETag absent, ModTime unchanged -> no fetch, no publish.
ETag absent, ModTime bumped, body identical -> fetch but no publish (SHA guard).
ETag absent, ModTime bumped, body changed -> fetch and publish.
Activity
feat: improve ETag and body hash support to blob/http sync (open-feat…