~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 responsive UI tests to use correct database initialization
LearningCircuit4b3f2c001c8c
diff --git a/.github/workflows/responsive-ui-tests-enhanced.yml b/.github/workflows/responsive-ui-tests-enhanced.ymlindex 8cdec8f48b..3de8ccd3d6 100644--- a/.github/workflows/responsive-ui-tests-enhanced.yml+++ b/.github/workflows/responsive-ui-tests-enhanced.yml@@ -94,38 +94,60 @@ jobs:npm cinpx puppeteer browsers install chrome- - name: Set up test environment- env:- DATABASE_URL: postgresql://postgres:postgres@localhost:5432/ldr_test+ - name: Initialize databaserun: |- # Create .env file for tests- cat > .env << EOF- DATABASE_URL=$DATABASE_URL- SECRET_KEY=test-secret-key-for-ci- FLASK_APP=local_deep_research.web.app- FLASK_ENV=testing- WTF_CSRF_ENABLED=False- TEST_BASE_URL=http://127.0.0.1:5000+ cat > init_db.py << 'EOF'+ import os+ os.environ['FLASK_ENV'] = 'testing'+ os.environ['SECRET_KEY'] = 'test-secret-key-for-ci'++ from local_deep_research.database.auth_db import init_auth_database, get_auth_db_session+ from local_deep_research.database.models.auth import User+ from local_deep_research.database.encrypted_db import db_manager++ # Initialize auth database+ init_auth_database()++ # Create test user in auth database (no password stored)+ session = get_auth_db_session()+ user = User(username='test_admin')+ session.add(user)+ session.commit()+ session.close()++ # Create user's encrypted database with password+ engine = db_manager.create_user_database('test_admin', 'testpass123')+ print('Database initialized successfully')EOF+ python init_db.py- # Initialize database- python -c "from local_deep_research.web.app import create_app, db; app = create_app(); app.app_context().push(); db.create_all()"-- - name: Start application server+ - name: Start test serverenv:- DATABASE_URL: postgresql://postgres:postgres@localhost:5432/ldr_test+ FLASK_ENV: testing+ TEST_ENV: true+ SECRET_KEY: test-secret-key-for-cirun: |- python -m local_deep_research.web.app &- echo $! > server.pid+ cd src+ # Start server and get its PID+ python -m local_deep_research.web.app > server.log 2>&1 &+ SERVER_PID=$!+ echo "Server PID: $SERVER_PID"- # Wait for server to be ready+ # Wait for server to startfor i in {1..30}; do- if curl -s http://127.0.0.1:5000/ 2>/dev/null | grep -q "Research"; then- echo "Server is ready"+ if curl -f http://127.0.0.1:5000 2>/dev/null; then+ echo "Server is ready after $i seconds"breakfi- echo "Waiting for server... (attempt $i/30)"- sleep 2+ # Check if process is still running+ if ! kill -0 $SERVER_PID 2>/dev/null; then+ echo "Server process died!"+ echo "Server log:"+ cat server.log+ exit 1+ fi+ echo "Waiting for server... ($i/30)"+ sleep 1done- name: Run responsive UI tests - ${{ matrix.viewport }}