Make the Grafana metrics link runtime configurable #1389
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: | |
| jobs: | |
| milvus-integration: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - 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 |