mediawiki/extensions/WikiLambda (main)

sourcepatches
$ date
Thu Jun 10 22:03:40 UTC 2021

$ git clone file:///srv/git/mediawiki-extensions-WikiLambda.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
b674465fce14f5a44db9f9a32e393ed09991e02f 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: 32 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.5): Loading from cache
  - Installing mediawiki/mediawiki-codesniffer (v36.0.0): Loading from cache
  - Installing symfony/polyfill-php80 (v1.23.0): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.23.0): Loading from cache
  - Installing symfony/polyfill-intl-normalizer (v1.23.0): Loading from cache
  - Installing symfony/polyfill-intl-grapheme (v1.23.0): Loading from cache
  - Installing symfony/polyfill-ctype (v1.23.0): Loading from cache
  - Installing symfony/string (v5.3.0): 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.23.0): Loading from cache
  - Installing symfony/deprecation-contracts (v2.4.0): Loading from cache
  - Installing symfony/console (v5.3.0): 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
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

> fibers@5.0.0 install /src/repo/node_modules/fibers
> node build.js || nodejs build.js

make: Entering directory '/src/repo/node_modules/fibers/build'
  CXX(target) Release/obj.target/fibers/src/fibers.o
../src/fibers.cc: In function ‘void uni::SetAccessor(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, uni::FunctionType (*)(v8::Local<v8::String>, const GetterCallbackInfo&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const SetterCallbackInfo&))’:
../src/fibers.cc:355:87: warning: cast between incompatible function types from ‘uni::FunctionType (*)(v8::Local<v8::String>, const GetterCallbackInfo&)’ {aka ‘void (*)(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>&)’} to ‘v8::AccessorNameGetterCallback’ {aka ‘void (*)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&)’} [-Wcast-function-type]
   object->SetAccessor(isolate->GetCurrentContext(), name, (AccessorNameGetterCallback)getter, (AccessorNameSetterCallback)setter).ToChecked();
                                                                                       ^~~~~~
../src/fibers.cc:355:123: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const SetterCallbackInfo&)’ {aka ‘void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&)’} to ‘v8::AccessorNameSetterCallback’ {aka ‘void (*)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&)’} [-Wcast-function-type]
   object->SetAccessor(isolate->GetCurrentContext(), name, (AccessorNameGetterCallback)getter, (AccessorNameSetterCallback)setter).ToChecked();
                                                                                                                           ^~~~~~
In file included from ../src/coroutine.h:1,
                 from ../src/fibers.cc:1:
../src/fibers.cc: At global scope:
/cache/node-gyp/10.24.0/include/node/node.h:573:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
       (node::addon_register_func) (regfunc),                          \
                                           ^
/cache/node-gyp/10.24.0/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
   ^~~~~~~~~~~~~
../src/fibers.cc:930:1: note: in expansion of macro ‘NODE_MODULE’
 NODE_MODULE(fibers, init)
 ^~~~~~~~~~~
  CXX(target) Release/obj.target/fibers/src/coroutine.o
  CC(target) Release/obj.target/fibers/src/libcoro/coro.o
  SOLINK_MODULE(target) Release/obj.target/fibers.node
  COPY Release/fibers.node
make: Leaving directory '/src/repo/node_modules/fibers/build'
Installed in `/src/repo/node_modules/fibers/bin/linux-x64-64-glibc/fibers.node`

> core-js@2.6.12 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-pure@3.13.1 postinstall /src/repo/node_modules/core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"


> core-js@3.13.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 1223 packages from 825 contributors in 27.032s

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

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

$ npm audit fix --only=dev
npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
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.521s

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

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

$ npm audit fix --only=dev
npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
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.805s

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

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

$ package-lock-lint package-lock.json
0 issues found in: package-lock.json

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

> core-js-pure@3.13.1 postinstall /src/repo/node_modules/core-js-pure
> 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){}"


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


> fibers@5.0.0 install /src/repo/node_modules/fibers
> node build.js || nodejs build.js

make: Entering directory '/src/repo/node_modules/fibers/build'
  CXX(target) Release/obj.target/fibers/src/fibers.o
../src/fibers.cc: In function ‘void uni::SetAccessor(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, uni::FunctionType (*)(v8::Local<v8::String>, const GetterCallbackInfo&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const SetterCallbackInfo&))’:
../src/fibers.cc:355:87: warning: cast between incompatible function types from ‘uni::FunctionType (*)(v8::Local<v8::String>, const GetterCallbackInfo&)’ {aka ‘void (*)(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>&)’} to ‘v8::AccessorNameGetterCallback’ {aka ‘void (*)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&)’} [-Wcast-function-type]
   object->SetAccessor(isolate->GetCurrentContext(), name, (AccessorNameGetterCallback)getter, (AccessorNameSetterCallback)setter).ToChecked();
                                                                                       ^~~~~~
../src/fibers.cc:355:123: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const SetterCallbackInfo&)’ {aka ‘void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&)’} to ‘v8::AccessorNameSetterCallback’ {aka ‘void (*)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&)’} [-Wcast-function-type]
   object->SetAccessor(isolate->GetCurrentContext(), name, (AccessorNameGetterCallback)getter, (AccessorNameSetterCallback)setter).ToChecked();
                                                                                                                           ^~~~~~
In file included from ../src/coroutine.h:1,
                 from ../src/fibers.cc:1:
../src/fibers.cc: At global scope:
/cache/node-gyp/10.24.0/include/node/node.h:573:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
       (node::addon_register_func) (regfunc),                          \
                                           ^
/cache/node-gyp/10.24.0/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
   ^~~~~~~~~~~~~
../src/fibers.cc:930:1: note: in expansion of macro ‘NODE_MODULE’
 NODE_MODULE(fibers, init)
 ^~~~~~~~~~~
  CXX(target) Release/obj.target/fibers/src/coroutine.o
  CC(target) Release/obj.target/fibers/src/libcoro/coro.o
  SOLINK_MODULE(target) Release/obj.target/fibers.node
  COPY Release/fibers.node
make: Leaving directory '/src/repo/node_modules/fibers/build'
Installed in `/src/repo/node_modules/fibers/bin/linux-x64-64-glibc/fibers.node`
added 1224 packages in 19.741s

$ npm test

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

Running "eslint:all" (eslint) task

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

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

Done.

> @ test:unit /src/repo
> jest

PASS tests/jest/store/modules/callzfunction.test.js
PASS tests/jest/store/modules/zobjectModes.test.js
PASS tests/jest/store/modules/zKeys.test.js
PASS tests/jest/mixins/schemata.test.js
PASS tests/jest/store/modules/zobject.test.js

[vue-jest]: no .babelrc found, skipping babel compilation


[vue-jest]: Less and PostCSS are not currently compiled by vue-jest


[vue-jest]: Less and PostCSS are not currently compiled by vue-jest


[vue-jest]: no .babelrc found, skipping babel compilation


[vue-jest]: no .babelrc found, skipping babel compilation


[vue-jest]: Less and PostCSS are not currently compiled by vue-jest

