~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: Fix CI test timeouts and add authentication to metrics browser test
LearningCircuit9cfc5384efe1
diff --git a/tests/api_tests_with_login/auth_helper.js b/tests/api_tests_with_login/auth_helper.jsindex 5c0371c562..96b48cfae2 100644--- a/tests/api_tests_with_login/auth_helper.js+++ b/tests/api_tests_with_login/auth_helper.js@@ -8,19 +8,31 @@ const fs = require('fs');const { getPuppeteerLaunchOptions } = require('./puppeteer_config');async function authenticate(baseUrl, username, password, cookieFile) {+ console.log(`Starting authentication for ${username} at ${baseUrl}`);const browser = await puppeteer.launch(getPuppeteerLaunchOptions());try {const page = await browser.newPage();+ // Set longer timeout for CI environments+ page.setDefaultTimeout(60000); // 60 seconds+ page.setDefaultNavigationTimeout(60000);+// Go to login page- await page.goto(`${baseUrl}/auth/login`, { waitUntil: 'networkidle0' });+ console.log('Navigating to login page...');+ await page.goto(`${baseUrl}/auth/login`, {+ waitUntil: 'networkidle0',+ timeout: 60000+ });+ console.log('Login page loaded');// Check if we need to register+ console.log('Checking for register link...');const registerLink = await page.$('a[href="/auth/register"]');if (registerLink) {+ console.log('Register link found, clicking...');await registerLink.click();- await page.waitForNavigation({ waitUntil: 'networkidle0' });+ await page.waitForNavigation({ waitUntil: 'networkidle0', timeout: 60000 });// Fill registration formawait page.type('#username', username);@@ -28,14 +40,18 @@ async function authenticate(baseUrl, username, password, cookieFile) {await page.type('#confirm_password', password);// Submit+ console.log('Submitting registration form...');await page.click('button[type="submit"]');- await page.waitForNavigation({ waitUntil: 'networkidle0' });+ await page.waitForNavigation({ waitUntil: 'networkidle0', timeout: 60000 });+ console.log('Registration completed');} else {// Try loginawait page.type('#username', username);await page.type('#password', password);+ console.log('Submitting login form...');await page.click('button[type="submit"]');- await page.waitForNavigation({ waitUntil: 'networkidle0' });+ await page.waitForNavigation({ waitUntil: 'networkidle0', timeout: 60000 });+ console.log('Login completed');}// Get cookies@@ -60,7 +76,11 @@ if (!baseUrl || !username || !password || !cookieFile) {}authenticate(baseUrl, username, password, cookieFile)+ .then(() => {+ process.exit(0);+ }).catch(err => {console.error('Authentication failed:', err);+ console.error('Stack trace:', err.stack);process.exit(1);});diff --git a/tests/api_tests_with_login/pytest_tests/conftest.py b/tests/api_tests_with_login/pytest_tests/conftest.pyindex da37aff467..ab4d99e8b2 100644--- a/tests/api_tests_with_login/pytest_tests/conftest.py+++ b/tests/api_tests_with_login/pytest_tests/conftest.py@@ -42,7 +42,7 @@ class AuthHelper:try:result = subprocess.run(- cmd, capture_output=True, text=True, timeout=30+ cmd, capture_output=True, text=True, timeout=90)if result.returncode != 0:raise Exception(f"Auth failed: {result.stderr}")diff --git a/tests/ui_tests/test_metrics_browser.js b/tests/ui_tests/test_metrics_browser.jsindex f2b998752e..857008343f 100644--- a/tests/ui_tests/test_metrics_browser.js+++ b/tests/ui_tests/test_metrics_browser.js@@ -1,5 +1,6 @@const puppeteer = require('puppeteer');const { getPuppeteerLaunchOptions } = require('./puppeteer_config');+const AuthHelper = require('./auth_helper');async function testMetricsPage() {console.log('🚀 Starting browser test of metrics page...');@@ -8,6 +9,13 @@ async function testMetricsPage() {const page = await browser.newPage();+ // Set longer timeout for CI environments+ page.setDefaultTimeout(30000);+ page.setDefaultNavigationTimeout(30000);++ // Create auth helper+ const authHelper = new AuthHelper(page);+// Listen to console logs from the pagepage.on('console', msg => {const type = msg.type();@@ -26,10 +34,14 @@ async function testMetricsPage() {});try {+ // Ensure we're authenticated first+ console.log('🔐 Ensuring authentication...');+ await authHelper.ensureAuthenticated();+console.log('📄 Navigating to metrics page...');await page.goto('http://127.0.0.1:5000/metrics/', {waitUntil: 'networkidle0',- timeout: 5000+ timeout: 30000});console.log('✅ Page loaded successfully');