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): restore test gates as separate top-level jobs in release.yml (#2233)

LearningCircuit2838c52a4ad9
diff --git a/.github/workflows/release-gate.yml b/.github/workflows/release-gate.yml
index 91d16f050d..e15b37298f 100644
--- a/.github/workflows/release-gate.yml
+++ b/.github/workflows/release-gate.yml
@@ -3,7 +3,7 @@ name: Release Gate
# IMPORTANT: This workflow is the ONLY path to publishing releases.
#
# Security model:
-# - All security scans and functional tests must pass before any release artifacts are published
+# - All security scans must pass before any release artifacts are published
# - Docker and PyPI publish workflows are triggered ONLY via repository_dispatch
# from release.yml, which depends on this gate passing
# - Direct release creation via GitHub UI will NOT trigger publishing
@@ -12,7 +12,7 @@ name: Release Gate
# If you need to publish manually, use workflow_dispatch on release.yml
# which will run this security gate first.
#
-# This workflow runs all security scans and functional tests.
+# This workflow runs all security scans.
# Used by release workflow and also runs daily to catch issues early.
#
# Philosophy:
@@ -21,11 +21,6 @@ name: Release Gate
on:
workflow_call: # Called by release.yml
- secrets:
- OPENROUTER_API_KEY:
- required: false
- SERPER_API_KEY:
- required: false
workflow_dispatch: # Manual trigger
schedule:
# Run daily at 2 AM UTC to catch security issues early
@@ -196,15 +191,6 @@ jobs:
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
SERPER_API_KEY: ${{ secrets.SERPER_API_KEY }}
- # ============================================
- # UI Browser Tests
- # ============================================
- playwright-webkit-tests:
- uses: ./.github/workflows/playwright-webkit-tests.yml
- permissions:
- contents: read
- checks: write
-
# ============================================
# Summary job that reports overall status
# ============================================
@@ -239,8 +225,6 @@ jobs:
- backwards-compatibility
# E2E functional tests
- puppeteer-e2e-tests
- # UI browser tests
- - playwright-webkit-tests
if: always()
permissions:
contents: read
@@ -292,7 +276,6 @@ jobs:
check_result "${{ needs.security-headers-scan.result }}" || true
check_result "${{ needs.backwards-compatibility.result }}" || true
check_result "${{ needs.puppeteer-e2e-tests.result }}" || true
- check_result "${{ needs.playwright-webkit-tests.result }}" || true
TOTAL=$((PASS_COUNT + FAIL_COUNT))
@@ -302,8 +285,8 @@ jobs:
if [ -z "$FAILED" ]; then
echo "# :white_check_mark: RELEASE GATE: PASSED"
echo ""
- echo "> **All $TOTAL checks passed successfully.**"
- echo "> This release is approved for publishing."
+ echo "> **All $TOTAL security scans passed successfully.**"
+ echo "> This release is approved from a security perspective."
else
echo "# :x: RELEASE GATE: FAILED"
echo ""
@@ -500,19 +483,6 @@ jobs:
FAILED="true"
fi
- # ============================================
- # Playwright Webkit Tests
- # ============================================
- echo ""
- echo "### Playwright Webkit Tests"
-
- if [ "${{ needs.playwright-webkit-tests.result }}" = "success" ]; then
- echo "✅ **Playwright Webkit**: Passed"
- else
- echo "❌ **Playwright Webkit**: ${{ needs.playwright-webkit-tests.result }}"
- FAILED="true"
- fi
-
# ============================================
# Final result with prominent summary
# ============================================
@@ -539,5 +509,5 @@ jobs:
echo "| **Gate** | :white_check_mark: **APPROVED** |"
echo "| **Passed** | $PASS_COUNT / $TOTAL |"
echo ""
- echo "_All checks passed. Release approved._"
+ echo "_All security scans passed. E2E tests run as advisory gate in release pipeline._"
fi
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 3f6b5e3a3e..c6a01928e0 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -12,11 +12,11 @@ permissions: {} # Minimal permissions at workflow level for OSSF Scorecard
jobs:
# ============================================================================
- # RELEASE GATE - All checks must pass before release proceeds
+ # SECURITY GATE - All security scans must pass before release proceeds
# ============================================================================
- # This gate runs all security scans and functional tests (including Playwright
- # WebKit, Puppeteer E2E). The build job depends on this gate, ensuring no
- # release can be created without passing all checks.
+ # This gate runs container-security, owasp-zap, semgrep, and security-tests.
+ # The build job depends on this gate, ensuring no release can be created
+ # without passing all security checks.
#
# NOTE: Docker/PyPI publishing only happens via repository_dispatch from this
# workflow. Creating a release via GitHub UI will NOT trigger publishing
@@ -28,17 +28,43 @@ jobs:
contents: read
security-events: write
actions: read
- pull-requests: write
- packages: read
+ pull-requests: write # needed by hadolint-scan
+ packages: read # needed by codeql-scan
+
+ # ============================================================================
+ # TEST GATE (Advisory) - WebKit tests run but don't block releases
+ # ============================================================================
+ # Cosmetic rendering differences in WebKit should not block releases.
+ # This gate is advisory: failures are logged but the release proceeds.
+ # ============================================================================
+ test-gate:
+ # Runs in parallel with release-gate (no dependency)
+ uses: ./.github/workflows/playwright-webkit-tests.yml
+ permissions:
+ contents: read
checks: write
+
+ # ============================================================================
+ # E2E TEST GATE (Required) - Puppeteer functional tests
+ # ============================================================================
+ # Verifies UI search workflow via real API calls (OpenRouter + Serper).
+ # Must pass before any release proceeds.
+ # ============================================================================
+ e2e-test-gate:
+ # Runs in parallel with release-gate (no dependency)
+ uses: ./.github/workflows/puppeteer-e2e-tests.yml
+ permissions:
+ contents: read
+ pull-requests: write
issues: write
secrets:
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
SERPER_API_KEY: ${{ secrets.SERPER_API_KEY }}
build:
- needs: [release-gate]
- if: ${{ needs.release-gate.result == 'success' }}
+ needs: [release-gate, test-gate, e2e-test-gate]
+ # test-gate (Playwright WebKit) is advisory; release-gate and e2e-test-gate are required
+ if: ${{ !cancelled() && needs.release-gate.result == 'success' && needs.e2e-test-gate.result == 'success' }}
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}