ci(coverage): inherit database integration reporting

This commit is contained in:
moe-berri 2026-11-08 11:12:58 +08:00
commit 31301fa991
3 changed files with 25 additions and 1 deletions

View file

@ -246,6 +246,10 @@ fi
shared_services=()
worker_coverage=()
pytest_coverage=()
if [ "$suite" = database ]; then
pytest_coverage=("PYTEST_ADDOPTS=--cov=litellm --cov-report=xml:$PWD/$results/coverage.xml")
fi
if [ "$isolated_workers" = false ]; then
shared_services=(
"REDIS_HOST=$REDIS_HOST" "REDIS_PORT=$REDIS_PORT"
@ -259,7 +263,7 @@ fi
env -i PATH="$PATH" HOME="$HOME" PYTHONPATH="$PYTHONPATH" \
INTEGRATION_RUN_ID="$integration_identity" \
DATABASE_URL="$DATABASE_URL" \
"${shared_services[@]}" "${worker_coverage[@]}" \
"${shared_services[@]}" "${worker_coverage[@]}" "${pytest_coverage[@]}" \
INTEGRATION_WORKERS="${INTEGRATION_WORKERS:-1}" \
LITELLM_MODE=PRODUCTION \
"${license_env[@]}" \

View file

@ -43,6 +43,9 @@ jobs:
name: integration ${{ matrix.suite }}
if: github.event_name != 'pull_request' || github.event.label.name == 'run-ci'
environment: integration-license
permissions:
contents: read
id-token: write
runs-on: ${{ fromJSON('{"providers":"ubuntu-latest-64-cores","extensions":"ubuntu-latest-64-cores","accounting":"ubuntu-latest-32-cores","management":"ubuntu-latest-32-cores","management-replica":"ubuntu-latest-32-cores"}')[matrix.suite] || 'ubuntu-latest-16-cores' }}
timeout-minutes: 60
strategy:
@ -189,6 +192,19 @@ jobs:
SCANNED_SECRET: ${{ secrets.LITELLM_LICENSE }}
run: python .github/scripts/assert_secret_absent.py test-results
- name: Upload database coverage to Codecov
if: ${{ !cancelled() && steps.secret-scan.outcome == 'success' && (matrix.suite == 'database' || matrix.suite == 'database-replica') }}
timeout-minutes: 5
continue-on-error: true
uses: codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5.5.5
with:
use_oidc: true
files: test-results/integration-${{ matrix.suite }}/coverage.xml
disable_search: true
root_dir: ${{ github.workspace }}
flags: integration-${{ matrix.suite }}
fail_ci_if_error: false
- name: Upload results
if: ${{ !cancelled() && steps.secret-scan.outcome == 'success' }}
timeout-minutes: 10

View file

@ -34,6 +34,10 @@ flag_management:
carryforward: false
- name: integrations
carryforward: false
- name: integration-database
carryforward: false
- name: integration-database-replica
carryforward: false
- name: llm-vertex-ai
carryforward: false
- name: llm-other-providers