$ date
Thu Mar 4 10:03:57 UTC 2021
$ git clone file:///srv/git/mediawiki-extensions-WikibaseQualityConstraints.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
3e2b584d680ef1cfccfa0c8de962d6b008154cc8 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 is now available and you should upgrade. See https://getcomposer.org/2
Updating dependencies (including require-dev)
Package operations: 45 installs, 0 updates, 0 removals
- Installing data-values/interfaces (0.2.5): Loading from cache
- Installing data-values/data-values (2.3.0): Loading from cache
- Installing data-values/common (0.4.3): Loading from cache
- Installing data-values/number (0.10.1): Loading from cache
- Installing wikimedia/purtle (v1.0.7): Loading from cache
- Installing squizlabs/php_codesniffer (3.5.8): Loading from cache
- Installing composer/spdx-licenses (1.5.5): Loading from cache
- Installing composer/semver (3.2.4): Loading from cache
- Installing mediawiki/mediawiki-codesniffer (v35.0.0): Loading from cache
- Installing symfony/polyfill-php80 (v1.22.1): Loading from cache
- Installing symfony/polyfill-mbstring (v1.22.1): Loading from cache
- Installing symfony/polyfill-intl-normalizer (v1.22.1): Loading from cache
- Installing symfony/polyfill-intl-grapheme (v1.22.1): Loading from cache
- Installing symfony/polyfill-ctype (v1.22.1): 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.1): Loading from cache
- Installing symfony/console (v5.2.3): Loading from cache
- 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
- Installing mediawiki/minus-x (1.1.1): 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 data-values/geo (4.2.2): Loading from cache
- Installing data-values/time (1.0.2): Loading from cache
- Installing serialization/serialization (4.0.0): Loading from cache
- Installing data-values/serialization (1.2.3): Loading from cache
- Installing wikimedia/assert (v0.5.0): Loading from cache
- Installing wikibase/data-model (9.5.1): Loading from cache
- Installing wikibase/data-model-serialization (2.9.1): Loading from cache
- Installing diff/diff (3.2.0): Loading from cache
- Installing wikibase/data-model-services (5.2.0): 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!
Attempting to npm audit fix
$ npm audit fix --only=dev
> core-js@2.6.12 postinstall /src/repo/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
[96mThank you for using core-js ([94m https://github.com/zloirock/core-js [96m) for polyfilling JavaScript standard library![0m
[96mThe project needs your help! Please consider supporting of core-js on Open Collective or Patreon: [0m
[96m>[94m https://opencollective.com/core-js [0m
[96m>[94m https://www.patreon.com/zloirock [0m
[96mAlso, the author of core-js ([94m https://github.com/zloirock [96m) is looking for a good job -)[0m
> core-js@3.8.3 postinstall /src/repo/node_modules/eslint-plugin-compat/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
added 611 packages from 682 contributors in 16.623s
69 packages are looking for funding
run `npm fund` for details
fixed 0 of 1 vulnerability in 611 scanned packages
1 package update for 1 vulnerability involved breaking changes
(use `npm audit fix --force` to install breaking changes; or refer to `npm audit` for steps to fix these manually)
Verifying that tests still pass
$ npm ci
npm WARN prepare removing existing node_modules/ before installation
> core-js@3.8.3 postinstall /src/repo/node_modules/eslint-plugin-compat/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
> core-js@2.6.12 postinstall /src/repo/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
added 611 packages in 13.513s
$ npm test
> @ test /src/repo
> grunt test
Running "eslint:all" (eslint) task
/src/repo/modules/ui/ConstraintReportGroup.js
30:0 warning Invalid JSDoc tag name "mixins" jsdoc/check-tag-names
✖ 1 problem (0 errors, 1 warning)
Running "banana:WikibaseQualityConstraints" (banana) task
>> 2 message directories checked.
Running "jasmine_nodejs:all" (jasmine_nodejs) task
>> Executing 24 defined specs...
Test Suites & Specs:
1) wikibase.quality.constraints.gadget
2) config
✔ can be overwritten by constructor parameter
✔ has default values
3) default behavior
✔ checks if wbIsEditView true
✔ gets entity id from wbEntityId
✔ runs a fullCheck once mw loader is done and entityView.rendered fires
✔ sets entity from newFromEntityLoadedHook
✔ invokes mw loader and resumes once it is ready
4) _getEntityDataByStatementId
✔ returns null when the statementId isn't present
✔ extracts the entity data when the statementId exists
5) setting and getting an entity
✔ gets the same entity as set
6) snackCheck
✔ calls api with statement id
✔ adds reports to statement from response
✔ runs a full check
7) fullCheck
✔ uses api response to update DOM statements
✔ calls api with correct parameters
✔ tracks usage
8) _fullCheckAllIds
✔ chunks requests
9) _aggregateMultipleWbcheckconstraintsResponses
✔ can combine multiple responses' entity information
10) _addReportsToStatement
✔ adds results to main snak
✔ extracts result for statement with property id and statement id
✔ adds results to qualifiers
✔ adds results to references
11) _extractResultsForStatement
✔ finds constraint violation result in entity data
✔ exports an invokable module
>> Done!
Summary:
Suites: 11 of 11
Specs: 24 of 24
Expects: 0 (0 failures)
Finished in 0.190 seconds
>> Successful!
Running "stylelint:all" (stylelint) task
>> Linted 4 files without errors
Done.
$ git add .
$ git commit -F /tmp/tmpbwlkzrla
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
.