From c09f0c07f8039a014d82bc2d521be2ccaf1aaa11 Mon Sep 17 00:00:00 2001 From: yuneng-jiang Date: Tue, 3 Mar 2026 20:52:18 -0800 Subject: [PATCH] fix ci: skip on fork prs, handle curl timeout, add path filters --- .github/workflows/test-db-query-performance.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-db-query-performance.yml b/.github/workflows/test-db-query-performance.yml index 5e9ae56c7b4..c4c45b798c1 100644 --- a/.github/workflows/test-db-query-performance.yml +++ b/.github/workflows/test-db-query-performance.yml @@ -5,6 +5,10 @@ permissions: on: pull_request: branches: [main] + paths-ignore: + - "**.md" + - "docs/**" + - "cookbook/**" concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} @@ -12,6 +16,7 @@ concurrency: jobs: test-db-query-performance: + if: github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest timeout-minutes: 15 @@ -78,7 +83,8 @@ jobs: -o /dev/null \ -w "%{http_code}" \ -H "Authorization: Bearer sk-1234" \ - "http://localhost:4000/user/daily/activity/aggregated?start_date=2026-02-01&end_date=2026-02-28&timezone=480") + "http://localhost:4000/user/daily/activity/aggregated?start_date=2026-02-01&end_date=2026-02-28&timezone=480") \ + || { echo "FAILED: request timed out after 4s"; docker logs litellm-test; exit 1; } if [ "$http_code" -ne 200 ]; then echo "FAILED: expected HTTP 200, got $http_code"