Skip to content

Commit a72414a

Browse files
authored
Merge pull request BerriAI#28100 from BerriAI/litellm_internal_staging
[Infra] Promote internal staging to main
2 parents e58a561 + cf9b5e4 commit a72414a

625 files changed

Lines changed: 22000 additions & 3508 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 40 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ jobs:
228228
--verbose \
229229
--command="awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \
230230
-vv \
231-
--cov=litellm \
231+
--cov=./litellm \
232232
--cov-report=xml \
233233
--junitxml=test-results/junit.xml \
234234
--durations=20 \
@@ -293,7 +293,7 @@ jobs:
293293
--verbose \
294294
--command="awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \
295295
-vv \
296-
--cov=litellm \
296+
--cov=./litellm \
297297
--cov-report=xml \
298298
--junitxml=test-results/junit.xml \
299299
--durations=20 \
@@ -409,14 +409,25 @@ jobs:
409409
--verbose \
410410
--command="awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \
411411
-v -x \
412+
--cov=./litellm --cov-report=xml \
412413
--junitxml=test-results/junit.xml \
413414
--durations=5 \
414415
-n 2"
415416
no_output_timeout: 15m
417+
- run:
418+
name: Rename the coverage files
419+
command: |
420+
mv coverage.xml auth_ui_unit_tests_coverage.xml
421+
mv .coverage auth_ui_unit_tests_coverage
416422
417423
# Store test results
418424
- store_test_results:
419425
path: test-results
426+
- persist_to_workspace:
427+
root: .
428+
paths:
429+
- auth_ui_unit_tests_coverage.xml
430+
- auth_ui_unit_tests_coverage
420431

421432
litellm_router_testing: # Runs all tests with the "router" keyword
422433
docker:
@@ -493,13 +504,24 @@ jobs:
493504
--verbose \
494505
--command="awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \
495506
-v -x \
507+
--cov=./litellm --cov-report=xml \
496508
--junitxml=test-results/junit.xml \
497509
--durations=5 \
498510
-n 4"
499511
no_output_timeout: 15m
512+
- run:
513+
name: Rename the coverage files
514+
command: |
515+
mv coverage.xml router_unit_tests_coverage.xml
516+
mv .coverage router_unit_tests_coverage
500517
# Store test results
501518
- store_test_results:
502519
path: test-results
520+
- persist_to_workspace:
521+
root: .
522+
paths:
523+
- router_unit_tests_coverage.xml
524+
- router_unit_tests_coverage
503525
litellm_assistants_api_testing: # Runs all tests with the "assistants" keyword
504526
docker:
505527
- *python312_image
@@ -603,7 +625,7 @@ jobs:
603625
--verbose \
604626
--command="awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \
605627
-vv \
606-
--cov=litellm --cov-report=xml \
628+
--cov=./litellm --cov-report=xml \
607629
--junitxml=test-results/junit.xml \
608630
--durations=20 \
609631
-n 4 \
@@ -646,7 +668,7 @@ jobs:
646668
--verbose \
647669
--command="awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \
648670
-vv -x -s \
649-
--cov=litellm --cov-report=xml \
671+
--cov=./litellm --cov-report=xml \
650672
--junitxml=test-results/junit.xml \
651673
--durations=5"
652674
no_output_timeout: 15m
@@ -688,7 +710,7 @@ jobs:
688710
--verbose \
689711
--command="awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \
690712
-vv \
691-
--cov=litellm --cov-report=xml \
713+
--cov=./litellm --cov-report=xml \
692714
--junitxml=test-results/junit.xml \
693715
--durations=5 \
694716
-n 2 \
@@ -732,7 +754,7 @@ jobs:
732754
--verbose \
733755
--command="awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \
734756
-vv -x -s \
735-
--cov=litellm --cov-report=xml \
757+
--cov=./litellm --cov-report=xml \
736758
--junitxml=test-results/junit.xml \
737759
--durations=5 \
738760
--retries 3 --retry-delay 5"
@@ -814,7 +836,7 @@ jobs:
814836
--verbose \
815837
--command="awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \
816838
-vv -x \
817-
--cov=litellm --cov-report=xml \
839+
--cov=./litellm --cov-report=xml \
818840
--junitxml=test-results/junit.xml \
819841
--durations=5 \
820842
-n 4"
@@ -856,7 +878,7 @@ jobs:
856878
--verbose \
857879
--command="awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \
858880
-vv -x \
859-
--cov=litellm --cov-report=xml \
881+
--cov=./litellm --cov-report=xml \
860882
--junitxml=test-results/junit.xml \
861883
--durations=5 \
862884
-n 4"
@@ -930,7 +952,7 @@ jobs:
930952
--verbose \
931953
--command="awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \
932954
-vv -x -s \
933-
--cov=litellm --cov-report=xml \
955+
--cov=./litellm --cov-report=xml \
934956
--junitxml=test-results/junit.xml \
935957
--durations=5 \
936958
-n 2"
@@ -972,7 +994,7 @@ jobs:
972994
--verbose \
973995
--command="awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \
974996
-vv -x -s \
975-
--cov=litellm --cov-report=xml \
997+
--cov=./litellm --cov-report=xml \
976998
--junitxml=test-results/junit.xml \
977999
--durations=5 \
9781000
-n 2"
@@ -1015,7 +1037,7 @@ jobs:
10151037
--verbose \
10161038
--command="awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \
10171039
-vv -x \
1018-
--cov=litellm --cov-report=xml \
1040+
--cov=./litellm --cov-report=xml \
10191041
--junitxml=test-results/junit.xml \
10201042
--durations=5 \
10211043
-n 4"
@@ -1090,7 +1112,7 @@ jobs:
10901112
--verbose \
10911113
--command="awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \
10921114
-vv \
1093-
--cov=litellm --cov-report=xml \
1115+
--cov=./litellm --cov-report=xml \
10941116
-n 4 \
10951117
--junitxml=test-results/junit.xml \
10961118
--durations=5 \
@@ -1133,7 +1155,7 @@ jobs:
11331155
--verbose \
11341156
--command="awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \
11351157
-vv -x -s \
1136-
--cov=litellm --cov-report=xml \
1158+
--cov=./litellm --cov-report=xml \
11371159
--junitxml=test-results/junit.xml \
11381160
--durations=5"
11391161
no_output_timeout: 15m
@@ -1184,7 +1206,7 @@ jobs:
11841206
--verbose \
11851207
--command="awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \
11861208
-vv -x -s \
1187-
--cov=litellm --cov-report=xml \
1209+
--cov=./litellm --cov-report=xml \
11881210
--junitxml=test-results/junit.xml \
11891211
--durations=5 -n 2 \
11901212
--reruns 2 --reruns-delay 1"
@@ -2280,10 +2302,11 @@ jobs:
22802302
- run:
22812303
name: Combine Coverage
22822304
command: |
2283-
uv tool run --from 'coverage[toml]==7.10.6' coverage combine realtime_translation_coverage ocr_coverage search_coverage logging_coverage audio_coverage local_testing_part1_coverage local_testing_part2_coverage pass_through_unit_tests_coverage batches_coverage guardrails_coverage redis_caching_coverage
2305+
uv tool run --from 'coverage[toml]==7.10.6' coverage combine realtime_translation_coverage ocr_coverage search_coverage logging_coverage audio_coverage local_testing_part1_coverage local_testing_part2_coverage pass_through_unit_tests_coverage batches_coverage guardrails_coverage redis_caching_coverage agent_coverage google_generate_content_endpoint_coverage litellm_utils_coverage router_unit_tests_coverage auth_ui_unit_tests_coverage
22842306
uv tool run --from 'coverage[toml]==7.10.6' coverage xml
22852307
- codecov/upload:
22862308
file: ./coverage.xml
2309+
flags: circleci
22872310

22882311
ui_build:
22892312
docker:
@@ -2669,6 +2692,8 @@ workflows:
26692692
- local_testing_part1
26702693
- local_testing_part2
26712694
- litellm_assistants_api_testing
2695+
- litellm_router_unit_testing
2696+
- auth_ui_unit_tests
26722697
- db_migration_disable_update_check:
26732698
requires:
26742699
- build_docker_database_image

.github/actions/helm-oci-chart-releaser/action.yml

Lines changed: 0 additions & 94 deletions
This file was deleted.

.github/workflows/README.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/_test-unit-base.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
--reruns-delay 1 \
9292
--dist=loadscope \
9393
--durations=20 \
94-
--cov=litellm \
94+
--cov=./litellm \
9595
--cov-report=xml:coverage.xml \
9696
--cov-config=pyproject.toml
9797
@@ -132,4 +132,5 @@ jobs:
132132
use_oidc: true
133133
directory: coverage-reports
134134
root_dir: ${{ github.workspace }}
135+
flags: ${{ inputs.artifact-name }}
135136
fail_ci_if_error: false

.github/workflows/_test-unit-services-base.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ jobs:
132132
--reruns "${RERUNS}" \
133133
--reruns-delay 1 \
134134
--durations=20 \
135-
--cov=litellm \
135+
--cov=./litellm \
136136
--cov-report=xml:coverage.xml \
137137
--cov-config=pyproject.toml
138138
else
@@ -144,7 +144,7 @@ jobs:
144144
--reruns-delay 1 \
145145
--dist="${DIST}" \
146146
--durations=20 \
147-
--cov=litellm \
147+
--cov=./litellm \
148148
--cov-report=xml:coverage.xml \
149149
--cov-config=pyproject.toml
150150
fi
@@ -186,4 +186,5 @@ jobs:
186186
use_oidc: true
187187
directory: coverage-reports
188188
root_dir: ${{ github.workspace }}
189+
flags: ${{ inputs.artifact-name }}
189190
fail_ci_if_error: false

0 commit comments

Comments
 (0)