Skip to content

Conversation

@trask
Copy link
Member

@trask trask commented Oct 27, 2025

I think ratpack tests are the only ones remaining

trask added a commit to trask/opentelemetry-java-instrumentation that referenced this pull request Oct 27, 2025
Disable connection error tests (unopened port and non-routable address) on Windows
due to different exception handling in Netty. Windows wraps connection exceptions in
AbstractChannel$AnnotatedConnectException with different messages, causing test
assertion failures even with existing exception unwrapping logic.

Fixes open-telemetry#15153
@trask trask mentioned this pull request Oct 27, 2025
@trask trask force-pushed the windows branch 3 times, most recently from 44a9245 to 2a84bcb Compare November 1, 2025 16:41
@trask trask force-pushed the windows branch 2 times, most recently from a5030ab to 5e9a6ee Compare November 4, 2025 03:47
@trask trask marked this pull request as ready for review November 4, 2025 15:48
@trask trask requested a review from a team as a code owner November 4, 2025 15:48
@trask trask changed the title Fix tests on Windows Fix most tests on Windows Nov 4, 2025
trask and others added 2 commits November 4, 2025 14:32
…ent/src/test/java/io/opentelemetry/javaagent/instrumentation/reactornetty/v0_9/ReactorNettyHttpClientTest.java

Co-authored-by: Jay DeLuca <jaydeluca4@gmail.com>
}

// Windows holds open handles to jars loaded through URLClassLoader even after the loader is
// closed, which keeps the temp directory locked and causes test cleanup to fail.
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably because of the jar file cache that the url connection uses. If that is the case then https://docs.oracle.com/javase/8/docs/api/java/net/URLConnection.html#setDefaultUseCaches-boolean- might help.

@laurit laurit merged commit 56a7c12 into open-telemetry:main Nov 5, 2025
89 checks passed
@trask trask mentioned this pull request Nov 6, 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.

3 participants