Skip to content

ci(unit): mcp-elicitation shard runs dist load so test_interactions.py's 74 params spread over its 4 workers - #46770

Merged
klu-berri merged 1 commit into
mainfrom
litellm_mcp_elicitation_shard_dist
Oct 15, 2026
Merged

klu-berri merged 1 commit into
mainfrom
litellm_mcp_elicitation_shard_dist

Conversation

@klu-berri

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

How it solves it:

  • The shard runs dist: load, so the 74 params spread over its 4 workers

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. 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 more
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • Every automated review on my PR's latest commit has finished, and I have addressed or replied to each of its findings before requesting a maintainer review

Delays 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-elicitation job (run 38808477869): 2,726 passed, 0 failed, killed by The action 'Run tests' has timed out after 20 minutes at 99% with 37 of the 74 test_modern_subscription_delivers_changes_between_calls_and_refreshes_tools[...] params done, all of them on gw1 (dist: loadscope keeps a module on one worker, so #46743's 4 workers did not help)

After: this PR's own mcp-elicitation job, same tests, the 74 params spread over the 4 workers. Timing pasted here once it finishes

Caveats

  • tests/integration/mcp/test_interactions.py and the unit files in this shard use function-scoped fixtures (tmp_path), so load changes nothing about what each test sees, only which worker runs it
  • The 74 params still cost about 30 CPU-minutes per run; splitting that test is a follow-up for its author

Link 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

…e kept the 74 params of test_interactions.py on one worker past the 20 min cap
@klu-berri
klu-berri requested a review from a team October 15, 2026 21:54
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@greptile-apps

greptile-apps Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Automatic reviews are disabled for this repository.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@klu-berri

Copy link
Copy Markdown
Contributor Author

@litellm-stampbot

@klu-berri
klu-berri enabled auto-merge (squash) October 15, 2026 21:55
@litellm-stampbot

Copy link
Copy Markdown

litellm-stampbot: risk low

Approved at 32756b9.

Rules (stampbot/risk_rules.yml):

  • low: no rule flagged it

Judge (gpt-6-luna): low, probability of high 0.00 (high at or above 0.90)

  • risk: low (probability of high 0.00)

Pushes do not re-run this check. Comment @litellm-stampbot again to re-check the new head.

@litellm-stampbot litellm-stampbot Bot added the risk:low Small, isolated, low-risk change label Oct 15, 2026

@kerry-berri kerry-berri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Low risk by rule and by judgement at 32756b9

@codecov

codecov Bot commented Oct 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@klu-berri
klu-berri disabled auto-merge October 15, 2026 22:35
@klu-berri
klu-berri merged commit 2eb78bc into main Oct 15, 2026
85 of 86 checks passed
@klu-berri
klu-berri deleted the litellm_mcp_elicitation_shard_dist branch October 15, 2026 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:low Small, isolated, low-risk change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants