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

fix: add default value for status-check flag when no value is specified #7278

Merged

Conversation

MarlonGamez
Copy link
Contributor

Fixes problem addressed here: https://github.com/GoogleContainerTools/skaffold/pull/7089/files#r845391034

--status-check can now be used without specifying ={true|false}

@MarlonGamez MarlonGamez requested a review from a team as a code owner April 7, 2022 17:29
@MarlonGamez MarlonGamez requested a review from tejal29 April 7, 2022 17:29
Copy link
Member

@briandealwis briandealwis left a comment

Choose a reason for hiding this comment

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

Can we add a test for this?

@MarlonGamez
Copy link
Contributor Author

@briandealwis Yes, do you think we should add a test for all NoOptDefValue flags?

@codecov
Copy link

codecov bot commented Apr 7, 2022

Codecov Report

Merging #7278 (757d76c) into main (290280e) will decrease coverage by 1.97%.
The diff coverage is 56.96%.

@@            Coverage Diff             @@
##             main    #7278      +/-   ##
==========================================
- Coverage   70.48%   68.51%   -1.98%     
==========================================
  Files         515      560      +45     
  Lines       23150    26507    +3357     
==========================================
+ Hits        16317    18160    +1843     
- Misses       5776     7094    +1318     
- Partials     1057     1253     +196     
Impacted Files Coverage Δ
cmd/skaffold/app/cmd/deploy.go 52.00% <ø> (-1.85%) ⬇️
cmd/skaffold/app/cmd/dev.go 84.61% <0.00%> (ø)
cmd/skaffold/app/cmd/render.go 36.66% <0.00%> (-4.72%) ⬇️
cmd/skaffold/skaffold.go 0.00% <0.00%> (ø)
cmd/skaffold/app/cmd/inspect_tests.go 62.50% <14.28%> (-1.14%) ⬇️
cmd/skaffold/app/cmd/lsp.go 28.12% <28.12%> (ø)
cmd/skaffold/app/cmd/fix.go 68.85% <40.00%> (-7.62%) ⬇️
cmd/skaffold/app/cmd/lint.go 42.85% <42.85%> (ø)
cmd/skaffold/app/cmd/find_configs.go 48.88% <50.00%> (+0.24%) ⬆️
cmd/skaffold/app/skaffold.go 76.19% <70.00%> (-8.43%) ⬇️
... and 225 more

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@pull-request-size pull-request-size bot added size/M and removed size/XS labels Apr 7, 2022
@MarlonGamez MarlonGamez merged commit 31a5f67 into GoogleContainerTools:main Apr 8, 2022
@MarlonGamez MarlonGamez deleted the status-check-flag branch April 8, 2022 15:39
@briandealwis
Copy link
Member

This flag broke downstream consumers, so it seems worthy of some tests to ensure it doesn't happen again.

@MarlonGamez
Copy link
Contributor Author

@briandealwis I included a test in this PR to ensure that skaffold runs with these flags passed in with no value 👍🏼

@byCedric
Copy link

byCedric commented Jul 19, 2022

Can we please leave this now as is, thanks for adding tests to make sure this doesn't break again. But now our pipeline broke twice:

  1. For the previous change that broke --status-check with {true,false} change - PR fix: correctly set the default value of StatusCheck to nil #7089
  2. For this change that broke --status-check true - https://github.com/expo/snack/runs/7411459432?check_suite_focus=true#step:9:11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants