-
Notifications
You must be signed in to change notification settings - Fork 336
Tag retried-test non-final attempts as skip in JUnit report #11443
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,6 +48,7 @@ private void collect(Path sourceXml) throws Exception { | |
| var reportChangedBeforeFinalStatus = report.addFileAttribute(sourceFile); | ||
| reportChangedBeforeFinalStatus |= report.normalizeStableTestNames(); | ||
| report.tagSyntheticFailures(); | ||
| report.tagRetriedTests(); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue: This happens after E.g.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great catch..
Can you elaborate? It would be great to autodetect retries. Are these manually detected by us today? (cc @cbeauchesne) - I know that Flaky tests are labelled in Datadog and from there we can detect if they were retried (grouped by name)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On catching retries proactively, I'm not sure if there are plans to auto-detect these retries by @DataDog/ci-app-libraries team. I did some planning with Claude, and the suggestion was to:
Claude Details
Data model — trivialAdd a Detection — the real workIdentifying that a given test execution is a Develocity retry requires one of:
WiringThe resulting signal lands in Open decisions
ValidationA smoke test under Ownership
RecommendationDo a short Phase-0 spike on the Develocity plugin's internals before committing to a detection approach.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey @mhdatie! Unfortunately what Claude suggested here seems related to the testing instrumentation inside the tracer itself. In our case, it wouldn't apply because we don't instrument the tracer's tests with the tracer itself. The test reporting is entirely based on the JUnitXML report generated by the testing framework. I've discussed with the team and I'm not sure there would be an easy way of detecting the retries on our side during ingestion (there are several limitations like the ingestion order not necessarily following the execution order, which could then incorrectly tag retries) unless we were able to include some additional information in the report to inform this. |
||
| report.tagFinalStatuses(); | ||
| report.write(targetXml); | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will apply based on outcome of above convo #11443 (review)