~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
fix(tests): restore Puppeteer ESLint schema validation (#7281)
LearningCircuit6e046e474a9e
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.ymlindex c48189753d..206823d069 100644--- a/.github/workflows/pre-commit.yml+++ b/.github/workflows/pre-commit.yml@@ -56,6 +56,12 @@ jobs:- name: Install Node.js dependenciesrun: npm ci+ - name: Check Puppeteer lint toolchain+ working-directory: tests/puppeteer+ run: |+ npm ci --ignore-scripts --no-audit --no-fund+ npm run test:toolchain+- name: Install system dependencies for SQLCipherrun: |sudo apt-get updatediff --git a/tests/puppeteer/package-lock.json b/tests/puppeteer/package-lock.jsonindex 15dfe0bb47..0494be9dda 100644--- a/tests/puppeteer/package-lock.json+++ b/tests/puppeteer/package-lock.json@@ -309,23 +309,6 @@"acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"}},- "node_modules/ajv": {- "version": "8.20.0",- "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz",- "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",- "dev": true,- "license": "MIT",- "dependencies": {- "fast-deep-equal": "^3.1.3",- "fast-uri": "^3.0.1",- "json-schema-traverse": "^1.0.0",- "require-from-string": "^2.0.2"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/epoberezkin"- }- },"node_modules/ansi-regex": {"version": "6.4.0","resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.4.0.tgz",@@ -641,6 +624,30 @@"url": "https://opencollective.com/eslint"}},+ "node_modules/eslint/node_modules/ajv": {+ "version": "6.15.0",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz",+ "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fast-deep-equal": "^3.1.1",+ "fast-json-stable-stringify": "^2.0.0",+ "json-schema-traverse": "^0.4.1",+ "uri-js": "^4.2.2"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/epoberezkin"+ }+ },+ "node_modules/eslint/node_modules/json-schema-traverse": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",+ "dev": true,+ "license": "MIT"+ },"node_modules/espree": {"version": "11.2.0","resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz",@@ -712,6 +719,13 @@"dev": true,"license": "MIT"},+ "node_modules/fast-json-stable-stringify": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",+ "dev": true,+ "license": "MIT"+ },"node_modules/fast-levenshtein": {"version": "2.0.6","resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",@@ -719,23 +733,6 @@"dev": true,"license": "MIT"},- "node_modules/fast-uri": {- "version": "3.1.8",- "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.8.tgz",- "integrity": "sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/fastify"- },- {- "type": "opencollective",- "url": "https://opencollective.com/fastify"- }- ],- "license": "BSD-3-Clause"- },"node_modules/file-entry-cache": {"version": "11.1.5","resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-11.1.5.tgz",@@ -970,13 +967,6 @@"js-yaml": "bin/js-yaml.js"}},- "node_modules/json-schema-traverse": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",- "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",- "dev": true,- "license": "MIT"- },"node_modules/json-stable-stringify-without-jsonify": {"version": "1.0.1","resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",@@ -1229,6 +1219,16 @@"node": ">= 0.8.0"}},+ "node_modules/punycode": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },"node_modules/puppeteer": {"version": "25.12.0","resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-25.12.0.tgz",@@ -1300,16 +1300,6 @@"url": "https://paulmillr.com/funding/"}},- "node_modules/require-from-string": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",- "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },"node_modules/serialize-javascript": {"version": "7.1.2","resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-7.1.2.tgz",@@ -1419,6 +1409,16 @@"integrity": "sha512-/dtuMZyutHLlrxWhhC1uib00ELUr2dZ8C9B8YzZYsJmeE3V56OxRblrSM2UaF142pcMtak7ehZ6+poWGeehNIg==","license": "MIT"},+ "node_modules/uri-js": {+ "version": "4.4.1",+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "punycode": "^2.1.0"+ }+ },"node_modules/webdriver-bidi-protocol": {"version": "0.4.3","resolved": "https://registry.npmjs.org/webdriver-bidi-protocol/-/webdriver-bidi-protocol-0.4.3.tgz",diff --git a/tests/puppeteer/package.json b/tests/puppeteer/package.jsonindex b6156f4cc3..bb32f3a137 100644--- a/tests/puppeteer/package.json+++ b/tests/puppeteer/package.json@@ -4,6 +4,7 @@"description": "Puppeteer UI tests for Local Deep Research","scripts": {"test": "mocha test_*.js --timeout 60000",+ "test:toolchain": "node --test toolchain/*.test.js","test:all": "npm run test:deep && npm run test:ui && npm run test:ssrf","test:ci": "rm -f screenshots/*.png 2>/dev/null; HEADLESS=true mocha test_deep_functionality.js test_ui_functionality.js test_ssrf_protection.js --timeout 600000 --reporter spec","install-browsers": "puppeteer browsers install chrome",@@ -25,7 +26,6 @@"overrides": {"diff": "^8.0.3","minimatch": ">=10.2.1",- "ajv": ">=6.14.0","serialize-javascript": ">=7.1.2","yauzl": "^3.2.1","flatted": "^3.4.0",diff --git a/tests/puppeteer/toolchain/eslint.test.js b/tests/puppeteer/toolchain/eslint.test.jsnew file mode 100644index 0000000000..6665a0b658--- /dev/null+++ b/tests/puppeteer/toolchain/eslint.test.js@@ -0,0 +1,40 @@+const assert = require('node:assert/strict');+const { test: nodeTest } = require('node:test');+// Do not fall back to the separately installed repository-root toolchain.+const { ESLint } = require('../node_modules/eslint');++// The browser suite's permissive config does not validate rule options. Use+// real rules here so an incompatible transitive AJV cannot silently pass CI.+const eslint = new ESLint({+ overrideConfigFile: true,+ overrideConfig: {+ languageOptions: { ecmaVersion: 2022 },+ rules: {+ 'no-undef': 'error',+ 'eqeqeq': ['error', 'always'],+ },+ },+});++nodeTest('installed ESLint accepts valid JavaScript with rule options', async () => {+ const [result] = await eslint.lintText('const answer = 42; answer === 42;');++ assert.equal(result.errorCount, 0);+ assert.deepEqual(result.messages, []);+});++nodeTest('installed ESLint rejects an undefined identifier', async () => {+ const [result] = await eslint.lintText('missingValue;');++ assert.equal(result.errorCount, 1);+ assert.equal(result.fatalErrorCount, 0);+ assert.equal(result.messages[0].ruleId, 'no-undef');+});++nodeTest('installed ESLint enforces a rule with validated options', async () => {+ const [result] = await eslint.lintText('const answer = 42; answer == 42;');++ assert.equal(result.errorCount, 1);+ assert.equal(result.fatalErrorCount, 0);+ assert.equal(result.messages[0].ruleId, 'eqeqeq');+});