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

Process all nodes and treat empty status as unknown #937

Merged
merged 1 commit into from
Oct 3, 2019
Merged

Process all nodes and treat empty status as unknown #937

merged 1 commit into from
Oct 3, 2019

Conversation

johnSchnake
Copy link
Contributor

What this PR does / why we need it:
If a node isn't marked with a status, it should be treated as
being unknown and bubble up accordingly.

Which issue(s) this PR fixes
Fixes #900

Special notes for your reviewer:

Release note:

Fixed a bug where some plugins may have reported a final status which was empty to `sonobuoy status` or `sonobuoy results`. These are now treated as "unknown".

@johnSchnake
Copy link
Contributor Author

Small simple bug fix with 100% coverage. Merging after green in CI. Will rebase
#936 onto this since I noticed it impacted some of the golden file tests that it introduced.

If a node isn't marked with a status, it should be treated as
being unknown and bubble up accordingly.

In addition, we need to continue processing all leaves instead
of exiting early on failure to ensure we bubble up every part
of the tree.

Fixes #900

Signed-off-by: John Schnake <[email protected]>
@codecov-io
Copy link

Codecov Report

Merging #937 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #937      +/-   ##
==========================================
+ Coverage   47.56%   47.58%   +0.02%     
==========================================
  Files          76       76              
  Lines        5178     5180       +2     
==========================================
+ Hits         2463     2465       +2     
  Misses       2565     2565              
  Partials      150      150
Impacted Files Coverage Δ
pkg/client/results/processing.go 83.33% <100%> (+0.4%) ⬆️

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 61cb07b...f32edee. Read the comment docs.

@johnSchnake johnSchnake changed the title Empty status should resolve as unknown in postprocessing Process all nodes and treat empty status as unknown Oct 3, 2019
@johnSchnake johnSchnake merged commit 69cc7ff into vmware-tanzu:master Oct 3, 2019
@johnSchnake johnSchnake deleted the emptyStatusAggregation branch October 3, 2019 20:57
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.

Rolling up junit results on daemonset plugin incorrect
2 participants