mediawiki/libs/LangConv: main (log #553621)

sourcepatches

This run took 58 seconds.

$ date
Mon Dec  6 06:04:34 UTC 2021

$ git clone file:///srv/git/mediawiki-libs-LangConv.git repo --depth=1 -b master
Cloning into 'repo'...
Checking out files:  70% (124/175)   
Checking out files:  71% (125/175)   
Checking out files:  72% (126/175)   
Checking out files:  73% (128/175)   
Checking out files:  74% (130/175)   
Checking out files:  75% (132/175)   
Checking out files:  76% (133/175)   
Checking out files:  77% (135/175)   
Checking out files:  78% (137/175)   
Checking out files:  79% (139/175)   
Checking out files:  80% (140/175)   
Checking out files:  81% (142/175)   
Checking out files:  82% (144/175)   
Checking out files:  83% (146/175)   
Checking out files:  84% (147/175)   
Checking out files:  85% (149/175)   
Checking out files:  86% (151/175)   
Checking out files:  87% (153/175)   
Checking out files:  88% (154/175)   
Checking out files:  89% (156/175)   
Checking out files:  90% (158/175)   
Checking out files:  91% (160/175)   
Checking out files:  92% (161/175)   
Checking out files:  93% (163/175)   
Checking out files:  94% (165/175)   
Checking out files:  95% (167/175)   
Checking out files:  96% (168/175)   
Checking out files:  97% (170/175)   
Checking out files:  98% (172/175)   
Checking out files:  99% (174/175)   
Checking out files: 100% (175/175)   
Checking out files: 100% (175/175), done.

$ 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
197698164f1df30f2dd93da1e8367c81a7b5da99 refs/heads/master

$ composer install
Loading composer repositories with package information
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Updating dependencies (including require-dev)
Package operations: 65 installs, 0 updates, 0 removals
  - Installing squizlabs/php_codesniffer (3.6.1): Loading from cache
  - Installing composer/spdx-licenses (1.5.6): Loading from cache
  - Installing composer/semver (3.2.6): Loading from cache
  - Installing mediawiki/mediawiki-codesniffer (v38.0.0): Loading from cache
  - Installing tysonandre/var_representation_polyfill (0.1.1): Loading from cache
  - Installing symfony/polyfill-php80 (v1.23.1): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.23.1): Loading from cache
  - Installing symfony/polyfill-intl-normalizer (v1.23.0): Loading from cache
  - Installing symfony/polyfill-intl-grapheme (v1.23.1): Loading from cache
  - Installing symfony/polyfill-ctype (v1.23.0): Loading from cache
  - Installing symfony/string (v5.4.0): Loading from cache
  - Installing symfony/deprecation-contracts (v2.5.0): Loading from cache
  - Installing psr/container (1.1.1): Loading from cache
  - Installing symfony/service-contracts (v2.5.0): Loading from cache
  - Installing symfony/polyfill-php73 (v1.23.0): Loading from cache
  - Installing symfony/console (v5.4.0): Loading from cache
  - Installing psr/log (1.1.4): Loading from cache
  - Installing sabre/event (5.1.4): Loading from cache
  - Installing netresearch/jsonmapper (v4.0.0): Loading from cache
  - Installing microsoft/tolerant-php-parser (v0.1.1): Loading from cache
  - Installing phpdocumentor/reflection-common (2.2.0): Loading from cache
  - Installing webmozart/assert (1.10.0): Loading from cache
  - Installing phpdocumentor/type-resolver (1.5.1): Loading from cache
  - Installing phpdocumentor/reflection-docblock (5.3.0): Loading from cache
  - Installing felixfbecker/advanced-json-rpc (v3.2.1): Loading from cache
  - Installing composer/xdebug-handler (2.0.2): Loading from cache
  - Installing phan/phan (5.2.0): Loading from cache
  - Installing mediawiki/phan-taint-check-plugin (3.3.2): Loading from cache
  - Installing mediawiki/mediawiki-phan-config (0.11.0): Loading from cache
  - Installing mediawiki/minus-x (1.1.1): Loading from cache
  - Installing sebastian/version (3.0.2): Loading from cache
  - Installing sebastian/type (2.3.4): Loading from cache
  - Installing sebastian/resource-operations (3.0.3): Loading from cache
  - Installing sebastian/recursion-context (4.0.4): Loading from cache
  - Installing sebastian/object-reflector (2.0.4): Loading from cache
  - Installing sebastian/object-enumerator (4.0.4): Loading from cache
  - Installing sebastian/global-state (5.0.3): Loading from cache
  - Installing sebastian/exporter (4.0.4): Loading from cache
  - Installing sebastian/environment (5.1.3): Loading from cache
  - Installing sebastian/diff (4.0.4): Loading from cache
  - Installing sebastian/comparator (4.0.6): Loading from cache
  - Installing sebastian/code-unit (1.0.8): Loading from cache
  - Installing sebastian/cli-parser (1.0.1): Loading from cache
  - Installing phpunit/php-timer (5.0.3): Loading from cache
  - Installing phpunit/php-text-template (2.0.4): Loading from cache
  - Installing phpunit/php-invoker (3.1.1): Loading from cache
  - Installing phpunit/php-file-iterator (3.0.6): Loading from cache
  - Installing theseer/tokenizer (1.2.1): Loading from cache
  - Installing nikic/php-parser (v4.13.2): Loading from cache
  - Installing sebastian/lines-of-code (1.0.3): Loading from cache
  - Installing sebastian/complexity (2.0.2): Loading from cache
  - Installing sebastian/code-unit-reverse-lookup (2.0.3): Loading from cache
  - Installing phpunit/php-code-coverage (9.2.10): Loading from cache
  - Installing doctrine/instantiator (1.4.0): Loading from cache
  - Installing phpspec/prophecy (1.14.0): Loading from cache
  - Installing phar-io/version (3.1.0): Loading from cache
  - Installing phar-io/manifest (2.0.3): Loading from cache
  - Installing myclabs/deep-copy (1.10.2): Loading from cache
  - Installing phpunit/phpunit (9.5.10): Loading from cache
  - Installing ockcyp/covers-validator (v1.3.3): 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.3.1): Loading from cache
  - Installing wikimedia/update-history (1.0.1): Loading from cache
  - Installing wikimedia/assert (v0.5.0): Loading from cache
tysonandre/var_representation_polyfill suggests installing ext-var_representation (*)
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.14+ is recommended.)
phan/phan suggests installing ext-var_representation (Suggested for converting values to strings in issue messages)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-pcov (*)
phpunit/php-code-coverage suggests installing ext-xdebug (*)
phpunit/phpunit suggests installing ext-soap (*)
phpunit/phpunit suggests installing ext-xdebug (*)
Writing lock file
Generating optimized autoload files
38 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Attempting to npm audit fix
$ npm audit fix --only=dev

> core-js@2.6.11 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 -)


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

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 288 packages from 184 contributors in 9.046s

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

fixed 0 of 9 vulnerabilities in 289 scanned packages
  1 package update for 9 vulnerabilities involved breaking changes
  (use `npm audit fix --force` to install breaking changes; or refer to `npm audit` for steps to fix these manually)

$ npm audit fix --only=dev
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

up to date in 1.767s

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

fixed 0 of 9 vulnerabilities in 289 scanned packages
  1 package update for 9 vulnerabilities involved breaking changes
  (use `npm audit fix --force` to install breaking changes; or refer to `npm audit` for steps to fix these manually)

$ npm audit fix --only=dev
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

up to date in 1.542s

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

fixed 0 of 9 vulnerabilities in 289 scanned packages
  1 package update for 9 vulnerabilities involved breaking changes
  (use `npm audit fix --force` to install breaking changes; or refer to `npm audit` for steps to fix these manually)

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

Verifying that tests still pass
$ npm ci
npm WARN prepare removing existing node_modules/ before installation

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


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

added 289 packages in 8.784s

$ npm test

> wikimedia-langconv@0.4.1 test /src/repo
> npm run eslint && npm run mocha


> wikimedia-langconv@0.4.1 eslint /src/repo
> eslint lib


/src/repo/lib/FST.js
  44:0  warning  The type 'Utf8Array' is undefined          jsdoc/no-undefined-types
  48:0  warning  The type 'BracketMachine' is undefined     jsdoc/no-undefined-types
  48:0  warning  The type 'ConversionMachine' is undefined  jsdoc/no-undefined-types

/src/repo/lib/ReplacementMachine.js
   15:0  warning  Missing JSDoc @param "baseLanguage" type  jsdoc/require-param-type
   34:2  warning  Missing JSDoc @return declaration         jsdoc/require-returns
   35:0  warning  Missing JSDoc @param "filename" type      jsdoc/require-param-type
   36:0  warning  Missing JSDoc @param "bracket" type       jsdoc/require-param-type
   56:2  warning  Found more than one @return declaration   jsdoc/require-returns
   56:2  warning  Found more than one @return declaration   jsdoc/require-returns-check
   66:0  warning  Missing JSDoc @param "s" type             jsdoc/require-param-type
   67:0  warning  Missing JSDoc @param "destCode" type      jsdoc/require-param-type
   68:0  warning  Missing JSDoc @param "invertCode" type    jsdoc/require-param-type
   99:0  warning  The type 'Node' is undefined              jsdoc/no-undefined-types
  102:0  warning  The type 'Node' is undefined              jsdoc/no-undefined-types
  130:0  warning  The type 'Document' is undefined          jsdoc/no-undefined-types
  138:0  warning  The type 'DocumentFragment' is undefined  jsdoc/no-undefined-types

✖ 16 problems (0 errors, 16 warnings)


> wikimedia-langconv@0.4.1 mocha /src/repo
> mocha --opts tests/mocha/mocha.opts tests/mocha

(node:468) DeprecationWarning: Configuration via mocha.opts is DEPRECATED and will be removed from a future version of Mocha. Use RC files or package.json instead.


  Foma FST verification
    - LANGCONV_TEST_FOMA is not set, skipping

  Language/CRH tests
    ✓ general words, covering more of the alphabet (1) [crh-cyrl]
    ✓ general words, covering more of the alphabet (2) [crh-cyrl]
    ✓ general words, covering more of the alphabet (3) [crh-cyrl]
    ✓ general words, covering more of the alphabet (4) [crh-cyrl]
    ✓ exception words [crh-cyrl]
    ✓ recent problem words, part 1 [crh-cyrl]
    ✓ recent problem words, part 2 [crh-cyrl]
    ✓ recent problem words, part 3 [crh-cyrl]
    ✓ recent problem words, part 4 [crh-cyrl]
    ✓ recent problem words, part 5 [crh-cyrl]
    ✓ recent problem words, part 6 [crh-cyrl]
    ✓ recent problem words, part 7 [crh-cyrl]
    ✓ regex pattern words [crh-cyrl]
    ✓ multi part words [crh-cyrl]
    ✓ affix patterns [crh-cyrl]
    ✓ Roman numerals and quotes, esp. single-letter Roman numerals at the end of a string [crh-cyrl]
    ✓ Roman numerals vs Initials, part 1 - Roman numeral initials without spaces [crh-cyrl]
    ✓ Roman numerals vs Initials, part 2 - Roman numeral initials with spaces [crh-cyrl]
    ✓ ALL CAPS, made up acronyms [crh-cyrl]
    ✓ Many-to-one mappings: many Cyrillic to one Latin [crh-cyrl]
    ✓ Many-to-one mappings: many Latin to one Cyrillic [crh-cyrl]
    ✓ general words, covering more of the alphabet (1) [crh-latn]
    ✓ general words, covering more of the alphabet (2) [crh-latn]
    ✓ general words, covering more of the alphabet (3) [crh-latn]
    ✓ general words, covering more of the alphabet (4) [crh-latn]
    ✓ exception words [crh-latn]
    ✓ recent problem words, part 1 [crh-latn]
    ✓ recent problem words, part 2 [crh-latn]
    ✓ recent problem words, part 3 [crh-latn]
    ✓ recent problem words, part 4 [crh-latn]
    ✓ recent problem words, part 5 [crh-latn]
    ✓ recent problem words, part 6 [crh-latn]
    ✓ recent problem words, part 7 [crh-latn]
    ✓ regex pattern words [crh-latn]
    ✓ multi part words [crh-latn]
    ✓ affix patterns [crh-latn]
    ✓ Roman numerals and quotes, esp. single-letter Roman numerals at the end of a string [crh-latn]
    ✓ Roman numerals vs Initials, part 1 - Roman numeral initials without spaces [crh-latn]
    ✓ Roman numerals vs Initials, part 2 - Roman numeral initials with spaces [crh-latn]
    ✓ ALL CAPS, made up acronyms [crh-latn]
    ✓ Many-to-one mappings: many Cyrillic to one Latin [crh-latn]
    ✓ Many-to-one mappings: many Latin to one Cyrillic [crh-latn]

  LanguageEn tests
    ✓ Converting to Pig Latin [en]
    ✓ Converting from Pig Latin [en]
    ✓ Converting to Pig Latin [en-x-piglatin]
    ✓ Converting from Pig Latin [en-x-piglatin]

  LanguageKu tests
    ✓ Test (1) [ku-arab]
    ✓ Test (3) [ku-arab]
    ✓ Test (1) [ku-latn]
    ✓ Test (2) [ku-latn]
    ✓ Test (3) [ku-latn]

  LanguageSr tests
    ✓ A simple conversion of Latin to Cyrillic [sr-ec]

  LanguageZh tests
    ✓ Plain hant -> hans [zh-cn]
    ✓ Plain hans -> hant [zh-cn]
    ✓ zh-cn specific [zh-cn]
    ✓ zh-hk specific [zh-cn]
    ✓ zh-tw specific [zh-cn]
    ✓ zh-tw overrides zh-hant [zh-cn]
    ✓ zh-hk overrides zh-hant [zh-cn]
    ✓ Plain hant -> hans [zh-sg]
    ✓ Plain hans -> hant [zh-sg]
    ✓ zh-cn specific [zh-sg]
    ✓ zh-hk specific [zh-sg]
    ✓ zh-tw specific [zh-sg]
    ✓ zh-tw overrides zh-hant [zh-sg]
    ✓ zh-hk overrides zh-hant [zh-sg]
    ✓ Plain hant -> hans [zh-my]
    ✓ Plain hans -> hant [zh-my]
    ✓ zh-cn specific [zh-my]
    ✓ zh-hk specific [zh-my]
    ✓ zh-tw specific [zh-my]
    ✓ zh-tw overrides zh-hant [zh-my]
    ✓ zh-hk overrides zh-hant [zh-my]
    ✓ Plain hant -> hans [zh-hans]
    ✓ Plain hans -> hant [zh-hans]
    ✓ zh-cn specific [zh-hans]
    ✓ zh-hk specific [zh-hans]
    ✓ zh-tw specific [zh-hans]
    ✓ zh-tw overrides zh-hant [zh-hans]
    ✓ zh-hk overrides zh-hant [zh-hans]
    ✓ Plain hant -> hans [zh-tw]
    ✓ Plain hans -> hant [zh-tw]
    ✓ zh-cn specific [zh-tw]
    ✓ zh-hk specific [zh-tw]
    ✓ zh-tw specific [zh-tw]
    ✓ zh-tw overrides zh-hant [zh-tw]
    ✓ zh-hk overrides zh-hant [zh-tw]
    ✓ Plain hant -> hans [zh-hk]
    ✓ Plain hans -> hant [zh-hk]
    ✓ zh-cn specific [zh-hk]
    ✓ zh-hk specific [zh-hk]
    ✓ zh-tw specific [zh-hk]
    ✓ zh-tw overrides zh-hant [zh-hk]
    ✓ zh-hk overrides zh-hant [zh-hk]
    ✓ Plain hant -> hans [zh-mo]
    ✓ Plain hans -> hant [zh-mo]
    ✓ zh-cn specific [zh-mo]
    ✓ zh-hk specific [zh-mo]
    ✓ zh-tw specific [zh-mo]
    ✓ zh-tw overrides zh-hant [zh-mo]
    ✓ zh-hk overrides zh-hant [zh-mo]
    ✓ Plain hant -> hans [zh-hant]
    ✓ Plain hans -> hant [zh-hant]
    ✓ zh-cn specific [zh-hant]
    ✓ zh-hk specific [zh-hant]
    ✓ zh-tw specific [zh-hant]
    ✓ zh-tw overrides zh-hant [zh-hant]
    ✓ zh-hk overrides zh-hant [zh-hant]


  108 passing (84ms)
  1 pending


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

$ git add .

$ git commit -F /tmp/tmpbhsn_zi6
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
Source code is licensed under the AGPL.