Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
smlambert opened this issue Jan 16, 2023 · 8 comments

Comments

@smlambert
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

Related clearlinux/distribution#1142

@Haroon-Khel
Copy link
Contributor

@Haroon-Khel
Copy link
Contributor

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

@sxa
Copy link
Member

sxa commented Apr 3, 2023

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
Copy link
Contributor

Haroon-Khel commented Feb 7, 2024

@sxa
Copy link
Member

sxa commented Mar 19, 2024

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
Copy link

jiekang commented Mar 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants