mediawiki/extensions/MachineVision (main)

sourcepatches
$ date
Sun May 16 08:48:59 UTC 2021

$ git clone file:///srv/git/mediawiki-extensions-MachineVision.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
7ad84d4d0ade69c6d0ad351148e1ecb93e1da337 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: 31 installs, 0 updates, 0 removals
  - Installing squizlabs/php_codesniffer (3.6.0): 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 (v36.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.8): Loading from cache
  - Installing psr/container (1.1.1): Loading from cache
  - Installing symfony/service-contracts (v2.4.0): Loading from cache
  - Installing symfony/polyfill-php73 (v1.22.1): Loading from cache
  - Installing symfony/console (v5.2.8): Loading from cache
  - Installing psr/log (1.1.4): 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.10.0): 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.6): 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.3.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
12 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.3.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 1191 packages from 578 contributors in 20.846s

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

fixed 0 of 7 vulnerabilities in 1194 scanned packages
  7 vulnerabilities required manual review and could not be updated

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

up to date in 6.044s

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

fixed 0 of 7 vulnerabilities in 1194 scanned packages
  7 vulnerabilities required manual review and could not be updated

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

up to date in 6.043s

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

fixed 0 of 7 vulnerabilities in 1194 scanned packages
  7 vulnerabilities required manual review and could not be updated

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 1192 packages in 19.227s

$ npm test

> @ test /src/repo
> grunt test && npm run test:unit

Running "eslint:all" (eslint) task

/src/repo/resources/components/App.vue
  206:18  warning  URL is not supported in IE 11  compat/compat

✖ 1 problem (0 errors, 1 warning)


Running "banana:MachineVision" (banana) task
>> 2 message directories checked.

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

Done.

> @ test:unit /src/repo
> jest

PASS tests/jest/mutations.test.js
PASS tests/jest/actions.test.js
PASS tests/jest/getters.test.js
PASS tests/jest/CardStack.test.js
PASS tests/jest/App.test.js
PASS tests/jest/ImageCard.test.js
---------------------------|---------|----------|---------|---------|-------------------------
File                       | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s       
---------------------------|---------|----------|---------|---------|-------------------------
All files                  |   74.23 |    60.78 |   70.95 |   74.23 |                         
 components                |   78.99 |    54.29 |   72.55 |   78.99 |                         
  App.vue                  |   58.14 |    31.25 |   46.15 |   58.14 | 153-160,199-254,296     
  CardStack.vue            |   90.91 |    72.73 |   90.91 |   90.91 | 173-174                 
  CardStackPlaceholder.vue |     100 |      100 |     100 |     100 |                         
  CategoriesList.vue       |     100 |      100 |     100 |     100 |                         
  FadeIn.vue               |     100 |      100 |     100 |     100 |                         
  ImageCard.vue            |   84.21 |      100 |   72.22 |   84.21 | 153-160,196-197,267-268 
  ImageExclusionNotice.vue |      70 |      100 |      75 |      70 | 49-51                   
  PersonalUploadsCount.vue |     100 |      100 |     100 |     100 |                         
  Spinner.vue              |     100 |      100 |     100 |     100 |                         
  SuggestionsGroup.vue     |     100 |       50 |     100 |     100 | 82-91                   
  UserMessage.vue          |     100 |      100 |     100 |     100 |                         
 components/base           |   64.79 |    35.29 |   72.73 |   64.79 |                         
  Button.vue               |     100 |    66.67 |     100 |     100 | 83                      
  Icon.vue                 |     100 |      100 |     100 |     100 |                         
  Message.vue              |     100 |      100 |     100 |     100 |                         
  Suggestion.vue           |     100 |      100 |     100 |     100 |                         
  Tab.vue                  |     100 |      100 |     100 |     100 |                         
  Tabs.vue                 |      50 |    33.33 |   66.67 |      50 | 72-76,108-131,160,174   
  ToastNotification.vue    |   14.29 |      100 |       0 |   14.29 | 51-76                   
  ToggleSwitch.vue         |      50 |        0 |      75 |      50 | 91-96                   
 models                    |     100 |       75 |     100 |     100 |                         
  Image.js                 |     100 |      100 |     100 |     100 |                         
  Suggestion.js            |     100 |       75 |     100 |     100 | 17                      
 plugins                   |   22.22 |        0 |   33.33 |   22.22 |                         
  api.js                   |       0 |        0 |       0 |       0 | 13-28                   
  logger.js                |      40 |        0 |      50 |      40 | 26-36                   
 store                     |   74.84 |    80.95 |   69.49 |   74.84 |                         
  actions.js               |   88.89 |       95 |   82.76 |   88.89 | 187,306-345             
  getters.js               |   59.09 |       50 |      60 |   59.09 | 34,50,66-98             
  index.js                 |       0 |      100 |     100 |       0 | 4-16                    
  mutations.js             |    62.5 |    66.67 |   47.06 |    62.5 | 44-48,74,130-182        
  state.js                 |       0 |      100 |     100 |       0 | 3                       
  utils.js                 |     100 |      100 |     100 |     100 |                         
---------------------------|---------|----------|---------|---------|-------------------------

Test Suites: 6 passed, 6 total
Tests:       58 passed, 58 total
Snapshots:   0 total
Time:        6.849 s
Ran all test suites.

$ git add .

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

nothing to commit, working tree clean

composer dependencies

Dependencies
Development dependencies

npm dependencies

Development dependencies

Logs

Source code is licensed under the AGPL.