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

Investigate incorrect CI failure reporting #3952

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

JonasKunz
Copy link
Contributor

@JonasKunz JonasKunz commented Jan 23, 2025

What does this PR do?

Fixes the problems with CI sometimes not correctly reporting test failures as actually failed.
The root cause for this problem was a old maven-surefire-plugin combined with parameterized tests.

E.g. our TomcatIT test is parameterized, the parameter is the name of the tomcat docker image to test.
#3940 removes an image which doesn't exist anymore, thus the tests should have been failing but were not.

The reason was that the used version maven-surefire-plugin was naming all runs of parametrized tests with the same name - even when executed with different parameters. E.g. All test runs for different tomcat images were named just TomcatIT.testAllScenarios in the resulting test report XML file.
Subsequently, if at least one of the runs was successful (aka at least one image works) the tests would not count as failure, but as a single test being flaky. Flaky tests do not cause maven to report the tests as failed.

The update of the maven-surefire-plugin fixes this, because it assigns unique names to parametrized tests based on the parameters.

@JonasKunz JonasKunz added the ci:agent-integration Enables agent integration tests in build pipeline label Jan 23, 2025
@JonasKunz JonasKunz requested a review from a team January 24, 2025 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent-java ci:agent-integration Enables agent integration tests in build pipeline
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants