[jira] Commented: (SLING-2001) Sample Integration tests are failing

2011-02-28 Thread Bertrand Delacretaz (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-2001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13000334#comment-13000334
 ] 

Bertrand Delacretaz commented on SLING-2001:


A full build of the testing subtree on revision 1075373 with 

Apache Maven 3.0.2 (r1056850; 2011-01-09 01:58:10+0100)
Java version: 1.5.0_19, vendor: Apple Inc.

works for me, can you try again (it failed earlier this afternoon), can you try 
again with this revision?

 Sample Integration tests are failing
 

 Key: SLING-2001
 URL: https://issues.apache.org/jira/browse/SLING-2001
 Project: Sling
  Issue Type: Bug
  Components: Testing
 Environment: $ mvn -v
 Apache Maven 3.0.2 (r1056850; 2011-01-09 01:58:10+0100)
 Java version: 1.5.0_21, vendor: Sun Microsystems Inc.
 Java home: /usr/java/jdk1.5.0_21/jre
 Default locale: de_CH, platform encoding: UTF-8
 OS name: linux, version: 2.6.35-25-generic, arch: amd64, family: unix
Reporter: Felix Meschberger
 Attachments: 
 org.apache.sling.testing.samples.testtools.http.OsgiConsoleTest.txt, 
 org.apache.sling.testing.samples.testtools.serverside.FailingTestsTest.txt, 
 org.apache.sling.testing.samples.testtools.serverside.JSONResponseTest.txt, 
 org.apache.sling.testing.samples.testtools.serverside.ServerSideSampleTest.txt,
  
 org.apache.sling.testing.samples.testtools.serverside.SingleServerSideMethodTest.txt


 Running a trunk build aborts in the Sample Integration tests:
 Failed tests: 
   
 initializationError(org.apache.sling.testing.samples.testtools.serverside.ServerSideSampleTest)
   
 testWithRetries(org.apache.sling.testing.samples.testtools.serverside.JSONResponseTest)
   
 testSomeConsolePaths(org.apache.sling.testing.samples.testtools.http.OsgiConsoleTest)
   
 initializationError(org.apache.sling.testing.samples.testtools.serverside.SingleServerSideMethodTest)
   
 testFailures(org.apache.sling.testing.samples.testtools.serverside.FailingTestsTest)
 Will attach the surefire data files

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (SLING-2001) Sample Integration tests are failing

2011-02-28 Thread Bertrand Delacretaz (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-2001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13000357#comment-13000357
 ] 

Bertrand Delacretaz commented on SLING-2001:


Might be a timing problem: the test code installs and starts 5 additional 
bundles one after the other, without considering their dependencies. 

If the junit core bundle is installed last, for example, the others will not 
start.

If that hypothesis is right, I'll need to either loop starting all newly 
installed bundles until they all start, or consider their dependencies when 
installing them.

 Sample Integration tests are failing
 

 Key: SLING-2001
 URL: https://issues.apache.org/jira/browse/SLING-2001
 Project: Sling
  Issue Type: Bug
  Components: Testing
 Environment: $ mvn -v
 Apache Maven 3.0.2 (r1056850; 2011-01-09 01:58:10+0100)
 Java version: 1.5.0_21, vendor: Sun Microsystems Inc.
 Java home: /usr/java/jdk1.5.0_21/jre
 Default locale: de_CH, platform encoding: UTF-8
 OS name: linux, version: 2.6.35-25-generic, arch: amd64, family: unix
Reporter: Felix Meschberger
 Attachments: 
 org.apache.sling.testing.samples.testtools.http.OsgiConsoleTest.txt, 
 org.apache.sling.testing.samples.testtools.serverside.FailingTestsTest.txt, 
 org.apache.sling.testing.samples.testtools.serverside.JSONResponseTest.txt, 
 org.apache.sling.testing.samples.testtools.serverside.ServerSideSampleTest.txt,
  
 org.apache.sling.testing.samples.testtools.serverside.SingleServerSideMethodTest.txt


 Running a trunk build aborts in the Sample Integration tests:
 Failed tests: 
   
 initializationError(org.apache.sling.testing.samples.testtools.serverside.ServerSideSampleTest)
   
 testWithRetries(org.apache.sling.testing.samples.testtools.serverside.JSONResponseTest)
   
 testSomeConsolePaths(org.apache.sling.testing.samples.testtools.http.OsgiConsoleTest)
   
 initializationError(org.apache.sling.testing.samples.testtools.serverside.SingleServerSideMethodTest)
   
 testFailures(org.apache.sling.testing.samples.testtools.serverside.FailingTestsTest)
 Will attach the surefire data files

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (SLING-2001) Sample Integration tests are failing

