Merge ~twom/launchpad:oci-fix-multi-arch-uploads-vanishing into launchpad:master
Proposed by
Tom Wardill
Status: | Merged |
---|---|
Approved by: | Tom Wardill |
Approved revision: | 86d8f8a38fe692cf71279f1bb9522e0f7d2818fc |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~twom/launchpad:oci-fix-multi-arch-uploads-vanishing |
Merge into: | launchpad:master |
Diff against target: |
157 lines (+98/-9) 2 files modified
lib/lp/oci/model/ociregistryclient.py (+10/-8) lib/lp/oci/tests/test_ociregistryclient.py (+88/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Approve | ||
Review via email: mp+405376@code.launchpad.net |
Commit message
Upload single-arch to manifest digest, rather than final tag
lp: #1929693
Description of the change
Previously, we were uploading each build as they finished to the tag from the push rule, then uploading the multi-arch manifest as a final step.
If there was latency in the builds for different architectures finishing, this caused flapping over whether an image for an architecture that wasn't built yet existed.
Instead, upload the single-arch manifest to it's 'sha256:xxx' location, then refer to it when we updated the multi-arch manifest.
This ensures that an image will always exist for an architecture that has been built.
To post a comment you must log in.