[
https://issues.apache.org/jira/browse/SLING-6088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15538991#comment-15538991
]
Oliver Lietz commented on SLING-6088:
-------------------------------------
[~rombert], HC is required:
{noformat}
<feature name="sling-extension-distribution" version="${feature.version}">
<bundle>mvn:org.apache.sling/org.apache.sling.distribution.api/0.3.0</bundle>
<bundle>mvn:org.apache.sling/org.apache.sling.distribution.core/0.1.18</bundle>
<!-- dependencies -->
<feature version="${feature.version}">sling</feature>
<feature version="${feature.version}">sling-jcr</feature>
<feature version="${feature.version}">sling-extension-event</feature>
<feature version="${feature.version}">sling-extension-healthcheck</feature>
<bundle
dependency="true">mvn:org.apache.httpcomponents/httpcore-osgi/4.4.5</bundle>
<bundle
dependency="true">mvn:org.apache.httpcomponents/httpclient-osgi/4.5.2</bundle>
<bundle
dependency="true">mvn:org.apache.jackrabbit.vault/org.apache.jackrabbit.vault/3.1.26</bundle>
</feature>
{noformat}
> Distribution ITs fail on Jenkins
> --------------------------------
>
> Key: SLING-6088
> URL: https://issues.apache.org/jira/browse/SLING-6088
> Project: Sling
> Issue Type: Bug
> Components: Extensions
> Environment: Jenkins
> Reporter: Robert Munteanu
>
> The tests give up after 60 seconds:
> {noformat}
> 60433 [main] INFO org.apache.sling.testing.tools.sling.SlingTestBase - Server
> not ready after 60 seconds, giving up
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 60.479 sec
> <<< FAILURE! - in
> org.apache.sling.distribution.it.DistributionPackageExporterImporterTemporaryFoldersTest
> testAddExportImportTemp(org.apache.sling.distribution.it.DistributionPackageExporterImporterTemporaryFoldersTest)
> Time elapsed: 0.006 sec <<< FAILURE!
> java.lang.AssertionError: Server not ready after 60 seconds, giving up
> at org.junit.Assert.fail(Assert.java:88)
> at
> org.apache.sling.testing.tools.sling.SlingTestBase.waitForServerReady(SlingTestBase.java:326)
> at
> org.apache.sling.testing.tools.sling.SlingTestBase.startServerIfNeeded(SlingTestBase.java:169)
> at
> org.apache.sling.testing.tools.sling.SlingTestBase.getServerBaseUrl(SlingTestBase.java:231)
> at
> org.apache.sling.distribution.it.DistributionIntegrationTestBase.init(DistributionIntegrationTestBase.java:87)
> at
> org.apache.sling.distribution.it.DistributionIntegrationTestBase.<init>(DistributionIntegrationTestBase.java:63)
> at
> org.apache.sling.distribution.it.DistributionIntegrationTestBase.<init>(DistributionIntegrationTestBase.java:59)
> at
> org.apache.sling.distribution.it.DistributionPackageExporterImporterTemporaryFoldersTest.<init>(DistributionPackageExporterImporterTemporaryFoldersTest.java:36){noformat}
> The only relevant snippet that I can find in the logs is related to the
> health check bundles:
> {noformat}01.10.2016 18:09:51.724 *ERROR* [FelixDispatchQueue]
> org.apache.sling.hc.webconsole FrameworkEvent ERROR
> (org.osgi.framework.BundleException: Unable to resolve
> org.apache.sling.hc.webconsole [114](R 114.0): missing requirement
> [org.apache.sling.hc.webconsole [114](R 114.0)] osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.sling.hc.api.execution)(version>=1.1.0)(!(version>=2.0.0)))
> Unresolved requirements: [[org.apache.sling.hc.webconsole [114](R 114.0)]
> osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.sling.hc.api.execution)(version>=1.1.0)(!(version>=2.0.0)))])
> org.osgi.framework.BundleException: Unable to resolve
> org.apache.sling.hc.webconsole [114](R 114.0): missing requirement
> [org.apache.sling.hc.webconsole [114](R 114.0)] osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.sling.hc.api.execution)(version>=1.1.0)(!(version>=2.0.0)))
> Unresolved requirements: [[org.apache.sling.hc.webconsole [114](R 114.0)]
> osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.sling.hc.api.execution)(version>=1.1.0)(!(version>=2.0.0)))]
> at
> org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111)
> at org.apache.felix.framework.Felix.startBundle(Felix.java:2117)
> at
> org.apache.felix.framework.Felix$RefreshHelper.restart(Felix.java:5063)
> at org.apache.felix.framework.Felix.refreshPackages(Felix.java:4253)
> at
> org.apache.felix.framework.FrameworkWiringImpl.run(FrameworkWiringImpl.java:188)
> at java.lang.Thread.run(Thread.java:745){noformat}
> but I'm not sure that this leads to the test failures.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)