2011-02-28 Thread Bertrand Delacretaz (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-2001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13000365#comment-13000365
 ] 

Bertrand Delacretaz commented on SLING-2001:


It's a bundle ordering problem actually, added sorting of additional bundles to 
install in revision 1075401

With the reverse sort the tests fail on my macos box, so I guess that's what 
happened on Felix's linux box.

Revision 1075401 should work on your box as well but that's by chance, as 
ordering the bundles by name in our case causes junit.core to be installed 
first.

I'll add some code to loop starting all bundles after they are all installed, 
to make sure this works whatever the inter-bundles dependencies are.

 Sample Integration tests are failing
 

 Key: SLING-2001
 URL: https://issues.apache.org/jira/browse/SLING-2001
 Project: Sling
  Issue Type: Bug
  Components: Testing
 Environment: $ mvn -v
 Apache Maven 3.0.2 (r1056850; 2011-01-09 01:58:10+0100)
 Java version: 1.5.0_21, vendor: Sun Microsystems Inc.
 Java home: /usr/java/jdk1.5.0_21/jre
 Default locale: de_CH, platform encoding: UTF-8
 OS name: linux, version: 2.6.35-25-generic, arch: amd64, family: unix
Reporter: Felix Meschberger
 Attachments: 
 org.apache.sling.testing.samples.testtools.http.OsgiConsoleTest.txt, 
 org.apache.sling.testing.samples.testtools.serverside.FailingTestsTest.txt, 
 org.apache.sling.testing.samples.testtools.serverside.JSONResponseTest.txt, 
 org.apache.sling.testing.samples.testtools.serverside.ServerSideSampleTest.txt,
  
 org.apache.sling.testing.samples.testtools.serverside.SingleServerSideMethodTest.txt


 Running a trunk build aborts in the Sample Integration tests:
 Failed tests: 
   
 initializationError(org.apache.sling.testing.samples.testtools.serverside.ServerSideSampleTest)
   
 testWithRetries(org.apache.sling.testing.samples.testtools.serverside.JSONResponseTest)
   
 testSomeConsolePaths(org.apache.sling.testing.samples.testtools.http.OsgiConsoleTest)
   
 initializationError(org.apache.sling.testing.samples.testtools.serverside.SingleServerSideMethodTest)
   
 testFailures(org.apache.sling.testing.samples.testtools.serverside.FailingTestsTest)
 Will attach the surefire data files

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (SLING-2001) Sample Integration tests are failing

2011-02-28 Thread Bertrand Delacretaz (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-2001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13000386#comment-13000386
 ] 

Bertrand Delacretaz commented on SLING-2001:


In revision 1075415 the additional bundles under test are installed in a 
defined order, set in the pom, where they are defined anyway.

Assuming the webconsole starts a bundle synchronously when it's installed by a 
POST with bundlestart=true (Felix, can you confirm that?) this should now work 
in all environments.

Please cross-check and close this issue if ok.

 Sample Integration tests are failing
 

 Key: SLING-2001
 URL: https://issues.apache.org/jira/browse/SLING-2001
 Project: Sling
  Issue Type: Bug
  Components: Testing
 Environment: $ mvn -v
 Apache Maven 3.0.2 (r1056850; 2011-01-09 01:58:10+0100)
 Java version: 1.5.0_21, vendor: Sun Microsystems Inc.
 Java home: /usr/java/jdk1.5.0_21/jre
 Default locale: de_CH, platform encoding: UTF-8
 OS name: linux, version: 2.6.35-25-generic, arch: amd64, family: unix
Reporter: Felix Meschberger
 Attachments: 
 org.apache.sling.testing.samples.testtools.http.OsgiConsoleTest.txt, 
 org.apache.sling.testing.samples.testtools.serverside.FailingTestsTest.txt, 
 org.apache.sling.testing.samples.testtools.serverside.JSONResponseTest.txt, 
 org.apache.sling.testing.samples.testtools.serverside.ServerSideSampleTest.txt,
  
 org.apache.sling.testing.samples.testtools.serverside.SingleServerSideMethodTest.txt


 Running a trunk build aborts in the Sample Integration tests:
 Failed tests: 
   
 initializationError(org.apache.sling.testing.samples.testtools.serverside.ServerSideSampleTest)
   
 testWithRetries(org.apache.sling.testing.samples.testtools.serverside.JSONResponseTest)
   
 testSomeConsolePaths(org.apache.sling.testing.samples.testtools.http.OsgiConsoleTest)
   
 initializationError(org.apache.sling.testing.samples.testtools.serverside.SingleServerSideMethodTest)
   
 testFailures(org.apache.sling.testing.samples.testtools.serverside.FailingTestsTest)
 Will attach the surefire data files

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira