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 skaffold inspect tests flags and help message #6493

Conversation

aaron-prindle
Copy link
Contributor

skaffold inspect tests did not display its flag in its help message initially, the changes here fix this. Additionally the profile and modules flags were not wired up/plumbed properly initially. They are now tested and working as expected

// TestsOptions holds flag values for various `skaffold inspect tests` commands
type TestsOptions struct {
// Profiles is the slice of profile names to activate.
TestsProfiles []string
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: name TestsProfiles was used in TestOptions (vs Profiles) as the name Profiles is used in the BuildEnvsOptions which would make Profiles ambiguous when used as opts.Profiles

skaffold inspect tests did not display its flag in its help message initially, the changes here fix this.  Additionally the profile and modules flags were not wired up/plumbed properly initially.  They are now tested and working as expected
@codecov
Copy link

codecov bot commented Aug 24, 2021

Codecov Report

Merging #6493 (90ba27c) into main (0925a54) will decrease coverage by 0.00%.
The diff coverage is 90.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6493      +/-   ##
==========================================
- Coverage   70.31%   70.30%   -0.01%     
==========================================
  Files         512      512              
  Lines       23031    23037       +6     
==========================================
+ Hits        16195    16197       +2     
- Misses       5778     5782       +4     
  Partials     1058     1058              
Impacted Files Coverage Δ
pkg/skaffold/inspect/types.go 100.00% <ø> (ø)
cmd/skaffold/app/cmd/inspect_tests.go 63.63% <75.00%> (-3.04%) ⬇️
pkg/skaffold/inspect/tests/list.go 100.00% <100.00%> (ø)
pkg/skaffold/log/stream/stream.go 71.42% <0.00%> (-14.29%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0925a54...90ba27c. Read the comment docs.

@aaron-prindle
Copy link
Contributor Author

Kokoro is failing for unrelated reason, this change is to a new command and it does not impact the GCP tests that kokoro runs.

@aaron-prindle aaron-prindle merged commit b44ff69 into GoogleContainerTools:main Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants