adoptium / infrastructure

This repo contains all information about machine maintenance.
Apache License 2.0
86 stars 102 forks source link

jdk_net FAILED in Test_openjdk18_hs_extended.openjdk_aarch64_linux on test-docker* machines (aarch64) #2514

Open smlambert opened 2 years ago

smlambert commented 2 years ago

Issues running some ipv6 tests on test-docker-fedora35-armv8l-1 and other test-docker aarch64 linux machines. Note: Running jdk_net on test-equinix-ubuntu2004-armv8-0 (as shown in Grinder/3857) to see if ipv6 testcases can pass on that machine, which is not a test-docker* named machine.

java.net.UnknownHostException: Unable to resolve host ip6-localhost in hosts file /home/jenkins/workspace/Test_openjdk18_hs_extended.openjdk_aarch64_linux/aqa-tests/openjdk/openjdk-jdk/test/jdk/java/net/InetAddress/TestHosts-III
    at java.base/java.net.InetAddress$HostsFileResolver.checkResultsList(InetAddress.java:1220)
    at java.base/java.net.InetAddress$HostsFileResolver.lookupByName(InetAddress.java:1193)
    at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1638)
    at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:997)
    at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1628)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1494)
    at java.base/java.net.InetAddress.getByName(InetAddress.java:1389)
    at InternalNameServiceWithHostsFileTest.testHostsMapping(InternalNameServiceWithHostsFileTest.java:81)
    at InternalNameServiceWithHostsFileTest.main(InternalNameServiceWithHostsFileTest.java:56)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
    at java.base/java.lang.reflect.Method.invoke(Method.java:577)
    at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
    at java.base/java.lang.Thread.run(Thread.java:833)
java.net.UnknownHostException: Unable to resolve host host-ipv6.sample-domain in hosts file TestHosts
    at java.base/java.net.InetAddress$HostsFileResolver.checkResultsList(InetAddress.java:1220)
    at java.base/java.net.InetAddress$HostsFileResolver.lookupByName(InetAddress.java:1193)
    at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1638)
    at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:997)
    at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1628)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1494)
    at java.base/java.net.InetAddress.getByName(InetAddress.java:1389)
    at InternalNameServiceTest.testHostToIPAddressMappings(InternalNameServiceTest.java:135)
    at InternalNameServiceTest.main(InternalNameServiceTest.java:46)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
    at java.base/java.lang.reflect.Method.invoke(Method.java:577)
    at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
    at java.base/java.lang.Thread.run(Thread.java:833)
11:50:45  [simpleserver]:/home/jenkins/workspace/Grinder/openjdkbinary/j2sdk-image/bin/jwebserver --bind-address ::0
11:50:45  [simpleserver] Error: server config failed: java.net.SocketException: Unsupported address type
11:50:45    Thread[main,5,main] stack: (length = 4)
11:50:45    java.base@18-beta/java.lang.Object.wait(Native Method)
11:50:45    java.base@18-beta/java.lang.Thread.join(Thread.java:1304)
11:50:45    java.base@18-beta/java.lang.Thread.join(Thread.java:1372)
11:50:45    app//com.sun.javatest.regtest.agent.MainWrapper.main(MainWrapper.java:74)

Test Info Test Name: jdk_net_0 Test Duration: 41 min 10 sec Machine: test-docker-ubuntu1604-armv8l-2 TRSS link for the test output: https://trss.adoptium.net/output/test?id=622d730657fa857008d20dfc

Build Info Build Name: Test_openjdk18_hs_extended.openjdk_aarch64_linux Jenkins Build start time: Mar 12 2022, 06:42 pm Jenkins Build URL: https://ci.adoptopenjdk.net/job/Test_openjdk18_hs_extended.openjdk_aarch64_linux/26/ TRSS link for the build: https://trss.adoptium.net/allTestsInfo?buildId=622d725f57fa857008d204de

Java Version openjdk version "18" 2022-03-22 OpenJDK Runtime Environment Temurin-18+37 (build 18+37) OpenJDK 64-Bit Server VM Temurin-18+37 (build 18+37, mixed mode, sharing)

This test has been failed 6 times since Jan 29 2022, 06:41 pm Java Version when the issue first seen openjdk version "18" 2022-03-22 OpenJDK Runtime Environment Temurin-18+33 (build 18+33) OpenJDK 64-Bit Server VM Temurin-18+33 (build 18+33, mixed mode, sharing) Jenkins Build URL: https://ci.adoptopenjdk.net/job/Test_openjdk18_hs_extended.openjdk_aarch64_linux/20/

The test failed on machine test-docker-ubuntu1604-armv8l-2 2 times The test failed on machine test-docker-ubuntu1804-armv8l-4 1 times The test failed on machine test-docker-fedora35-armv8l-1 1 times The test failed on machine test-docker-ubuntu2010-armv8l-2 1 times The test failed on machine test-docker-ubuntu1804-armv8l-2 1 times

Rerun in Grinder

sxa commented 1 year ago

Related: #2894

Haroon-Khel commented 9 months ago

Rerunning jdk_net on all arm64 docker nodes

Nodes hosted on:

Haroon-Khel commented 9 months ago

Non intermittent failures:

Hosted on dockerhost-equinix-ubuntu2204-armv8-1

test-docker-ubuntu2204-armv8-2

java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java.HttpURLConnectionExpectContinueTest

16:59:55  FINEST: ProxySelector Request for http://localhost:54321/
16:59:55  Feb 07, 2024 4:57:47 PM sun.net.www.protocol.http.HttpURLConnection plainConnect0
16:59:55  FINEST: Proxy used: DIRECT
16:59:55  Feb 07, 2024 4:57:47 PM sun.net.www.protocol.http.HttpURLConnection writeRequests
16:59:55  FINE: sun.net.www.MessageHeader@402fb34410 pairs: {POST / HTTP/1.1: null}{Connection: Close}{Expect: 100-Continue}{Cache-Control: no-cache}{Pragma: no-cache}{User-Agent: Java/17.0.10}{Host: localhost:54321}{Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2}{Content-type: application/x-www-form-urlencoded}{Transfer-Encoding: chunked}
16:59:55  java.net.SocketTimeoutException: Read timed out
16:59:55    at java.base/sun.nio.ch.NioSocketImpl.timedRead(NioSocketImpl.java:288)
16:59:55    at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:314)
16:59:55    at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:355)
16:59:55    at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:808)

test-docker-debain12-armv8l-1

java/net/ipv6tests/TcpTest.java.TcpTest

17:11:09  connecting to /fe80:0:0:0:42:acff:fe11:9%eth0
17:11:09  binding to /[fe80:0:0:0:42:acff:fe11:9%eth0]:0
17:11:09  connecting to /172.17.0.9
17:11:09  Test2: OK
17:11:09  checkTime: got = 13376 start = 5000 end = 5000
17:11:09  STDERR:
17:11:09  java.lang.RuntimeException: checkTime failed: got 13376, expected between 5000 and 5000
17:11:09    at Tests.checkTime(Tests.java:164)
17:11:09    at Tests.checkTime(Tests.java:155)
17:11:09    at TcpTest.test3(TcpTest.java:203)
17:11:09    at TcpTest.main(TcpTest.java:77)

java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java.HttpURLConnectionExpectContinueTest Same stack trace as above

test-docker-ubuntu2204-armv8-1

