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

🐛 attempt to remove cache entry if unpack fails #207

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

everettraven
Copy link
Collaborator

Description

  • Update the ImageRegistry.Unpack() implementation to attempt to remove the cache entry if unpackImage() fails
  • Add a new test case that ensures if the required label is missing from the image, thus failing image unpacking, an error is consistently returned

Motivation

@everettraven everettraven requested a review from a team as a code owner November 2, 2023 21:25
Copy link

codecov bot commented Nov 2, 2023

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (d8e4df2) 40.04% compared to head (94d487b) 39.58%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #207      +/-   ##
==========================================
- Coverage   40.04%   39.58%   -0.46%     
==========================================
  Files           8        8              
  Lines         477      485       +8     
==========================================
+ Hits          191      192       +1     
- Misses        266      272       +6     
- Partials       20       21       +1     
Files Coverage Δ
internal/source/image_registry_client.go 62.50% <22.22%> (-4.55%) ⬇️

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

and add a new test case that ensures if the required label
is missing from the image, thus failing image unpacking,
an error is consistently returned

fixes operator-framework#206

Signed-off-by: Bryce Palmer <everettraven@gmail.com>
@ncdc ncdc added this pull request to the merge queue Nov 3, 2023
Merged via the queue into operator-framework:main with commit a0e2dee Nov 3, 2023
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants