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

Fix NPM execution of Web UI ftests in DAM package

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 9.10, 10.1-SNAPSHOT
    • Fix Version/s: 10.3
    • Component/s: DAM, Infrastructure
    • Backlog priority:
      3,000
    • Sprint:
      nxGang Sprint 10.1.2, nxGang Sprint 10.1.3, nxGang Sprint 10.2.9, nxNS Sprint 10.3.4
    • Story Points:
      2

      Description

      nuxeo-dam-tests.run-tests:
      [INFO]    [delete] Deleting directory /opt/jenkins/workspace/master/addons_FT_nuxeo-dam-master/ftest/web-ui/webdriver/node_modules
      [INFO]      [exec] npm ERR! Linux 4.4.0-92-generic
      [INFO]      [exec] npm ERR! argv "/opt/build/tools/node-v6.9.2-linux-x64/bin/node" "/usr/bin/npm" "install"
      [INFO]      [exec] npm ERR! node v6.9.2
      [INFO]      [exec] npm ERR! npm  v4.0.5
      [INFO]      [exec] npm ERR! shasum check failed for /tmp/npm-21823-b7fdbb73/mavenin.nuxeo.com/nexus3/repository/npmjs-nuxeo/_40nuxeo/nuxeo-web-ui-ftest/-/nuxeo-web-ui-ftest-2.3.1-SNAPSHOT.tgz
      [INFO]      [exec] npm ERR! Expected: aae99fec86aa2bf456c78fe95f2fbb02e1b97075
      [INFO]      [exec] npm ERR! Actual:   e08e9cbaa485ffc2743e0659a6dba42f3ddf5f73
      [INFO]      [exec] npm ERR! From:     https://mavenin.nuxeo.com/nexus3/repository/npmjs-nuxeo/@nuxeo/nuxeo-web-ui-ftest/-/nuxeo-web-ui-ftest-2.3.1-SNAPSHOT.tgz

      There's no cache clean in https://github.com/nuxeo/marketplace-dam/blob/master/ftest/web-ui/webdriver/itests.xml

      https://nuxeo.slack.com/archives/C03TPDMGS/p1516024125000480
      Gabriel Barata suggests to add a cache clear:

           <exec executable="${cmd.npm}" failonerror="true">
            <arg value="cache" />
            <arg value="clear" />
          </exec>

      Root issue is that there is still no guideline for NPM build in https://doc.nuxeo.com/corg/javascript-code-style/

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 1 hour
                  1d 1h

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.