Repository navigation
Commit aabbd38
authored
Skip existing release artifacts when retrying mirror uploads (#4937)
A mirror upload can fail after some files for a release have already
reached R2. Retrying then attempts to overwrite those immutable objects
and can fail again.
This change makes the versioned mirror upload skip existing keys and
upload only the missing files. It assumes a retry uses the same release
artifacts. An existing file is kept even if its local checksum differs.
Tested against a local S3 server with a partially uploaded release. The
first run preserved the existing file and uploaded the missing files. A
second run made zero writes.1 parent e8a6c93 commit aabbd38
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments