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

Make includeSubresults not exclude parent results #35

Merged
merged 3 commits into from
Jan 16, 2023

Conversation

alopezz
Copy link
Contributor

@alopezz alopezz commented Dec 14, 2022

Addresses #34.

The includeSubresults option was actually only including subresults, which is unexpected (and probably not desirable). This PR fixes that, and it also includes subresults recursively (in case that happens to be a possibility).

The test I added follows closely the template of a previously existing tests, with the difference that it actually checks that all expected metrics are present in the produced metrics, instead of the reverse. Otherwise it was hard to make a failing test to begin with (which reproduces the issue at hand).

Review checklist (to be filled by reviewers)

  • Feature or bug fix MUST have appropriate tests (unit, integration, etc...)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have one changelog/ label attached. If applicable it should have the backward-incompatible label attached.
  • PR should not have do-not-merge/ label attached.
  • If Applicable, issue must have kind/ and severity/ labels attached at least.

@alopezz alopezz requested a review from a team as a code owner December 14, 2022 16:09
Copy link
Member

@FlorentClarret FlorentClarret left a comment

Choose a reason for hiding this comment

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

Looks good to me ☕ Good catch

@alopezz
Copy link
Contributor Author

alopezz commented Jan 16, 2023

There's now confirmation that this solved the issue, so I'm merging this now.

@alopezz alopezz merged commit aad6743 into main Jan 16, 2023
@alopezz alopezz deleted the alopez/fix-subresults branch January 16, 2023 09:18
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.

2 participants