Repository navigation
ci(unit): run the two slowest shards on 4 workers - #46743
Conversation
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
Automatic reviews are disabled for this repository. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
@litellm-stampbot |
litellm-stampbot: risk lowApproved at Rules (
Judge (gpt-6-luna): low, probability of high 0.10 (high at or above 0.90)
Pushes do not re-run this check. Comment |
kerry-berri
left a comment
There was a problem hiding this comment.
Low risk by rule and by judgement at aff3892
|
|
TLDR
Problem this solves:
unittakes ~19 min wall, set by two 11.5 min shardsmcp-elicitationandenterprise-repositories-secretsrunworkers: 2on a 4 vCPU runnerloadscopepins the 182-testtest_secret_detection.pyto one worker for 9+ minHow it solves it:
workers: 2->workers: 4on both shards, like the other 34 shardsdist: loadscope->dist: loadonenterprise-repositories-secretsso that one file spreads over all 4 workersPre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or moreScreenshots / Proof of Fix
Shard wall time from the
unitworkflow,Run testsstep plus setup, taken from the GitHub Actions jobs APIBefore (fac0135, main run 38790388063)
gh api repos/BerriAI/litellm/actions/runs/38790388063/jobs --paginate --jq '.jobs[]|[.name, .started_at, .completed_at]'mcp-elicitation11.8 min,enterprise-repositories-secrets11.6 min,enterprise-routing9.6 min, median shard ~3.5 min,unit passedat 19.0 min after the run startedenterprise-repositories-secretslog,test_secret_detection.pyran on one worker from first to last test for 556 sAfter (aff3892)
Filled in once this PR's own
unitrun finishesType
🚄 Infrastructure
Caveats (if any)
Low
dist: loadruns tests from one file on different workers, so the secrets shard no longer keeps a file's tests togethertest_secret_detection.pypassed 182/182 locally with-n 4 --dist load, and its only shared state is a per-test autouse contextvar resettests/unit/enterprise/conftest.pyreloadinglitellmunder--covbefore every test, this PR spreads it rather than removing itLink to Devin session: https://app.devin.ai/sessions/37bced2a0a84442db236be528fd89ec6
Open in Devin Desktop: https://app.devin.ai/desktop/session/37bced2a0a84442db236be528fd89ec6?variant=devin
Requested by: @kerrylu-berri