Skip to content

Conversation

joestringer
Copy link
Member

@joestringer joestringer commented Feb 19, 2025

Julian reports that when a test fails directly (via t.Fail(),
t.Fatal() and friends), the CLI falls back to attributing the failure
to the ci-structure group that owns the overall testing infrastructure
in the CLI, rather than attributing to the failed test itself.

This commit amends the fallback when a failure is not triggered directly
through an action / scenario by instead assembling all of the failed
scenarios and then reporting the ownership for those failed scenarios.
This should improve the accuracy of the test ownership attribution.

Julian reports that when a test fails directly (via 't.Fail()',
't.Fatal()' and friends), the CLI falls back to attributing the failure
to the ci-structure group that owns the overall testing infrastructure
in the CLI, rather than attributing to the failed test itself.

This commit amends the fallback when a failure is not triggered directly
through an action / scenario by instead assembling all of the failed
scenarios and then reporting the ownership for those failed scenarios.
This should improve the accuracy of the test ownership attribution.

Reported-by: Julian Wiedmann <jwi@isovalent.com>
Signed-off-by: Joe Stringer <joe@cilium.io>
@joestringer joestringer requested a review from a team as a code owner February 19, 2025 19:18
@joestringer joestringer added the release-note/ci This PR makes changes to the CI. label Feb 19, 2025
@github-actions github-actions bot added cilium-cli This PR contains changes related with cilium-cli cilium-cli-exclusive This PR only impacts cilium-cli binary labels Feb 19, 2025
@joestringer
Copy link
Member Author

/test

Copy link
Member

@julianwiedmann julianwiedmann left a comment

Choose a reason for hiding this comment

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

nice!

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Feb 20, 2025
@joestringer joestringer added this pull request to the merge queue Feb 20, 2025
Merged via the queue into main with commit 75899c5 Feb 20, 2025
216 of 218 checks passed
@joestringer joestringer deleted the pr/joe/improve-test-attribution branch February 20, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cilium-cli This PR contains changes related with cilium-cli cilium-cli-exclusive This PR only impacts cilium-cli binary ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants