Jenkis build on PR of openhab-core stops unexpected. How to handle this?

Dear Community,

I’ve tried to send in a pull request onto the openhab-core project but struggle with the jenkins build. The jenkins build stops somewhere along the integration tests. The logs just shows, that the stream was closed.

The last maven output of the build looks like this:

[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ org.openhab.core.automation.integration.tests ---
[INFO] Installing /home/jenkins/jenkins-agent1/workspace/PR-openHAB-Core/itests/org.openhab.core.automation.integration.tests/target/org.openhab.core.automation.integration.tests-3.1.0-SNAPSHOT.jar to /home/jenkins/jenkins-agent1/maven-repositories/1/org/openhab/core/itests/org.openhab.core.automation.integration.tests/3.1.0-SNAPSHOT/org.openhab.core.automation.integration.tests-3.1.0-SNAPSHOT.jar
[INFO] Installing /home/jenkins/jenkins-agent1/workspace/PR-openHAB-Core/itests/org.openhab.core.automation.integration.tests/pom.xml to /home/jenkins/jenkins-agent1/maven-repositories/1/org/openhab/core/itests/org.openhab.core.automation.integration.tests/3.1.0-SNAPSHOT/org.openhab.core.automation.integration.tests-3.1.0-SNAPSHOT.pom

This is the part from the reactor summary following:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for openHAB Core 3.1.0-SNAPSHOT:
[INFO] 
[INFO] openHAB Core ....................................... SUCCESS [ 10.536 s]
[INFO] openHAB Core :: BOM ................................ SUCCESS [  0.519 s]

...

[INFO] openHAB Core :: Integration Tests :: Automation Integration Tests SUCCESS [ 34.057 s]
[INFO] openHAB Core :: Integration Tests :: Binding XML Tests SUCCESS [ 16.059 s]
[INFO] openHAB Core :: Integration Tests :: Configuration Core Tests FAILURE [  2.616 s]
[INFO] openHAB Core :: Integration Tests :: Configuration mDNS Discovery Tests SUCCESS [ 11.745 s]
[INFO] openHAB Core :: Integration Tests :: Configuration Discovery Tests SKIPPED
[INFO] openHAB Core :: Integration Tests :: Configuration Discovery UsbSerial Tests SKIPPED
[INFO] openHAB Core :: Integration Tests :: Configuration Dispatcher Tests SKIPPED

. . .

And the error reported by maven:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  17:26 min (Wall Clock)
[INFO] Finished at: 2021-01-09T01:05:15Z
[INFO] ------------------------------------------------------------------------
[INFO] Static code analysis summary report is available in:
[INFO] file:/home/jenkins/jenkins-agent1/workspace/PR-openHAB-Core/target/summary_report.html
[ERROR] Failed to execute goal biz.aQute.bnd:bnd-testing-maven-plugin:5.1.2:testing (default) on project org.openhab.core.config.core.tests: Stream closed -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :org.openhab.core.config.core.tests
channel stopped
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level /home/jenkins/jenkins-agent1/workspace/PR-openHAB-Core/target to /var/jenkins_home/jobs/PR-openHAB-Core/builds/3008/htmlreports/Static_20Code_20Analysis_20Report
Finished: FAILURE

Does this indicate some kind of timeout or something got wrong outside the build? I’m kinda lost here. What are your proposals to handle this build failure?

If you want to look for yourself, link to console output of the build is here:

Yes unfortunately the tests are still a bit unstable.
I re-triggered the build on your PR (openhab-core#2089) and now it succeeded! :slight_smile:

2 Likes