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

Test ScriptProfileTest.filteredTimeSeriesTest failing systematically (org.openhab.core.automation.module.script) #4391

Open
lolodomo opened this issue Sep 28, 2024 · 0 comments
Labels
bug An unexpected problem or unintended behavior of the Core

Comments

@lolodomo
Copy link
Contributor

When I build the core framework locally on my PC Windows 10, I have systematically this error:

[INFO] --- maven-surefire-plugin:3.2.5:test (default-test) @ org.openhab.core.automation.module.script ---
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO]
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.openhab.core.automation.module.script.internal.ScriptEngineManagerImplTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.940 s -- in org.openhab.core.automation.module.script.internal.ScriptEngineManagerImplTest
[INFO] Running org.openhab.core.automation.module.script.profile.ScriptProfileTest
[main] WARN  o.o.c.a.m.s.profile.ScriptProfile - 'toHandlerScript' has been deprecated! Please use 'commandFromItemScript' instead in link 'null'.
[main] ERROR o.o.c.a.m.s.profile.ScriptProfile - Neither 'toItemScript', 'commandFromItemScript' nor 'stateFromItemScript' defined in link 'DummyItem -> foo:bar:baz:qux'. Profile will discard all states and commands.
[main] WARN  o.o.c.a.m.s.profile.ScriptProfile - 'toHandlerScript' has been deprecated! Please use 'commandFromItemScript' instead in link 'DummyItem -> foo:bar:baz:qux'.
[main] ERROR o.o.c.a.m.s.profile.ScriptProfile - Failed to process script 'inScript': intentional failure
[main] ERROR o.o.c.a.m.s.profile.ScriptProfile - Failed to process script 'inScript': intentional failure
[main] ERROR o.o.c.a.m.s.profile.ScriptProfile - Failed to process script 'outScript': intentional failure
[main] ERROR o.o.c.a.m.s.profile.ScriptProfile - Failed to process script 'outScript': intentional failure
[main] ERROR o.o.c.a.m.s.profile.ScriptProfile - Failed to process script 'inScript': intentional failure
[ERROR] Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.153 s <<< FAILURE! -- in org.openhab.core.automation.module.script.profile.ScriptProfileTest
[ERROR] org.openhab.core.automation.module.script.profile.ScriptProfileTest.filteredTimeSeriesTest -- Time elapsed: 0.015 s <<< FAILURE!
org.mockito.exceptions.verification.TooFewActualInvocations:

transformationServiceMock.transform(
    <any>,
    <any>
);
Wanted 3 times:
-> at org.openhab.core.automation.module.script.profile.ScriptProfileTest.filteredTimeSeriesTest(ScriptProfileTest.java:348)
But was 1 time:
-> at org.openhab.core.automation.module.script.profile.ScriptProfile.executeScript(ScriptProfile.java:185)

        at org.openhab.core.automation.module.script.profile.ScriptProfileTest.filteredTimeSeriesTest(ScriptProfileTest.java:348)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

[INFO] Running org.openhab.core.automation.module.script.ScriptTransformationServiceTest
[main] WARN  o.o.c.a.m.s.ScriptTransformationService - Parameter 'invalid' does not consist of two parts for configuration UID scriptUid.customDsl, skipping.
[INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.131 s -- in org.openhab.core.automation.module.script.ScriptTransformationServiceTest
[INFO] Running org.openhab.core.automation.module.script.TimerImplTest
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 27.07 s -- in org.openhab.core.automation.module.script.TimerImplTest
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR]   ScriptProfileTest.filteredTimeSeriesTest:348
transformationServiceMock.transform(
    <any>,
    <any>
);
Wanted 3 times:
-> at org.openhab.core.automation.module.script.profile.ScriptProfileTest.filteredTimeSeriesTest(ScriptProfileTest.java:348)
But was 1 time:
-> at org.openhab.core.automation.module.script.profile.ScriptProfile.executeScript(ScriptProfile.java:185)

[INFO]
[ERROR] Tests run: 26, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  42.701 s
[INFO] Finished at: 2024-09-28T12:30:02+02:00
[INFO] ------------------------------------------------------------------------
@lolodomo lolodomo added the bug An unexpected problem or unintended behavior of the Core label Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of the Core
Projects
None yet
Development

No branches or pull requests

1 participant