Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12621

4 e2e test failures with cordova-android@6.2.0

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-lib
    • Labels:
      None

      Description

      When cordova-android@6.2.0 was published to npm, the 6.2.0 version was set to latest.
      However, this version is causing 4 e2e test failures on cordova-lib.

      Failures:
      1) end-to-end plugin dependency tests Test 030 : should pass if dependency already installed is wrong version with --force
        Message:
          Expected Error: Unable to graft xml at selector "plugins" from "/private/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/e2e-test/plugin_dependency_test/hello3/platforms/android/res/xml/config.xml" during config install to be undefined.
        Stack:
          Error: Expected Error: Unable to graft xml at selector "plugins" from "/private/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/e2e-test/plugin_dependency_test/hello3/platforms/android/res/xml/config.xml" during config install to be undefined.
              at /Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/spec-plugman/install.spec.js:598:25
              at _rejected (/Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/node_modules/q/q.js:797:24)
              at /Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/node_modules/q/q.js:823:30
              at Promise.when (/Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/node_modules/q/q.js:1035:31)
      
      2) end-to-end plugin dependency tests Test 031 : should pass if dependency already installed is same major version (if specific version is specified)
        Message:
          Expected Error: Unable to graft xml at selector "plugins" from "/private/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/e2e-test/plugin_dependency_test/hello3/platforms/android/res/xml/config.xml" during config install to be undefined.
        Stack:
          Error: Expected Error: Unable to graft xml at selector "plugins" from "/private/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/e2e-test/plugin_dependency_test/hello3/platforms/android/res/xml/config.xml" during config install to be undefined.
              at /Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/spec-plugman/install.spec.js:623:25
              at _rejected (/Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/node_modules/q/q.js:797:24)
              at /Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/node_modules/q/q.js:823:30
              at Promise.when (/Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/node_modules/q/q.js:1035:31)
      
      3) end-to-end plugin dependency tests Test 032 : should handle two plugins with same dependent plugin
        Message:
          expected /var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/e2e-test/plugin_dependency_test/hello3/plugins/Test2 to exist
        Stack:
          Error: expected /var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/e2e-test/plugin_dependency_test/hello3/plugins/Test2 to exist
              at /Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/spec-plugman/install.spec.js:648:52
              at _rejected (/Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/node_modules/q/q.js:797:24)
              at /Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/node_modules/q/q.js:823:30
              at Promise.when (/Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/node_modules/q/q.js:1035:31)
        Message:
          Expected 'Unable to graft xml at selector "plugins" from "/private/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/e2e-test/plugin_dependency_test/hello3/platforms/android/res/xml/config.xml" during config install' to contain 'does not satisfy dependency plugin requirement'.
        Stack:
          Error: Expected 'Unable to graft xml at selector "plugins" from "/private/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/e2e-test/plugin_dependency_test/hello3/platforms/android/res/xml/config.xml" during config install' to contain 'does not satisfy dependency plugin requirement'.
              at /Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/spec-plugman/install.spec.js:650:33
              at _rejected (/Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/node_modules/q/q.js:797:24)
              at /Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/node_modules/q/q.js:823:30
              at Promise.when (/Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/node_modules/q/q.js:1035:31)
      
      4) end-to-end plugin dependency tests Test 033 : should use a dev version of a dependent plugin if it is already installed
        Message:
          Failed: Unable to graft xml at selector "plugins" from "/private/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/e2e-test/plugin_dependency_test/hello3/platforms/android/res/xml/config.xml" during config install
        Stack:
          Error: Unable to graft xml at selector "plugins" from "/private/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/e2e-test/plugin_dependency_test/hello3/platforms/android/res/xml/config.xml" during config install
              at ConfigFile_graft_child [as graft_child] (/private/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/e2e-test/plugin_dependency_test/hello3/platforms/android/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:120:19)
              at PlatformMunger_apply_file_munge [as apply_file_munge] (/private/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/e2e-test/plugin_dependency_test/hello3/platforms/android/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:83:34)
              at munge_helper (/private/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/e2e-test/plugin_dependency_test/hello3/platforms/android/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:238:14)
              at PlatformMunger.add_plugin_changes (/private/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/e2e-test/plugin_dependency_test/hello3/platforms/android/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:164:12)
              at /private/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/e2e-test/plugin_dependency_test/hello3/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:126:25
              at _fulfilled (/private/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/e2e-test/plugin_dependency_test/hello3/platforms/android/cordova/node_modules/q/q.js:854:54)
              at self.promiseDispatch.done (/private/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/e2e-test/plugin_dependency_test/hello3/platforms/android/cordova/node_modules/q/q.js:883:30)
              at Promise.promise.promiseDispatch (/private/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/e2e-test/plugin_dependency_test/hello3/platforms/android/cordova/node_modules/q/q.js:816:13)
              at /private/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/e2e-test/plugin_dependency_test/hello3/platforms/android/cordova/node_modules/q/q.js:877:14
              at runSingle (/private/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/e2e-test/plugin_dependency_test/hello3/platforms/android/cordova/node_modules/q/q.js:137:13)
      

      When the latest tag for cordova-android was reverted to 6.1.2, all tests now pass.

        Attachments

          Activity

            People

            • Assignee:
              stevegill Steve Gill
              Reporter:
              shazron Shazron Abdullah
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: