~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: resolve CI test failures (actionlint and trivy-scan)
LearningCircuitcff33086ec34
diff --git a/.github/workflows/check-css-classes.yml b/.github/workflows/check-css-classes.ymlindex e285630be8..8fb81797b6 100644--- a/.github/workflows/check-css-classes.yml+++ b/.github/workflows/check-css-classes.yml@@ -27,7 +27,7 @@ jobs:uses: actions/checkout@v4- name: Set up Python- uses: actions/setup-python@v4+ uses: actions/setup-python@v5with:python-version: "3.10"@@ -96,20 +96,20 @@ jobs:run: |# Capture output to both display and save for laterpython check_all_css.py 2>&1 | tee css_check_output.txt- exit_code=${PIPESTATUS[0]}+ exit_code="${PIPESTATUS[0]}"# Save the output to GitHub environment for later steps{echo 'CSS_CHECK_OUTPUT<<EOF'cat css_check_output.txtecho 'EOF'- } >> $GITHUB_ENV+ } >> "$GITHUB_ENV"- if [ $exit_code -ne 0 ]; then- echo "CSS_CHECK_FAILED=true" >> $GITHUB_ENV+ if [ "$exit_code" -ne 0 ]; then+ echo "CSS_CHECK_FAILED=true" >> "$GITHUB_ENV"fi- exit $exit_code+ exit "$exit_code"continue-on-error: true- name: Show CSS check resultsdiff --git a/.github/workflows/responsive-ui-tests-enhanced.yml b/.github/workflows/responsive-ui-tests-enhanced.ymlindex 7185ed5ba0..edde2ce7bc 100644--- a/.github/workflows/responsive-ui-tests-enhanced.yml+++ b/.github/workflows/responsive-ui-tests-enhanced.yml@@ -46,7 +46,7 @@ jobs:uses: actions/checkout@v4- name: Set up Python- uses: actions/setup-python@v4+ uses: actions/setup-python@v5with:python-version: '3.11'cache: 'pip'@@ -163,12 +163,14 @@ jobs:set +e # Don't exit on test failure# Run tests and capture output- HEADLESS=true node test_responsive_ui_comprehensive.js ${{ matrix.viewport }} 2>&1 | tee test-output.log- TEST_EXIT_CODE=${PIPESTATUS[0]}+ HEADLESS=true node test_responsive_ui_comprehensive.js "${{ matrix.viewport }}" 2>&1 | tee test-output.log+ TEST_EXIT_CODE="${PIPESTATUS[0]}"# Extract summary for PR comment- echo "### 📱 ${{ matrix.viewport }} Test Results" > test-summary.md- echo "" >> test-summary.md+ {+ echo "### 📱 ${{ matrix.viewport }} Test Results"+ echo ""+ } > test-summary.md# Extract pass/fail countsPASSED=$(grep -oP '\d+(?= passed)' test-output.log | tail -1 || echo "0")@@ -181,27 +183,35 @@ jobs:echo "❌ **$FAILED critical issues found**" >> test-summary.mdfi- echo "" >> test-summary.md- echo "- ✅ Passed: $PASSED" >> test-summary.md- echo "- ❌ Failed: $FAILED" >> test-summary.md- echo "- ⚠️ Warnings: $WARNINGS" >> test-summary.md+ {+ echo ""+ echo "- ✅ Passed: $PASSED"+ echo "- ❌ Failed: $FAILED"+ echo "- ⚠️ Warnings: $WARNINGS"+ } >> test-summary.md- echo "test_exit_code=$TEST_EXIT_CODE" >> $GITHUB_OUTPUT- echo "test_failed=$FAILED" >> $GITHUB_OUTPUT+ {+ echo "test_exit_code=$TEST_EXIT_CODE"+ echo "test_failed=$FAILED"+ } >> "$GITHUB_OUTPUT"# Only fail if critical failures- exit $TEST_EXIT_CODE+ exit "$TEST_EXIT_CODE"- name: Generate screenshot galleryif: false # Disabled - screenshots not needed in CIworking-directory: tests/ui_tests+ env:+ BRANCH_NAME: ${{ github.head_ref || github.ref_name }}+ RUN_ID: ${{ github.run_id }}+ VIEWPORT: ${{ matrix.viewport }}run: |# Create an HTML gallery of screenshotscat > screenshot-gallery.html << 'EOF'<!DOCTYPE html><html><head>- <title>UI Test Screenshots - ${{ matrix.viewport }}</title>+ <title>UI Test Screenshots - VIEWPORT_PLACEHOLDER</title><style>body { font-family: Arial, sans-serif; margin: 20px; background: #f5f5f5; }h1 { color: #333; }@@ -217,11 +227,16 @@ jobs:</style></head><body>- <h1>📸 UI Test Screenshots - ${{ matrix.viewport }}</h1>- <p>Test run: ${{ github.run_id }} | Branch: ${{ github.head_ref || github.ref_name }}</p>+ <h1>📸 UI Test Screenshots - VIEWPORT_PLACEHOLDER</h1>+ <p>Test run: RUN_ID_PLACEHOLDER | Branch: BRANCH_NAME_PLACEHOLDER</p><div class="gallery">EOF+ # Replace placeholders with environment variables+ sed -i "s/VIEWPORT_PLACEHOLDER/$VIEWPORT/g" screenshot-gallery.html+ sed -i "s/RUN_ID_PLACEHOLDER/$RUN_ID/g" screenshot-gallery.html+ sed -i "s/BRANCH_NAME_PLACEHOLDER/$BRANCH_NAME/g" screenshot-gallery.html+# Add screenshots to galleryfor dir in responsive-ui-tests/*/; doif [ -d "$dir" ]; then@@ -239,10 +254,12 @@ jobs:status="status-failed"fi- echo "<div class='screenshot $status'>" >> screenshot-gallery.html- echo " <h3>$device - ${filename%.png}</h3>" >> screenshot-gallery.html- echo " <img src='$img' onclick='openModal(this)' alt='$filename'>" >> screenshot-gallery.html- echo "</div>" >> screenshot-gallery.html+ {+ echo "<div class='screenshot $status'>"+ echo " <h3>$device - ${filename%.png}</h3>"+ echo " <img src='$img' onclick='openModal(this)' alt='$filename'>"+ echo "</div>"+ } >> screenshot-gallery.htmlfidonefi@@ -308,7 +325,7 @@ jobs:if: always()run: |if [ -f server.pid ]; then- kill $(cat server.pid) || true+ kill "$(cat server.pid)" || truerm server.pidfi@@ -329,10 +346,12 @@ jobs:- name: Generate combined reportrun: |# Create a combined markdown report with screenshot links- echo "# 📊 Responsive UI Test Report" > combined-report.md- echo "" >> combined-report.md- echo "## Test Summary" >> combined-report.md- echo "" >> combined-report.md+ {+ echo "# 📊 Responsive UI Test Report"+ echo ""+ echo "## Test Summary"+ echo ""+ } > combined-report.md# Process each viewport's resultsfor dir in test-artifacts/ui-test-results-*/; do@@ -347,18 +366,22 @@ jobs:# Count screenshotsscreenshot_count=$(find "$dir" -name "*.png" 2>/dev/null | wc -l)if [ "$screenshot_count" -gt "0" ]; then- echo "" >> combined-report.md- echo "📸 **$screenshot_count screenshots captured**" >> combined-report.md+ {+ echo ""+ echo "📸 **$screenshot_count screenshots captured**"+ } >> combined-report.mdfiecho "" >> combined-report.mdfidone- echo "## 📥 Download Options" >> combined-report.md- echo "" >> combined-report.md- echo "- [Download all test artifacts](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})" >> combined-report.md- echo "- View artifacts in the 'Artifacts' section below the workflow summary" >> combined-report.md+ {+ echo "## 📥 Download Options"+ echo ""+ echo "- [Download all test artifacts](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})"+ echo "- View artifacts in the 'Artifacts' section below the workflow summary"+ } >> combined-report.md- name: Upload combined reportuses: actions/upload-artifact@v4diff --git a/scripts/ollama_entrypoint.sh b/scripts/ollama_entrypoint.shnew file mode 100755index 0000000000..344dc4577b--- /dev/null+++ b/scripts/ollama_entrypoint.sh@@ -0,0 +1,41 @@+#!/bin/bash++set -e++# Function to display usage information+usage() {+ echo "Usage: $0 <model_name>"+ exit 1+}++# Check if a model name is provided as an argument+if [ "$#" -ne 1 ]; then+ usage+fi++MODEL_NAME=$1++# Start the main Ollama application+ollama serve &++# Wait for the Ollama application to be ready (optional, if necessary)+while ! ollama ls; do+ echo "Waiting for Ollama service to be ready..."+ sleep 10+done+echo "Ollama service is ready."++# Pull the model using ollama pull+echo "Pulling the $MODEL_NAME with ollama pull..."+ollama pull $MODEL_NAME+# Check if the model was pulled successfully+if [ $? -eq 0 ]; then+ echo "Model pulled successfully."+else+ echo "Failed to pull model."+ exit 1+fi++# Run ollama forever.+sleep infinity+```