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

MP FT during release must find a way to solve its dependencies

    XMLWordPrintable

    Details

    • Sprint:
      DevOps Sprint 11

      Description

      If a package depends on another package, then during the release process it will fail at retrieving it from Connect (since the dependency has not been deployed yet).

      For instance nuxeo-mediapublishing depends on nuxeo-dam; both are released in the mean time:

      nuxeo-media-publishing-tests.start-unix:
      [INFO]      [echo] Execute pending actions before start
      [INFO]      [exec] Detected Tomcat server.
      [INFO]      [exec] Nuxeo home:          /home/hudson/tmp/workspace/IT-nuxeo-master-build/nuxeo/marketplace/marketplace-media-publishing/ftest/webdriver/target/tomcat
      [INFO]      [exec] Nuxeo configuration: /home/hudson/tmp/workspace/IT-nuxeo-master-build/nuxeo/marketplace/marketplace-media-publishing/ftest/webdriver/target/tomcat/bin/nuxeo.conf
      [INFO]      [exec] Include template: /home/hudson/tmp/workspace/IT-nuxeo-master-build/nuxeo/marketplace/marketplace-media-publishing/ftest/webdriver/target/tomcat/templates/common-base
      [INFO]      [exec] Include template: /home/hudson/tmp/workspace/IT-nuxeo-master-build/nuxeo/marketplace/marketplace-media-publishing/ftest/webdriver/target/tomcat/templates/common
      [INFO]      [exec] Include template: /home/hudson/tmp/workspace/IT-nuxeo-master-build/nuxeo/marketplace/marketplace-media-publishing/ftest/webdriver/target/tomcat/templates/default
      [INFO]      [exec] Relax mode changed from 'ask' to 'false' for executing the pending actions.
      [INFO]      [exec] Added file:/home/hudson/tmp/workspace/IT-nuxeo-master-build/nuxeo/marketplace/marketplace-media-publishing/ftest/webdriver/target/marketplace-media-publishing-1.1.1-I20151105_0312.zip
      [INFO]      [exec] Missing mapping for nuxeo-dam with target platform cap-7.10-I20151105_0121
      [INFO]      [exec] Couldn't order [nuxeo-mediapublishing-1.1.1-I20151105_0312] missing [nuxeo-dam].
      [INFO]      [exec] Failed to resolve dependencies: Couldn't order [nuxeo-mediapublishing-1.1.1-I20151105_0312] missing [nuxeo-dam].
      [INFO]      [exec] Pending actions execution failed. The commands file has been moved to: /home/hudson/tmp/workspace/IT-nuxeo-master-build/nuxeo/marketplace/marketplace-media-publishing/ftest/webdriver/target/tomcat/nxserver/data/installAfterRestart.log.bak
      [INFO]      [exec] Failed commands:
      [ERROR] 
      BUILD FAILED - at 11/5/15 3:12 AM
      /home/hudson/tmp/workspace/IT-nuxeo-master-build/nuxeo/marketplace/marketplace-media-publishing/ftest/webdriver/target/nuxeo-ftest.xml:1424: exec returned: 1
      (...)
      [INFO] BUILD FAILURE
      (...)
      [marketplace-media-publishing]
      next_snapshot = 1.2.0-SNAPSHOT
      maintenance_version = 1.1.2-SNAPSHOT
      maintenance-7.10 = 1.1_7.10
      skip = Failed! Command 'mvn clean deploy -fae -Prelease,-qa,nightly -Dnuxeo.tests.random.mode=BYPASS' returned non-zero exit code (1)
      	Traceback (most recent call last):
      	  File "../scripts/release_mp.py", line 120, in prepare
      	    dodeploy=True)
      	  File "/home/hudson/tmp/workspace/IT-nuxeo-master-build/nuxeo/scripts/release.py", line 565, in prepare
      	    dryrun=dryrun)

      A workaround is to look for the more recent nuxeo-dam in the local m2 repository and add it to the server cache.
      A better fix could be to deploy the packages on Connect Test right after their individual build and make the functional tests run against Connect Test.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: