Fix cache digest comparison by using oras manifest fetch instead of client-side hash#1358
Conversation
|
🤖 Finished Review · ✅ Success · Started 9:24 AM UTC · Completed 9:36 AM UTC |
2d1e3c6 to
a44d5bc
Compare
ReviewReason: stale-head The review agent reviewed commit Previous runReviewFindingsMedium
Low
Labels: PR fixes a bug in ORAS digest comparison logic Previous run (2)ReviewReason: stale-head The review agent reviewed commit |
|
/fs-review |
|
🤖 Finished Review · ✅ Success · Started 9:39 AM UTC · Completed 9:52 AM UTC |
a44d5bc to
0c47018
Compare
|
🤖 Finished Review · ✅ Success · Started 10:03 AM UTC · Completed 10:16 AM UTC |
…lient-side hash get_image_digest computes a client-side sha256 of the raw manifest bytes from skopeo, which doesn't match the registry-assigned digest stored in the OpenShift ImageStream. Additionally, skopeo inspect without --raw fails entirely on ORAS artifacts. Replace with oras manifest fetch --descriptor which returns the registry-assigned digest, matching what oc import-image stores in the ImageStream. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0c47018 to
5a2a8b2
Compare
dismissing because flake8 and black fixes were added
|
/fs-review |
get_image_digest computes a client-side sha256 of the raw manifest bytes from skopeo, which doesn't match the registry-assigned digest stored in the OpenShift ImageStream. Additionally, skopeo inspect without --raw fails entirely on ORAS artifacts.
Replace with oras manifest fetch --descriptor which returns the registry-assigned digest, matching what oc import-image stores in the ImageStream.