Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix regression 😓 running pull --ignore-pull-failures #10098

Merged
merged 1 commit into from
Dec 19, 2022

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Dec 19, 2022

What I did
After #10054 --ignore-pull-failures doesn't ignore failures anymore 😓
Fixed, added e2e tests to cover pull and pull --ignore-pull-failures

final logic implemented by this flag:

  • always warn user when some image can't be pulled nor built locally
  • if image can't be pulled nor built, fail after first pull error
  • if --ignore-pull-failure is set, still report warning but exit with 0

Related issue
#10054
fixes #10089

(not mandatory) A picture of a cute animal, if possible in relation to what you did
image

@ndeloof ndeloof force-pushed the ignore_pull_filures branch 2 times, most recently from 4a59a32 to 49f5a4d Compare December 19, 2022 09:23
@ndeloof ndeloof changed the title fix regression running pull --ignore-pull-failures fix regression 😓 running pull --ignore-pull-failures Dec 19, 2022
@ndeloof ndeloof force-pushed the ignore_pull_filures branch from 49f5a4d to d7b59bb Compare December 19, 2022 09:28
@codecov
Copy link

codecov bot commented Dec 19, 2022

Codecov Report

Base: 76.98% // Head: 75.79% // Decreases project coverage by -1.19% ⚠️

Coverage data is based on head (c0a4a01) compared to base (e42673d).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##               v2   #10098      +/-   ##
==========================================
- Coverage   76.98%   75.79%   -1.20%     
==========================================
  Files           2        2              
  Lines         252      252              
==========================================
- Hits          194      191       -3     
- Misses         51       53       +2     
- Partials        7        8       +1     
Impacted Files Coverage Δ
pkg/e2e/framework.go 74.04% <0.00%> (-1.28%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ndeloof ndeloof marked this pull request as ready for review December 19, 2022 09:38
@ndeloof ndeloof requested review from a team, nicksieger, StefanScherer, ulyssessouza, glours, milas and laurazard and removed request for a team December 19, 2022 09:42
Copy link
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

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

LGTM

pkg/e2e/fixtures/compose-pull/unknown-image/Dockerfile Outdated Show resolved Hide resolved
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof ndeloof force-pushed the ignore_pull_filures branch from e1a2b57 to c0a4a01 Compare December 19, 2022 10:45
@ndeloof ndeloof enabled auto-merge (rebase) December 19, 2022 10:45
@ndeloof ndeloof merged commit c1ce53c into docker:v2 Dec 19, 2022
@ndeloof ndeloof deleted the ignore_pull_filures branch December 19, 2022 11:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Regression in 2.14.1 related to pull --ignore-pull-failures and return code
3 participants