This run took 82 seconds.
From c6cb688156902dbbc1d066e58f942f10ee446631 Mon Sep 17 00:00:00 2001 From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org> Date: Sat, 24 May 2025 05:07:10 +0000 Subject: [PATCH] build: Updating npm dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * formidable: 3.5.2 → 3.5.4 * https://github.com/advisories/GHSA-75v8-2h7p-7m2m * tar-fs: 2.1.1 → 2.1.3 * https://github.com/advisories/GHSA-pq67-2wwv-3xjx * undici: 6.21.1 → 6.21.3 * https://github.com/advisories/GHSA-cxrh-j4jr-qwg3 Change-Id: I10b1a19691de6b043fec41e9bb100fe5d3832176 --- package-lock.json | 56 ++++++++++++++++++++++++++++------------------- 1 file changed, 34 insertions(+), 22 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7a8457a..99968ff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2051,6 +2051,18 @@ "eslint-scope": "5.1.1" } }, + "node_modules/@noble/hashes": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", + "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", + "dev": true, + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -2137,6 +2149,15 @@ "node": ">=8.0.0" } }, + "node_modules/@paralleldrive/cuid2": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@paralleldrive/cuid2/-/cuid2-2.2.2.tgz", + "integrity": "sha512-ZOBkgDwEdoYVlSeRbYYXs0S9MejQofiVYoTbKzy/6GQa39/q5tQU2IX46+shYnUkpEl3wc+J6wRlar7r2EK2xA==", + "dev": true, + "dependencies": { + "@noble/hashes": "^1.1.5" + } + }, "node_modules/@rtsao/scc": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz", @@ -5585,16 +5606,18 @@ } }, "node_modules/formidable": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/formidable/-/formidable-3.5.2.tgz", - "integrity": "sha512-Jqc1btCy3QzRbJaICGwKcBfGWuLADRerLzDqi2NwSt/UkXLsHJw2TVResiaoBufHVHy9aSgClOHCeJsSsFLTbg==", + "version": "3.5.4", + "resolved": "https://registry.npmjs.org/formidable/-/formidable-3.5.4.tgz", + "integrity": "sha512-YikH+7CUTOtP44ZTnUhR7Ic2UASBPOqmaRkRKxRbywPTe5VxF7RRCck4af9wutiZ/QKM5nME9Bie2fFaPz5Gug==", "dev": true, - "license": "MIT", "dependencies": { + "@paralleldrive/cuid2": "^2.2.2", "dezalgo": "^1.0.4", - "hexoid": "^2.0.0", "once": "^1.4.0" }, + "engines": { + "node": ">=14.0.0" + }, "funding": { "url": "https://ko-fi.com/tunnckoCore/commissions" } @@ -6009,16 +6032,6 @@ "node": ">= 0.4" } }, - "node_modules/hexoid": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/hexoid/-/hexoid-2.0.0.tgz", - "integrity": "sha512-qlspKUK7IlSQv2o+5I7yhUd7TxlOG2Vr5LTa3ve2XSNVKAL/n/u/7KLvKmFNimomDIKvZFXWHv0T12mv7rT8Aw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/hosted-git-info": { "version": "2.8.9", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", @@ -10073,10 +10086,9 @@ } }, "node_modules/tar-fs": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", - "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", - "license": "MIT", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.3.tgz", + "integrity": "sha512-090nwYJDmlhwFwEW3QQl+vaNnxsO2yVsd45eTKRBzSzu+hlb1w2K9inVq5b0ngXuLVqQ4ApvsUHHnu/zQNkWAg==", "dependencies": { "chownr": "^1.1.1", "mkdirp-classic": "^0.5.2", @@ -10469,9 +10481,9 @@ "license": "MIT" }, "node_modules/undici": { - "version": "6.21.1", - "resolved": "https://registry.npmjs.org/undici/-/undici-6.21.1.tgz", - "integrity": "sha512-q/1rj5D0/zayJB2FraXdaWxbhWiNKDvu8naDT2dl1yTlvJp4BLtOcp2a5BvgGNQpYYJzau7tf1WgKv3b+7mqpQ==", + "version": "6.21.3", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.21.3.tgz", + "integrity": "sha512-gBLkYIlEnSp8pFbT64yFgGE6UIB9tAkhukC23PmMDCe5Nd+cRqKxSjw5y54MK2AZMgZfJWMaNE4nYUHgi1XEOw==", "engines": { "node": ">=18.17" } -- 2.39.5
$ date --- stdout --- Sat May 24 05:05:57 UTC 2025 --- end --- $ git clone file:///srv/git/mediawiki-services-cxserver.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 --- 7bd6cf223e8e1259b48a2463488d179dcddf8915 refs/heads/master --- end --- $ /usr/bin/npm audit --json --- stdout --- { "auditReportVersion": 2, "vulnerabilities": { "formidable": { "name": "formidable", "severity": "low", "isDirect": false, "via": [ { "source": 1104171, "name": "formidable", "dependency": "formidable", "title": "Formidable relies on hexoid to prevent guessing of filenames for untrusted executable content", "url": "https://github.com/advisories/GHSA-75v8-2h7p-7m2m", "severity": "low", "cwe": [ "CWE-338" ], "cvss": { "score": 3.1, "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N" }, "range": ">=3.1.1-canary.20211030 <3.5.3" } ], "effects": [], "range": "3.1.1-canary.20211030 - 3.5.2", "nodes": [ "node_modules/formidable" ], "fixAvailable": true }, "tar-fs": { "name": "tar-fs", "severity": "high", "isDirect": false, "via": [ { "source": 1104677, "name": "tar-fs", "dependency": "tar-fs", "title": "tar-fs Vulnerable to Link Following and Path Traversal via Extracting a Crafted tar File", "url": "https://github.com/advisories/GHSA-pq67-2wwv-3xjx", "severity": "high", "cwe": [ "CWE-22" ], "cvss": { "score": 7.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N" }, "range": ">=2.0.0 <2.1.2" } ], "effects": [], "range": "2.0.0 - 2.1.1", "nodes": [ "node_modules/tar-fs" ], "fixAvailable": true }, "undici": { "name": "undici", "severity": "low", "isDirect": true, "via": [ { "source": 1104500, "name": "undici", "dependency": "undici", "title": "undici Denial of Service attack via bad certificate data", "url": "https://github.com/advisories/GHSA-cxrh-j4jr-qwg3", "severity": "low", "cwe": [ "CWE-401" ], "cvss": { "score": 3.1, "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L" }, "range": ">=6.0.0 <6.21.2" } ], "effects": [], "range": "6.0.0 - 6.21.1", "nodes": [ "node_modules/undici" ], "fixAvailable": true } }, "metadata": { "vulnerabilities": { "info": 0, "low": 2, "moderate": 0, "high": 1, "critical": 0, "total": 3 }, "dependencies": { "prod": 281, "dev": 528, "optional": 52, "peer": 1, "peerOptional": 0, "total": 860 } } } --- end --- $ /usr/bin/npm audit --json --- stdout --- { "auditReportVersion": 2, "vulnerabilities": { "formidable": { "name": "formidable", "severity": "low", "isDirect": false, "via": [ { "source": 1104171, "name": "formidable", "dependency": "formidable", "title": "Formidable relies on hexoid to prevent guessing of filenames for untrusted executable content", "url": "https://github.com/advisories/GHSA-75v8-2h7p-7m2m", "severity": "low", "cwe": [ "CWE-338" ], "cvss": { "score": 3.1, "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N" }, "range": ">=3.1.1-canary.20211030 <3.5.3" } ], "effects": [], "range": "3.1.1-canary.20211030 - 3.5.2", "nodes": [ "node_modules/formidable" ], "fixAvailable": true }, "tar-fs": { "name": "tar-fs", "severity": "high", "isDirect": false, "via": [ { "source": 1104677, "name": "tar-fs", "dependency": "tar-fs", "title": "tar-fs Vulnerable to Link Following and Path Traversal via Extracting a Crafted tar File", "url": "https://github.com/advisories/GHSA-pq67-2wwv-3xjx", "severity": "high", "cwe": [ "CWE-22" ], "cvss": { "score": 7.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N" }, "range": ">=2.0.0 <2.1.2" } ], "effects": [], "range": "2.0.0 - 2.1.1", "nodes": [ "node_modules/tar-fs" ], "fixAvailable": true }, "undici": { "name": "undici", "severity": "low", "isDirect": true, "via": [ { "source": 1104500, "name": "undici", "dependency": "undici", "title": "undici Denial of Service attack via bad certificate data", "url": "https://github.com/advisories/GHSA-cxrh-j4jr-qwg3", "severity": "low", "cwe": [ "CWE-401" ], "cvss": { "score": 3.1, "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L" }, "range": ">=6.0.0 <6.21.2" } ], "effects": [], "range": "6.0.0 - 6.21.1", "nodes": [ "node_modules/undici" ], "fixAvailable": true } }, "metadata": { "vulnerabilities": { "info": 0, "low": 2, "moderate": 0, "high": 1, "critical": 0, "total": 3 }, "dependencies": { "prod": 281, "dev": 528, "optional": 52, "peer": 1, "peerOptional": 0, "total": 860 } } } --- end --- Attempting to npm audit fix $ /usr/bin/npm audit fix --dry-run --only=dev --json --- stderr --- npm WARN invalid config only="dev" set in command line options npm WARN invalid config Must be one of: null, prod, production npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: 'cxserver@1.2.1', npm WARN EBADENGINE required: { node: '>=20' }, npm WARN EBADENGINE current: { node: 'v18.19.0', npm: '9.2.0' } npm WARN EBADENGINE } --- stdout --- { "added": 861, "removed": 0, "changed": 0, "audited": 862, "funding": 159, "audit": { "auditReportVersion": 2, "vulnerabilities": { "formidable": { "name": "formidable", "severity": "low", "isDirect": false, "via": [ { "source": 1104171, "name": "formidable", "dependency": "formidable", "title": "Formidable relies on hexoid to prevent guessing of filenames for untrusted executable content", "url": "https://github.com/advisories/GHSA-75v8-2h7p-7m2m", "severity": "low", "cwe": [ "CWE-338" ], "cvss": { "score": 3.1, "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N" }, "range": ">=3.1.1-canary.20211030 <3.5.3" } ], "effects": [], "range": "3.1.1-canary.20211030 - 3.5.2", "nodes": [ "" ], "fixAvailable": true }, "tar-fs": { "name": "tar-fs", "severity": "high", "isDirect": false, "via": [ { "source": 1104677, "name": "tar-fs", "dependency": "tar-fs", "title": "tar-fs Vulnerable to Link Following and Path Traversal via Extracting a Crafted tar File", "url": "https://github.com/advisories/GHSA-pq67-2wwv-3xjx", "severity": "high", "cwe": [ "CWE-22" ], "cvss": { "score": 7.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N" }, "range": ">=2.0.0 <2.1.2" } ], "effects": [], "range": "2.0.0 - 2.1.1", "nodes": [ "" ], "fixAvailable": true }, "undici": { "name": "undici", "severity": "low", "isDirect": false, "via": [ { "source": 1104500, "name": "undici", "dependency": "undici", "title": "undici Denial of Service attack via bad certificate data", "url": "https://github.com/advisories/GHSA-cxrh-j4jr-qwg3", "severity": "low", "cwe": [ "CWE-401" ], "cvss": { "score": 3.1, "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L" }, "range": ">=6.0.0 <6.21.2" } ], "effects": [], "range": "6.0.0 - 6.21.1", "nodes": [ "" ], "fixAvailable": true } }, "metadata": { "vulnerabilities": { "info": 0, "low": 2, "moderate": 0, "high": 1, "critical": 0, "total": 3 }, "dependencies": { "prod": 281, "dev": 529, "optional": 52, "peer": 1, "peerOptional": 0, "total": 861 } } } } --- end --- {"added": 861, "removed": 0, "changed": 0, "audited": 862, "funding": 159, "audit": {"auditReportVersion": 2, "vulnerabilities": {"formidable": {"name": "formidable", "severity": "low", "isDirect": false, "via": [{"source": 1104171, "name": "formidable", "dependency": "formidable", "title": "Formidable relies on hexoid to prevent guessing of filenames for untrusted executable content", "url": "https://github.com/advisories/GHSA-75v8-2h7p-7m2m", "severity": "low", "cwe": ["CWE-338"], "cvss": {"score": 3.1, "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N"}, "range": ">=3.1.1-canary.20211030 <3.5.3"}], "effects": [], "range": "3.1.1-canary.20211030 - 3.5.2", "nodes": [""], "fixAvailable": true}, "tar-fs": {"name": "tar-fs", "severity": "high", "isDirect": false, "via": [{"source": 1104677, "name": "tar-fs", "dependency": "tar-fs", "title": "tar-fs Vulnerable to Link Following and Path Traversal via Extracting a Crafted tar File", "url": "https://github.com/advisories/GHSA-pq67-2wwv-3xjx", "severity": "high", "cwe": ["CWE-22"], "cvss": {"score": 7.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"}, "range": ">=2.0.0 <2.1.2"}], "effects": [], "range": "2.0.0 - 2.1.1", "nodes": [""], "fixAvailable": true}, "undici": {"name": "undici", "severity": "low", "isDirect": false, "via": [{"source": 1104500, "name": "undici", "dependency": "undici", "title": "undici Denial of Service attack via bad certificate data", "url": "https://github.com/advisories/GHSA-cxrh-j4jr-qwg3", "severity": "low", "cwe": ["CWE-401"], "cvss": {"score": 3.1, "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L"}, "range": ">=6.0.0 <6.21.2"}], "effects": [], "range": "6.0.0 - 6.21.1", "nodes": [""], "fixAvailable": true}}, "metadata": {"vulnerabilities": {"info": 0, "low": 2, "moderate": 0, "high": 1, "critical": 0, "total": 3}, "dependencies": {"prod": 281, "dev": 529, "optional": 52, "peer": 1, "peerOptional": 0, "total": 861}}}} $ /usr/bin/npm audit fix --only=dev --- stderr --- npm WARN invalid config only="dev" set in command line options npm WARN invalid config Must be one of: null, prod, production npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: 'cxserver@1.2.1', npm WARN EBADENGINE required: { node: '>=20' }, npm WARN EBADENGINE current: { node: 'v18.19.0', npm: '9.2.0' } npm WARN EBADENGINE } npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs npm WARN deprecated npmlog@6.0.2: This package is no longer supported. npm WARN deprecated @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm WARN deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead npm WARN deprecated are-we-there-yet@3.0.1: This package is no longer supported. npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm WARN deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead npm WARN deprecated domexception@4.0.0: Use your platform's native DOMException instead npm WARN deprecated gauge@4.0.4: This package is no longer supported. npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options. --- stdout --- added 861 packages, and audited 862 packages in 11s 159 packages are looking for funding run `npm fund` for details found 0 vulnerabilities --- end --- Verifying that tests still pass $ /usr/bin/npm ci --- stderr --- npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: 'cxserver@1.2.1', npm WARN EBADENGINE required: { node: '>=20' }, npm WARN EBADENGINE current: { node: 'v18.19.0', npm: '9.2.0' } npm WARN EBADENGINE } npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs npm WARN deprecated npmlog@6.0.2: This package is no longer supported. npm WARN deprecated @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm WARN deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead npm WARN deprecated are-we-there-yet@3.0.1: This package is no longer supported. npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm WARN deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead npm WARN deprecated domexception@4.0.0: Use your platform's native DOMException instead npm WARN deprecated gauge@4.0.4: This package is no longer supported. npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options. --- stdout --- added 861 packages, and audited 862 packages in 14s 159 packages are looking for funding run `npm fund` for details found 0 vulnerabilities --- end --- $ /usr/bin/npm test --- stdout --- > cxserver@1.2.1 test > npm run lint && npm run unittest > cxserver@1.2.1 lint > eslint . /src/repo/app.js 14:1 warning `crypto` import should occur before import of `express` import/order 46:1 warning The type 'Express' is undefined jsdoc/no-undefined-types 81:34 warning Found non-literal argument to RegExp Constructor security/detect-non-literal-regexp 84:25 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename 222:9 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename 223:10 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename /src/repo/lib/Config.js 42:28 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename 64:38 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename 69:6 warning Mixed spaces and tabs no-mixed-spaces-and-tabs 70:6 warning Mixed spaces and tabs no-mixed-spaces-and-tabs 97:29 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename /src/repo/lib/adaptation/TemplateParameterMapper.js 110:5 warning Mixed spaces and tabs no-mixed-spaces-and-tabs 110:7 warning Expected no linebreak before this expression implicit-arrow-linebreak 113:4 warning Mixed spaces and tabs no-mixed-spaces-and-tabs /src/repo/lib/lineardoc/MwContextualizer.js 143:35 warning Found non-literal argument to RegExp Constructor security/detect-non-literal-regexp /src/repo/lib/logging.js 7:1 warning The type 'winston' is undefined jsdoc/no-undefined-types /src/repo/lib/mt/Apertium.js 37:27 warning The 'fetch' is still an experimental feature and is not supported until Node.js 21.0.0. The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/lib/mt/Elia.js 94:27 warning The 'fetch' is still an experimental feature and is not supported until Node.js 21.0.0. The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/lib/mt/Google.js 94:27 warning The 'fetch' is still an experimental feature and is not supported until Node.js 21.0.0. The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/lib/mt/LingoCloud.js 75:27 warning The 'fetch' is still an experimental feature and is not supported until Node.js 21.0.0. The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/lib/mt/MinT.js 55:27 warning The 'fetch' is still an experimental feature and is not supported until Node.js 21.0.0. The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/lib/mt/Yandex.js 82:27 warning The 'fetch' is still an experimental feature and is not supported until Node.js 21.0.0. The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/lib/mw/MWPageLoader.js 19:33 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename /src/repo/lib/mw/MwApiRequest.js 60:26 warning The 'fetch' is still an experimental feature and is not supported until Node.js 21.0.0. The configured version range is '>=20' n/no-unsupported-features/node-builtins 106:26 warning The 'fetch' is still an experimental feature and is not supported until Node.js 21.0.0. The configured version range is '>=20' n/no-unsupported-features/node-builtins 193:10 warning The 'fetch' is still an experimental feature and is not supported until Node.js 21.0.0. The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/lib/swagger-ui.js 26:9 warning Found readFile from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename /src/repo/lib/translationunits/MWCategory.js 15:41 warning Unsafe Regular Expression security/detect-unsafe-regex /src/repo/lib/translationunits/MWFile.js 44:51 warning Unsafe Regular Expression security/detect-unsafe-regex /src/repo/lib/translationunits/MWImage.js 123:68 warning Unsafe Regular Expression security/detect-unsafe-regex /src/repo/lib/util.js 132:23 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename /src/repo/scripts/SectionTitleAlignment/alignwithmt.js 5:1 warning `fs` import should occur before import of `sqlite` import/order 214:26 warning The 'fetch' is still an experimental feature and is not supported until Node.js 21.0.0. The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/scripts/template-mapping.js 108:7 warning Found existsSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename 114:14 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename /src/repo/spec.yaml 195:1 warning This line has a length of 139. Maximum allowed is 100 max-len 246:1 warning This line has a length of 139. Maximum allowed is 100 max-len 468:1 warning This line has a length of 109. Maximum allowed is 100 max-len 493:1 warning This line has a length of 110. Maximum allowed is 100 max-len 499:1 warning This line has a length of 216. Maximum allowed is 100 max-len 540:1 warning This line has a length of 110. Maximum allowed is 100 max-len 547:1 warning This line has a length of 216. Maximum allowed is 100 max-len 589:1 warning This line has a length of 106. Maximum allowed is 100 max-len 606:1 warning This line has a length of 134. Maximum allowed is 100 max-len /src/repo/test/adaptation/AdaptationTest.js 1:25 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/test/adaptation/SectionTest.js 1:18 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins 31:20 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename /src/repo/test/adaptation/TemplateParameterMapper.test.js 1:10 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/test/features/app/app.js 1:18 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/test/features/app/spec.js 1:18 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins 21:16 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename 168:10 warning Found non-literal argument to RegExp Constructor security/detect-non-literal-regexp /src/repo/test/features/info/info.js 1:18 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/test/features/v1/page.js 1:18 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/test/features/v2/page.js 1:18 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/test/lineardoc/LinearDoc.test.js 1:10 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins 24:22 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename 25:24 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename 26:26 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename 70:28 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename 86:28 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename 134:27 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename 204:28 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename /src/repo/test/mt/Apertium.test.js 1:10 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/test/mt/Elia.test.js 1:10 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/test/mt/Google.test.js 1:10 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/test/mt/LingCloud.test.js 1:10 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/test/mt/MTClient.test.js 1:10 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/test/mt/Template.test.js 1:10 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/test/mt/Yandex.test.js 1:10 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/test/mt/transform.test.js 1:10 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/test/mw/MWPageLoaderTest.js 1:18 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins 37:27 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename 46:5 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename /src/repo/test/mw/SectionWrap.test.js 1:10 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins 17:33 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename /src/repo/test/segmentation/CXSegmenter.test.js 1:10 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins 24:19 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename 30:3 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename /src/repo/test/suggestions/SectionSuggestion.test.js 1:10 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/test/testutils.js 22:5 warning Found writeFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename /src/repo/test/translationunits/MWLink.test.js 1:25 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins /src/repo/test/translationunits/MWReference.test.js 1:25 warning The 'test.describe' is still an experimental feature and is not supported until Node.js 22.0.0 (backported: ^20.13.0). The configured version range is '>=20' n/no-unsupported-features/node-builtins 38:21 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename 53:27 warning Found readFileSync from package "fs" with non literal argument at index 0 security/detect-non-literal-fs-filename /src/repo/test/utils/assert.js 7:40 warning Found non-literal argument to RegExp Constructor security/detect-non-literal-regexp ✖ 86 problems (0 errors, 86 warnings) 0 errors and 2 warnings potentially fixable with the `--fix` option. > cxserver@1.2.1 unittest > NODE_ENV=test node --test test/ TAP version 13 # (node:240) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time # (Use `node --trace-warnings ...` to show where the warning was created) # {"@timestamp":"2025-05-24T05:06:58.400Z","ecs.version":"8.10.0","log.level":"info","message":"Starting cxserver-dev","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:06:58.428Z","ecs.version":"8.10.0","log.level":"info","message":"responseTimeMetric","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:06:58.429Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 345 languages from the configuration","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:06:58.447Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 7 MT providers","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:06:58.481Z","ecs.version":"8.10.0","log.level":"debug","message":"No title for the MWLink: {\\"name\\":\\"a\\",\\"attributes\\":{\\"rel\\":\\"mw:WikiLink\\",\\"href\\":\\"Oxygen\\",\\"id\\":\\"mwAA\\",\\"data-cx\\":\\"{\\\\\\"adapted\\\\\\":false}\\"},\\"isSelfClosing\\":false}","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:06:58.551Z","ecs.version":"8.10.0","log.level":"debug","message":"No title for the MWLink: {\\"name\\":\\"a\\",\\"attributes\\":{\\"rel\\":\\"mw:WikiLink\\",\\"href\\":\\"Atomic number\\",\\"id\\":\\"mwAB\\",\\"data-cx\\":\\"{\\\\\\"adapted\\\\\\":false}\\"},\\"isSelfClosing\\":false}","service":"cxserver-dev"} # Subtest: Adaptation tests # Subtest: Link adaptation basic test ok 1 - Link adaptation basic test --- duration_ms: 358.015127 ... # Subtest: Link adaptation - Full paragraph and relative links ok 2 - Link adaptation - Full paragraph and relative links --- duration_ms: 42.863505 ... # Subtest: Image adaptation basic test ok 3 - Image adaptation basic test --- duration_ms: 130.076894 ... # Subtest: Image adaptation - Inline image with span tag ok 4 - Image adaptation - Inline image with span tag --- duration_ms: 9.072369 ... # Subtest: Image adaptation - Inline image with span tag ok 5 - Image adaptation - Inline image with span tag --- duration_ms: 8.966587 ... # Subtest: Image adaptation - Source and target language directions differs ok 6 - Image adaptation - Source and target language directions differs --- duration_ms: 85.05937 ... # Subtest: Image adaptation - Image is not in commons ok 7 - Image adaptation - Image is not in commons --- duration_ms: 13.881221 ... # Subtest: Gallery adaptation ok 8 - Gallery adaptation --- duration_ms: 25.858252 ... # Subtest: Reference adaptation test without a reference template ok 9 - Reference adaptation test without a reference template --- duration_ms: 29.034265 ... # Subtest: Reference adaptation test where the content is reference and template at same time ok 10 - Reference adaptation test where the content is reference and template at same time --- duration_ms: 21.475649 ... # Subtest: Reference adaptation test where source and target has no template data. Must use template mapping database ok 11 - Reference adaptation test where source and target has no template data. Must use template mapping database --- duration_ms: 113.836956 ... # Subtest: Style tags holding template definition should not be ignored and used for template adaptation ok 12 - Style tags holding template definition should not be ignored and used for template adaptation --- duration_ms: 43.343461 ... # Subtest: Audio adaptation ok 13 - Audio adaptation --- duration_ms: 10.042543 ... # Subtest: Audio adaptation when audio is not in Commons ok 14 - Audio adaptation when audio is not in Commons --- duration_ms: 10.191448 ... # Subtest: Video adaptation ok 15 - Video adaptation --- duration_ms: 10.870269 ... # Subtest: Inline Video adaptation ok 16 - Inline Video adaptation --- duration_ms: 15.761 ... 1..16 ok 1 - Adaptation tests --- duration_ms: 1013.005457 type: 'suite' ... # (node:241) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time # (Use `node --trace-warnings ...` to show where the warning was created) # {"@timestamp":"2025-05-24T05:06:58.145Z","ecs.version":"8.10.0","log.level":"info","message":"Starting cxserver-dev","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:06:58.191Z","ecs.version":"8.10.0","log.level":"info","message":"responseTimeMetric","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:06:58.192Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 345 languages from the configuration","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:06:58.245Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 7 MT providers","service":"cxserver-dev"} # Subtest: Adaptation tests # Subtest: should adapt section when: section has lot of templates, but all are fragments of main template ok 1 - should adapt section when: section has lot of templates, but all are fragments of main template --- duration_ms: 554.456437 ... 1..1 ok 2 - Adaptation tests --- duration_ms: 671.180374 type: 'suite' ... # Subtest: Template parameter mapping test # Subtest: should not have any errors while mapping params ok 1 - should not have any errors while mapping params --- duration_ms: 2.169943 ... 1..1 ok 3 - Template parameter mapping test --- duration_ms: 4.822916 type: 'suite' ... # (node:273) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time # (Use `node --trace-warnings ...` to show where the warning was created) # {"@timestamp":"2025-05-24T05:06:58.332Z","ecs.version":"8.10.0","log.level":"info","message":"Starting cxserver-dev","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:06:58.378Z","ecs.version":"8.10.0","log.level":"info","message":"responseTimeMetric","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:06:58.379Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 345 languages from the configuration","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:06:58.444Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 7 MT providers","service":"cxserver-dev"} # Subtest: express app # Subtest: should get robots.txt ok 1 - should get robots.txt --- duration_ms: 29.394405 ... # Subtest: should set CORS headers ok 2 - should set CORS headers --- duration_ms: 6.01139 ... # Subtest: should set CSP headers ok 3 - should set CSP headers --- duration_ms: 3.904302 ... 1..3 ok 4 - express app --- duration_ms: 185.048414 type: 'suite' ... # (node:284) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time # (Use `node --trace-warnings ...` to show where the warning was created) # {"@timestamp":"2025-05-24T05:07:00.250Z","ecs.version":"8.10.0","log.level":"info","message":"Starting cxserver-dev","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:00.279Z","ecs.version":"8.10.0","log.level":"info","message":"responseTimeMetric","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:00.280Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 345 languages from the configuration","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:00.340Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 7 MT providers","service":"cxserver-dev"} # Subtest: Swagger spec # Subtest: get the spec ok 1 - get the spec --- duration_ms: 82.815969 ... # Subtest: should expose valid OpenAPI spec ok 2 - should expose valid OpenAPI spec --- duration_ms: 32.164899 ... # Subtest: spec validation ok 3 - spec validation --- duration_ms: 1.624729 ... # Subtest: routes # Subtest: robots.txt check ok 1 - robots.txt check --- duration_ms: 9.989678 ... # Subtest: root with no query params ok 2 - root with no query params --- duration_ms: 4.719282 ... # Subtest: spec from root ok 3 - spec from root --- duration_ms: 6.989312 ... # Subtest: doc from root ok 4 - doc from root --- duration_ms: 3.586349 ... # Subtest: root with wrong query param ok 5 - root with wrong query param --- duration_ms: 3.774845 ... # {"@timestamp":"2025-05-24T05:07:00.499Z","ecs.version":"8.10.0","http":{"request":{"id":"099dfb91-9956-4f40-a31d-16dcc039a97c","method":"GET"}},"log.level":"debug","message":"Getting page en:User:BSitzmann_(WMF)/MCS/Test/Frankenstein","service":"cxserver-dev","url":{"path":"/v1/page/en/User%3ABSitzmann_(WMF)%2FMCS%2FTest%2FFrankenstein"}} # {"@timestamp":"2025-05-24T05:07:00.884Z","ecs.version":"8.10.0","http":{"request":{"id":"099dfb91-9956-4f40-a31d-16dcc039a97c","method":"GET"}},"log.level":"debug","message":"Page sent","service":"cxserver-dev","url":{"path":"/v1/page/en/User%3ABSitzmann_(WMF)%2FMCS%2FTest%2FFrankenstein"}} # Subtest: Fetch enwiki protected page ok 6 - Fetch enwiki protected page --- duration_ms: 405.972843 ... # {"@timestamp":"2025-05-24T05:07:00.901Z","ecs.version":"8.10.0","http":{"request":{"id":"6e7ad79e-dada-4f64-8db5-3140b591b55f","method":"GET"}},"log.level":"debug","message":"Getting page en:User:BSitzmann_(WMF)/MCS/Test/Frankenstein","service":"cxserver-dev","url":{"path":"/v1/page/en/User%3ABSitzmann_(WMF)%2FMCS%2FTest%2FFrankenstein"}} # {"@timestamp":"2025-05-24T05:07:01.028Z","ecs.version":"8.10.0","http":{"request":{"id":"6e7ad79e-dada-4f64-8db5-3140b591b55f","method":"GET"}},"log.level":"debug","message":"Page sent","service":"cxserver-dev","url":{"path":"/v1/page/en/User%3ABSitzmann_(WMF)%2FMCS%2FTest%2FFrankenstein"}} # Subtest: Fetch protected page with multi-word title ok 7 - Fetch protected page with multi-word title --- duration_ms: 153.692074 ... # {"@timestamp":"2025-05-24T05:07:01.055Z","ecs.version":"8.10.0","http":{"request":{"id":"13e91aaf-8517-4fa9-a63a-08c1e31f324f","method":"GET"}},"log.level":"debug","message":"Getting page en:User:BSitzmann_(WMF)/MCS/Test/Frankenstein","service":"cxserver-dev","url":{"path":"/v1/page/en/User%3ABSitzmann_(WMF)%2FMCS%2FTest%2FFrankenstein/1086816359"}} # {"@timestamp":"2025-05-24T05:07:01.276Z","ecs.version":"8.10.0","http":{"request":{"id":"13e91aaf-8517-4fa9-a63a-08c1e31f324f","method":"GET"}},"log.level":"debug","message":"Page sent","service":"cxserver-dev","url":{"path":"/v1/page/en/User%3ABSitzmann_(WMF)%2FMCS%2FTest%2FFrankenstein/1086816359"}} # Subtest: Fetch enwiki protected page with revision ok 8 - Fetch enwiki protected page with revision --- duration_ms: 235.524542 ... # Subtest: Machine translate an HTML fragment using TestClient. ok 9 - Machine translate an HTML fragment using TestClient. --- duration_ms: 149.916337 ... # Subtest: Machine translate an HTML fragment using TestClient. ok 10 - Machine translate an HTML fragment using TestClient. --- duration_ms: 20.139836 ... # Subtest: Get the tools between two language pairs ok 11 - Get the tools between two language pairs --- duration_ms: 3.880061 ... # Subtest: Get all the language pairs ok 12 - Get all the language pairs --- duration_ms: 4.877178 ... # Subtest: Get the MT tool between two language pairs ok 13 - Get the MT tool between two language pairs --- duration_ms: 30.476933 ... # Subtest: Get the MT tool between two language pairs ok 14 - Get the MT tool between two language pairs --- duration_ms: 3.781583 ... # {"@timestamp":"2025-05-24T05:07:01.503Z","ecs.version":"8.10.0","http":{"request":{"id":"9411351c-8849-43d1-83b4-e659be01a968","method":"GET"}},"log.level":"debug","message":"Getting page en:User:BSitzmann_(WMF)/MCS/Test/Frankenstein for es","service":"cxserver-dev","url":{"path":"/v2/page/en/es/User%3ABSitzmann_(WMF)%2FMCS%2FTest%2FFrankenstein"}} # {"@timestamp":"2025-05-24T05:07:01.810Z","ecs.version":"8.10.0","http":{"request":{"id":"9411351c-8849-43d1-83b4-e659be01a968","method":"GET"}},"log.level":"debug","message":"Page sent","service":"cxserver-dev","url":{"path":"/v2/page/en/es/User%3ABSitzmann_(WMF)%2FMCS%2FTest%2FFrankenstein"}} # Subtest: Translate enwiki protected page ok 15 - Translate enwiki protected page --- duration_ms: 324.546802 ... # {"@timestamp":"2025-05-24T05:07:01.830Z","ecs.version":"8.10.0","http":{"request":{"id":"107b346e-2b10-4f61-a689-4add0af62950","method":"GET"}},"log.level":"debug","message":"Getting page en:User:BSitzmann_(WMF)/MCS/Test/Frankenstein for es","service":"cxserver-dev","url":{"path":"/v2/page/en/es/User%3ABSitzmann_(WMF)%2FMCS%2FTest%2FFrankenstein"}} # {"@timestamp":"2025-05-24T05:07:01.925Z","ecs.version":"8.10.0","http":{"request":{"id":"107b346e-2b10-4f61-a689-4add0af62950","method":"GET"}},"log.level":"debug","message":"Page sent","service":"cxserver-dev","url":{"path":"/v2/page/en/es/User%3ABSitzmann_(WMF)%2FMCS%2FTest%2FFrankenstein"}} # Subtest: Translate enwiki protected page with multi-word title ok 16 - Translate enwiki protected page with multi-word title --- duration_ms: 105.596936 ... # {"@timestamp":"2025-05-24T05:07:01.935Z","ecs.version":"8.10.0","http":{"request":{"id":"100f06d1-fc57-4187-a950-e6f83a92e2ef","method":"GET"}},"log.level":"debug","message":"Getting page en:User:BSitzmann_(WMF)/MCS/Test/Frankenstein for es","service":"cxserver-dev","url":{"path":"/v2/page/en/es/User%3ABSitzmann_(WMF)%2FMCS%2FTest%2FFrankenstein/1086816359"}} # {"@timestamp":"2025-05-24T05:07:02.019Z","ecs.version":"8.10.0","http":{"request":{"id":"100f06d1-fc57-4187-a950-e6f83a92e2ef","method":"GET"}},"log.level":"debug","message":"Page sent","service":"cxserver-dev","url":{"path":"/v2/page/en/es/User%3ABSitzmann_(WMF)%2FMCS%2FTest%2FFrankenstein/1086816359"}} # Subtest: Translate enwiki protected page with revision ok 17 - Translate enwiki protected page with revision --- duration_ms: 98.192005 ... # Subtest: Machine translate an HTML fragment using TestClient, adapt the links to target language wiki. ok 18 - Machine translate an HTML fragment using TestClient, adapt the links to target language wiki. --- duration_ms: 211.593157 ... # Subtest: Machine translate an HTML fragment using TestClient, adapt the links to target language wiki. ok 19 - Machine translate an HTML fragment using TestClient, adapt the links to target language wiki. --- duration_ms: 14.307574 ... # Subtest: Suggest a target title for the given source title and language pairs ok 20 - Suggest a target title for the given source title and language pairs --- duration_ms: 245.89293 ... # Subtest: Return an authentication error HTTP status code, when default MT requires authentication and the given JWT is invalid ok 21 - Return an authentication error HTTP status code, when default MT requires authentication and the given JWT is invalid --- duration_ms: 8.811211 ... # {"@timestamp":"2025-05-24T05:07:02.513Z","ecs.version":"8.10.0","http":{"request":{"id":"e634274f-add1-46e3-b655-c22cea90b673","method":"GET"}},"log.level":"debug","message":"Attempting Paneer in en","service":"cxserver-dev","url":{"path":"/v2/suggest/source/Paneer/ca?sourcelanguages=en"}} # Subtest: Suggest a source title to use for translation ok 22 - Suggest a source title to use for translation --- duration_ms: 81.964712 ... # Subtest: Suggest target section titles for given source sections ok 23 - Suggest target section titles for given source sections --- duration_ms: 42.475796 ... # Subtest: Suggest source sections to translate ok 24 - Suggest source sections to translate --- duration_ms: 168.616643 ... # Subtest: retrieve service info ok 25 - retrieve service info --- duration_ms: 4.944736 ... # Subtest: retrieve service name ok 26 - retrieve service name --- duration_ms: 3.828974 ... # Subtest: retrieve service version ok 27 - retrieve service version --- duration_ms: 3.118405 ... # Subtest: redirect to the home page ok 28 - redirect to the home page --- duration_ms: 3.324172 ... 1..28 ok 4 - routes --- duration_ms: 2360.767643 type: 'suite' ... 1..4 ok 5 - Swagger spec --- duration_ms: 2580.311573 type: 'suite' ... # (node:295) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time # (Use `node --trace-warnings ...` to show where the warning was created) # {"@timestamp":"2025-05-24T05:07:00.276Z","ecs.version":"8.10.0","log.level":"info","message":"Starting cxserver-dev","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:00.361Z","ecs.version":"8.10.0","log.level":"info","message":"responseTimeMetric","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:00.363Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 345 languages from the configuration","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:00.446Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 7 MT providers","service":"cxserver-dev"} # Subtest: service information # Subtest: should get the service name ok 1 - should get the service name --- duration_ms: 51.913266 ... # Subtest: should get the service version ok 2 - should get the service version --- duration_ms: 6.369253 ... # Subtest: should redirect to the service home page ok 3 - should redirect to the service home page --- duration_ms: 13.182074 ... # Subtest: should get the service info ok 4 - should get the service info --- duration_ms: 6.393852 ... 1..4 ok 6 - service information --- duration_ms: 268.334255 type: 'suite' ... # (node:306) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time # (Use `node --trace-warnings ...` to show where the warning was created) # {"@timestamp":"2025-05-24T05:07:01.114Z","ecs.version":"8.10.0","log.level":"info","message":"Starting cxserver-dev","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:01.184Z","ecs.version":"8.10.0","log.level":"info","message":"responseTimeMetric","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:01.187Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 345 languages from the configuration","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:01.253Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 7 MT providers","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:01.306Z","ecs.version":"8.10.0","http":{"request":{"id":"2f2d9c78-e4a6-4cd6-9057-3a5a82f1188e","method":"GET"}},"log.level":"debug","message":"Getting page en:Oxygen","service":"cxserver-dev","url":{"path":"/v1/page/en/Oxygen"}} # {"@timestamp":"2025-05-24T05:07:02.305Z","ecs.version":"8.10.0","http":{"request":{"id":"2f2d9c78-e4a6-4cd6-9057-3a5a82f1188e","method":"GET"}},"log.level":"debug","message":"Page sent","service":"cxserver-dev","url":{"path":"/v1/page/en/Oxygen"}} # Subtest: v1 api - page gets # Subtest: should get the whole page body ok 1 - should get the whole page body --- duration_ms: 1105.506639 ... # Subtest: should throw a 404 for a non-existent page ok 2 - should throw a 404 for a non-existent page --- duration_ms: 7.727329 ... 1..2 ok 7 - v1 api - page gets --- duration_ms: 1276.07408 type: 'suite' ... # (node:317) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time # (Use `node --trace-warnings ...` to show where the warning was created) # {"@timestamp":"2025-05-24T05:07:02.149Z","ecs.version":"8.10.0","log.level":"info","message":"Starting cxserver-dev","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:02.195Z","ecs.version":"8.10.0","log.level":"info","message":"responseTimeMetric","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:02.197Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 345 languages from the configuration","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:02.258Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 7 MT providers","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:02.307Z","ecs.version":"8.10.0","http":{"request":{"id":"dfb88d68-1329-4ee6-b32b-4fc0d8defe1e","method":"GET"}},"log.level":"debug","message":"Getting page en:Pickling for es","service":"cxserver-dev","url":{"path":"/v2/page/en/es/Pickling"}} # {"@timestamp":"2025-05-24T05:07:03.026Z","ecs.version":"8.10.0","http":{"request":{"id":"dfb88d68-1329-4ee6-b32b-4fc0d8defe1e","method":"GET"}},"log.level":"debug","message":"Page sent","service":"cxserver-dev","url":{"path":"/v2/page/en/es/Pickling"}} # Subtest: v2 api - page gets # Subtest: should get the whole page body ok 1 - should get the whole page body --- duration_ms: 788.197339 ... # {"@timestamp":"2025-05-24T05:07:03.056Z","ecs.version":"8.10.0","http":{"request":{"id":"40fe3ab9-666d-4fbf-a7e8-43c649ee6d34","method":"GET"}},"log.level":"debug","message":"Getting page en:Wikipedia_content_translation_system for es","service":"cxserver-dev","url":{"path":"/v2/page/en/es/Wikipedia_content_translation_system"}} # Subtest: should throw a 404 for a non-existent page ok 2 - should throw a 404 for a non-existent page --- duration_ms: 90.794634 ... 1..2 ok 8 - v2 api - page gets --- duration_ms: 1048.956018 type: 'suite' ... # (node:328) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time # (Use `node --trace-warnings ...` to show where the warning was created) # Subtest: LinearDoc # Subtest: should be possible to linearise all kind of HTML inputs ok 1 - should be possible to linearise all kind of HTML inputs --- duration_ms: 91.749181 ... # Subtest: should be possible to reconstruct the HTML from LinearDoc ok 2 - should be possible to reconstruct the HTML from LinearDoc --- duration_ms: 2.613109 ... # Subtest: should be possible to reduce and expand a document ok 3 - should be possible to reduce and expand a document --- duration_ms: 8.581677 ... # Subtest: test HTML compaction roundtrip with inline chunks ok 4 - test HTML compaction roundtrip with inline chunks --- duration_ms: 8.728652 ... # Subtest: test HTML expand with external attributes inserted ok 5 - test HTML expand with external attributes inserted --- duration_ms: 1.001354 ... # Subtest: test if the content is block level template ok 6 - test if the content is block level template --- duration_ms: 125.546801 ... # Subtest: test HTML compaction roundtrip with inline style content ok 7 - test HTML compaction roundtrip with inline style content --- duration_ms: 1.743643 ... # Subtest: test HTML compaction roundtrip with template with empty content ok 8 - test HTML compaction roundtrip with template with empty content --- duration_ms: 3.187217 ... # Subtest: test getRootItem for ignoring blockspaces ok 9 - test getRootItem for ignoring blockspaces --- duration_ms: 0.650968 ... # Subtest: test getRootItem for not ignoring non-whitespace content in textblock ok 10 - test getRootItem for not ignoring non-whitespace content in textblock --- duration_ms: 0.405003 ... # Subtest: test getRootItem for ignoring whitespace content in textblock ok 11 - test getRootItem for ignoring whitespace content in textblock --- duration_ms: 0.399395 ... 1..11 ok 9 - LinearDoc --- duration_ms: 250.534744 type: 'suite' ... # (node:339) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time # (Use `node --trace-warnings ...` to show where the warning was created) # Subtest: Apertium machine translation # Subtest: Test: All caps words ok 1 - Test: All caps words --- duration_ms: 121.712881 ... # Subtest: Test: Title caps one-to-many ok 2 - Test: Title caps one-to-many --- duration_ms: 5.861581 ... # Subtest: Test: Reordering with nested tags ok 3 - Test: Reordering with nested tags --- duration_ms: 4.718953 ... # Subtest: Test: Many-to-one with nested tags ok 4 - Test: Many-to-one with nested tags --- duration_ms: 8.999283 ... # Subtest: Test: Reordering at either ends of a tag ok 5 - Test: Reordering at either ends of a tag --- duration_ms: 6.518843 ... # Subtest: Test: Identical tags separated by whitespace ok 6 - Test: Identical tags separated by whitespace --- duration_ms: 4.103201 ... # Subtest: Test: Non-identical links separated by whitespace ok 7 - Test: Non-identical links separated by whitespace --- duration_ms: 3.965976 ... # Subtest: Test: Find longest match among multiple matches ok 8 - Test: Find longest match among multiple matches --- duration_ms: 8.227702 ... # Subtest: Test: Do not translate content inside the style tags ok 9 - Test: Do not translate content inside the style tags --- duration_ms: 4.265242 ... 1..9 ok 10 - Apertium machine translation --- duration_ms: 173.215462 type: 'suite' ... # Subtest: Elia machine translation # Subtest: Should fail because of wrong key ok 1 - Should fail because of wrong key --- duration_ms: 25.464842 ... 1..1 ok 11 - Elia machine translation --- duration_ms: 32.39994 type: 'suite' ... # Subtest: Google machine translation # Subtest: Should fail because of wrong key ok 1 - Should fail because of wrong key --- duration_ms: 27.513688 ... 1..1 ok 12 - Google machine translation --- duration_ms: 31.486187 type: 'suite' ... # Subtest: LingoCloud machine translation # Subtest: Should fail because of wrong key ok 1 - Should fail because of wrong key --- duration_ms: 7.94552 ... 1..1 ok 13 - LingoCloud machine translation --- duration_ms: 10.971727 type: 'suite' ... # Subtest: Machine translation with wrapped html result # Subtest: Should throw error ok 1 - Should throw error --- duration_ms: 12.91486 ... 1..1 ok 14 - Machine translation with wrapped html result --- duration_ms: 15.714397 type: 'suite' ... # Subtest: Machine translation result with extra spaces # Subtest: Should be cleaned up ok 1 - Should be cleaned up --- duration_ms: 113.404199 ... 1..1 ok 15 - Machine translation result with extra spaces --- duration_ms: 113.672058 type: 'suite' ... # Subtest: Subsequence match finding # Subtest: Should return correct range mapping ok 1 - Should return correct range mapping --- duration_ms: 3.429393 ... 1..1 ok 16 - Subsequence match finding --- duration_ms: 3.662805 type: 'suite' ... # Subtest: Template translation # Subtest: should not translate the fragement contents. ok 1 - should not translate the fragement contents. --- duration_ms: 117.92221 ... 1..1 ok 17 - Template translation --- duration_ms: 120.622545 type: 'suite' ... # Subtest: Yandex machine translation with corrupted result # Subtest: Should sanitize the MT output ok 1 - Should sanitize the MT output --- duration_ms: 158.255043 ... 1..1 ok 18 - Yandex machine translation with corrupted result --- duration_ms: 161.747188 type: 'suite' ... # Subtest: Yandex machine translation # Subtest: Should fail because of wrong key ok 1 - Should fail because of wrong key --- duration_ms: 2.45752 ... 1..1 ok 19 - Yandex machine translation --- duration_ms: 2.704722 type: 'suite' ... # Subtest: Config transform tests # Subtest: Simple cross product of languages ok 1 - Simple cross product of languages --- duration_ms: 1.913843 ... # Subtest: Do not translate between two variants of English ok 2 - Do not translate between two variants of English --- duration_ms: 0.321952 ... # Subtest: Exclude "notAsTarget" languages ok 3 - Exclude "notAsTarget" languages --- duration_ms: 0.127676 ... # Subtest: Handle pairs in the configuration ok 4 - Handle pairs in the configuration --- duration_ms: 0.562885 ... 1..4 ok 20 - Config transform tests --- duration_ms: 6.242814 type: 'suite' ... # (node:427) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time # (Use `node --trace-warnings ...` to show where the warning was created) # {"@timestamp":"2025-05-24T05:07:06.675Z","ecs.version":"8.10.0","log.level":"info","message":"Starting cxserver-dev","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:06.758Z","ecs.version":"8.10.0","log.level":"info","message":"responseTimeMetric","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:06.760Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 345 languages from the configuration","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:06.809Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 7 MT providers","service":"cxserver-dev"} # Subtest: MWPageLoader tests # Subtest: Test: Add data-section-number attribute to every CX section ok 1 - Test: Add data-section-number attribute to every CX section --- duration_ms: 66.23852 ... 1..1 ok 21 - MWPageLoader tests --- duration_ms: 219.519229 type: 'suite' ... # Subtest: Section wrap tests # Subtest: should parse correctly when section has common pattern of elements ok 1 - should parse correctly when section has common pattern of elements --- duration_ms: 1.143487 ... # Subtest: should extract correct number of categories when section has common pattern of elements ok 2 - should extract correct number of categories when section has common pattern of elements --- duration_ms: 1.099679 ... # Subtest: should parse correctly when section has categories to be extracted ok 3 - should parse correctly when section has categories to be extracted --- duration_ms: 0.093075 ... # Subtest: should extract correct number of categories when section has categories to be extracted ok 4 - should extract correct number of categories when section has categories to be extracted --- duration_ms: 0.10551 ... # Subtest: should parse correctly when content has nested sections and tricky transclusion context ok 5 - should parse correctly when content has nested sections and tricky transclusion context --- duration_ms: 0.081112 ... # Subtest: should extract correct number of categories when content has nested sections and tricky transclusion context ok 6 - should extract correct number of categories when content has nested sections and tricky transclusion context --- duration_ms: 0.081983 ... # Subtest: should parse correctly when content has blank template and then an unrelated table ok 7 - should parse correctly when content has blank template and then an unrelated table --- duration_ms: 0.127341 ... # Subtest: should extract correct number of categories when content has blank template and then an unrelated table ok 8 - should extract correct number of categories when content has blank template and then an unrelated table --- duration_ms: 1.394879 ... # Subtest: should parse correctly when content is complete page content with html, head tags and body having two templates with fragments ok 9 - should parse correctly when content is complete page content with html, head tags and body having two templates with fragments --- duration_ms: 0.129765 ... # Subtest: should extract correct number of categories when content is complete page content with html, head tags and body having two templates with fragments ok 10 - should extract correct number of categories when content is complete page content with html, head tags and body having two templates with fragments --- duration_ms: 0.163461 ... # Subtest: should parse correctly when Content has self closing meta tag ok 11 - should parse correctly when Content has self closing meta tag --- duration_ms: 0.115698 ... # Subtest: should extract correct number of categories when Content has self closing meta tag ok 12 - should extract correct number of categories when Content has self closing meta tag --- duration_ms: 0.079493 ... # Subtest: should parse correctly when Content has template fragments and one fragment is a section candidate. Section has categories too ok 13 - should parse correctly when Content has template fragments and one fragment is a section candidate. Section has categories too --- duration_ms: 0.224054 ... # Subtest: should extract correct number of categories when Content has template fragments and one fragment is a section candidate. Section has categories too ok 14 - should extract correct number of categories when Content has template fragments and one fragment is a section candidate. Section has categories too --- duration_ms: 0.091497 ... # Subtest: should parse correctly when Content has transclusion and one of its fragment get removed since it is ignorable. ok 15 - should parse correctly when Content has transclusion and one of its fragment get removed since it is ignorable. --- duration_ms: 0.445895 ... # Subtest: should extract correct number of categories when Content has transclusion and one of its fragment get removed since it is ignorable. ok 16 - should extract correct number of categories when Content has transclusion and one of its fragment get removed since it is ignorable. --- duration_ms: 0.288885 ... # Subtest: should parse correctly when Content has transclusion and same element is removable templatestyle. So do not remove ok 17 - should parse correctly when Content has transclusion and same element is removable templatestyle. So do not remove --- duration_ms: 0.094321 ... # Subtest: should extract correct number of categories when Content has transclusion and same element is removable templatestyle. So do not remove ok 18 - should extract correct number of categories when Content has transclusion and same element is removable templatestyle. So do not remove --- duration_ms: 0.342069 ... 1..18 ok 22 - Section wrap tests --- duration_ms: 12.211232 type: 'suite' ... # (node:449) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time # (Use `node --trace-warnings ...` to show where the warning was created) # {"@timestamp":"2025-05-24T05:07:07.056Z","ecs.version":"8.10.0","log.level":"info","message":"Starting cxserver-dev","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:07.094Z","ecs.version":"8.10.0","log.level":"info","message":"responseTimeMetric","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:07.095Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 345 languages from the configuration","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:07.165Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 7 MT providers","service":"cxserver-dev"} # Subtest: Title pair tests # Subtest: should adapt the title when: Corresponding title exist in target language ok 1 - should adapt the title when: Corresponding title exist in target language --- duration_ms: 305.160571 ... # Subtest: should adapt the title when: Corresponding title exist in target language ok 2 - should adapt the title when: Corresponding title exist in target language --- duration_ms: 1.376854 ... # Subtest: should adapt the title when: Corresponding title exist in target language and given title need normalization ok 3 - should adapt the title when: Corresponding title exist in target language and given title need normalization --- duration_ms: 0.314599 ... # Subtest: should adapt the title when: Corresponding title does not exist in target language and given title need normalization ok 4 - should adapt the title when: Corresponding title does not exist in target language and given title need normalization --- duration_ms: 0.225037 ... # Subtest: should adapt the title when: Corresponding title exist in target language and given title need normalization, has parenthesis ok 5 - should adapt the title when: Corresponding title exist in target language and given title need normalization, has parenthesis --- duration_ms: 0.36592 ... # Subtest: should adapt the title when: Source title is percentage encoded, but should not throw error, should return corresponding title ok 6 - should adapt the title when: Source title is percentage encoded, but should not throw error, should return corresponding title --- duration_ms: 0.547203 ... # Subtest: should have the queue size 50 ok 7 - should have the queue size 50 --- duration_ms: 2.517388 ... 1..7 ok 23 - Title pair tests --- duration_ms: 316.102904 ... # (node:460) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time # (Use `node --trace-warnings ...` to show where the warning was created) # Subtest: Segmentation tests for am # Subtest: should not have any errors when: Amharic segmentation - basic test ok 1 - should not have any errors when: Amharic segmentation - basic test --- duration_ms: 0.57323 ... 1..1 ok 24 - Segmentation tests for am --- duration_ms: 3.486325 type: 'suite' ... # Subtest: Segmentation tests for en # Subtest: should not have any errors when: Simple paragraph test ok 1 - should not have any errors when: Simple paragraph test --- duration_ms: 0.681081 ... # Subtest: should not have any errors when: Sentence ending with ) ok 2 - should not have any errors when: Sentence ending with ) --- duration_ms: 0.102525 ... # Subtest: should not have any errors when: Exclamation, punctuation test ok 3 - should not have any errors when: Exclamation, punctuation test --- duration_ms: 0.118301 ... # Subtest: should not have any errors when: Multiple sentences ok 4 - should not have any errors when: Multiple sentences --- duration_ms: 0.107466 ... # Subtest: should not have any errors when: Multiple sections - div, h1, paragraph ok 5 - should not have any errors when: Multiple sections - div, h1, paragraph --- duration_ms: 0.120868 ... # Subtest: should not have any errors when: Sentence starting with a link ok 6 - should not have any errors when: Sentence starting with a link --- duration_ms: 0.11919 ... # Subtest: should not have any errors when: Sentence starting with a link and ending with a link ok 7 - should not have any errors when: Sentence starting with a link and ending with a link --- duration_ms: 0.10701 ... # Subtest: should not have any errors when: Figure ok 8 - should not have any errors when: Figure --- duration_ms: 0.134548 ... # Subtest: should not have any errors when: References can appear after period without space. Example: Hydrogen is a gas.[1] It is ... ok 9 - should not have any errors when: References can appear after period without space. Example: Hydrogen is a gas.[1] It is ... --- duration_ms: 0.130491 ... # Subtest: should not have any errors when: References can appear after period without space, repeated. Example: Hydrogen is a gas.[1][2][3] It is ... ok 10 - should not have any errors when: References can appear after period without space, repeated. Example: Hydrogen is a gas.[1][2][3] It is ... --- duration_ms: 0.0944 ... # Subtest: should not have any errors when: References can appear inside a sentence. Example: Hydrogen is a gas[1] and it is ... ok 11 - should not have any errors when: References can appear inside a sentence. Example: Hydrogen is a gas[1] and it is ... --- duration_ms: 0.100264 ... # Subtest: should not have any errors when: References can appear inside a sentence. Example:Hydrogen's atomic number is one. Hydrogen is a gas[1] and it is ..... Test the flags are reset properly ok 12 - should not have any errors when: References can appear inside a sentence. Example:Hydrogen's atomic number is one. Hydrogen is a gas[1] and it is ..... Test the flags are reset properly --- duration_ms: 0.24163 ... # Subtest: should not have any errors when: References can appear repeated inside a sentence. Example: Hydrogen is a gas[1][2][3] and it is ... ok 13 - should not have any errors when: References can appear repeated inside a sentence. Example: Hydrogen is a gas[1][2][3] and it is ... --- duration_ms: 0.100343 ... # Subtest: should not have any errors when: References can appear after period and space. Example: Hydrogen is a gas. [1] It is ... ok 14 - should not have any errors when: References can appear after period and space. Example: Hydrogen is a gas. [1] It is ... --- duration_ms: 0.246276 ... # Subtest: should not have any errors when: Paragraph from Debian article- repeating references ok 15 - should not have any errors when: Paragraph from Debian article- repeating references --- duration_ms: 0.108369 ... # Subtest: should not have any errors when: References after closing bracket and period. ok 16 - should not have any errors when: References after closing bracket and period. --- duration_ms: 0.087573 ... # Subtest: should not have any errors when: Three sentences in a single text node ok 17 - should not have any errors when: Three sentences in a single text node --- duration_ms: 0.38816 ... # Subtest: should not have any errors when: Paragraph ending with reference and already having reference in between. The second reference should not be identified as repeating reference. If identified as repeating reference, 7 letters from last word will be missing. ok 18 - should not have any errors when: Paragraph ending with reference and already having reference in between. The second reference should not be identified as repeating reference. If identified as repeating reference, 7 letters from last word will be missing. --- duration_ms: 0.124048 ... # Subtest: should not have any errors when: Sentences ending with abbreviations ok 19 - should not have any errors when: Sentences ending with abbreviations --- duration_ms: 0.080889 ... # Subtest: should not have any errors when: link element inside span element ok 20 - should not have any errors when: link element inside span element --- duration_ms: 0.186823 ... # Subtest: should not have any errors when: Do not break inside of links with abbreviations. Example: Carl E. Wieman. See https://phabricator.wikimedia.org/T99504 ok 21 - should not have any errors when: Do not break inside of links with abbreviations. Example: Carl E. Wieman. See https://phabricator.wikimedia.org/T99504 --- duration_ms: 0.077737 ... # Subtest: should not have any errors when: A non-segmentable text chunk inside a textblock should not mark the whole text chunk non-segmentable ok 22 - should not have any errors when: A non-segmentable text chunk inside a textblock should not mark the whole text chunk non-segmentable --- duration_ms: 0.08205 ... # Subtest: should not have any errors when: Figure-inline segmentation. Do not violate the MediaWiki DOM spec https://www.mediawiki.org/wiki/Specs/HTML\#Images ok 23 - should not have any errors when: Figure-inline segmentation. Do not violate the MediaWiki DOM spec https://www.mediawiki.org/wiki/Specs/HTML\#Images --- duration_ms: 0.085936 ... # Subtest: should not have any errors when: Figure-inline inside a transclusions ok 24 - should not have any errors when: Figure-inline inside a transclusions --- duration_ms: 0.065871 ... # Subtest: should not have any errors when: Video tag in figure tag ok 25 - should not have any errors when: Video tag in figure tag --- duration_ms: 0.083963 ... # Subtest: should not have any errors when: Audio tag in figure tag ok 26 - should not have any errors when: Audio tag in figure tag --- duration_ms: 0.079172 ... # Subtest: should not have any errors when: Audio tag in figure-inline tag ok 27 - should not have any errors when: Audio tag in figure-inline tag --- duration_ms: 0.062901 ... # Subtest: should not have any errors when: Video tag in figure-inline tag ok 28 - should not have any errors when: Video tag in figure-inline tag --- duration_ms: 0.061132 ... # Subtest: should not have any errors when: Do not segment content inside block templates ok 29 - should not have any errors when: Do not segment content inside block templates --- duration_ms: 0.060614 ... # Subtest: should not have any errors when: about attribute alone does not initiate a transclusion context ok 30 - should not have any errors when: about attribute alone does not initiate a transclusion context --- duration_ms: 0.064627 ... # Subtest: should not have any errors when: Do not consider style tag with transclusion as block tag ok 31 - should not have any errors when: Do not consider style tag with transclusion as block tag --- duration_ms: 0.062339 ... # Subtest: should not have any errors when: Sections with singe paragraph and a transclusion based reference at th end - T283513 ok 32 - should not have any errors when: Sections with singe paragraph and a transclusion based reference at th end - T283513 --- duration_ms: 0.080409 ... # Subtest: should not have any errors when: Handle abbreviations such as Brown v. Board of education - T338689 ok 33 - should not have any errors when: Handle abbreviations such as Brown v. Board of education - T338689 --- duration_ms: 0.109121 ... 1..33 ok 25 - Segmentation tests for en --- duration_ms: 7.857251 type: 'suite' ... # Subtest: Segmentation tests for de # Subtest: should not have any errors when: Avoid segmenting inside a transclusion textblock ok 1 - should not have any errors when: Avoid segmenting inside a transclusion textblock --- duration_ms: 0.080347 ... 1..1 ok 26 - Segmentation tests for de --- duration_ms: 0.379425 type: 'suite' ... # Subtest: Segmentation tests for hi # Subtest: should not have any errors when: Hindi segmentation - basic test ok 1 - should not have any errors when: Hindi segmentation - basic test --- duration_ms: 0.083026 ... 1..1 ok 27 - Segmentation tests for hi --- duration_ms: 0.234921 type: 'suite' ... # Subtest: Segmentation tests for hy # Subtest: should not have any errors when: Armenian segmentation - basic test ok 1 - should not have any errors when: Armenian segmentation - basic test --- duration_ms: 0.15701 ... 1..1 ok 28 - Segmentation tests for hy --- duration_ms: 0.331159 type: 'suite' ... # Subtest: Segmentation tests for ja # Subtest: should not have any errors when: Japanese segmentation - basic test ok 1 - should not have any errors when: Japanese segmentation - basic test --- duration_ms: 0.078696 ... 1..1 ok 29 - Segmentation tests for ja --- duration_ms: 0.204698 type: 'suite' ... # Subtest: Segmentation tests for zh # Subtest: should not have any errors when: Chinese segmentation - basic test ok 1 - should not have any errors when: Chinese segmentation - basic test --- duration_ms: 0.113978 ... 1..1 ok 30 - Segmentation tests for zh --- duration_ms: 0.262745 type: 'suite' ... # Subtest: Segmentation tests for pa # Subtest: should not have any errors when: Punjabi segmentation - basic test ok 1 - should not have any errors when: Punjabi segmentation - basic test --- duration_ms: 0.116795 ... 1..1 ok 31 - Segmentation tests for pa --- duration_ms: 0.461633 type: 'suite' ... # (node:471) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time # (Use `node --trace-warnings ...` to show where the warning was created) # Subtest: SectionSuggester tests # Subtest: should find present and missing sections ok 1 - should find present and missing sections --- duration_ms: 25.237895 ... 1..1 ok 32 - SectionSuggester tests --- duration_ms: 28.096149 type: 'suite' ... # Subtest: /src/repo/test/testutils.js ok 23 - /src/repo/test/testutils.js --- duration_ms: 136.409645 ... # (node:489) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time # (Use `node --trace-warnings ...` to show where the warning was created) # {"@timestamp":"2025-05-24T05:07:08.531Z","ecs.version":"8.10.0","log.level":"info","message":"Starting cxserver-dev","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:08.569Z","ecs.version":"8.10.0","log.level":"info","message":"responseTimeMetric","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:08.571Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 345 languages from the configuration","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:08.631Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 7 MT providers","service":"cxserver-dev"} # Subtest: Link Adaptation tests # Subtest: Basic test ok 1 - Basic test --- duration_ms: 217.433607 ... # Subtest: Space in the title ok 2 - Space in the title --- duration_ms: 0.899354 ... # Subtest: Relative URL ok 3 - Relative URL --- duration_ms: 0.907153 ... # Subtest: Title with parenthesis ok 4 - Title with parenthesis --- duration_ms: 0.619337 ... # Subtest: Target title does not exist ok 5 - Target title does not exist --- duration_ms: 0.350323 ... # Subtest: Title with translation from Wikidata label ok 6 - Title with translation from Wikidata label --- duration_ms: 0.739266 ... # Subtest: ISBN Link adaptation ok 7 - ISBN Link adaptation --- duration_ms: 0.46794 ... 1..7 ok 34 - Link Adaptation tests --- duration_ms: 351.612948 type: 'suite' ... # (node:499) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time # (Use `node --trace-warnings ...` to show where the warning was created) # {"@timestamp":"2025-05-24T05:07:08.392Z","ecs.version":"8.10.0","log.level":"info","message":"Starting cxserver-dev","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:08.424Z","ecs.version":"8.10.0","log.level":"info","message":"responseTimeMetric","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:08.426Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 345 languages from the configuration","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:08.472Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 7 MT providers","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:08.490Z","ecs.version":"8.10.0","log.level":"debug","message":"Not-adapting a reference node without data-mw.body.html: trncttm-2","service":"cxserver-dev"} # Subtest: Reference adaptation # Subtest: Adapting a reference with plain text content ok 1 - Adapting a reference with plain text content --- duration_ms: 3.561852 ... # Subtest: Adapting a reference with plain text content, sup tag ok 2 - Adapting a reference with plain text content, sup tag --- duration_ms: 0.25782 ... # Subtest: Adapting a reference with html content, sup tag ok 3 - Adapting a reference with html content, sup tag --- duration_ms: 0.216069 ... # Subtest: Not adapting a reference with no data-mw.body ok 4 - Not adapting a reference with no data-mw.body --- duration_ms: 0.511668 ... # Subtest: Partially adapting a reference with named reference ok 5 - Partially adapting a reference with named reference --- duration_ms: 0.465286 ... # {"@timestamp":"2025-05-24T05:07:08.866Z","ecs.version":"8.10.0","log.level":"error","message":"Not-adapting a template node with non-JSON data-mw: CITEREFGazette57855","service":"cxserver-dev"} # Subtest: Mark the reference adaptation failed when the content defined in template not adapted ok 6 - Mark the reference adaptation failed when the content defined in template not adapted --- duration_ms: 354.306662 ... # Subtest: Mark the reference adaptation failed when the content defined in template and it is unsupported by CXserver ok 7 - Mark the reference adaptation failed when the content defined in template and it is unsupported by CXserver --- duration_ms: 29.125301 ... # Subtest: Partial reference adaptation, when mandatory params are not transferred successfully ok 8 - Partial reference adaptation, when mandatory params are not transferred successfully --- duration_ms: 139.036559 ... 1..8 ok 35 - Reference adaptation --- duration_ms: 637.639289 type: 'suite' ... # (node:515) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time # (Use `node --trace-warnings ...` to show where the warning was created) # {"@timestamp":"2025-05-24T05:07:08.961Z","ecs.version":"8.10.0","log.level":"info","message":"Starting cxserver-dev","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:09.005Z","ecs.version":"8.10.0","log.level":"info","message":"responseTimeMetric","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:09.007Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 345 languages from the configuration","service":"cxserver-dev"} # {"@timestamp":"2025-05-24T05:07:09.058Z","ecs.version":"8.10.0","log.level":"debug","message":"Found 7 MT providers","service":"cxserver-dev"} # Subtest: Template adaptation # Subtest: Template with no equivalents ok 1 - Template with no equivalents --- duration_ms: 274.389126 ... # Subtest: Babel template ok 2 - Babel template --- duration_ms: 93.003279 ... # Subtest: Cite web template ok 3 - Cite web template --- duration_ms: 150.878695 ... # Subtest: Multi-part template for columns ok 4 - Multi-part template for columns --- duration_ms: 73.447198 ... # Subtest: Template with equivalents, but target template data missing, no params mapped ok 5 - Template with equivalents, but target template data missing, no params mapped --- duration_ms: 76.949267 ... # Subtest: Equivalent template exist, templatedata exists only for source language. Use that as hint for extracting params from template source code in target language ok 6 - Equivalent template exist, templatedata exists only for source language. Use that as hint for extracting params from template source code in target language --- duration_ms: 77.500042 ... # Subtest: Template with equivalents, all mandatory params mapped ok 7 - Template with equivalents, all mandatory params mapped --- duration_ms: 80.744164 ... # Subtest: Images that are generated by templates ok 8 - Images that are generated by templates --- duration_ms: 6.41713 ... 1..8 ok 36 - Template adaptation --- duration_ms: 841.83856 ... # Subtest: /src/repo/test/utils/assert.js ok 27 - /src/repo/test/utils/assert.js --- duration_ms: 178.196197 ... 1..37 # tests 187 # suites 34 # pass 187 # fail 0 # cancelled 0 # skipped 0 # todo 0 # duration_ms 13043.257894 --- end --- {"1104171": {"source": 1104171, "name": "formidable", "dependency": "formidable", "title": "Formidable relies on hexoid to prevent guessing of filenames for untrusted executable content", "url": "https://github.com/advisories/GHSA-75v8-2h7p-7m2m", "severity": "low", "cwe": ["CWE-338"], "cvss": {"score": 3.1, "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N"}, "range": ">=3.1.1-canary.20211030 <3.5.3"}} Upgrading n:formidable from 3.5.2 -> 3.5.4 {"1104677": {"source": 1104677, "name": "tar-fs", "dependency": "tar-fs", "title": "tar-fs Vulnerable to Link Following and Path Traversal via Extracting a Crafted tar File", "url": "https://github.com/advisories/GHSA-pq67-2wwv-3xjx", "severity": "high", "cwe": ["CWE-22"], "cvss": {"score": 7.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"}, "range": ">=2.0.0 <2.1.2"}} Upgrading n:tar-fs from 2.1.1 -> 2.1.3 {"1104500": {"source": 1104500, "name": "undici", "dependency": "undici", "title": "undici Denial of Service attack via bad certificate data", "url": "https://github.com/advisories/GHSA-cxrh-j4jr-qwg3", "severity": "low", "cwe": ["CWE-401"], "cvss": {"score": 3.1, "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L"}, "range": ">=6.0.0 <6.21.2"}} Upgrading n:undici from 6.21.1 -> 6.21.3 $ package-lock-lint package-lock.json --- stdout --- Checking package-lock.json --- end --- build: Updating npm dependencies * formidable: 3.5.2 → 3.5.4 * https://github.com/advisories/GHSA-75v8-2h7p-7m2m * tar-fs: 2.1.1 → 2.1.3 * https://github.com/advisories/GHSA-pq67-2wwv-3xjx * undici: 6.21.1 → 6.21.3 * https://github.com/advisories/GHSA-cxrh-j4jr-qwg3 $ git add . --- stdout --- --- end --- $ git commit -F /tmp/tmp9my59l1p --- stdout --- [master c6cb688] build: Updating npm dependencies 1 file changed, 34 insertions(+), 22 deletions(-) --- end --- $ git format-patch HEAD~1 --stdout --- stdout --- From c6cb688156902dbbc1d066e58f942f10ee446631 Mon Sep 17 00:00:00 2001 From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org> Date: Sat, 24 May 2025 05:07:10 +0000 Subject: [PATCH] build: Updating npm dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * formidable: 3.5.2 → 3.5.4 * https://github.com/advisories/GHSA-75v8-2h7p-7m2m * tar-fs: 2.1.1 → 2.1.3 * https://github.com/advisories/GHSA-pq67-2wwv-3xjx * undici: 6.21.1 → 6.21.3 * https://github.com/advisories/GHSA-cxrh-j4jr-qwg3 Change-Id: I10b1a19691de6b043fec41e9bb100fe5d3832176 --- package-lock.json | 56 ++++++++++++++++++++++++++++------------------- 1 file changed, 34 insertions(+), 22 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7a8457a..99968ff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2051,6 +2051,18 @@ "eslint-scope": "5.1.1" } }, + "node_modules/@noble/hashes": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", + "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", + "dev": true, + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -2137,6 +2149,15 @@ "node": ">=8.0.0" } }, + "node_modules/@paralleldrive/cuid2": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@paralleldrive/cuid2/-/cuid2-2.2.2.tgz", + "integrity": "sha512-ZOBkgDwEdoYVlSeRbYYXs0S9MejQofiVYoTbKzy/6GQa39/q5tQU2IX46+shYnUkpEl3wc+J6wRlar7r2EK2xA==", + "dev": true, + "dependencies": { + "@noble/hashes": "^1.1.5" + } + }, "node_modules/@rtsao/scc": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz", @@ -5585,16 +5606,18 @@ } }, "node_modules/formidable": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/formidable/-/formidable-3.5.2.tgz", - "integrity": "sha512-Jqc1btCy3QzRbJaICGwKcBfGWuLADRerLzDqi2NwSt/UkXLsHJw2TVResiaoBufHVHy9aSgClOHCeJsSsFLTbg==", + "version": "3.5.4", + "resolved": "https://registry.npmjs.org/formidable/-/formidable-3.5.4.tgz", + "integrity": "sha512-YikH+7CUTOtP44ZTnUhR7Ic2UASBPOqmaRkRKxRbywPTe5VxF7RRCck4af9wutiZ/QKM5nME9Bie2fFaPz5Gug==", "dev": true, - "license": "MIT", "dependencies": { + "@paralleldrive/cuid2": "^2.2.2", "dezalgo": "^1.0.4", - "hexoid": "^2.0.0", "once": "^1.4.0" }, + "engines": { + "node": ">=14.0.0" + }, "funding": { "url": "https://ko-fi.com/tunnckoCore/commissions" } @@ -6009,16 +6032,6 @@ "node": ">= 0.4" } }, - "node_modules/hexoid": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/hexoid/-/hexoid-2.0.0.tgz", - "integrity": "sha512-qlspKUK7IlSQv2o+5I7yhUd7TxlOG2Vr5LTa3ve2XSNVKAL/n/u/7KLvKmFNimomDIKvZFXWHv0T12mv7rT8Aw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/hosted-git-info": { "version": "2.8.9", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", @@ -10073,10 +10086,9 @@ } }, "node_modules/tar-fs": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", - "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", - "license": "MIT", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.3.tgz", + "integrity": "sha512-090nwYJDmlhwFwEW3QQl+vaNnxsO2yVsd45eTKRBzSzu+hlb1w2K9inVq5b0ngXuLVqQ4ApvsUHHnu/zQNkWAg==", "dependencies": { "chownr": "^1.1.1", "mkdirp-classic": "^0.5.2", @@ -10469,9 +10481,9 @@ "license": "MIT" }, "node_modules/undici": { - "version": "6.21.1", - "resolved": "https://registry.npmjs.org/undici/-/undici-6.21.1.tgz", - "integrity": "sha512-q/1rj5D0/zayJB2FraXdaWxbhWiNKDvu8naDT2dl1yTlvJp4BLtOcp2a5BvgGNQpYYJzau7tf1WgKv3b+7mqpQ==", + "version": "6.21.3", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.21.3.tgz", + "integrity": "sha512-gBLkYIlEnSp8pFbT64yFgGE6UIB9tAkhukC23PmMDCe5Nd+cRqKxSjw5y54MK2AZMgZfJWMaNE4nYUHgi1XEOw==", "engines": { "node": ">=18.17" } -- 2.39.5 --- end ---