mediawiki/extensions/WikiToLDAP: master (log #105275)

sourcepatches
$ date
Wed Feb 10 09:12:56 UTC 2021

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

$ git config user.name libraryupgrader

$ git config user.email tools.libraryupgrader@tools.wmflabs.org

$ git submodule update --init

$ grr init
Installed commit-msg hook.

$ git show-ref refs/heads/master
871d58b9e3f1f1c34fb9a96700a65aeb605948f9 refs/heads/master

$ composer install
Loading composer repositories with package information
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2
Updating dependencies (including require-dev)
Package operations: 33 installs, 0 updates, 0 removals
  - Installing composer/installers (v1.10.0): Loading from cache
  - Installing squizlabs/php_codesniffer (3.5.5): Loading from cache
  - Installing composer/spdx-licenses (1.5.5): Loading from cache
  - Installing composer/semver (2.0.0): Loading from cache
  - Installing mediawiki/mediawiki-codesniffer (v31.0.0): Loading from cache
  - Installing symfony/polyfill-php80 (v1.22.0): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.22.0): Loading from cache
  - Installing symfony/polyfill-intl-normalizer (v1.22.0): Loading from cache
  - Installing symfony/polyfill-intl-grapheme (v1.22.0): Loading from cache
  - Installing symfony/polyfill-ctype (v1.22.0): Loading from cache
  - Installing symfony/string (v5.2.3): Loading from cache
  - Installing psr/container (1.0.0): Loading from cache
  - Installing symfony/service-contracts (v2.2.0): Loading from cache
  - Installing symfony/polyfill-php73 (v1.22.0): Loading from cache
  - Installing symfony/console (v5.2.3): Loading from cache
  - Installing mediawiki/minus-x (1.1.0): Loading from cache
  - Installing php-parallel-lint/php-console-color (v0.3): Loading from cache
  - Installing php-parallel-lint/php-console-highlighter (v0.5): Loading from cache
  - Installing php-parallel-lint/php-parallel-lint (v1.2.0): Loading from cache
  - Installing mediawiki/ldap-authentication-2 (1.0.2): Downloading (connecting...)Downloading (100%)         
  - Installing psr/log (1.1.3): Loading from cache
  - Installing sabre/event (5.1.2): Loading from cache
  - Installing netresearch/jsonmapper (v2.1.0): Loading from cache
  - Installing microsoft/tolerant-php-parser (v0.0.23): Loading from cache
  - Installing phpdocumentor/reflection-common (2.2.0): Loading from cache
  - Installing webmozart/assert (1.9.1): Loading from cache
  - Installing phpdocumentor/type-resolver (1.4.0): Loading from cache
  - Installing phpdocumentor/reflection-docblock (5.2.2): Loading from cache
  - Installing felixfbecker/advanced-json-rpc (v3.2.0): Loading from cache
  - Installing composer/xdebug-handler (1.4.5): Loading from cache
  - Installing phan/phan (3.2.6): Loading from cache
  - Installing mediawiki/phan-taint-check-plugin (3.2.1): Loading from cache
  - Installing mediawiki/mediawiki-phan-config (0.10.6): Loading from cache
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/lock
symfony/console suggests installing symfony/process
phan/phan suggests installing ext-ast (Needed for parsing ASTs (unless --use-fallback-parser is used). 1.0.1+ is needed, 1.0.8+ is recommended.)
Writing lock file
Generating autoload files
13 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Upgrading n:eslint-config-wikimedia from 0.17.0 -> 0.18.1
Upgrading n:grunt-stylelint from 0.15.0 -> 0.16.0
Upgrading n:stylelint-config-wikimedia from 0.10.1 -> 0.10.3
$ npm install

> core-js@3.8.3 postinstall /src/repo/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

npm WARN eslint-plugin-vue@6.2.2 requires a peer of eslint@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself.

added 662 packages from 342 contributors and audited 662 packages in 302.557s

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

found 2 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details

$ npm update eslint -depth 10
npm WARN eslint-plugin-vue@6.2.2 requires a peer of eslint@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself.

+ eslint@7.19.0
added 14 packages from 7 contributors, removed 12 packages, updated 13 packages and audited 664 packages in 77.236s

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

found 2 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details

$ npm install grunt-eslint@23.0.0 --save-exact
npm WARN eslint-plugin-vue@6.2.2 requires a peer of eslint@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself.

+ grunt-eslint@23.0.0
updated 3 packages and audited 664 packages in 58.795s

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

found 2 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details

$ ./node_modules/.bin/eslint . --fix

/src/repo/extensions/LDAPAuthentication2/Gruntfile.js
  5:2  error  All 'var' declarations must be at the top of the function scope  vars-on-top

/src/repo/resources/init.js
   1:1   error  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible  no-jquery/no-global-selector
   2:14  error  URLSearchParams is not supported in Safari 5.1, IE 11, android 4.1                  compat/compat
   3:1   error  Mixed spaces and tabs                                                               no-mixed-spaces-and-tabs
   4:1   error  Mixed spaces and tabs                                                               no-mixed-spaces-and-tabs
  10:2   error  Combine this with the previous 'var' statement                                      one-var
  10:2   error  All 'var' declarations must be at the top of the function scope                     vars-on-top
  13:38  error  'data' is defined but never used                                                    no-unused-vars

✖ 8 problems (8 errors, 0 warnings)


$ ./node_modules/.bin/eslint . -f json
[{"filePath":"/src/repo/.eslintrc.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/Gruntfile.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/composer.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/extension.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/extensions/LDAPAuthentication2/Gruntfile.js","messages":[{"ruleId":"vars-on-top","severity":2,"message":"All 'var' declarations must be at the top of the function scope.","line":5,"column":2,"nodeType":"VariableDeclaration","messageId":"top","endLine":5,"endColumn":53}],"errorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"module.exports = function ( grunt ) {\n\tgrunt.loadNpmTasks( 'grunt-jsonlint' );\n\tgrunt.loadNpmTasks( 'grunt-banana-checker' );\n\n\tvar conf = grunt.file.readJSON( 'extension.json' );\n\tgrunt.initConfig( {\n\t\tbanana: conf.MessagesDirs,\n\t\tjsonlint: {\n\t\t\tall: [\n\t\t\t\t'**/*.json',\n\t\t\t\t'!node_modules/**',\n\t\t\t\t'!vendor/**'\n\t\t\t]\n\t\t}\n\t} );\n\n\tgrunt.registerTask( 'test', [ 'jsonlint', 'banana' ] );\n\tgrunt.registerTask( 'default', 'test' );\n};\n","usedDeprecatedRules":[]},{"filePath":"/src/repo/extensions/LDAPAuthentication2/composer.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/extensions/LDAPAuthentication2/extension.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/extensions/LDAPAuthentication2/i18n/en.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/extensions/LDAPAuthentication2/i18n/qqq.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/extensions/LDAPAuthentication2/package-lock.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/extensions/LDAPAuthentication2/package.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/en.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/qqq.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/package-lock.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/package.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/resources/init.js","messages":[{"ruleId":"no-jquery/no-global-selector","severity":2,"message":"Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible.","line":1,"column":1,"nodeType":"CallExpression","endLine":1,"endColumn":31},{"ruleId":"compat/compat","severity":2,"message":"URLSearchParams is not supported in Safari 5.1, IE 11, android 4.1","line":2,"column":14,"nodeType":"NewExpression","endLine":2,"endColumn":59},{"ruleId":"no-mixed-spaces-and-tabs","severity":2,"message":"Mixed spaces and tabs.","line":3,"column":1,"nodeType":"Program","messageId":"mixedSpacesAndTabs","endLine":3,"endColumn":3},{"ruleId":"no-mixed-spaces-and-tabs","severity":2,"message":"Mixed spaces and tabs.","line":4,"column":1,"nodeType":"Program","messageId":"mixedSpacesAndTabs","endLine":4,"endColumn":3},{"ruleId":"one-var","severity":2,"message":"Combine this with the previous 'var' statement.","line":10,"column":2,"nodeType":"VariableDeclaration","messageId":"combine","endLine":12,"endColumn":25},{"ruleId":"vars-on-top","severity":2,"message":"All 'var' declarations must be at the top of the function scope.","line":10,"column":2,"nodeType":"VariableDeclaration","messageId":"top","endLine":12,"endColumn":25},{"ruleId":"no-unused-vars","severity":2,"message":"'data' is defined but never used.","line":13,"column":38,"nodeType":"Identifier","messageId":"unusedVar","endLine":13,"endColumn":42}],"errorCount":7,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"$( '#wikitoldap-ldap-cancel' ).on( 'click', function () {\n\tvar param = new URLSearchParams( window.location.search ),\n\t returnTo = param.get( 'returnto' ),\n\t url = mw.util.getUrl( 'Main Page' );\n\n\tif ( returnTo && returnTo.length ) {\n\t\turl = mw.util.getUrl( returnTo );\n\t}\n\n\tvar params = {\n\t\t\taction: 'wikitoldapoptout'\n\t\t}, api = new mw.Api();\n\tapi.post( params ).done( function ( data ) {\n\t\twindow.location = url;\n\t} );\n} );\n","usedDeprecatedRules":[]}]

$ ./node_modules/.bin/grunt stylelint
Running "stylelint:all" (stylelint) task
>> Linted 0 files without errors

Done.

$ npm ci
npm WARN prepare removing existing node_modules/ before installation

> core-js@3.8.3 postinstall /src/repo/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

added 664 packages in 16.857s

$ npm test

> @ test /src/repo
> grunt test

Running "eslint:all" (eslint) task

/src/repo/extensions/LDAPAuthentication2/Gruntfile.js
  5:2  warning  All 'var' declarations must be at the top of the function scope  vars-on-top

/src/repo/resources/init.js
   1:1   warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible  no-jquery/no-global-selector
   2:14  warning  URLSearchParams is not supported in Safari 5.1, IE 11, android 4.1                  compat/compat
   3:1   warning  Mixed spaces and tabs                                                               no-mixed-spaces-and-tabs
   4:1   warning  Mixed spaces and tabs                                                               no-mixed-spaces-and-tabs
  10:2   warning  Combine this with the previous 'var' statement                                      one-var
  10:2   warning  All 'var' declarations must be at the top of the function scope                     vars-on-top
  13:38  warning  'data' is defined but never used                                                    no-unused-vars

✖ 8 problems (0 errors, 8 warnings)


Running "stylelint:all" (stylelint) task
>> Linted 0 files without errors

Running "banana:WikiToLDAP" (banana) task
>> 51 messages lack documentation in qqq.json.
>> Message "wikitoldap-migrationgroup-desc" lacks documentation in qqq.json.
>> Message "wikitoldap-inprogressgroup-desc" lacks documentation in qqq.json.
>> Message "wikitoldap-old-username-prefix-desc" lacks documentation in qqq.json.
>> Message "wikitoldap-old-users-are-renamed-desc" lacks documentation in qqq.json.
>> Message "wikitoldap-merged-desc" lacks documentation in qqq.json.
>> Message "wikitoldap-migrationinprogress-desc" lacks documentation in qqq.json.
>> Message "group-wikitoldap-needs-migration" lacks documentation in qqq.json.
>> Message "group-wikitoldap-needs-migration-member" lacks documentation in qqq.json.
>> Message "grouppage-wikitoldap-needs-migration" lacks documentation in qqq.json.
>> Message "group-wikitoldap-in-progress" lacks documentation in qqq.json.
>> Message "group-wikitoldap-in-progress-member" lacks documentation in qqq.json.
>> Message "grouppage-wikitoldap-in-progress" lacks documentation in qqq.json.
>> Message "group-wikitoldap-merged" lacks documentation in qqq.json.
>> Message "group-wikitoldap-merged-member" lacks documentation in qqq.json.
>> Message "grouppage-wikitoldap-merged" lacks documentation in qqq.json.
>> Message "wikitoldap-needs-migration" lacks documentation in qqq.json.
>> Message "wikitoldap-in-progress" lacks documentation in qqq.json.
>> Message "wikitoldap-merged" lacks documentation in qqq.json.
>> Message "wikitoldap-legend" lacks documentation in qqq.json.
>> Message "wikitoldap-introduction" lacks documentation in qqq.json.
>> Message "wikitoldap-ldap-introduction" lacks documentation in qqq.json.
>> Message "wikitoldap-select-account" lacks documentation in qqq.json.
>> Message "wikitoldap-ldap-password" lacks documentation in qqq.json.
>> Message "wikitoldap-confirm-ldap-merge" lacks documentation in qqq.json.
>> Message "wikitoldap-confirm-wiki-merge" lacks documentation in qqq.json.
>> Message "wikitoldap-merge-not-needed" lacks documentation in qqq.json.
>> Message "wikitoldap-merge-done" lacks documentation in qqq.json.
>> Message "wikitoldap-wiki-merge-done" lacks documentation in qqq.json.
>> Message "wikitoldap-continue" lacks documentation in qqq.json.
>> Message "wikitoldap-select-wiki-instructions" lacks documentation in qqq.json.
>> Message "wikitoldap-select-renamed-wiki-instructions" lacks documentation in qqq.json.
>> Message "wikitoldap-select-wiki-account" lacks documentation in qqq.json.
>> Message "wikitoldap-wiki-password" lacks documentation in qqq.json.
>> Message "wikitoldap-invalid-account" lacks documentation in qqq.json.
>> Message "wikitoldap-same-user" lacks documentation in qqq.json.
>> Message "wikitoldap-not-migratable-account" lacks documentation in qqq.json.
>> Message "wikitoldap-account-problems" lacks documentation in qqq.json.
>> Message "wikitoldap-only-one-domain" lacks documentation in qqq.json.
>> Message "wikitoldap-invalid-password" lacks documentation in qqq.json.
>> Message "wikitoldap-no-ldap-login-prefix" lacks documentation in qqq.json.
>> Message "wikitoldap-ldap-login-failed" lacks documentation in qqq.json.
>> Message "wikitoldap-ldap-cancel" lacks documentation in qqq.json.
>> Message "wikitoldap-ldap-continue" lacks documentation in qqq.json.
>> Message "wikitoldap-return" lacks documentation in qqq.json.
>> Message "action-migrate-from-ldap" lacks documentation in qqq.json.
>> Message "log-name-wikitoldap" lacks documentation in qqq.json.
>> Message "log-description-wikitoldap" lacks documentation in qqq.json.
>> Message "logentry-wikitoldap-redirect" lacks documentation in qqq.json.
>> Message "wikiusermerge" lacks documentation in qqq.json.
>> Message "ldapusermerge" lacks documentation in qqq.json.
>> Message "apihelp-wikitoldapoptout-summary" lacks documentation in qqq.json.
Warning: Task "banana:WikiToLDAP" failed. Use --force to continue.

Aborted due to warnings.
npm ERR! Test failed.  See above for more details.

Traceback (most recent call last):
  File "/venv/lib/python3.7/site-packages/libup-0.0.1-py3.7.egg/libup/ng.py", line 1192, in main
    libup.run(args.repo, args.output, args.branch)
  File "/venv/lib/python3.7/site-packages/libup-0.0.1-py3.7.egg/libup/ng.py", line 1134, in run
    self.npm_upgrade(plan)
  File "/venv/lib/python3.7/site-packages/libup-0.0.1-py3.7.egg/libup/ng.py", line 857, in npm_upgrade
    self.npm_test()
  File "/venv/lib/python3.7/site-packages/libup-0.0.1-py3.7.egg/libup/ng.py", line 240, in npm_test
    self.check_call(['npm', 'test'])
  File "/venv/lib/python3.7/site-packages/libup-0.0.1-py3.7.egg/libup/shell.py", line 38, in check_call
    res.check_returncode()
  File "/usr/lib/python3.7/subprocess.py", line 428, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['npm', 'test']' returned non-zero exit status 1.
Source code is licensed under the AGPL.