Skip to content

~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.

Fix CI workflow and add comprehensive logging

LearningCircuit02db40cbe265
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index e751b85fd5..c334405409 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -35,18 +35,60 @@ jobs:
- name: Build frontend
if: steps.check.outputs.has-frontend == 'true'
run: |
+ echo "=== Frontend Build Process Starting ==="
+ echo "Current directory: $(pwd)"
+ echo "Node version: $(node --version)"
+ echo "NPM version: $(npm --version)"
+
# Install dependencies from root package.json
+ echo ""
+ echo "📦 Installing dependencies..."
# Use npm install since package-lock.json might not exist
npm install --ignore-scripts --no-audit --no-fund
+ echo "✅ Dependencies installed"
+
+ # Show pre-build directory structure
+ echo ""
+ echo "📁 Pre-build directory structure:"
+ echo "Contents of src/local_deep_research/web/static/:"
+ ls -la src/local_deep_research/web/static/ || echo "Directory not found"
+
# Build with Vite (outputs to src/local_deep_research/web/static/dist)
+ echo ""
+ echo "🔨 Running Vite build..."
npm run build
+ echo "✅ Vite build completed"
+
+ # Show post-build directory structure
+ echo ""
+ echo "📁 Post-build directory structure:"
+ echo "Contents of src/local_deep_research/web/static/:"
+ ls -la src/local_deep_research/web/static/
+ echo ""
+ echo "Contents of src/local_deep_research/web/static/dist/:"
+ ls -la src/local_deep_research/web/static/dist/
+ echo ""
+ echo "Looking for manifest.json:"
+ find src/local_deep_research/web/static/dist -name "manifest.json" -type f 2>/dev/null || echo "No manifest.json found"
+
# Verify the build completed successfully
- if [ ! -f "src/local_deep_research/web/static/dist/.vite/manifest.json" ]; then
- echo "ERROR: Build failed - manifest.json not created"
+ if [ ! -f "src/local_deep_research/web/static/dist/manifest.json" ]; then
+ echo "❌ ERROR: Build failed - manifest.json not created at expected location"
+ echo "Expected location: src/local_deep_research/web/static/dist/manifest.json"
+ echo "Actual dist contents:"
+ find src/local_deep_research/web/static/dist -type f | head -20
exit 1
fi
+
+ echo "✅ Found manifest.json at: src/local_deep_research/web/static/dist/manifest.json"
+ echo "Manifest contents (first 10 lines):"
+ head -10 src/local_deep_research/web/static/dist/manifest.json
+
# Create build marker
+ echo ""
+ echo "📝 Creating build marker..."
echo "{\"status\":\"complete\",\"built\":\"$(date -Iseconds)\"}" > src/local_deep_research/web/static/.frontend-built
+ echo "✅ Build marker created"
- name: Upload frontend artifacts
if: steps.check.outputs.has-frontend == 'true'
@@ -83,47 +125,120 @@ jobs:
- name: Verify frontend build artifacts
run: |
- echo "Verifying frontend build artifacts..."
+ echo "=== Frontend Artifacts Verification ==="
+ echo "Current directory: $(pwd)"
+ echo ""
+ echo "📁 Checking downloaded artifacts structure:"
+ echo "Contents of src/:"
+ ls -la src/ 2>/dev/null || echo "src/ directory not found"
+ echo ""
+ echo "Contents of src/local_deep_research/:"
+ ls -la src/local_deep_research/ 2>/dev/null || echo "src/local_deep_research/ not found"
+ echo ""
+ echo "Contents of src/local_deep_research/web/:"
+ ls -la src/local_deep_research/web/ 2>/dev/null || echo "src/local_deep_research/web/ not found"
+ echo ""
+ echo "Contents of src/local_deep_research/web/static/:"
+ ls -la src/local_deep_research/web/static/ 2>/dev/null || echo "src/local_deep_research/web/static/ not found"
# Check if dist directory exists
+ echo ""
+ echo "🔍 Checking for dist directory..."
if [ ! -d "src/local_deep_research/web/static/dist" ]; then
- echo "ERROR: Frontend dist directory not found!"
+ echo "❌ ERROR: Frontend dist directory not found!"
+ echo "Expected location: src/local_deep_research/web/static/dist"
+ echo "Actual structure of static directory:"
+ find src/local_deep_research/web/static -type d 2>/dev/null | head -20
echo "The frontend build artifacts are missing."
exit 1
fi
+ echo "✅ Found dist directory at: src/local_deep_research/web/static/dist"
+
+ # Show dist directory structure
+ echo ""
+ echo "📁 Dist directory structure:"
+ echo "Contents of dist/:"
+ ls -la src/local_deep_research/web/static/dist/
+ echo ""
+ echo "All files in dist (recursive):"
+ find src/local_deep_research/web/static/dist -type f | head -20
# Check for critical files
- if [ ! -f "src/local_deep_research/web/static/dist/.vite/manifest.json" ]; then
- echo "ERROR: Vite manifest.json not found!"
+ echo ""
+ echo "🔍 Checking for manifest.json..."
+ if [ ! -f "src/local_deep_research/web/static/dist/manifest.json" ]; then
+ echo "❌ ERROR: Vite manifest.json not found!"
+ echo "Expected at: src/local_deep_research/web/static/dist/manifest.json"
+ echo "Looking for any manifest.json files:"
+ find src/local_deep_research/web/static -name "manifest.json" -type f
echo "The frontend build appears to be incomplete."
exit 1
fi
+ echo "✅ Found manifest.json"
+ echo "Manifest size: $(wc -c < src/local_deep_research/web/static/dist/manifest.json) bytes"
# Check for JS files
- if [ -z "$(ls -A src/local_deep_research/web/static/dist/js/*.js 2>/dev/null)" ]; then
- echo "ERROR: No JavaScript files found in dist/js!"
+ echo ""
+ echo "🔍 Checking for JavaScript files..."
+ JS_COUNT=$(find src/local_deep_research/web/static/dist -name "*.js" -type f | wc -l)
+ if [ "$JS_COUNT" -eq 0 ]; then
+ echo "❌ ERROR: No JavaScript files found!"
+ echo "Expected JS files in dist/"
echo "The frontend build appears to be incomplete."
exit 1
fi
+ echo "✅ Found $JS_COUNT JavaScript file(s)"
+ echo "JS files:"
+ find src/local_deep_research/web/static/dist -name "*.js" -type f | head -5
# Check for CSS files
- if [ -z "$(ls -A src/local_deep_research/web/static/dist/css/*.css 2>/dev/null)" ]; then
- echo "ERROR: No CSS files found in dist/css!"
+ echo ""
+ echo "🔍 Checking for CSS files..."
+ CSS_COUNT=$(find src/local_deep_research/web/static/dist -name "*.css" -type f | wc -l)
+ if [ "$CSS_COUNT" -eq 0 ]; then
+ echo "❌ ERROR: No CSS files found!"
+ echo "Expected CSS files in dist/"
echo "The frontend build appears to be incomplete."
exit 1
fi
+ echo "✅ Found $CSS_COUNT CSS file(s)"
+ echo "CSS files:"
+ find src/local_deep_research/web/static/dist -name "*.css" -type f | head -5
# Check for build marker
+ echo ""
+ echo "🔍 Checking for build marker..."
if [ ! -f "src/local_deep_research/web/static/.frontend-built" ]; then
- echo "WARNING: Frontend build marker not found (non-critical)"
+ echo "⚠️ WARNING: Frontend build marker not found (non-critical)"
+ else
+ echo "✅ Found build marker"
+ echo "Build marker contents:"
+ cat src/local_deep_research/web/static/.frontend-built
fi
- echo "✓ Frontend build artifacts verified successfully"
- echo "Found dist directory with:"
- ls -la src/local_deep_research/web/static/dist/ | head -10
+ echo ""
+ echo "=== ✅ Frontend build artifacts verified successfully ==="
+ echo "Summary:"
+ echo " - Dist directory: ✓"
+ echo " - Manifest.json: ✓"
+ echo " - JS files: $JS_COUNT file(s)"
+ echo " - CSS files: $CSS_COUNT file(s)"
- name: Build Python package
- run: pdm build
+ run: |
+ echo "=== Python Package Build ==="
+ echo "Current directory: $(pwd)"
+ echo ""
+ echo "📦 Building Python package with PDM..."
+ pdm build
+ echo ""
+ echo "✅ Package build completed"
+ echo ""
+ echo "📁 Package contents:"
+ ls -la dist/
+ echo ""
+ echo "Package sizes:"
+ du -h dist/*
- name: Upload package
uses: actions/upload-artifact@v4
@@ -148,49 +263,131 @@ jobs:
path: dist/
- name: List packages
- run: ls -lh dist/
+ run: |
+ echo "=== Downloaded Package Artifacts ==="
+ echo "📦 Packages in dist/:"
+ ls -lh dist/
+ echo ""
+ echo "Package details:"
+ for file in dist/*; do
+ echo " - $(basename $file): $(du -h $file | cut -f1)"
+ done
- name: Verify package contents
run: |
+ echo "=== Package Content Verification ==="
echo "Verifying package contains frontend assets..."
+ echo ""
# Install wheel to inspect package
+ echo "📦 Installing wheel for package inspection..."
pip install wheel
# Find the wheel file
WHEEL_FILE=$(ls dist/*.whl 2>/dev/null | head -1)
+ TAR_FILE=$(ls dist/*.tar.gz 2>/dev/null | head -1)
if [ -z "$WHEEL_FILE" ]; then
- echo "ERROR: No wheel file found in dist/"
+ echo "❌ ERROR: No wheel file found in dist/"
+ echo "Found files:"
+ ls -la dist/
exit 1
fi
- echo "Inspecting wheel: $WHEEL_FILE"
+ echo "✅ Found wheel file: $WHEEL_FILE"
+ echo "Wheel size: $(du -h $WHEEL_FILE | cut -f1)"
+ echo ""
+ if [ -n "$TAR_FILE" ]; then
+ echo "✅ Found source distribution: $TAR_FILE"
+ echo "Source dist size: $(du -h $TAR_FILE | cut -f1)"
+ fi
+ echo ""
+
+ echo "🔍 Inspecting wheel contents..."
# Extract and check for frontend files
python -m zipfile -l "$WHEEL_FILE" > wheel_contents.txt
+ TOTAL_FILES=$(wc -l < wheel_contents.txt)
+ echo "Total files in wheel: $TOTAL_FILES"
+ echo ""
+
+ # Count different file types
+ echo "📊 File type breakdown:"
+ echo " Python files: $(grep -c '\.py' wheel_contents.txt || echo 0)"
+ echo " JavaScript files: $(grep -c '\.js' wheel_contents.txt || echo 0)"
+ echo " CSS files: $(grep -c '\.css' wheel_contents.txt || echo 0)"
+ echo " JSON files: $(grep -c '\.json' wheel_contents.txt || echo 0)"
+ echo " HTML files: $(grep -c '\.html' wheel_contents.txt || echo 0)"
+ echo ""
+
# Check for critical frontend directories/files
+ echo "🔍 Checking for frontend assets..."
+
+ echo "Looking for dist directory..."
if ! grep -q "local_deep_research/web/static/dist/" wheel_contents.txt; then
- echo "ERROR: Frontend dist directory not found in package!"
+ echo "❌ ERROR: Frontend dist directory not found in package!"
echo "Package is missing frontend build artifacts."
- cat wheel_contents.txt | grep "static" || echo "No static files found"
+ echo "Static files found in package:"
+ grep "static" wheel_contents.txt | head -10 || echo "No static files found"
exit 1
fi
-
- if ! grep -q "local_deep_research/web/static/dist/js/" wheel_contents.txt; then
- echo "ERROR: Frontend JS files not found in package!"
+ echo "✅ Found dist directory"
+
+ echo ""
+ echo "Looking for JavaScript files..."
+ JS_IN_WHEEL=$(grep -c "local_deep_research/web/static/dist.*\.js" wheel_contents.txt || echo 0)
+ if [ "$JS_IN_WHEEL" -eq 0 ]; then
+ echo "❌ ERROR: Frontend JS files not found in package!"
+ echo "JavaScript files in package:"
+ grep "\.js" wheel_contents.txt | head -10 || echo "No JS files found"
exit 1
fi
-
- if ! grep -q "local_deep_research/web/static/dist/css/" wheel_contents.txt; then
- echo "ERROR: Frontend CSS files not found in package!"
+ echo "✅ Found $JS_IN_WHEEL JavaScript file(s) in dist"
+
+ echo ""
+ echo "Looking for CSS files..."
+ CSS_IN_WHEEL=$(grep -c "local_deep_research/web/static/dist.*\.css" wheel_contents.txt || echo 0)
+ if [ "$CSS_IN_WHEEL" -eq 0 ]; then
+ echo "❌ ERROR: Frontend CSS files not found in package!"
+ echo "CSS files in package:"
+ grep "\.css" wheel_contents.txt | head -10 || echo "No CSS files found"
exit 1
fi
+ echo "✅ Found $CSS_IN_WHEEL CSS file(s) in dist"
- echo "✓ Package verification successful"
- echo "Package contains frontend assets:"
- grep "local_deep_research/web/static/dist/" wheel_contents.txt | head -5
+ echo ""
+ echo "Looking for manifest.json..."
+ if ! grep -q "local_deep_research/web/static/dist/manifest.json" wheel_contents.txt; then
+ echo "⚠️ WARNING: manifest.json not found in package (may be okay)"
+ else
+ echo "✅ Found manifest.json"
+ fi
+
+ echo ""
+ echo "=== ✅ Package verification successful ==="
+ echo "Summary:"
+ echo " - Wheel file: ✓"
+ echo " - Frontend dist: ✓"
+ echo " - JS files: $JS_IN_WHEEL file(s)"
+ echo " - CSS files: $CSS_IN_WHEEL file(s)"
+ echo ""
+ echo "Sample frontend assets in package:"
+ grep "local_deep_research/web/static/dist/" wheel_contents.txt | head -10
+
+ - name: Pre-publish summary
+ run: |
+ echo "=== 🚀 Ready to Publish ==="
+ echo ""
+ echo "📦 Package Information:"
+ echo " - Release type: ${{ github.event.release.prerelease && 'Pre-release (Test PyPI)' || 'Production (PyPI)' }}"
+ echo " - Tag: ${{ github.event.release.tag_name }}"
+ echo " - Release name: ${{ github.event.release.name }}"
+ echo ""
+ echo "📁 Package files to publish:"
+ ls -lh dist/
+ echo ""
+ echo "✅ All checks passed - proceeding with publication"
- name: Publish to Test PyPI
if: github.event.release.prerelease == true