adoptium / infrastructure

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

(sleep/coreutils) java/lang/ProcessHandle/InfoTest.java in jdk_lang fails on test-docker-centos8-x64-2 #2886

Open smlambert opened 1 year ago

smlambert commented 1 year ago

java/lang/ProcessHandle/InfoTest.java in jdk_lang fails on test-docker-centos8-x64-2 with java.lang.AssertionError: Command: expected: 'sleep', actual: /usr/bin/coreutils expected [true] but found [false]

12:50:03  test InfoTest.test3(): failure
12:50:03  java.lang.AssertionError: Command: expected: 'sleep', actual: /usr/bin/coreutils expected [true] but found [false]
12:50:03    at org.testng.Assert.fail(Assert.java:99)
12:50:03    at org.testng.Assert.failNotEquals(Assert.java:1037)
12:50:03    at org.testng.Assert.assertTrue(Assert.java:45)
12:50:03    at InfoTest.test3(InfoTest.java:309)
12:50:03    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:50:03    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
12:50:03    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
12:50:03    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
12:50:03    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
12:50:03    at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
12:50:03    at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
12:50:03    at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
12:50:03    at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
12:50:03    at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
12:50:03    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
12:50:03    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
12:50:03    at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
12:50:03    at org.testng.TestRunner.privateRun(TestRunner.java:764)
12:50:03    at org.testng.TestRunner.run(TestRunner.java:585)
12:50:03    at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
12:50:03    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
12:50:03    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
12:50:03    at org.testng.SuiteRunner.run(SuiteRunner.java:286)
12:50:03    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
12:50:03    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
12:50:03    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
12:50:03    at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
12:50:03    at org.testng.TestNG.runSuites(TestNG.java:1069)
12:50:03    at org.testng.TestNG.run(TestNG.java:1037)
12:50:03    at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
12:50:03    at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
12:50:03    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:50:03    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
12:50:03    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
12:50:03    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
12:50:03    at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
12:50:03    at java.base/java.lang.Thread.run(Thread.java:833)

Test Info Test Name: jdk_lang_0 Test Duration: 18 min 30 sec Machine: test-docker-centos8-x64-2 TRSS link for the test output: https://trss.adoptium.net/output/test?id=63c48eb7ed0b30773bb0d66f

Build Info Build Name: Test_openjdk17_hs_sanity.openjdk_x86-64_linux Jenkins Build start time: Jan 15 2023, 12:36 pm Jenkins Build URL: https://ci.adoptopenjdk.net/job/Test_openjdk17_hs_sanity.openjdk_x86-64_linux/264/ TRSS link for the build: https://trss.adoptium.net/allTestsInfo?buildId=63c48defed0b30773bb0d3de

Java Version openjdk version "17.0.6" 2023-01-17 OpenJDK Runtime Environment Temurin-17.0.6+8 (build 17.0.6+8) OpenJDK 64-Bit Server VM Temurin-17.0.6+8 (build 17.0.6+8, mixed mode, sharing)

Rerun in Grinder

Haroon-Khel commented 1 year ago

If im reading the output right, it is expecting to find coreutils?

In test-docker-centos8-x64-2

[root@6970e9fbf0aa ~]# which coreutils
/usr/bin/coreutils
[root@6970e9fbf0aa ~]# which sleep
/usr/bin/sleep
Haroon-Khel commented 1 year ago

Related https://github.com/clearlinux/distribution/issues/1142

Haroon-Khel commented 1 year ago

Rerunning https://ci.adoptopenjdk.net/job/Grinder/6343/console

Haroon-Khel commented 1 year ago

Taking https://ci.adoptopenjdk.net/computer/test-docker-centos8-x64-2/ offline until after release

sxa commented 1 year ago

Since CentOS8 is no longer supported, the correct action here is to decomission that system in preference for any avaiable UBI/RHEL8 systems

Haroon-Khel commented 9 months ago

Rerunning on ubi8 machines since

https://ci.adoptium.net/job/Grinder/8749/console test-docker-ubi8-x64-1

https://ci.adoptium.net/job/Grinder/8750/console test-docker-ubi8-x64-2

sxa commented 8 months ago

Noting that CentOS and UBI containers seem to use the small wrapper around coreutils by default, RHEL and Fedora do not. @Haroon-Khel Do you recall the result of the two UBI Grinders above?

jiekang commented 8 months ago

For any interested parties, an upstream fix with a special case for these environments can be done here:

https://github.com/openjdk/jdk/blob/5f2a92d954ce485d372c3cb3e5118556b1d076c3/test/jdk/java/lang/ProcessHandle/InfoTest.java#L294

sxa commented 1 day ago

Adjusted title so I recognise which issue this is ;-)