Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-20878

Fix TestRenditionService teardown logic

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.10-SNAPSHOT
    • Fix Version/s: 8.10
    • Component/s: Renditions

      Description

      The TestRenditionService tests fail randomly due to an error at test tear down:

      https://qa.nuxeo.org/jenkins/job/master/job/nuxeo-master-fullbuild-daily/162/
      shouldNotScheduleRedundantLazyRenditionBuilderWorks

      Stacktrace
      
      java.lang.AssertionError
      	at org.junit.Assert.fail(Assert.java:86)
      	at org.junit.Assert.assertTrue(Assert.java:41)
      	at org.junit.Assert.assertTrue(Assert.java:52)
      	at org.nuxeo.ecm.platform.rendition.service.TestRenditionService.shouldNotScheduleRedundantLazyRenditionBuilderWorks(TestRenditionService.java:939)
      
      Standard Output
      
      06:48:07,776 ERROR [CoreFeature] Unable to reset repository
      org.nuxeo.ecm.core.api.DocumentSecurityException: Permission denied: cannot remove document 1248638e-f517-4659-a6eb-a9ecb238cc06, Working copy cb55c3ed-836d-40b7-851d-d75c40818ff6 is checked in with base version 1248638e-f517-4659-a6eb-a9ecb238cc06
      	at org.nuxeo.ecm.core.api.AbstractSession.removeDocument(AbstractSession.java:1328)
      	at org.nuxeo.ecm.core.api.AbstractSession.removeDocuments(AbstractSession.java:1401)
      	at org.nuxeo.ecm.core.test.CoreFeature.batchRemoveDocuments(CoreFeature.java:326)
      	at org.nuxeo.ecm.core.test.CoreFeature.batchRemoveDocuments(CoreFeature.java:321)
      	at org.nuxeo.ecm.core.test.CoreFeature.cleanupSession(CoreFeature.java:290)
      	at org.nuxeo.ecm.core.test.CoreFeature.afterTeardown(CoreFeature.java:255)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner$9.call(FeaturesRunner.java:231)
      	at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:126)
      	at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:113)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner.afterTeardown(FeaturesRunner.java:227)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterTeardownStatement.evaluate(FeaturesRunner.java:414)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:525)
      	at org.nuxeo.runtime.test.runner.RuntimeDeployment$DeploymentStatement.evaluate(RuntimeDeployment.java:270)
      	at org.nuxeo.runtime.test.runner.RuntimeFeature$2$1.evaluate(RuntimeFeature.java:124)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      

      https://qa.nuxeo.org/jenkins/job/master/job/nuxeo-master-fullbuild-daily/164/

      shouldStoreRenditionByDefault

      Stacktrace
      
      java.lang.AssertionError
      	at org.junit.Assert.fail(Assert.java:86)
      	at org.junit.Assert.assertTrue(Assert.java:41)
      	at org.junit.Assert.assertFalse(Assert.java:64)
      	at org.junit.Assert.assertFalse(Assert.java:74)
      	at org.nuxeo.ecm.platform.rendition.service.TestRenditionService.shouldStoreRenditionByDefault(TestRenditionService.java:711)
      
      Standard Output
      
      15:53:42,257 ERROR [CoreFeature] Unable to reset repository
      org.nuxeo.ecm.core.api.DocumentSecurityException: Permission denied: cannot remove document ada3f458-a798-4f18-930c-7d164beba748, Working copy 0469e7b6-03f8-441b-aeb6-458cc89a508e is checked in with base version ada3f458-a798-4f18-930c-7d164beba748
      	at org.nuxeo.ecm.core.api.AbstractSession.removeDocument(AbstractSession.java:1328)
      	at org.nuxeo.ecm.core.api.AbstractSession.removeDocuments(AbstractSession.java:1401)
      	at org.nuxeo.ecm.core.test.CoreFeature.batchRemoveDocuments(CoreFeature.java:326)
      	at org.nuxeo.ecm.core.test.CoreFeature.batchRemoveDocuments(CoreFeature.java:321)
      	at org.nuxeo.ecm.core.test.CoreFeature.cleanupSession(CoreFeature.java:290)
      	at org.nuxeo.ecm.core.test.CoreFeature.afterTeardown(CoreFeature.java:255)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner$9.call(FeaturesRunner.java:231)
      	at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:126)
      	at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:113)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner.afterTeardown(FeaturesRunner.java:227)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterTeardownStatement.evaluate(FeaturesRunner.java:414)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:525)
      	at org.nuxeo.runtime.test.runner.RuntimeDeployment$DeploymentStatement.evaluate(RuntimeDeployment.java:270)
      	at org.nuxeo.runtime.test.runner.RuntimeFeature$2$1.evaluate(RuntimeFeature.java:124)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: