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

[systeminfo] SysteminfoOSGiTest unstable #13524

Open
wborn opened this issue Oct 9, 2022 · 4 comments
Open

[systeminfo] SysteminfoOSGiTest unstable #13524

wborn opened this issue Oct 9, 2022 · 4 comments
Labels

Comments

@wborn
Copy link
Member

wborn commented Oct 9, 2022

This test failed in: https://github.com/openhab/openhab-addons/actions/runs/3213563417/jobs/5253323286

TEST org.openhab.binding.systeminfo.test.SysteminfoOSGiTest#assertMediumPriorityChannelIsUpdated() <<< ERROR: 
Expected: is <UNDEF>
     but: was <NULL>
java.lang.AssertionError: 
Expected: is <UNDEF>
     but: was <NULL>
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
	at org.openhab.binding.systeminfo.test.SysteminfoOSGiTest.lambda$4(SysteminfoOSGiTest.java:267)
	at org.openhab.core.test.java.JavaTest.waitForAssert(JavaTest.java:245)
	at org.openhab.core.test.java.JavaTest.waitForAssert(JavaTest.java:213)
	at org.openhab.core.test.java.JavaTest.waitForAssert(JavaTest.java:177)
	at org.openhab.binding.systeminfo.test.SysteminfoOSGiTest.assertItemState(SysteminfoOSGiTest.java:265)
	at org.openhab.binding.systeminfo.test.SysteminfoOSGiTest.assertMediumPriorityChannelIsUpdated(SysteminfoOSGiTest.java:336)

This test failed in: https://github.com/openhab/openhab-addons/actions/runs/3195031635/jobs/5215227925

TEST org.openhab.binding.systeminfo.test.SysteminfoOSGiTest#assertChannelCpuDescriptionIsUpdated() <<< ERROR: 
Expected: is <Mocked Cpu Descr>
     but: was <NULL>
java.lang.AssertionError: 
Expected: is <Mocked Cpu Descr>
     but: was <NULL>
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
	at org.openhab.binding.systeminfo.test.SysteminfoOSGiTest.lambda$4(SysteminfoOSGiTest.java:267)
	at org.openhab.core.test.java.JavaTest.waitForAssert(JavaTest.java:245)
	at org.openhab.core.test.java.JavaTest.waitForAssert(JavaTest.java:213)
	at org.openhab.core.test.java.JavaTest.waitForAssert(JavaTest.java:177)
	at org.openhab.binding.systeminfo.test.SysteminfoOSGiTest.assertItemState(SysteminfoOSGiTest.java:265)
	at org.openhab.binding.systeminfo.test.SysteminfoOSGiTest.assertChannelCpuDescriptionIsUpdated(SysteminfoOSGiTest.java:431)
@wborn
Copy link
Member Author

wborn commented Dec 4, 2022

Can you have a look at this @svilenvul?

@mherwege
Copy link
Contributor

@wborn @svilenvul Is this still an issue after the #13562 merge?

Note there is a follow-up PR #13804 intended to convert the channels to QuantityType that will also include changes to the tests. However, I am struggling there to make Number:DataAmount conversions work. See also #13709. I didn’t figure out what is wrong and I don’t think it is binding dependent. Unit conversions with DataAmount seem to fail.

@jlaur
Copy link
Contributor

jlaur commented Dec 18, 2022

@mherwege
Copy link
Contributor

@jlaur In that same run, also the ntp test fails. The nest test seems to generate an error, but it is then swallowed by the test and not returned as a failure.
I have the impression there are timing issues with all of these. The tests will wait for something to get a specific value, but will time out of this does not happen, evidenced by the value being null. We could lengthen the timeout, but I am not sure this is the right thing to do.

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

No branches or pull requests

3 participants