mediawiki/tools/api-testing (main)

sourcepatches
$ date
--- stdout ---
Sat Mar 29 05:46:18 UTC 2025

--- end ---
$ git clone file:///srv/git/mediawiki-tools-api-testing.git repo --depth=1 -b master
--- stderr ---
Cloning into 'repo'...
--- stdout ---

--- end ---
$ git config user.name libraryupgrader
--- stdout ---

--- end ---
$ git config user.email tools.libraryupgrader@tools.wmflabs.org
--- stdout ---

--- end ---
$ git submodule update --init
--- stdout ---

--- end ---
$ grr init
--- stdout ---
Installed commit-msg hook.

--- end ---
$ git show-ref refs/heads/master
--- stdout ---
18870071f2a3cac6c001a10fc2adfb0fc7ee071f refs/heads/master

--- end ---
$ /usr/bin/npm audit --json
--- stdout ---
{
  "auditReportVersion": 2,
  "vulnerabilities": {},
  "metadata": {
    "vulnerabilities": {
      "info": 0,
      "low": 0,
      "moderate": 0,
      "high": 0,
      "critical": 0,
      "total": 0
    },
    "dependencies": {
      "prod": 45,
      "dev": 351,
      "optional": 2,
      "peer": 1,
      "peerOptional": 0,
      "total": 395
    }
  }
}

--- end ---
Upgrading n:jsdoc-wmf-theme from 0.0.13 -> 1.0.1
$ /usr/bin/npm install
--- stdout ---

added 395 packages, and audited 396 packages in 4s

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

found 0 vulnerabilities

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

--- end ---
$ /usr/bin/npm ci
--- stdout ---

added 395 packages, and audited 396 packages in 4s

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

found 0 vulnerabilities

--- end ---
$ /usr/bin/npm test
--- stdout ---

> api-testing@1.7.0 test
> npm run lint && mocha --parallel


> api-testing@1.7.0 lint
> eslint --cache .


/src/repo/lib/action_clients.js
  60:1  warning  Missing JSDoc @param "tag" type  jsdoc/require-param-type

/src/repo/lib/config.js
  17:8  warning  Found existsSync from package "fs" with non literal argument at index 0  security/detect-non-literal-fs-filename
  20:9  warning  Found existsSync from package "fs" with non literal argument at index 0  security/detect-non-literal-fs-filename
  28:8  warning  Found existsSync from package "fs" with non literal argument at index 0  security/detect-non-literal-fs-filename
  33:9  warning  Found non-literal argument in require                                    security/detect-non-literal-require

/src/repo/test/Config.js
   6:1   warning  Unused eslint-disable directive (no problems were reported from 'n/no-unsupported-features/node-builtins')
  19:8   warning  Found mkdir from package "fs" with non literal argument at index 0                                          security/detect-non-literal-fs-filename
  20:8   warning  Found mkdir from package "fs" with non literal argument at index 0                                          security/detect-non-literal-fs-filename
  22:17  warning  Found writeFile from package "fs" with non literal argument at index 0                                      security/detect-non-literal-fs-filename
  30:33  warning  Found readdir from package "fs" with non literal argument at index 0                                        security/detect-non-literal-fs-filename
  31:53  warning  Found unlink from package "fs" with non literal argument at index 0                                         security/detect-non-literal-fs-filename
  33:31  warning  Found readdir from package "fs" with non literal argument at index 0                                        security/detect-non-literal-fs-filename
  36:4   warning  Found rmdir from package "fs" with non literal argument at index 0                                          security/detect-non-literal-fs-filename
  37:4   warning  Found unlink from package "fs" with non literal argument at index 0                                         security/detect-non-literal-fs-filename
  41:8   warning  Found rmdir from package "fs" with non literal argument at index 0                                          security/detect-non-literal-fs-filename
  85:5   warning  Found rename from package "fs" with non literal argument at index 0,1                                       security/detect-non-literal-fs-filename

✖ 16 problems (0 errors, 16 warnings)
  0 errors and 1 warning potentially fixable with the `--fix` option.



  1) Uncaught error outside test suite

  0 passing (500ms)
  1 failing

  1) Uncaught error outside test suite:
     Uncaught Error: Missing local config! Please create a .api-testing.config.json config
      at module.exports (lib/config.js:29:10)
      at Object.<anonymous> (lib/actionapi.js:6:35)
      at Module._compile (node:internal/modules/cjs/loader:1356:14)
      at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
      at Module.load (node:internal/modules/cjs/loader:1197:32)
      at Module._load (node:internal/modules/cjs/loader:1013:12)
      at Module.require (node:internal/modules/cjs/loader:1225:19)
      at require (node:internal/modules/helpers:177:18)
      at Object.<anonymous> (lib/action_clients.js:4:16)
      at Module._compile (node:internal/modules/cjs/loader:1356:14)




  2) Uncaught error outside test suite

  3) Uncaught error outside test suite

--- end ---
Traceback (most recent call last):
  File "/venv/lib/python3.11/site-packages/runner-0.1.0-py3.11.egg/runner/__init__.py", line 1964, in main
    libup.run(args.repo, args.output, args.branch)
  File "/venv/lib/python3.11/site-packages/runner-0.1.0-py3.11.egg/runner/__init__.py", line 1902, in run
    self.npm_upgrade(plan)
  File "/venv/lib/python3.11/site-packages/runner-0.1.0-py3.11.egg/runner/__init__.py", line 1252, in npm_upgrade
    self.npm_test()
  File "/venv/lib/python3.11/site-packages/runner-0.1.0-py3.11.egg/runner/__init__.py", line 325, in npm_test
    self.check_call(["npm", "test"])
  File "/venv/lib/python3.11/site-packages/runner-0.1.0-py3.11.egg/runner/shell2.py", line 59, in check_call
    res.check_returncode()
  File "/usr/lib/python3.11/subprocess.py", line 502, in check_returncode
    raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '['/usr/bin/npm', 'test']' returned non-zero exit status 3.

npm dependencies

Dependencies
Development dependencies

Logs

Source code is licensed under the AGPL.