Repository navigation
ci(unit): mcp-elicitation shard runs dist load so test_interactions.py's 74 params spread over its 4 workers - #46770
Conversation
…e kept the 74 params of test_interactions.py on one worker past the 20 min cap
|
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. |
|
|
|
@litellm-stampbot |
litellm-stampbot: risk lowApproved at Rules (
Judge (gpt-6-luna): low, probability of high 0.00 (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 32756b9
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
TLDR
Problem this solves:
mcp-elicitationunit shard times out at 20 min on every PR since feat(mcp): relay authorized modern upstream subscriptions #46153test_interactions.pyhas 74 params at ~24 s each,loadscopeputs them all on one workerHow it solves it:
dist: load, so the 74 params spread over its 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 moreDelays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
Before, #46762's
mcp-elicitationjob (run 38808477869): 2,726 passed, 0 failed, killed byThe action 'Run tests' has timed out after 20 minutesat 99% with 37 of the 74test_modern_subscription_delivers_changes_between_calls_and_refreshes_tools[...]params done, all of them ongw1(dist: loadscopekeeps a module on one worker, so #46743's 4 workers did not help)After: this PR's own
mcp-elicitationjob, same tests, the 74 params spread over the 4 workers. Timing pasted here once it finishesCaveats
tests/integration/mcp/test_interactions.pyand the unit files in this shard use function-scoped fixtures (tmp_path), soloadchanges nothing about what each test sees, only which worker runs itLink to Devin session: https://app.devin.ai/sessions/a12e287eab9e442d858a8ee418ba2897
Open in Devin Desktop: https://app.devin.ai/desktop/session/a12e287eab9e442d858a8ee418ba2897?variant=devin
Requested by: @kerrylu-berri