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

🐛 Avoid a network call for digest based images #396

Merged

Conversation

m1kola
Copy link
Member

@m1kola m1kola commented Sep 12, 2024

While fixing a bug in #394 I removed optimisation for digest based image. This PR changes the unpacker so that we do not make a network call for these images: only for tag-based images.

Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 12, 2024
Copy link

codecov bot commented Sep 12, 2024

Codecov Report

Attention: Patch coverage is 57.14286% with 6 lines in your changes missing coverage. Please review.

Project coverage is 35.29%. Comparing base (dfe121e) to head (649c8cc).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
internal/source/image_registry_client.go 57.14% 4 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #396      +/-   ##
==========================================
+ Coverage   34.41%   35.29%   +0.87%     
==========================================
  Files          17       17              
  Lines         738      731       -7     
==========================================
+ Hits          254      258       +4     
+ Misses        452      443       -9     
+ Partials       32       30       -2     

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

@m1kola m1kola marked this pull request as ready for review September 12, 2024 13:37
@m1kola m1kola requested a review from a team as a code owner September 12, 2024 13:37
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 12, 2024
Copy link
Contributor

@perdasilva perdasilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Sorry I missed that the first time around!

@m1kola
Copy link
Member Author

m1kola commented Sep 12, 2024

Sorry I missed that the first time around!

No worries. I missed it too :)

@tmshort tmshort added this pull request to the merge queue Sep 12, 2024
Merged via the queue into operator-framework:main with commit 8e71e93 Sep 12, 2024
13 checks passed
@m1kola m1kola deleted the optimise_digest-based-images branch September 13, 2024 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants