mediawiki/extensions/WikiEditor: main (log #956897)

sourcepatches

This run took 41 seconds.

$ date
--- stdout ---
Fri Mar 17 05:33:11 UTC 2023

--- end ---
$ git clone file:///srv/git/mediawiki-extensions-WikiEditor.git repo --depth=1 -b master
--- stderr ---
Cloning into 'repo'...
--- stdout ---

--- end ---
$ git config user.name libraryupgrader
--- stdout ---

--- end ---
$ git config user.email tools.libraryupgrader@tools.wmflabs.org
--- stdout ---

--- end ---
$ git submodule update --init
--- stdout ---

--- end ---
$ grr init
--- stdout ---
Installed commit-msg hook.

--- end ---
$ git show-ref refs/heads/master
--- stdout ---
45b1eb0b95330f2434c4a8119730e3dcb0c4f042 refs/heads/master

--- end ---
$ /usr/bin/npm audit --json --legacy-peer-deps
--- stdout ---
{
  "auditReportVersion": 2,
  "vulnerabilities": {
    "jsdoc": {
      "name": "jsdoc",
      "severity": "high",
      "isDirect": true,
      "via": [
        "taffydb"
      ],
      "effects": [],
      "range": "3.2.0-dev - 3.6.11",
      "nodes": [
        "node_modules/jsdoc"
      ],
      "fixAvailable": {
        "name": "jsdoc",
        "version": "4.0.2",
        "isSemVerMajor": true
      }
    },
    "jsdoc-wmf-theme": {
      "name": "jsdoc-wmf-theme",
      "severity": "high",
      "isDirect": true,
      "via": [
        "taffydb"
      ],
      "effects": [],
      "range": "*",
      "nodes": [
        "node_modules/jsdoc-wmf-theme"
      ],
      "fixAvailable": false
    },
    "taffydb": {
      "name": "taffydb",
      "severity": "high",
      "isDirect": false,
      "via": [
        {
          "source": 1089386,
          "name": "taffydb",
          "dependency": "taffydb",
          "title": "TaffyDB can allow access to any data items in the DB",
          "url": "https://github.com/advisories/GHSA-mxhp-79qh-mcx6",
          "severity": "high",
          "cwe": [
            "CWE-20",
            "CWE-668"
          ],
          "cvss": {
            "score": 7.5,
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
          },
          "range": "<=2.7.3"
        }
      ],
      "effects": [
        "jsdoc",
        "jsdoc-wmf-theme"
      ],
      "range": "*",
      "nodes": [
        "node_modules/taffydb"
      ],
      "fixAvailable": false
    }
  },
  "metadata": {
    "vulnerabilities": {
      "info": 0,
      "low": 0,
      "moderate": 0,
      "high": 3,
      "critical": 0,
      "total": 3
    },
    "dependencies": {
      "prod": 1,
      "dev": 442,
      "optional": 0,
      "peer": 0,
      "peerOptional": 0,
      "total": 442
    }
  }
}

--- end ---
$ /usr/bin/composer install
--- stderr ---
No lock file found. Updating dependencies instead of installing from lock file. Use composer update over composer install if you do not have a lock file.
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Lock file operations: 34 installs, 0 updates, 0 removals
  - Locking composer/pcre (3.1.0)
  - Locking composer/semver (3.3.2)
  - Locking composer/spdx-licenses (1.5.7)
  - Locking composer/xdebug-handler (3.0.3)
  - Locking felixfbecker/advanced-json-rpc (v3.2.1)
  - Locking mediawiki/mediawiki-codesniffer (v41.0.0)
  - Locking mediawiki/mediawiki-phan-config (0.12.0)
  - Locking mediawiki/minus-x (1.1.1)
  - Locking mediawiki/phan-taint-check-plugin (4.0.0)
  - Locking microsoft/tolerant-php-parser (v0.1.1)
  - Locking netresearch/jsonmapper (v4.1.0)
  - Locking phan/phan (5.4.1)
  - Locking php-parallel-lint/php-console-color (v1.0.1)
  - Locking php-parallel-lint/php-console-highlighter (v1.0.0)
  - Locking php-parallel-lint/php-parallel-lint (v1.3.2)
  - Locking phpdocumentor/reflection-common (2.2.0)
  - Locking phpdocumentor/reflection-docblock (5.3.0)
  - Locking phpdocumentor/type-resolver (1.6.2)
  - Locking psr/container (1.1.2)
  - Locking psr/log (1.1.4)
  - Locking sabre/event (5.1.4)
  - Locking squizlabs/php_codesniffer (3.7.2)
  - Locking symfony/console (v5.4.21)
  - Locking symfony/deprecation-contracts (v2.5.2)
  - Locking symfony/polyfill-ctype (v1.27.0)
  - Locking symfony/polyfill-intl-grapheme (v1.27.0)
  - Locking symfony/polyfill-intl-normalizer (v1.27.0)
  - Locking symfony/polyfill-mbstring (v1.27.0)
  - Locking symfony/polyfill-php73 (v1.27.0)
  - Locking symfony/polyfill-php80 (v1.27.0)
  - Locking symfony/service-contracts (v2.5.2)
  - Locking symfony/string (v5.4.21)
  - Locking tysonandre/var_representation_polyfill (0.1.3)
  - Locking webmozart/assert (1.11.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 34 installs, 0 updates, 0 removals
    0 [>---------------------------]    0 [->--------------------------]    0 [--->------------------------]  - Installing composer/pcre (3.1.0): Extracting archive
  - Installing symfony/polyfill-php80 (v1.27.0): Extracting archive
  - Installing squizlabs/php_codesniffer (3.7.2): Extracting archive
  - Installing symfony/polyfill-mbstring (v1.27.0): Extracting archive
  - Installing composer/spdx-licenses (1.5.7): Extracting archive
  - Installing composer/semver (3.3.2): Extracting archive
  - Installing mediawiki/mediawiki-codesniffer (v41.0.0): Extracting archive
  - Installing tysonandre/var_representation_polyfill (0.1.3): Extracting archive
  - Installing symfony/polyfill-intl-normalizer (v1.27.0): Extracting archive
  - Installing symfony/polyfill-intl-grapheme (v1.27.0): Extracting archive
  - Installing symfony/polyfill-ctype (v1.27.0): Extracting archive
  - Installing symfony/string (v5.4.21): Extracting archive
  - Installing symfony/deprecation-contracts (v2.5.2): Extracting archive
  - Installing psr/container (1.1.2): Extracting archive
  - Installing symfony/service-contracts (v2.5.2): Extracting archive
  - Installing symfony/polyfill-php73 (v1.27.0): Extracting archive
  - Installing symfony/console (v5.4.21): Extracting archive
  - Installing sabre/event (5.1.4): Extracting archive
  - Installing netresearch/jsonmapper (v4.1.0): Extracting archive
  - Installing microsoft/tolerant-php-parser (v0.1.1): Extracting archive
  - Installing webmozart/assert (1.11.0): Extracting archive
  - Installing phpdocumentor/reflection-common (2.2.0): Extracting archive
  - Installing phpdocumentor/type-resolver (1.6.2): Extracting archive
  - Installing phpdocumentor/reflection-docblock (5.3.0): Extracting archive
  - Installing felixfbecker/advanced-json-rpc (v3.2.1): Extracting archive
  - Installing psr/log (1.1.4): Extracting archive
  - Installing composer/xdebug-handler (3.0.3): Extracting archive
  - Installing phan/phan (5.4.1): Extracting archive
  - Installing mediawiki/phan-taint-check-plugin (4.0.0): Extracting archive
  - Installing mediawiki/mediawiki-phan-config (0.12.0): Extracting archive
  - Installing mediawiki/minus-x (1.1.1): Extracting archive
  - Installing php-parallel-lint/php-console-color (v1.0.1): Extracting archive
  - Installing php-parallel-lint/php-console-highlighter (v1.0.0): Extracting archive
  - Installing php-parallel-lint/php-parallel-lint (v1.3.2): Extracting archive
  0/25 [>---------------------------]   0%
  9/25 [==========>-----------------]  36%
 19/25 [=====================>------]  76%
 25/25 [============================] 100%4 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
14 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
--- stdout ---

--- end ---
Upgrading n:grunt from 1.5.3 -> 1.6.1
Upgrading n:stylelint-config-wikimedia from 0.13.0 -> 0.14.0
$ /usr/bin/npm install
--- stdout ---

added 445 packages, and audited 446 packages in 7s

67 packages are looking for funding
  run `npm fund` for details

3 high severity vulnerabilities

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

--- end ---
$ package-lock-lint package-lock.json
--- stdout ---
Checking package-lock.json

--- end ---
$ ./node_modules/.bin/grunt stylelint
--- stdout ---
Running "stylelint:all" (stylelint) task

modules/ext.wikiEditor.toolbar.styles.less
 31:21  ✖  Expected double colon pseudo-element notation  selector-pseudo-element-colon-notation
 32:21  ✖  Expected double colon pseudo-element notation  selector-pseudo-element-colon-notation

modules/jquery.wikiEditor.dialogs.config.less
 134:43  ✖  Expected double colon pseudo-element notation  selector-pseudo-element-colon-notation
 135:35  ✖  Expected double colon pseudo-element notation  selector-pseudo-element-colon-notation

modules/jquery.wikiEditor.toolbar-wikimedia.less
 41:6  ✖  Expected double colon pseudo-element notation  selector-pseudo-element-colon-notation

modules/jquery.wikiEditor.toolbar.less
  56:6   ✖  Expected double colon pseudo-element notation  selector-pseudo-element-colon-notation
  89:6   ✖  Expected double colon pseudo-element notation  selector-pseudo-element-colon-notation
 165:6   ✖  Expected double colon pseudo-element notation  selector-pseudo-element-colon-notation
 177:26  ✖  Expected double colon pseudo-element notation  selector-pseudo-element-colon-notation

modules/realtimepreview/monobook.less
 2:2  ⚠  Unexpected browser feature "css-unset-value" is not supported by IE 11, Safari on iOS 9.0-9.2  plugin/no-unsupported-browser-features
 6:2  ⚠  Unexpected browser feature "css-unset-value" is not supported by IE 11, Safari on iOS 9.0-9.2  plugin/no-unsupported-browser-features

modules/realtimepreview/RealtimePreview.less
 57:3  ✖  Needless disable for "plugin/no-unsupported-browser-features"  --report-needless-disables

modules/realtimepreview/TwoPaneLayout.less
  4:2  ✖  Needless disable for "plugin/no-unsupported-browser-features"  --report-needless-disables
 11:3  ✖  Needless disable for "plugin/no-unsupported-browser-features"  --report-needless-disables

14 problems (12 errors, 2 warnings)


⚠ 14 warnings

Warning: Task "stylelint:all" failed. Use --force to continue.

Aborted due to warnings.

--- end ---
$ ./node_modules/.bin/stylelint modules/insertlink/LinkTypeField.less modules/jquery.wikiEditor.toolbar.less modules/jquery.wikiEditor.dialogs.config.less modules/realtimepreview/OnboardingPopup.less modules/realtimepreview/ManualWidget.less modules/ext.wikiEditor.toolbar.styles.less modules/realtimepreview/TwoPaneLayout.less modules/jquery.wikiEditor.toolbar-apex.less modules/realtimepreview/monobook.less modules/realtimepreview/ResizingDragBar.less modules/insertlink/TitleInputField.less modules/realtimepreview/ErrorLayout.less modules/jquery.wikiEditor.less modules/realtimepreview/RealtimePreview.less modules/jquery.wikiEditor.dialogs.less modules/jquery.wikiEditor.toolbar-wikimedia.less -f json
--- stdout ---
[{"source":"/src/repo/modules/insertlink/LinkTypeField.less","deprecations":[],"invalidOptionWarnings":[],"parseErrors":[],"errored":false,"warnings":[]},{"source":"/src/repo/modules/jquery.wikiEditor.toolbar.less","deprecations":[],"invalidOptionWarnings":[],"parseErrors":[],"errored":true,"warnings":[{"line":56,"column":6,"endLine":56,"endColumn":7,"rule":"selector-pseudo-element-colon-notation","severity":"error","text":"Expected double colon pseudo-element notation (selector-pseudo-element-colon-notation)"},{"line":89,"column":6,"endLine":89,"endColumn":7,"rule":"selector-pseudo-element-colon-notation","severity":"error","text":"Expected double colon pseudo-element notation (selector-pseudo-element-colon-notation)"},{"line":165,"column":6,"endLine":165,"endColumn":7,"rule":"selector-pseudo-element-colon-notation","severity":"error","text":"Expected double colon pseudo-element notation (selector-pseudo-element-colon-notation)"},{"line":177,"column":26,"endLine":177,"endColumn":27,"rule":"selector-pseudo-element-colon-notation","severity":"error","text":"Expected double colon pseudo-element notation (selector-pseudo-element-colon-notation)"}]},{"source":"/src/repo/modules/jquery.wikiEditor.dialogs.config.less","deprecations":[],"invalidOptionWarnings":[],"parseErrors":[],"errored":true,"warnings":[{"line":134,"column":43,"endLine":134,"endColumn":44,"rule":"selector-pseudo-element-colon-notation","severity":"error","text":"Expected double colon pseudo-element notation (selector-pseudo-element-colon-notation)"},{"line":135,"column":35,"endLine":135,"endColumn":36,"rule":"selector-pseudo-element-colon-notation","severity":"error","text":"Expected double colon pseudo-element notation (selector-pseudo-element-colon-notation)"}]},{"source":"/src/repo/modules/realtimepreview/OnboardingPopup.less","deprecations":[],"invalidOptionWarnings":[],"parseErrors":[],"errored":false,"warnings":[]},{"source":"/src/repo/modules/realtimepreview/ManualWidget.less","deprecations":[],"invalidOptionWarnings":[],"parseErrors":[],"errored":false,"warnings":[]},{"source":"/src/repo/modules/ext.wikiEditor.toolbar.styles.less","deprecations":[],"invalidOptionWarnings":[],"parseErrors":[],"errored":true,"warnings":[{"line":31,"column":21,"endLine":31,"endColumn":22,"rule":"selector-pseudo-element-colon-notation","severity":"error","text":"Expected double colon pseudo-element notation (selector-pseudo-element-colon-notation)"},{"line":32,"column":21,"endLine":32,"endColumn":22,"rule":"selector-pseudo-element-colon-notation","severity":"error","text":"Expected double colon pseudo-element notation (selector-pseudo-element-colon-notation)"}]},{"source":"/src/repo/modules/realtimepreview/TwoPaneLayout.less","deprecations":[],"invalidOptionWarnings":[],"parseErrors":[],"errored":false,"warnings":[{"text":"Needless disable for \"plugin/no-unsupported-browser-features\"","rule":"--report-needless-disables","line":4,"column":2,"endLine":4,"endColumn":33,"severity":"error"},{"text":"Needless disable for \"plugin/no-unsupported-browser-features\"","rule":"--report-needless-disables","line":11,"column":3,"endLine":11,"endColumn":34,"severity":"error"}]},{"source":"/src/repo/modules/jquery.wikiEditor.toolbar-apex.less","deprecations":[],"invalidOptionWarnings":[],"parseErrors":[],"errored":false,"warnings":[]},{"source":"/src/repo/modules/realtimepreview/monobook.less","deprecations":[],"invalidOptionWarnings":[],"parseErrors":[],"errored":false,"warnings":[{"line":2,"column":2,"endLine":2,"endColumn":26,"rule":"plugin/no-unsupported-browser-features","severity":"warning","text":"Unexpected browser feature \"css-unset-value\" is not supported by IE 11, Safari on iOS 9.0-9.2 (plugin/no-unsupported-browser-features)"},{"line":6,"column":2,"endLine":6,"endColumn":15,"rule":"plugin/no-unsupported-browser-features","severity":"warning","text":"Unexpected browser feature \"css-unset-value\" is not supported by IE 11, Safari on iOS 9.0-9.2 (plugin/no-unsupported-browser-features)"}]},{"source":"/src/repo/modules/realtimepreview/ResizingDragBar.less","deprecations":[],"invalidOptionWarnings":[],"parseErrors":[],"errored":false,"warnings":[]},{"source":"/src/repo/modules/insertlink/TitleInputField.less","deprecations":[],"invalidOptionWarnings":[],"parseErrors":[],"errored":false,"warnings":[]},{"source":"/src/repo/modules/realtimepreview/ErrorLayout.less","deprecations":[],"invalidOptionWarnings":[],"parseErrors":[],"errored":false,"warnings":[]},{"source":"/src/repo/modules/jquery.wikiEditor.less","deprecations":[],"invalidOptionWarnings":[],"parseErrors":[],"errored":false,"warnings":[]},{"source":"/src/repo/modules/realtimepreview/RealtimePreview.less","deprecations":[],"invalidOptionWarnings":[],"parseErrors":[],"errored":false,"warnings":[{"text":"Needless disable for \"plugin/no-unsupported-browser-features\"","rule":"--report-needless-disables","line":57,"column":3,"endLine":57,"endColumn":34,"severity":"error"}]},{"source":"/src/repo/modules/jquery.wikiEditor.dialogs.less","deprecations":[],"invalidOptionWarnings":[],"parseErrors":[],"errored":false,"warnings":[]},{"source":"/src/repo/modules/jquery.wikiEditor.toolbar-wikimedia.less","deprecations":[],"invalidOptionWarnings":[],"parseErrors":[],"errored":true,"warnings":[{"line":41,"column":6,"endLine":41,"endColumn":7,"rule":"selector-pseudo-element-colon-notation","severity":"error","text":"Expected double colon pseudo-element notation (selector-pseudo-element-colon-notation)"}]}]
--- end ---
$ /usr/bin/npm ci --legacy-peer-deps
--- stdout ---

added 445 packages, and audited 446 packages in 5s

67 packages are looking for funding
  run `npm fund` for details

3 high severity vulnerabilities

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

--- end ---
$ /usr/bin/npm test
--- stdout ---

> test
> grunt test && npm run doc

Running "eslint:all" (eslint) task

Running "stylelint:all" (stylelint) task

modules/ext.wikiEditor.toolbar.styles.less
  1:1  ✖  Unknown rule --report-needless-disables                        --report-needless-disables
 21:2  ✖  Needless disable for "plugin/no-unsupported-browser-features"  --report-needless-disables

modules/insertlink/LinkTypeField.less
 1:1  ✖  Unknown rule --report-needless-disables  --report-needless-disables

modules/insertlink/TitleInputField.less
 1:1  ✖  Unknown rule --report-needless-disables  --report-needless-disables

modules/jquery.wikiEditor.dialogs.config.less
 1:1  ✖  Unknown rule --report-needless-disables  --report-needless-disables

modules/jquery.wikiEditor.dialogs.less
 1:1  ✖  Unknown rule --report-needless-disables  --report-needless-disables

modules/jquery.wikiEditor.less
 1:1  ✖  Unknown rule --report-needless-disables  --report-needless-disables

modules/jquery.wikiEditor.toolbar-apex.less
 1:1  ✖  Unknown rule --report-needless-disables  --report-needless-disables

modules/jquery.wikiEditor.toolbar-wikimedia.less
 1:1  ✖  Unknown rule --report-needless-disables  --report-needless-disables

modules/jquery.wikiEditor.toolbar.less
   1:1  ✖  Unknown rule --report-needless-disables                        --report-needless-disables
 243:4  ✖  Needless disable for "plugin/no-unsupported-browser-features"  --report-needless-disables

modules/realtimepreview/ErrorLayout.less
 1:1  ✖  Unknown rule --report-needless-disables  --report-needless-disables

modules/realtimepreview/ManualWidget.less
 1:1  ✖  Unknown rule --report-needless-disables  --report-needless-disables

modules/realtimepreview/monobook.less
 1:1  ✖  Unknown rule --report-needless-disables  --report-needless-disables

modules/realtimepreview/OnboardingPopup.less
 1:1  ✖  Unknown rule --report-needless-disables  --report-needless-disables

modules/realtimepreview/RealtimePreview.less
  1:1  ✖  Unknown rule --report-needless-disables                        --report-needless-disables
 14:2  ✖  Needless disable for "plugin/no-unsupported-browser-features"  --report-needless-disables
 57:3  ✖  Needless disable for "plugin/no-unsupported-browser-features"  --report-needless-disables

modules/realtimepreview/ResizingDragBar.less
 1:1  ✖  Unknown rule --report-needless-disables  --report-needless-disables

modules/realtimepreview/TwoPaneLayout.less
  1:1  ✖  Unknown rule --report-needless-disables                        --report-needless-disables
  4:2  ✖  Needless disable for "plugin/no-unsupported-browser-features"  --report-needless-disables
 11:3  ✖  Needless disable for "plugin/no-unsupported-browser-features"  --report-needless-disables

22 problems (22 errors, 0 warnings)


⚠ 22 warnings

Warning: Task "stylelint:all" failed. Use --force to continue.

Aborted due to warnings.

--- end ---
Traceback (most recent call last):
  File "/venv/lib/python3.9/site-packages/runner-0.1.0-py3.9.egg/runner/__init__.py", line 1400, in main
    libup.run(args.repo, args.output, args.branch)
  File "/venv/lib/python3.9/site-packages/runner-0.1.0-py3.9.egg/runner/__init__.py", line 1338, in run
    self.npm_upgrade(plan)
  File "/venv/lib/python3.9/site-packages/runner-0.1.0-py3.9.egg/runner/__init__.py", line 1049, in npm_upgrade
    self.npm_test()
  File "/venv/lib/python3.9/site-packages/runner-0.1.0-py3.9.egg/runner/__init__.py", line 287, in npm_test
    self.check_call(['npm', 'test'])
  File "/venv/lib/python3.9/site-packages/runner-0.1.0-py3.9.egg/runner/shell2.py", line 54, in check_call
    res.check_returncode()
  File "/usr/lib/python3.9/subprocess.py", line 460, in check_returncode
    raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '['/usr/bin/npm', 'test']' returned non-zero exit status 3.
Source code is licensed under the AGPL.