TEST: java/net/httpclient/Response204.java
TEST: java/net/httpclient/Response204V2Test.java
TEST: java/net/httpclient/RetryPost.java
TEST: java/net/httpclient/ThrowingSubscribersAsInputStream.java
TEST: java/net/httpclient/ThrowingPublishersInSubscribe.java
TEST: java/net/httpclient/websocket/PendingTextPongClose.java
TEST: java/net/httpclient/ThrowingPublishersInNextRequest.java
TEST: java/net/httpclient/ThrowingPushPromisesAsStringIO.java
TEST: java/net/httpclient/ShortResponseBodyGet.java
TEST: java/net/httpclient/ThrowingPublishersSanity.java
TEST: java/net/httpclient/ThrowingPublishersIOAfterCancel.java
TEST: java/net/httpclient/ThrowingSubscribersAsLines.java
TEST: java/net/httpclient/ThrowingPublishersCustomBeforeCancel.java
TEST: java/net/httpclient/SplitResponseSSL.java
TEST: java/net/httpclient/ThrowingSubscribersAsInputStreamAsync.java
TEST: java/net/httpclient/ShortResponseBodyPostWithRetry.java
TEST: java/net/httpclient/ThrowingPublishersCustomAfterCancel.java
TEST: java/net/httpclient/ThrowingPublishersIOBeforeCancel.java
TEST: java/net/httpclient/ThrowingPushPromisesAsStringCustom.java
TEST: java/net/httpclient/ShortResponseBodyPost.java
TEST: java/net/httpclient/ThrowingPushPromisesAsInputStreamIO.java
TEST: java/net/httpclient/ThrowingPushPromisesAsLinesCustom.java
TEST: java/net/httpclient/ProxySelectorTest.java
TEST: java/net/httpclient/ThrowingPushPromisesSanity.java
TEST: java/net/httpclient/SplitResponseSSLKeepAlive.java
TEST: java/net/httpclient/ThrowingPushPromisesAsInputStreamCustom.java
TEST: java/net/httpclient/ThrowingPublishersInRequest.java
TEST: java/net/httpclient/SmokeTest.java
TEST: java/net/httpclient/RedirectMethodChange.java
TEST: java/net/httpclient/ThrowingPushPromisesAsLinesIO.java
TEST: java/net/httpclient/ProxyAuthDisabledSchemesSSL.java
TEST: java/net/MulticastSocket/MulticastTTL.java
TEST: java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java
TEST: java/net/PortUnreachableException/Concurrent.java
TEST: java/net/NetworkInterface/IndexTest.java

test-docker-ubuntu2204-armv8-3

 java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java.HttpURLConnectionExpectContinueTest
 java/net/ipv6tests/TcpTest.java.TcpTest

Same stack trace as above

Haroon-Khel commented 9 months ago

Non intermitent failures

Hosted on dockerhost-equinix-ubuntu2004-armv8-1

test-docker-ubuntu2204-armv8l-2

java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java.HttpURLConnectionExpectContinueTest Same stack trace as above

java/net/Socket/Timeouts.java.Timeouts

16:37:55  WARNING: System::setSecurityManager will be removed in a future release
16:37:55  STDOUT:
16:37:55  test Timeouts.testBadTimeout1(): success
16:37:55  test Timeouts.testBadTimeout2(): success
16:37:55  test Timeouts.testTimedAccept1(): success
16:37:55  test Timeouts.testTimedAccept10(): success
16:37:55  test Timeouts.testTimedAccept11(): success
16:37:55  test Timeouts.testTimedAccept2(): success
16:37:55  test Timeouts.testTimedAccept3(): success
16:37:55  test Timeouts.testTimedAccept4(): success
16:37:55  test Timeouts.testTimedAccept5(): success
16:37:55  test Timeouts.testTimedAccept6(): success
16:37:55  test Timeouts.testTimedAccept7(): failure
16:37:55  java.lang.AssertionError: Duration 1805ms, expected >= 1900ms expected [true] but found [false]
16:37:55    at org.testng.Assert.fail(Assert.java:99)
16:37:55    at org.testng.Assert.failNotEquals(Assert.java:1037)
16:37:55    at org.testng.Assert.assertTrue(Assert.java:45)
16:37:55    at Timeouts.checkDuration(Timeouts.java:645)
16:37:55    at Timeouts.testTimedAccept7(Timeouts.java:386)

test-docker-ubuntu2004-armv8l-2

java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java.HttpURLConnectionExpectContinueTest Same stack trace as above

test-docker-ubuntu2004-armv8l-3

TEST: java/net/httpclient/Response204.java
TEST: java/net/httpclient/Response204V2Test.java
TEST: java/net/httpclient/RetryPost.java
TEST: java/net/httpclient/ThrowingSubscribersAsInputStream.java
TEST: java/net/httpclient/ThrowingPublishersInSubscribe.java
TEST: java/net/httpclient/websocket/PendingTextPongClose.java
TEST: java/net/httpclient/ThrowingPublishersInNextRequest.java
TEST: java/net/httpclient/ThrowingPushPromisesAsStringIO.java
TEST: java/net/httpclient/ShortResponseBodyGet.java
TEST: java/net/httpclient/ThrowingPublishersSanity.java
TEST: java/net/httpclient/ThrowingPublishersIOAfterCancel.java
TEST: java/net/httpclient/ThrowingSubscribersAsLines.java
TEST: java/net/httpclient/ThrowingPublishersCustomBeforeCancel.java
TEST: java/net/httpclient/SplitResponseSSL.java
TEST: java/net/httpclient/ThrowingSubscribersAsInputStreamAsync.java
TEST: java/net/httpclient/ShortResponseBodyPostWithRetry.java
TEST: java/net/httpclient/ThrowingPublishersCustomAfterCancel.java
TEST: java/net/httpclient/ThrowingPublishersIOBeforeCancel.java
TEST: java/net/httpclient/ThrowingPushPromisesAsStringCustom.java
TEST: java/net/httpclient/ShortResponseBodyPost.java
TEST: java/net/httpclient/ThrowingPushPromisesAsInputStreamIO.java
TEST: java/net/httpclient/ThrowingPushPromisesAsLinesCustom.java
TEST: java/net/httpclient/ProxySelectorTest.java
TEST: java/net/httpclient/ThrowingPushPromisesSanity.java
TEST: java/net/httpclient/SplitResponseSSLKeepAlive.java
TEST: java/net/httpclient/ThrowingPushPromisesAsInputStreamCustom.java
TEST: java/net/httpclient/ThrowingPublishersInRequest.java
TEST: java/net/httpclient/SmokeTest.java
TEST: java/net/httpclient/RedirectMethodChange.java
TEST: java/net/httpclient/ThrowingPushPromisesAsLinesIO.java
TEST: java/net/httpclient/ProxyAuthDisabledSchemesSSL.java
TEST: java/net/MulticastSocket/MulticastTTL.java
TEST: java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java
TEST: java/net/PortUnreachableException/Concurrent.java
TEST: java/net/NetworkInterface/IndexTest.java

test-docker-ubuntu1804-armv8l-4

java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java.HttpURLConnectionExpectContinueTest Same stack trace as above

test-docker-ubuntu2310-armv8l-1

java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java.HttpURLConnectionExpectContinueTest Same stack trace as above

java/net/httpclient/MaxStreams.java.MaxStreams

16:36:37  STDOUT:
16:36:37  config MaxStreams.setup(): success
16:36:37  test MaxStreams.testAsString("http://localhost:57239/http2/fixed"): failure
16:36:37  org.testng.internal.thread.ThreadTimeoutException: Method MaxStreams.testAsString() didn't finish within the time-out 20000
16:36:37    at org.testng.internal.MethodInvocationHelper.invokeWithTimeoutWithNewExecutor(MethodInvocationHelper.java:371)
16:36:37    at org.testng.internal.MethodInvocationHelper.invokeWithTimeout(MethodInvocationHelper.java:282)
16:36:37    at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:605)
16:36:37    at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
16:36:37    at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
16:36:37    at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
16:36:37    at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)

java/net/httpclient/reactivestreams-tck-tests/TckDriver.java.TckDriver

16:38:55  STDOUT:
16:38:55  config org.reactivestreams.tck.PublisherVerification.setUp(): success
16:38:55  test org.reactivestreams.tck.PublisherVerification.optional_spec104_mustSignalOnErrorWhenFails(): skip
16:38:55  org.testng.SkipException: Skipping because no error state Publisher provided, and the test requires it. Please implement PublisherVerification#createFailedPublisher to run this test.
16:38:55    at org.reactivestreams.tck.PublisherVerification.potentiallyPendingTest(PublisherVerification.java:1209)
16:38:55    at org.reactivestreams.tck.PublisherVerification.whenHasErrorPublisherTest(PublisherVerification.java:1198)
16:38:55    at org.reactivestreams.tck.PublisherVerification.optional_spec104_mustSignalOnErrorWhenFails(PublisherVerification.java:373)
16:38:55    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
16:38:55    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
16:38:55    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
16:38:55    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
16:38:55    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
16:38:55    at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)

test-docker-ubuntu2004-armv8l-1

java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java.HttpURLConnectionExpectContinueTest Same stack trace as above

Haroon-Khel commented 9 months ago

The common failure java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java.HttpURLConnectionExpectContinueTest looks like it has an upstream issue https://bugs.openjdk.org/browse/JDK-8314164

sxa commented 3 weeks ago

Needs further investigation and ensure that IPv6 is enabled within the containers.