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

Allow multiple result files to be post-processed #824

Merged

Conversation

zubron
Copy link
Contributor

@zubron zubron commented Aug 1, 2019

What this PR does / why we need it:
Instead of allowing users to only process one, or all the result files,
allow them to specify an array of file names in their plugin definition
to be post-processed.

Signed-off-by: Bridget McErlean [email protected]

Which issue(s) this PR fixes

Special notes for your reviewer:
I've added another copy of sliceContains. I will move this into a shared location following this PR.

Release note:

Multiple files can now be specified in the plugin definition for post-processing.

@zubron zubron requested a review from johnSchnake August 1, 2019 21:23
@codecov-io
Copy link

codecov-io commented Aug 1, 2019

Codecov Report

Merging #824 into master will decrease coverage by 0.09%.
The diff coverage is 81.25%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #824     +/-   ##
========================================
- Coverage   44.59%   44.5%   -0.1%     
========================================
  Files          76      76             
  Lines        4619    4624      +5     
========================================
- Hits         2060    2058      -2     
- Misses       2428    2433      +5     
- Partials      131     133      +2
Impacted Files Coverage Δ
pkg/plugin/manifest/manifest.go 3.7% <0%> (ø) ⬆️
pkg/plugin/driver/base.go 40.24% <0%> (ø) ⬆️
pkg/client/results/processing.go 81.33% <100%> (+1.33%) ⬆️
pkg/plugin/aggregation/aggregator.go 79.2% <0%> (-4%) ⬇️
cmd/sonobuoy/app/status.go 57.14% <0%> (-2.2%) ⬇️

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 e39cde3...f0168ba. Read the comment docs.

Instead of allowing users to only process one, or all the result files,
allow them to specify an array of file names in their plugin definition
to be post-processed.

Signed-off-by: Bridget McErlean <[email protected]>
@zubron zubron force-pushed the allow-multiple-result-files-821 branch from 0aab652 to f0168ba Compare August 1, 2019 21:47
@zubron
Copy link
Contributor Author

zubron commented Aug 1, 2019

Hmm, might be a bit much to have tests for each different type to
check that specifying multiple files works.

@johnSchnake johnSchnake merged commit 7713c02 into vmware-tanzu:master Aug 2, 2019
@zubron zubron deleted the allow-multiple-result-files-821 branch August 11, 2019 11:01
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.

results.Item datatype should allow specifying multiple resultFiles
3 participants