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

Include custom status in results report #1116

Merged
merged 1 commit into from
May 11, 2020

Conversation

zubron
Copy link
Contributor

@zubron zubron commented May 11, 2020

What this PR does / why we need it:
Previously, results would only be included in the total number of result
items if the status for that result was one of the built-in result
statuses (passed, failed, skipped, etc). With the addition of manual
results reporting, if a user used other custom statuses, these would not
be included in the default results output and it would look like
Sonobuoy had processed no results.

This commit modifies the logic for the default results output to count
all items, not just those which match the built-in statuses. Custom
statuses with their count are also included in the output. The overall
counts for the built-in statuses are still included as before, but now
we also iterate over all other statuses and include them in the output.

Signed-off-by: Bridget McErlean bmcerlean@vmware.com

Release note:

The `results` command now includes result items with custom statuses in the total results count. It also includes these custom statuses and their count in the result report.

@zubron zubron changed the title Include custom results in results report Include custom status in results report May 11, 2020
@zubron zubron force-pushed the calculate-total-separately branch from cb24c8d to 431abb7 Compare May 11, 2020 21:04
Previously, results would only be included in the total number of result
items if the status for that result was one of the built-in result
statuses (passed, failed, skipped, etc). With the addition of manual
results reporting, if a user used other custom statuses, these would not
be included in the default `results` output and it would look like
Sonobuoy had processed no results.

This commit modifies the logic for the default `results` output to count
all items, not just those which match the built-in statuses. Custom
statuses with their count are also included in the output. The overall
counts for the built-in statuses are still included as before, but now
we also iterate over all other statuses and include them in the output.

Signed-off-by: Bridget McErlean <bmcerlean@vmware.com>
@zubron zubron force-pushed the calculate-total-separately branch from 431abb7 to e896008 Compare May 11, 2020 21:18
@zubron zubron merged commit bbd55f7 into vmware-tanzu:master May 11, 2020
@zubron zubron deleted the calculate-total-separately branch May 11, 2020 21:32
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.

1 participant