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

Return an image even if inaccessible #2088

Merged

Conversation

AidanDelaney
Copy link
Member

@AidanDelaney AidanDelaney commented Mar 4, 2024

When all run images are inaccessible, still return a run image. Pack will then provide a better error message to the end-user.

Summary

When all run images are inaccessible, still return a run image. Pack will then provide a better error message to the end-user.

Output

Before

Produces the panic listed in #2087

After

Produces a build (in the --pull-policy=never case), avoids the panic in all cases. Restores the previous behaviour.

Documentation

  • Should this change be documented?
    • Yes, see #___
    • No

Related

Resolves #2087

@AidanDelaney AidanDelaney requested review from a team as code owners March 4, 2024 07:20
@github-actions github-actions bot added the type/enhancement Issue that requests a new feature or improvement. label Mar 4, 2024
@github-actions github-actions bot added this to the 0.34.0 milestone Mar 4, 2024
When all run images are inaccessible, still return a run image.  Pack
will then provide a better error message to the end-user.

Signed-off-by: Aidan Delaney <adelaney21@bloomberg.net>
Copy link

codecov bot commented Mar 4, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 79.69%. Comparing base (1e41857) to head (0fdda16).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2088      +/-   ##
==========================================
- Coverage   79.69%   79.69%   -0.00%     
==========================================
  Files         176      176              
  Lines       13254    13257       +3     
==========================================
+ Hits        10562    10564       +2     
- Misses       2022     2023       +1     
  Partials      670      670              
Flag Coverage Δ
os_linux 78.58% <75.00%> (-0.04%) ⬇️
os_macos 76.33% <75.00%> (+0.03%) ⬆️
os_windows 79.08% <75.00%> (-<0.01%) ⬇️
unit 79.69% <75.00%> (-<0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Member

@jjbustamante jjbustamante 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 @AidanDelaney

@jjbustamante jjbustamante merged commit c36dcf8 into buildpacks:main Mar 4, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Issue that requests a new feature or improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

getBestRunMirror fails behind proxy
3 participants