PASS tests/jest/components/ZKeyModeSelector.test.js
PASS tests/jest/components/ZObjectJson.test.js
PASS tests/jest/components/ZObject.test.js
PASS tests/jest/components/ZObjectEditor.test.js
PASS tests/jest/components/App.test.js
PASS tests/jest/components/ZObjectViewer.test.js
--------------------------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------------------------------------
File                                  | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                                                                                                             
--------------------------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------------------------------------
All files                             |   42.22 |    35.49 |    28.4 |   42.17 |                                                                                                                               
 ext.wikilambda.edit                  |      40 |      100 |       0 |      40 |                                                                                                                               
  Constants.js                        |     100 |      100 |     100 |     100 |                                                                                                                               
  index.js                            |       0 |      100 |       0 |       0 | 9-19                                                                                                                          
 ext.wikilambda.edit/components       |   43.03 |    12.66 |   27.63 |   43.03 |                                                                                                                               
  App.vue                             |     100 |      100 |     100 |     100 |                                                                                                                               
  ZFunctionSignature.vue              |     100 |      100 |     100 |     100 |                                                                                                                               
  ZKeyModeSelector.vue                |      90 |       50 |     100 |      90 | 67                                                                                                                            
  ZObject.vue                         |   95.65 |      100 |   83.33 |   95.65 | 161                                                                                                                           
  ZObjectEditor.vue                   |   78.57 |    33.33 |   66.67 |   78.57 | 71,87-91                                                                                                                      
  ZObjectGeneric.vue                  |   43.75 |        0 |       0 |   43.75 | 71-121                                                                                                                        
  ZObjectJson.vue                     |   51.43 |       40 |   46.15 |   51.43 | 55,60,69-100,112,120-121                                                                                                      
  ZObjectKey.vue                      |   34.38 |        0 |       0 |   34.38 | 102-198                                                                                                                       
  ZObjectKeyInput.vue                 |      25 |        0 |       0 |      25 | 33-46                                                                                                                         
  ZObjectKeyList.vue                  |   33.33 |        0 |       0 |   33.33 | 59-119                                                                                                                        
  ZObjectSelector.vue                 |   12.35 |        0 |       0 |   12.35 | 76-302                                                                                                                        
  ZObjectViewer.vue                   |     100 |      100 |     100 |     100 |                                                                                                                               
 ext.wikilambda.edit/components/types |   25.67 |        0 |       0 |   25.67 |                                                                                                                               
  ZArgument.vue                       |   26.67 |        0 |       0 |   26.67 | 61-116                                                                                                                        
  ZArgumentList.vue                   |      50 |      100 |       0 |      50 | 36-44                                                                                                                         
  ZBoolean.vue                        |   38.46 |        0 |       0 |   38.46 | 56-83                                                                                                                         
  ZCode.vue                           |      25 |        0 |       0 |      25 | 57-142                                                                                                                        
  ZFunction.vue                       |   16.98 |        0 |       0 |   16.98 | 66-183                                                                                                                        
  ZFunctionCall.vue                   |   13.43 |        0 |       0 |   13.43 | 80-257                                                                                                                        
  ZImplementation.vue                 |   27.59 |        0 |       0 |   27.59 | 51-116                                                                                                                        
  ZImplementationList.vue             |      50 |      100 |       0 |      50 | 36-44                                                                                                                         
  ZList.vue                           |   41.67 |      100 |       0 |   41.67 | 47-79                                                                                                                         
  ZListItem.vue                       |    37.5 |      100 |       0 |    37.5 | 52-101                                                                                                                        
  ZMonolingualString.vue              |   23.81 |        0 |       0 |   23.81 | 57-129                                                                                                                        
  ZMultilingualString.vue             |   21.43 |        0 |       0 |   21.43 | 64-159                                                                                                                        
  ZReference.vue                      |   42.86 |        0 |       0 |   42.86 | 61-96                                                                                                                         
  ZString.vue                         |   41.67 |        0 |       0 |   41.67 | 46-70                                                                                                                         
 ext.wikilambda.edit/mixins           |   66.25 |    68.33 |   43.75 |   65.82 |                                                                                                                               
  schemata.js                         |   93.02 |    86.84 |     100 |   92.86 | 8,37,70                                                                                                                       
  typeUtils.js                        |      50 |       50 |   16.67 |      50 | 24,28,47-73                                                                                                                   
  validator.js                        |    7.69 |        0 |       0 |    7.69 | 13-53                                                                                                                         
 ext.wikilambda.edit/store            |   11.76 |        0 |      20 |   11.76 |                                                                                                                               
  actions.js                          |       0 |      100 |       0 |       0 | 9-24                                                                                                                          
  getters.js                          |   30.77 |        0 |      25 |   30.77 | 12-26                                                                                                                         
  index.js                            |       0 |      100 |     100 |       0 | 9-24                                                                                                                          
  mutations.js                        |       0 |      100 |     100 |       0 | 7                                                                                                                             
  state.js                            |       0 |      100 |     100 |       0 | 9                                                                                                                             
 ext.wikilambda.edit/store/modules    |    52.9 |    56.21 |   58.77 |    52.9 |                                                                                                                               
  callZFunction.js                    |   63.64 |        0 |      80 |   63.64 | 6-11                                                                                                                          
  languages.js                        |       0 |        0 |       0 |       0 | 8-125                                                                                                                         
  programmingLanguages.js             |       0 |      100 |       0 |       0 | 8-76                                                                                                                          
  zKeys.js                            |   80.56 |    72.22 |   61.54 |   80.56 | 46-80,127                                                                                                                     
  zobject.js                          |   49.36 |    56.48 |   59.72 |   49.36 | 72,88,110,125-127,209,213,217-218,226,230,236-237,250-276,300-303,336,409-411,426,456-457,477-479,512,531-843,866,870,884-952 
  zobjectModes.js                     |   96.67 |    92.31 |     100 |   96.67 | 21                                                                                                                            
 lib                                  |     100 |      100 |     100 |     100 |                                                                                                                               
  icons.js                            |     100 |      100 |     100 |     100 |                                                                                                                               
--------------------------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------------------------------------

Test Suites: 11 passed, 11 total
Tests:       62 passed, 62 total
Snapshots:   0 total
Time:        9.574 s
Ran all test suites.

$ package-lock-lint package-lock.json
0 issues found in: package-lock.json

$ git add .

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

nothing to commit, working tree clean

composer dependencies

Development dependencies

npm dependencies

Development dependencies

Logs

Source code is licensed under the AGPL.