[
https://issues.apache.org/jira/browse/SLING-10051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17306288#comment-17306288
]
Bertrand Delacretaz commented on SLING-10051:
---------------------------------------------
I don't know much about how these tests are setup but I had quick look at a
[typical test
output|https://ci-builds.apache.org/job/Sling/job/modules/job/sling-org-apache-sling-karaf-integration-tests/job/master/53/consoleFull]
and at the
[KarafTestContainer|https://github.com/ops4j/org.ops4j.pax.exam2/blob/master/containers/pax-exam-container-karaf/src/main/java/org/ops4j/pax/exam/karaf/container/internal/KarafTestContainer.java]
class that's generating many error messages in there, like "Problem starting
container" and "Container never came up".
Looking at that class's source code I'm not sure if Docker comes into play. and
on my box I get similar errors sometimes, and sometimes the tests pass.
One frequent error is "java.rmi.server.ExportException: internal error: ObjID
already in use" which as per
https://stackoverflow.com/questions/6332141/cant-start-rmi-server-after-stopping-it
might be caused by the RMI Registry still being active from the previous test.
I've seen similar cases when testing SLING-9929, where the previous test
environment was not fully cleaned up before starting the next test.
> Stabilize integration tests running on ci-builds
> ------------------------------------------------
>
> Key: SLING-10051
> URL: https://issues.apache.org/jira/browse/SLING-10051
> Project: Sling
> Issue Type: Improvement
> Components: CI, Karaf
> Reporter: Oliver Lietz
> Assignee: Oliver Lietz
> Priority: Major
> Fix For: Karaf Launchpad Integration Tests (Oak Tar) 0.0.12,
> Karaf Integration Tests 1.0.0
>
>
> Integration tests run fine on local system:
> {noformat}
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache Sling - Karaf Configs 0.2.0-SNAPSHOT ........ SUCCESS [ 4.496
> s]
> [INFO] Apache Sling - Karaf Features 0.2.0-SNAPSHOT ....... SUCCESS [ 2.424
> s]
> [INFO] Apache Sling - Karaf Distribution 0.2.0-SNAPSHOT ... SUCCESS [ 28.119
> s]
> [INFO] Apache Sling - Karaf Integration Tests 0.2.0-SNAPSHOT SUCCESS [12:23
> min]
> [INFO] Apache Sling - Karaf Launchpad Integration Tests (Oak Tar)
> 0.0.1-SNAPSHOT SUCCESS [ 01:13 h]
> [INFO] Apache Sling - Karaf Builder 1-SNAPSHOT ............ SUCCESS [ 11.308
> s]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 01:26 h
> [INFO] Finished at: 2021-01-10T14:31:57+01:00
> [INFO]
> ------------------------------------------------------------------------
> {noformat}
> But unstable on ci-builds.apache.org:
> *
> https://ci-builds.apache.org/job/Sling/job/modules/job/sling-org-apache-sling-karaf-integration-tests/job/master/
> *
> https://ci-builds.apache.org/job/Sling/job/modules/job/sling-org-apache-sling-karaf-launchpad-oak-tar-integration-tests/job/master/
--
This message was sent by Atlassian Jira
(v8.3.4#803005)