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

TestGetSystemCpuLoad - unexpected error value expected:<-1.0> but was:<-21.0> #18634

Open
pshipton opened this issue Dec 15, 2023 · 3 comments
Open

Comments

@pshipton
Copy link
Member

https://openj9-jenkins.osuosl.org/job/Test_openjdk11_j9_extended.functional_s390x_linux_Nightly_testList_0/675/
https://openj9-jenkins.osuosl.org/job/Test_openjdk11_j9_extended.functional_s390x_linux_Nightly_testList_1/674/
https://openj9-jenkins.osuosl.org/job/Test_openjdk11_j9_extended.functional_ppc64_aix_Nightly_testList_0/645
https://openj9-jenkins.osuosl.org/job/Test_openjdk11_j9_extended.functional_ppc64_aix_Nightly_testList_1/645/
https://openj9-jenkins.osuosl.org/job/Test_openjdk11_j9_extended.functional_aarch64_mac_Nightly_testList_1/397/
https://openj9-jenkins.osuosl.org/job/Test_openjdk11_j9_extended.functional_aarch64_linux_Nightly_testList_1/562
testCpuUtilization_testSingleCpuLoadObject_0

FAILED: testSingleCpuLoadObject
java.lang.AssertionError: unexpected error value expected:<-1.0> but was:<-21.0>
	at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
	at org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:364)
	at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:126)
	at org.openj9.test.management.TestGetSystemCpuLoad.validateLoad(TestGetSystemCpuLoad.java:119)
	at org.openj9.test.management.TestGetSystemCpuLoad.testMxBeanImpl(TestGetSystemCpuLoad.java:74)
	at org.openj9.test.management.TestGetSystemCpuLoad.testSingleCpuLoadObject(TestGetSystemCpuLoad.java:50)

testCpuUtilization_testMxBean_0

FAILED: testMxBean
java.lang.AssertionError: unexpected error value expected:<-1.0> but was:<-21.0>
	at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
	at org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:364)
	at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:126)
	at org.openj9.test.management.TestGetSystemCpuLoad.validateLoad(TestGetSystemCpuLoad.java:119)
	at org.openj9.test.management.TestGetSystemCpuLoad.testMxBeanImpl(TestGetSystemCpuLoad.java:74)
	at org.openj9.test.management.TestGetSystemCpuLoad.testMxBean(TestGetSystemCpuLoad.java:65)
@pshipton
Copy link
Member Author

pshipton commented Dec 15, 2023

Related to #18451
@TobiAjila @thallium

OMRPORT_ERROR_INSUFFICIENT_DATA is -21

I don't think returning -21 is the expected behavior. I'm going to revert the change to avoid failing builds until it can be fixed.

This is only failing on jdk11 last night because the other builds started before the change was merged.

@pshipton
Copy link
Member Author

Reverted via #18635

@thallium
Copy link
Contributor

I fixed the PR to return -1 if only one data point is recorded.

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

2 participants