adoptium / aqa-tests

Home of test infrastructure for Adoptium builds
https://adoptium.net/aqavit
Apache License 2.0
128 stars 308 forks source link

JDK22 & JDK21: CommandLinePositiveTest.java (httpserver and jwebserver versions) both fail with address in use #5474

Closed adamfarley closed 3 hours ago

adamfarley commented 1 month ago

Original comment by Shelley Lambert in the July 2024 General Retrospective:

x64 Windows: com/sun/net/httpserver/simpleserver/CommandLinePositiveTest.java and simpleserver/jwebserver/CommandLinePositiveTest.java are problematic for JDK22 and JDK21, address in use failures

steelhead31 commented 1 month ago

please assign to me.

adamfarley commented 1 month ago

I can't. I've posted a request in the Slack channel.

smlambert commented 1 month ago

Some recent Grinders in this triage comment https://github.com/adoptium/aqa-tests/issues/5445#issuecomment-2233607633

sophia-guo commented 1 month ago

So it's intermittent. Feels like the tests are affected if ports are used by other processes. Should be excluded or not?

steelhead31 commented 1 week ago

After some investigation, the problematic command in the test is this..

00:03:42.529  [simpleserver]:c:\jenkins\workspace\Grinder\jdkbinary\j2sdk-image\bin\jwebserver.exe -b ::0
00:03:42.529  [simpleserver] Error: server config failed: java.net.BindException: Address already in use: bind

This command tries to start a java webserver without a specified port or address, which is localhost, but with port 8000.. this port is already in use by the incredibuild web dashboard ( which is not required on test machines ). I'll investigate disabling this service on the test machines, or switching it to a different port.

steelhead31 commented 1 week ago

Test runs :- 
:heavy_check_mark: test-azure-win2019-x64-1 : https://ci.adoptium.net/job/Grinder/10806 
:heavy_check_mark: test-azure-win2022-x64-1 : https://ci.adoptium.net/job/Grinder/10804 
:heavy_check_mark: test-azure-win2022-x64-2 : https://ci.adoptium.net/job/Grinder/10805 
:heavy_check_mark: test-azure-win2022-x64-3 : https://ci.adoptium.net/job/Grinder/10803/

smlambert commented 3 hours ago

thanks @steelhead31 ! Closed via https://github.com/adoptium/infrastructure/pull/3726