fix: honor required retrieval for evidence requests #1998
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Integration tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| workspace-integration: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| services: | |
| postgres: | |
| image: postgres:16 | |
| env: | |
| POSTGRES_USER: root | |
| POSTGRES_PASSWORD: root_password | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd "pg_isready -U root" | |
| --health-interval 5s | |
| --health-timeout 5s | |
| --health-retries 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install uv | |
| run: | | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| - run: uv sync | |
| - name: Verify workspace file retention against PostgreSQL | |
| env: | |
| POSTGRES_TEST_ADMIN_DSN: postgresql://root:root_password@localhost:5432/postgres | |
| run: >- | |
| uv run pytest tests/integration/repos/test_workspace_repo.py | |
| tests/integration/repos/test_workspace_deletion.py | |
| tests/integration/repos/test_document_repo.py -v --tb=short | |
| milvus-integration: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Docker Compose | |
| uses: docker/setup-compose-action@v1 | |
| with: | |
| version: v2.34.0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install uv | |
| run: | | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| - name: Cache uv | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/uv | |
| key: uv-${{ runner.os }}-3.12-${{ hashFiles('**/pyproject.toml', '**/uv.lock') }} | |
| restore-keys: | | |
| uv-${{ runner.os }}-3.12- | |
| - name: Install dependencies | |
| run: uv sync | |
| - name: Start Milvus stack | |
| working-directory: tests/integration/repos | |
| run: docker compose up -d --wait --wait-timeout 180 | |
| - name: Verify Milvus reachable from host | |
| run: | | |
| for i in {1..30}; do | |
| if curl -sf http://localhost:9091/healthz 2>/dev/null; then | |
| echo "Milvus healthy after $i attempts" | |
| break | |
| fi | |
| echo "Attempt $i/30 - waiting..." | |
| sleep 2 | |
| done | |
| curl -sf http://localhost:9091/healthz | |
| - name: Run integration tests | |
| env: | |
| OPENRAG_TEST_VDB_HOST: localhost | |
| OPENRAG_TEST_VDB_PORT: "19530" | |
| run: uv run pytest tests/integration/repos/ -m integration -v --tb=short | |
| - name: Show logs on failure | |
| if: failure() | |
| working-directory: tests/integration/repos | |
| run: | | |
| echo "=== Milvus Logs ===" | |
| docker compose logs milvus --tail=200 | |
| echo "=== etcd Logs ===" | |
| docker compose logs etcd --tail=50 | |
| echo "=== minio Logs ===" | |
| docker compose logs minio --tail=50 | |
| - name: Cleanup | |
| if: always() | |
| working-directory: tests/integration/repos | |
| run: docker compose down -v |