Skip to content

Conversation

@laurit
Copy link
Contributor

@laurit laurit commented Sep 24, 2025

Hopefully avoids failures like

> Task :test-report:reportFlakyTests FAILED
Scanning for flaky tests in /home/runner/work/opentelemetry-java-instrumentation/opentelemetry-java-instrumentation
[Fatal Error] TEST-io.opentelemetry.javaagent.instrumentation.hystrix.HystrixObservableChainTest.xml:1:1: Premature end of file.
Error: Exception in thread "main" java.lang.IllegalStateException: failed to parse test report /home/runner/work/opentelemetry-java-instrumentation/opentelemetry-java-instrumentation/instrumentation/hystrix-1.4/javaagent/build/test-results/testExperimental/TEST-io.opentelemetry.javaagent.instrumentation.hystrix.HystrixObservableChainTest.xml
	at io.opentelemetry.instrumentation.testreport.FlakyTestReporter.parse(FlakyTestReporter.java:70)
	at io.opentelemetry.instrumentation.testreport.FlakyTestReporter.scanTestFile(FlakyTestReporter.java:76)
	at io.opentelemetry.instrumentation.testreport.FlakyTestReporter$1.visitFile(FlakyTestReporter.java:205)
	at io.opentelemetry.instrumentation.testreport.FlakyTestReporter$1.visitFile(FlakyTestReporter.java:200)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2799)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2870)
	at io.opentelemetry.instrumentation.testreport.FlakyTestReporter.scanTestResults(FlakyTestReporter.java:198)
	at io.opentelemetry.instrumentation.testreport.FlakyTestReporter$2.preVisitDirectory(FlakyTestReporter.java:222)
	at io.opentelemetry.instrumentation.testreport.FlakyTestReporter$2.preVisitDirectory(FlakyTestReporter.java:217)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2805)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2870)
	at io.opentelemetry.instrumentation.testreport.FlakyTestReporter.scan(FlakyTestReporter.java:215)
	at io.opentelemetry.instrumentation.testreport.FlakyTestReporter.main(FlakyTestReporter.java:310)
Caused by: org.xml.sax.SAXParseException; systemId: file:/home/runner/work/opentelemetry-java-instrumentation/opentelemetry-java-instrumentation/instrumentation/hystrix-1.4/javaagent/build/test-results/testExperimental/TEST-io.opentelemetry.javaagent.instrumentation.hystrix.HystrixObservableChainTest.xml; lineNumber: 1; columnNumber: 1; Premature end of file.
	at java.xml/com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:262)
	at java.xml/com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:342)
	at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:206)
	at io.opentelemetry.instrumentation.testreport.FlakyTestReporter.parse(FlakyTestReporter.java:68)
	... 12 more

@laurit laurit requested a review from a team as a code owner September 24, 2025 13:29
@laurit laurit enabled auto-merge (squash) September 24, 2025 13:53
@laurit laurit merged commit 92b6a39 into open-telemetry:main Sep 24, 2025
89 checks passed
mznet pushed a commit to mznet/opentelemetry-java-instrumentation that referenced this pull request Sep 26, 2025
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