Skip to content

docs: run only the tests covering your change, leave suites to CI - #37528

Merged
mateo-berri merged 4 commits into
litellm_internal_stagingfrom
litellm_contributing_scoped_unit_tests
Aug 19, 2026
Merged

mateo-berri merged 4 commits into
litellm_internal_stagingfrom
litellm_contributing_scoped_unit_tests

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • make test-unit runs all of tests/test_litellm, an hour plus locally
  • Checklists pushed contributors and agents into full-suite local runs

How it solves it:

  • CONTRIBUTING and the PR template ask for the covering test files only
  • Both point the suites at CI, which finishes in ~15 minutes

User Flow

Before: a contributor about to open a PR

  1. The CONTRIBUTING checklist lists "Unit Tests - make test-unit" as a required check, so they run pytest tests/test_litellm -x -vv -n 4 and wait an hour on tests unrelated to their change
  2. The Running Unit Tests section leads with "Run all unit tests", making that full run the documented default
  3. The PR template's pre-submission checklist only mentions passing CI checks, giving no hint about how much to run locally

After: the same contributor runs only what their change touches

  1. The CONTRIBUTING checklist asks for the tests covering the change, e.g. uv run pytest tests/test_litellm/<your_test_file>.py -v, noting CI runs the full unit test matrix
  2. The Running Unit Tests section leads with that scoped run and says to lean on CI when the whole suite really is needed
  3. The PR template checklist repeats only the essentials: the covering test files pass locally, suites (make test-unit-*, make test-unit) belong to CI at ~15 minutes versus an hour or more on a laptop, with a link to CONTRIBUTING for the rest

Relevant issues

Linear ticket

Pre-Submission checklist

  • I have added meaningful tests
  • My PR passes all CI/CD checks (e.g., lint, format, unit tests)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review

Docs-only change, so no tests apply

Screenshots / Proof of Fix

Docs-only change with no runtime behavior, so there is nothing to run against a live proxy. The rendered result is the diff itself

Type

📖 Documentation

Caveats (if any)

  • None

Final Attestation

  • The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR

Link to Devin session: https://app.devin.ai/sessions/ccaba15ac1e54379a25919909f6aa7d7
Requested by: @mateo-berri

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@mateo-berri mateo-berri self-assigned this Aug 19, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@greptile-apps

greptile-apps Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This documentation-only PR changes contributor guidance to recommend running only the test files covering a change locally while leaving full suites to CI.

  • Updates the pull request checklist with scoped local-test guidance.
  • Revises CONTRIBUTING.md checklists, workflow examples, and unit-test instructions.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
.github/pull_request_template.md Updates the pre-submission checklist to distinguish focused local tests from full CI suites.
CONTRIBUTING.md Reorients contributor testing instructions toward change-specific test files while retaining full-environment setup guidance for broader suites.

Reviews (3): Last reviewed commit: "chore: make it concise" | Re-trigger Greptile

Comment thread CONTRIBUTING.md Resolved
Comment thread CONTRIBUTING.md Resolved
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

mateo-berri and others added 2 commits August 19, 2026 15:11
…tes to CI

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot requested a review from a team August 19, 2026 22:14
@devin-ai-integration devin-ai-integration Bot changed the title docs(contributing): scope local unit test runs to the change docs: run only the tests covering your change, leave suites to CI Aug 19, 2026
@codecov

codecov Bot commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@mateo-berri mateo-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.

LGTM

@mateo-berri
mateo-berri merged commit aee48f5 into litellm_internal_staging Aug 19, 2026
65 checks passed
@mateo-berri
mateo-berri deleted the litellm_contributing_scoped_unit_tests branch August 19, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants