~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
test(ci): surface login HTTP status in register_ci_user diagnostics (#4791)
LearningCircuit3d30900da468
diff --git a/tests/ui_tests/register_ci_user.js b/tests/ui_tests/register_ci_user.jsindex 2779aca0d0..f3a42986ca 100644--- a/tests/ui_tests/register_ci_user.js+++ b/tests/ui_tests/register_ci_user.js@@ -25,6 +25,33 @@ async function main() {const page = await browser.newPage();const auth = new AuthHelper(page, BASE_URL);+ // Observe auth POST responses so the swallowed failure below can still+ // report the HTTP status. A login that fails because of a SQLCipher+ // KDF/cipher mismatch (DB-init env vs server env) returns the same+ // "Invalid username or password" 401 flash as a wrong password, so the+ // status plus the pointer below is the only CI-visible signal of cause.+ let lastAuthStatus = null;+ let lastAuthPath = null;+ page.on('response', (res) => {+ // This runs on Puppeteer's CDP event pump, OUTSIDE main()'s+ // try/catch — a throw here would escape as an unhandledRejection+ // and exit non-zero, defeating the script's exit-0-by-design+ // contract. Observation is best-effort, so guard it: diagnostics+ // must never fail the build.+ try {+ const req = res.request();+ if (+ req.method() === 'POST' &&+ (req.url().includes('/auth/login') || req.url().includes('/auth/register'))+ ) {+ lastAuthStatus = res.status();+ lastAuthPath = new URL(req.url()).pathname;+ }+ } catch {+ // best-effort observer — ignore any error+ }+ });+// Try to register the CI test usertry {await auth.register(CI_TEST_USER.username, CI_TEST_USER.password);@@ -39,6 +66,23 @@ async function main() {console.log('Login successful - user already exists');} catch (loginError) {console.log(`Login also failed: ${loginError.message}`);+ if (lastAuthStatus !== null) {+ console.log(` Last auth POST: ${lastAuthPath} -> HTTP ${lastAuthStatus}`);+ if (lastAuthStatus === 401) {+ // Self-gated: only jobs with a SEPARATE DB-init step+ // (e.g. playwright-webkit) can hit a KDF mismatch. Jobs+ // that create the user via this same server (e.g.+ // responsive-ui) share one KDF env, so there a 401 is+ // always just wrong creds / unregistered user — don't mislead.+ console.log(+ ' If this job pre-creates the user in a separate DB-init step, ' ++ 'a 401 can mean a SQLCipher KDF/cipher mismatch between the init ' ++ 'env and the server env (see the KDF note in ' ++ '.github/workflows/playwright-webkit-tests.yml and PR #4775); ' ++ 'otherwise it means wrong credentials or an unregistered user.'+ );+ }+ }console.log('Warning: Could not register or login CI test user');console.log('Tests will fall back to creating their own users');}