Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(ci): repair dependency installs, scans, and test failures (#6761)

LearningCircuitb7270642a326
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index f69858fab5..9c234ed0ac 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -29,6 +29,15 @@ updates:
# pyproject pin when lifting it — exit conditions tracked in #4499.
- dependency-name: "faiss-cpu"
versions: [">=1.14"]
+ # This ignore applies to this whole pip entry (directory "/"): the
+ # pyproject.toml/pdm.lock tree and the hashed requirements/bootstrap-*
+ # files alike. Every pinned parent still rejects pyee 14, so a
+ # bump PR could only fail to resolve. Removal is tracked in #6854.
+ # - pyee >=14: playwright 1.63.0 (pdm.lock and bootstrap-builder.txt)
+ # and patchright 1.63.0 (pdm.lock) require pyee<14. Remove once every locked
+ # playwright AND patchright admits pyee 14.
+ - dependency-name: "pyee"
+ versions: [">=14"]
# These .in/.txt pairs use pip-compile, including hash regeneration for
# transitive updates. Bootstrap requirements remain in the root pip job.
@@ -65,6 +74,17 @@ updates:
prefix: "chore"
include: "scope"
groups:
+ # Vitest plugins require the exact same version as vitest. Include
+ # major updates so a new major cannot strand either side of the pair.
+ vitest:
+ patterns:
+ - "vitest"
+ - "@vitest/*"
+ vitest-security:
+ applies-to: security-updates
+ patterns:
+ - "vitest"
+ - "@vitest/*"
frontend-minor-and-patch:
applies-to: version-updates
patterns:
diff --git a/.github/workflows/osv-scanner-scheduled.yml b/.github/workflows/osv-scanner-scheduled.yml
index ca4eee6a95..5db0fac744 100644
--- a/.github/workflows/osv-scanner-scheduled.yml
+++ b/.github/workflows/osv-scanner-scheduled.yml
@@ -27,9 +27,8 @@ jobs:
security-events: write
contents: read
actions: read
- uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@6e4298ebc4db23e847df9b2e2de2939d6f066c67" # v2.5.1
+ uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@a345acffa64b0eaede81a3d9aae6141214d9c8fc" # v2.6.0
with:
scan-args: |-
-r
- --skip-git
./
diff --git a/.github/workflows/osv-scanner.yml b/.github/workflows/osv-scanner.yml
index 115d476649..c988363ac4 100644
--- a/.github/workflows/osv-scanner.yml
+++ b/.github/workflows/osv-scanner.yml
@@ -37,10 +37,9 @@ jobs:
security-events: write
contents: read
actions: read
- uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@6e4298ebc4db23e847df9b2e2de2939d6f066c67" # v2.5.1
+ uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@a345acffa64b0eaede81a3d9aae6141214d9c8fc" # v2.6.0
with:
ref: ${{ github.sha }}
scan-args: |-
-r
- --skip-git
./
diff --git a/package-lock.json b/package-lock.json
index 7b026e570d..fccf331e1c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -25,7 +25,7 @@
"socket.io-client": "^4.8.4"
},
"devDependencies": {
- "@vitest/coverage-v8": "^4.1.7",
+ "@vitest/coverage-v8": "^5.0.1",
"acorn": "^8.19.0",
"eslint": "^10.12.0",
"eslint-plugin-chai-friendly": "^1.2.1",
@@ -33,7 +33,7 @@
"eslint-plugin-regexp": "^3.3.1",
"happy-dom": "^20.14.5",
"vite": "^8.3.3",
- "vitest": "^4.1.7"
+ "vitest": "^5.0.1"
},
"engines": {
"node": ">=24.0.0"
@@ -679,13 +679,6 @@
"integrity": "sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==",
"license": "MIT"
},
- "node_modules/@standard-schema/spec": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz",
- "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==",
- "dev": true,
- "license": "MIT"
- },
"node_modules/@types/chai": {
"version": "5.2.3",
"resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz",
@@ -773,29 +766,27 @@
}
},
"node_modules/@vitest/coverage-v8": {
- "version": "4.1.11",
- "resolved": "https://registry.npmjs.org/@vitest/coverage-v8/-/coverage-v8-4.1.11.tgz",
- "integrity": "sha512-8MVGEFnJIcdGjcbfKmeq8z0pZHH0JlVtoVZH9Q/qwUp6wyFnEJUBMrw9DCaj+ra3vShGmhavjalMIhPNxZAUcw==",
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/@vitest/coverage-v8/-/coverage-v8-5.0.1.tgz",
+ "integrity": "sha512-FRC8ACiudC3dI6MTplzRSYWHDRnIv2IPfbzs4FdoJNsMal/35sWV8hwIfV8ZcqzSPy+uXHeMVONt9CEqtOU17w==",
"dev": true,
"license": "MIT",
"dependencies": {
"@bcoe/v8-coverage": "^1.0.2",
- "@vitest/utils": "4.1.11",
- "ast-v8-to-istanbul": "^1.0.0",
- "istanbul-lib-coverage": "^3.2.2",
- "istanbul-lib-report": "^3.0.1",
- "istanbul-reports": "^3.2.0",
- "magicast": "^0.5.2",
- "obug": "^2.1.1",
- "std-env": "^4.0.0-rc.1",
- "tinyrainbow": "^3.1.0"
+ "@vitest/istanbul-lib-coverage": "^1.0.0",
+ "@vitest/istanbul-lib-report": "^1.0.0",
+ "ast-v8-to-istanbul": "^1.0.5",
+ "magicast": "^0.5.4",
+ "obug": "^2.1.4",
+ "std-env": "^4.2.0",
+ "tinyrainbow": "^3.1.1"
},
"funding": {
"url": "https://opencollective.com/vitest"
},
"peerDependencies": {
- "@vitest/browser": "4.1.11",
- "vitest": "4.1.11"
+ "@vitest/browser": "5.0.1",
+ "vitest": "5.0.1"
},
"peerDependenciesMeta": {
"@vitest/browser": {
@@ -803,34 +794,40 @@
}
}
},
- "node_modules/@vitest/expect": {
- "version": "4.1.11",
- "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.1.11.tgz",
- "integrity": "sha512-VX2x5vNJXET47KAFzwERI+KRMtTTCSWTfSMKsW7JsUsXV4psq++e3DvZpuTDOpHcxytiDs6p2nhVb2tVDiiUYw==",
+ "node_modules/@vitest/istanbul-lib-coverage": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@vitest/istanbul-lib-coverage/-/istanbul-lib-coverage-1.0.1.tgz",
+ "integrity": "sha512-k3DJZ8LhMBK9NS4SclF1ASD3OgXEWDorbIcPTRDK0/Zae6fRvu+fJRxtFdLfHsa9Y24beCdPnoNZ4LviTNstfA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=22"
+ }
+ },
+ "node_modules/@vitest/istanbul-lib-report": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@vitest/istanbul-lib-report/-/istanbul-lib-report-1.0.1.tgz",
+ "integrity": "sha512-1EOLRfsTMnyAr3+kEAsP4o9dhaDlGPpD7H5iLBBeq//YpNB1VIahkPhB+eRp9N2Dkfw8oySROjE3yf9XDeaIkQ==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@standard-schema/spec": "^1.1.0",
- "@types/chai": "^5.2.2",
- "@vitest/spy": "4.1.11",
- "@vitest/utils": "4.1.11",
- "chai": "^6.2.2",
- "tinyrainbow": "^3.1.0"
+ "@vitest/istanbul-lib-coverage": "1.0.1"
},
- "funding": {
- "url": "https://opencollective.com/vitest"
+ "engines": {
+ "node": ">=22"
}
},
"node_modules/@vitest/mocker": {
- "version": "4.1.11",
- "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.11.tgz",
- "integrity": "sha512-2XJVD55d1o5AZous5CCGKS74g/riOj9odEt2bQpCVZeblHyHdnMeFl4jl0XjU21stf4mbjUkew2eXQZt65g5CQ==",
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-5.0.1.tgz",
+ "integrity": "sha512-6K1DoBNAPGvuOcSsGA4D6x+5zEEff/KmOOP3uetT2TrGpVfI+HRHRnJJfKi5ib/g1vx8IYHQD8s0pbJz8WQI7Q==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@vitest/spy": "4.1.11",
+ "@jridgewell/trace-mapping": "0.3.31",
+ "@vitest/spy": "5.0.1",
"estree-walker": "^3.0.3",
- "magic-string": "^0.30.21"
+ "magic-string": "^1.2.3"
},
"funding": {
"url": "https://opencollective.com/vitest"
@@ -848,70 +845,12 @@
}
}
},
- "node_modules/@vitest/pretty-format": {
- "version": "4.1.11",
- "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.11.tgz",
- "integrity": "sha512-yiZzPbGTS9Sr/JpFl8zHrcIkAofNbFV6k21vIgQN/cY/oxZeXhJv5sc/MBJ5jFKWmWs+oJHw0UXLZjmf931+Vw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "tinyrainbow": "^3.1.0"
- },
- "funding": {
- "url": "https://opencollective.com/vitest"
- }
- },
- "node_modules/@vitest/runner": {
- "version": "4.1.11",
- "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.1.11.tgz",
- "integrity": "sha512-LztvUgdwMNJMIkj3hQnnxiC2Xy1zNxq928W/xhjCLaNCzqTZOudjwbQf6v9IntZGPw132i2Lq2rgTRZHD3JHNw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@vitest/utils": "4.1.11",
- "pathe": "^2.0.3"
- },
- "funding": {
- "url": "https://opencollective.com/vitest"
- }
- },
- "node_modules/@vitest/snapshot": {
- "version": "4.1.11",
- "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.1.11.tgz",
- "integrity": "sha512-pN7ikn1ON7h8ee4gIAp4AzyK+zBtJPzVbqOgu5LCEh4VaJVbPQcgYQYJIMGQPXVeJJq1fnfazis7a5pFNPahog==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@vitest/pretty-format": "4.1.11",
- "@vitest/utils": "4.1.11",
- "magic-string": "^0.30.21",
- "pathe": "^2.0.3"
- },
- "funding": {
- "url": "https://opencollective.com/vitest"
- }
- },
"node_modules/@vitest/spy": {
- "version": "4.1.11",
- "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.11.tgz",
- "integrity": "sha512-apNa/prQy2qCeywhnixOHPRCgGNhvg7T4Dapfl1GahLp/R+uhBm5cPyFoNVyqsNd2h1nJxL6BqqdIjiABL60YA==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "url": "https://opencollective.com/vitest"
- }
- },
- "node_modules/@vitest/utils": {
- "version": "4.1.11",
- "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.11.tgz",
- "integrity": "sha512-zTCVGpyFsGWBhllOyKlTw/vnr6D9qxsfSDyfbyZmTyjHw5N/VuvzHpHoQjm2ZJzn4RJgx5w4r7V0er69CmLgPQ==",
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.0.1.tgz",
+ "integrity": "sha512-rbto/mF/SGERxEgYOek7Xm6B9b+y+mVoo+f4b2LymYO8zM1b7uB5nHuhVMTP2hxdzgxvGiZYGxGIaMvL5y180Q==",
"dev": true,
"license": "MIT",
- "dependencies": {
- "@vitest/pretty-format": "4.1.11",
- "convert-source-map": "^2.0.0",
- "tinyrainbow": "^3.1.0"
- },
"funding": {
"url": "https://opencollective.com/vitest"
}
@@ -1152,13 +1091,6 @@
"node": ">= 12.0.0"
}
},
- "node_modules/convert-source-map": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
- "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
- "dev": true,
- "license": "MIT"
- },
"node_modules/core-js": {
"version": "3.50.0",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.50.0.tgz",
@@ -1675,16 +1607,6 @@
"node": ">=20.0.0"
}
},
- "node_modules/has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=8"
- }
- },
"node_modules/hashery": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/hashery/-/hashery-1.5.1.tgz",
@@ -1714,13 +1636,6 @@
"dev": true,
"license": "MIT"
},
- "node_modules/html-escaper": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz",
- "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==",
- "dev": true,
- "license": "MIT"
- },
"node_modules/html2canvas": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/html2canvas/-/html2canvas-1.4.1.tgz",
@@ -1790,45 +1705,6 @@
"dev": true,
"license": "ISC"
},
- "node_modules/istanbul-lib-coverage": {
- "version": "3.2.2",
- "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz",
- "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==",
- "dev": true,
- "license": "BSD-3-Clause",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/istanbul-lib-report": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz",
- "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==",
- "dev": true,
- "license": "BSD-3-Clause",
- "dependencies": {
- "istanbul-lib-coverage": "^3.0.0",
- "make-dir": "^4.0.0",
- "supports-color": "^7.1.0"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/istanbul-reports": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz",
- "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==",
- "dev": true,
- "license": "BSD-3-Clause",
- "dependencies": {
- "html-escaper": "^2.0.0",
- "istanbul-lib-report": "^3.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
"node_modules/js-tokens": {
"version": "10.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-10.0.0.tgz",
@@ -2211,13 +2087,13 @@
}
},
"node_modules/magic-string": {
- "version": "0.30.21",
- "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
- "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
+ "version": "1.4.2",
+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.2.tgz",
+ "integrity": "sha512-vG+rjFRj1PqdIBozIxAGMjPlOhaVe+GXpbttY/iSK7rGcJRMlwNJO7dcUwmUqkymsFLJiNGI06t4D7Fr7yRC9g==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@jridgewell/sourcemap-codec": "^1.5.5"
+ "@jridgewell/sourcemap-codec": "^1.6.0"
}
},
"node_modules/magicast": {
@@ -2232,22 +2108,6 @@
"source-map-js": "^1.2.1"
}
},
- "node_modules/make-dir": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz",
- "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "semver": "^7.5.3"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/marked": {
"version": "18.1.0",
"resolved": "https://registry.npmjs.org/marked/-/marked-18.1.0.tgz",
@@ -2418,13 +2278,6 @@
"node": ">=8"
}
},
- "node_modules/pathe": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",
- "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",
- "dev": true,
- "license": "MIT"
- },
"node_modules/performance-now": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
@@ -2624,19 +2477,6 @@
"node": "^14.0.0 || >=16.0.0"
}
},
- "node_modules/semver": {
- "version": "7.8.5",
- "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
- "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
- "dev": true,
- "license": "ISC",
- "bin": {
- "semver": "bin/semver.js"
- },
- "engines": {
- "node": ">=10"
- }
- },
"node_modules/shebang-command": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
@@ -2729,19 +2569,6 @@
"dev": true,
"license": "MIT"
},
- "node_modules/supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "has-flag": "^4.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
"node_modules/svg-pathdata": {
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/svg-pathdata/-/svg-pathdata-6.0.3.tgz",
@@ -2762,16 +2589,19 @@
}
},
"node_modules/tinybench": {
- "version": "2.9.0",
- "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz",
- "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==",
+ "version": "6.1.4",
+ "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-6.1.4.tgz",
+ "integrity": "sha512-9APumHG7r4yOk4X4WlkmE71aZcv1gvin1czO3OQ1U9iJcFA5Ja/ygyb0vPOVHTthFozUYs8CLoLUlM8grb2lTQ==",
"dev": true,
- "license": "MIT"
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.0.0"
+ }
},
"node_modules/tinyexec": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.1.tgz",
- "integrity": "sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==",
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.0.tgz",
+ "integrity": "sha512-QKAl9m8gWWGHV8jZcPeym6j+XULi6tOf1mT83WYJ4Lk2ytW/uwAWkrP0uFsdoYMdueVJ0qs26wZ+23xeB4ibNQ==",
"dev": true,
"license": "MIT",
"engines": {
@@ -2923,38 +2753,31 @@
}
},
"node_modules/vitest": {
- "version": "4.1.11",
- "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.11.tgz",
- "integrity": "sha512-fhACrNXUidIbGSBr5FlbuBkO7VWC1ZyLl0DO4CU2DrQoAPxX84Ysxs+HeGQpii5lZWV1Q4gBZTTu49mF+A6Edw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@vitest/expect": "4.1.11",
- "@vitest/mocker": "4.1.11",
- "@vitest/pretty-format": "4.1.11",
- "@vitest/runner": "4.1.11",
- "@vitest/snapshot": "4.1.11",
- "@vitest/spy": "4.1.11",
- "@vitest/utils": "4.1.11",
- "es-module-lexer": "^2.0.0",
- "expect-type": "^1.3.0",
- "magic-string": "^0.30.21",
- "obug": "^2.1.1",
- "pathe": "^2.0.3",
- "picomatch": "^4.0.3",
- "std-env": "^4.0.0-rc.1",
- "tinybench": "^2.9.0",
- "tinyexec": "^1.0.2",
- "tinyglobby": "^0.2.15",
- "tinyrainbow": "^3.1.0",
- "vite": "^6.0.0 || ^7.0.0 || ^8.0.0",
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-5.0.1.tgz",
+ "integrity": "sha512-iA95lQbKEkvrtTkdAgnWbXfbipWiiWe/hDl2P5tMi6WFwD76G0NxXAGp/M9EOcYupeGJRr6wppMc7CoA41TQjg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/chai": "^5.2.2",
+ "@vitest/mocker": "5.0.1",
+ "chai": "^6.2.2",
+ "es-module-lexer": "^2.3.2",
+ "expect-type": "^1.4.0",
+ "magic-string": "^1.2.3",
+ "obug": "^2.1.4",
+ "picomatch": "^4.0.7",
+ "std-env": "^4.2.0",
+ "tinybench": "6.1.4",
+ "tinyexec": "1.3.0",
+ "tinyglobby": "^0.2.17",
"why-is-node-running": "^2.3.0"
},
"bin": {
"vitest": "vitest.mjs"
},
"engines": {
- "node": "^20.0.0 || ^22.0.0 || >=24.0.0"
+ "node": "^22.12.0 || ^24.0.0 || >=26.0.0"
},
"funding": {
"url": "https://opencollective.com/vitest"
@@ -2962,16 +2785,16 @@
"peerDependencies": {
"@edge-runtime/vm": "*",
"@opentelemetry/api": "^1.9.0",
- "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0",
- "@vitest/browser-playwright": "4.1.11",
- "@vitest/browser-preview": "4.1.11",
- "@vitest/browser-webdriverio": "4.1.11",
- "@vitest/coverage-istanbul": "4.1.11",
- "@vitest/coverage-v8": "4.1.11",
- "@vitest/ui": "4.1.11",
+ "@types/node": "^22.0.0 || >=24.0.0",
+ "@vitest/browser-playwright": "5.0.1",
+ "@vitest/browser-preview": "5.0.1",
+ "@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0",
+ "@vitest/coverage-istanbul": "5.0.1",
+ "@vitest/coverage-v8": "5.0.1",
+ "@vitest/ui": "5.0.1",
"happy-dom": "*",
"jsdom": "*",
- "vite": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ "vite": "^6.4.0 || ^7.0.0 || ^8.0.0"
},
"peerDependenciesMeta": {
"@edge-runtime/vm": {
diff --git a/package.json b/package.json
index 842832fb42..50816c391d 100644
--- a/package.json
+++ b/package.json
@@ -37,7 +37,7 @@
"socket.io-client": "^4.8.4"
},
"devDependencies": {
- "@vitest/coverage-v8": "^4.1.7",
+ "@vitest/coverage-v8": "^5.0.1",
"acorn": "^8.19.0",
"eslint": "^10.12.0",
"eslint-plugin-chai-friendly": "^1.2.1",
@@ -45,7 +45,7 @@
"eslint-plugin-regexp": "^3.3.1",
"happy-dom": "^20.14.5",
"vite": "^8.3.3",
- "vitest": "^4.1.7"
+ "vitest": "^5.0.1"
},
"allowScripts": {
"core-js": false,
diff --git a/requirements/bootstrap-builder.txt b/requirements/bootstrap-builder.txt
index 29b7ca680a..e62a51ad01 100644
--- a/requirements/bootstrap-builder.txt
+++ b/requirements/bootstrap-builder.txt
@@ -28,6 +28,9 @@ anyio==4.15.1 \
anysqlite==0.0.5 \
--hash=sha256:cb345dc4f76f6b37f768d7a0b3e9cf5c700dfcb7a6356af8ab46a11f666edbe7
+argcomplete==3.7.2 \
+ --hash=sha256:6029205678bdd9c1c728a155f5f9ecf5812393f969eef58807641a2bc2aa5b19
+
blinker==1.9.0 \
--hash=sha256:ba0efaa9080b619ff2f3459d1d500c57bddea4a6b424b60a91141db6fd2f08bc
@@ -179,9 +182,9 @@ pbs-installer==2026.9.29 \
--hash=sha256:7feaf3d5a4c3d55fa57470956a5d2afa1b9eea323980bbdb4f3ef875f122f144 \
--hash=sha256:d4480dc42b035fdd8f8827efb498e631ea364efe064f3f311195ffe2eedd3f5a
-pdm==2.27.0 \
- --hash=sha256:2f56c4a8f01809564430fb35e850c0b9f56f45e71f272b35dece4db0d558a3aa \
- --hash=sha256:dbfbc484065d0150fa5b29484ead908354313d8699cf74c099d4531826bd04de
+pdm==2.29.2 \
+ --hash=sha256:b17dcc9b55b94694d63afc56053afb7d580e963bb038c753df2cd18fda71182d \
+ --hash=sha256:bad9705e9482e7d877a53380ff25273b01e9c1d313ee6ce7b215a6562a9d8bdd
pip==26.2.1 \
--hash=sha256:71138adf1f4ca900cdb7d289c21b7494329f2332b6d85f0e1c42108c0384ed3e \
diff --git a/requirements/bootstrap-ci.txt b/requirements/bootstrap-ci.txt
index eab3c6f29d..b4e652a371 100644
--- a/requirements/bootstrap-ci.txt
+++ b/requirements/bootstrap-ci.txt
@@ -27,6 +27,9 @@ anyio==4.15.1 \
anysqlite==0.0.5 \
--hash=sha256:cb345dc4f76f6b37f768d7a0b3e9cf5c700dfcb7a6356af8ab46a11f666edbe7
+argcomplete==3.7.2 \
+ --hash=sha256:6029205678bdd9c1c728a155f5f9ecf5812393f969eef58807641a2bc2aa5b19
+
blinker==1.9.0 \
--hash=sha256:ba0efaa9080b619ff2f3459d1d500c57bddea4a6b424b60a91141db6fd2f08bc
@@ -174,9 +177,9 @@ pbs-installer==2026.9.29 \
--hash=sha256:7feaf3d5a4c3d55fa57470956a5d2afa1b9eea323980bbdb4f3ef875f122f144 \
--hash=sha256:d4480dc42b035fdd8f8827efb498e631ea364efe064f3f311195ffe2eedd3f5a
-pdm==2.27.0 \
- --hash=sha256:2f56c4a8f01809564430fb35e850c0b9f56f45e71f272b35dece4db0d558a3aa \
- --hash=sha256:dbfbc484065d0150fa5b29484ead908354313d8699cf74c099d4531826bd04de
+pdm==2.29.2 \
+ --hash=sha256:b17dcc9b55b94694d63afc56053afb7d580e963bb038c753df2cd18fda71182d \
+ --hash=sha256:bad9705e9482e7d877a53380ff25273b01e9c1d313ee6ce7b215a6562a9d8bdd
pip==26.2.1 \
--hash=sha256:71138adf1f4ca900cdb7d289c21b7494329f2332b6d85f0e1c42108c0384ed3e \
diff --git a/tests/ci/standalone/test_release_scan_evidence.py b/tests/ci/standalone/test_release_scan_evidence.py
index 8b8350eca8..a0a2d239cb 100644
--- a/tests/ci/standalone/test_release_scan_evidence.py
+++ b/tests/ci/standalone/test_release_scan_evidence.py
@@ -78,7 +78,7 @@ _REMOTE_SARIF_UPLOADERS = {
# parsed. "{workflow}" stands for the top-level workflow file of the run.
_REMOTE_REUSABLE_SARIF_UPLOADERS = {
# osv-scanner.yml -> google/osv-scanner-action's reusable workflow, whose
- # "Upload to code-scanning" step (v2.5.1) passes no `category:`. Code
+ # "Upload to code-scanning" step (v2.6.0) passes no `category:`. Code
# scanning therefore files it under the default "<top-level workflow>:
# <job id>" category, e.g. ".github/workflows/release-gate.yml:osv-scan"
# for the scheduled release-gate run (confirmed against live analyses).
@@ -1047,5 +1047,67 @@ class RetireScanStepTests(unittest.TestCase):
self.assertEqual(len(re.findall(r"\bnpx\s+retire", workflow)), 1)
+# osv-scanner flags vetted against the binary the pinned reusable workflow
+# runs (osv-scanner-action v2.6.0). An unknown flag makes osv-scanner exit
+# 127 ("flag provided but not defined") without writing results.json. Under
+# the v2.5.1 reusable workflow the reporter then printed "No issues found"
+# and the required osv-scan check PASSED without scanning anything; that is
+# how `--skip-git` (not defined in osv-scanner v2) silently disabled the scan.
+# v2.6.0 fails the job when no results were written, but a rejected flag
+# still means no scan, so check any new flag against the pinned version's
+# `osv-scanner scan source --help` before adding it here.
+OSV_SCAN_ARGS_VETTED = frozenset({"-r", "./"})
+OSV_SCAN_WORKFLOWS = (
+ ".github/workflows/osv-scanner.yml",
+ ".github/workflows/osv-scanner-scheduled.yml",
+)
+
+
+def _osv_scan_args(workflow_text):
+ """Tokens of every ``scan-args: |-`` block in ``workflow_text``."""
+ blocks = []
+ lines = workflow_text.splitlines()
+ for index, line in enumerate(lines):
+ match = re.match(r"^(\s*)scan-args:\s*\|-?\s*$", line)
+ if not match:
+ continue
+ indent = len(match.group(1))
+ tokens = []
+ for body in lines[index + 1 :]:
+ if body.strip() and len(body) - len(body.lstrip()) <= indent:
+ break
+ tokens.extend(body.split())
+ blocks.append(tokens)
+ return blocks
+
+
+class OsvScanArgsTests(unittest.TestCase):
+ def test_osv_scan_args_are_vetted_for_the_pinned_scanner(self):
+ for rel_path in OSV_SCAN_WORKFLOWS:
+ with self.subTest(workflow=rel_path):
+ text = (ROOT / rel_path).read_text(encoding="utf-8")
+ self.assertIn("osv-scanner-reusable.yml@", text)
+ blocks = _osv_scan_args(text)
+ self.assertEqual(len(blocks), 1, blocks)
+ self.assertTrue(blocks[0], "empty osv scan-args")
+ unvetted = set(blocks[0]) - OSV_SCAN_ARGS_VETTED
+ self.assertFalse(
+ unvetted,
+ f"{rel_path} passes osv-scanner flags not vetted for "
+ f"the pinned version: {sorted(unvetted)}",
+ )
+
+ def test_scan_args_parser_reads_the_whole_block(self):
+ text = (
+ " with:\n"
+ " scan-args: |-\n"
+ " -r\n"
+ " --skip-git\n"
+ " ./\n"
+ " other: value\n"
+ )
+ self.assertEqual(_osv_scan_args(text), [["-r", "--skip-git", "./"]])
+
+
if __name__ == "__main__":
unittest.main()
diff --git a/tests/database/test_alembic_migrations.py b/tests/database/test_alembic_migrations.py
index 2b6944f166..15ad7256ac 100644
--- a/tests/database/test_alembic_migrations.py
+++ b/tests/database/test_alembic_migrations.py
@@ -11,6 +11,7 @@ Tests cover:
"""
import os
+from types import SimpleNamespace
from unittest.mock import patch
import pytest
@@ -4152,14 +4153,9 @@ class TestMigrationFilePermissions:
# Should not raise
_validate_migrations_permissions(mock_migrations)
- def test_permission_check_skipped_on_windows(self, tmp_path, monkeypatch):
+ def test_permission_check_skipped_on_windows(self, tmp_path):
"""Verify permission checks are skipped on Windows."""
- from local_deep_research.database.alembic_runner import (
- _validate_migrations_permissions,
- )
-
- # Mock os.name to be 'nt' (Windows)
- monkeypatch.setattr(os, "name", "nt")
+ from local_deep_research.database import alembic_runner
# Create a mock migrations directory (permissions don't matter)
mock_migrations = tmp_path / "migrations"
@@ -4168,9 +4164,14 @@ class TestMigrationFilePermissions:
bad_migration = mock_versions / "001_migration.py"
bad_migration.write_text("# content", encoding="utf-8")
-
- # Should not raise even if file would be "insecure" on Unix
- _validate_migrations_permissions(mock_migrations)
+ bad_migration.chmod(0o666) # noqa: S103 — exercise the Windows bypass
+
+ # Replace only this module's os reference: changing os.name globally
+ # makes pathlib and fixture teardown try to create WindowsPath on Linux.
+ with patch.object(alembic_runner, "os", SimpleNamespace(name="nt")):
+ alembic_runner._validate_migrations_permissions(mock_migrations)
+ # Native path construction must still work while Windows is mocked.
+ assert get_migrations_dir().is_dir()
@pytest.mark.skipif(
os.name == "nt", reason="File permissions work differently on Windows"
diff --git a/tests/library/download_management/test_retry_status_reason_agreement.py b/tests/library/download_management/test_retry_status_reason_agreement.py
index af90af74c4..ca2f1d8961 100644
--- a/tests/library/download_management/test_retry_status_reason_agreement.py
+++ b/tests/library/download_management/test_retry_status_reason_agreement.py
@@ -26,16 +26,19 @@ from local_deep_research.library.download_management.status_tracker import (
)
-def _status_record(**fields):
+def _status_record(*, cooldown=None, **fields):
"""A ResourceDownloadStatus stand-in with retry-neutral defaults."""
+ now = datetime.now(UTC)
record = MagicMock()
record.status = "failed"
record.failure_message = None
record.failure_type = None
- record.retry_after_timestamp = None
+ record.retry_after_timestamp = (
+ now + cooldown if cooldown is not None else None
+ )
record.today_retry_count = 0
record.total_retry_count = 0
- record.last_attempt_at = datetime.now(UTC)
+ record.last_attempt_at = now
for name, value in fields.items():
setattr(record, name, value)
return record
@@ -78,7 +81,8 @@ CASES = [
pytest.param(
{
"status": "temporarily_failed",
- "retry_after_timestamp": datetime.now(UTC) + timedelta(hours=2),
+ # A collection-time deadline can expire in the full suite.
+ "cooldown": timedelta(hours=2),
},
"temporarily_failed",
id="cooldown-active",
diff --git a/vite.config.js b/vite.config.js
index efb1fed5e3..55a5e9c63a 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -72,6 +72,9 @@ export default defineConfig({
test: {
environment: 'happy-dom',
globals: true,
+ // Startup contracts assert calls made during beforeAll/module evaluation.
+ // Preserve Vitest 4's behavior; individual suites reset their own spies.
+ clearMocks: false,
root: resolve(__dirname),
include: ['tests/js/**/*.test.js'],
setupFiles: ['tests/js/setup.js'],