Repository navigation
fix(ci): excuse retired test-quality rules in the budget ratchet - #42116
Merged
Merged
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Contributor
|
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
@greptileai the registry test now runs every rule through the checker and |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
Author
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
yuneng-berri
approved these changes
Sep 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TLDR
Problem this solves:
budget-ratchetis red on every PR whose base predates ci(tests): wire tests/unit into CircleCI and keep draining GHA shards green #42103How it solves it:
check_test_quality.pyexposesRULE_CODES, the codes it can emitUser Flow
Before: a contributor opens a PR from a branch cut before #42103 and the ratchet job fails for a rule nobody touched
budget-ratchetjob in test-linting goes red withtest-quality-budget.json TQ008: rule dropped (limit 10993 -> removed)After: the same PR gets a green ratchet
budget-ratchetjob printsOK: no budget limit increased vs base ...Relevant issues
Follow-up to #42103
Affected release
Linear ticket
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
uv run pytest tests/test_litellm/<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@greptileaito re-request a review after pushing changes)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
Base sha from the failing job: https://github.com/BerriAI/litellm/actions/runs/35498026484/job/106044581382
Before (6ef7b86)
python scripts/budget_ratchet_check.py --base 776f8bc3090cc13ca0d34ac38858c9d3c095436cAfter (bbfa853)
python scripts/budget_ratchet_check.py --base 776f8bc3090cc13ca0d34ac38858c9d3c095436cuv run --no-sync pytest tests/test_litellm/test_budget_ratchet_check.py tests/test_litellm/test_check_test_quality.py -q: 94 passed. Dropping TQ009 fromRULE_CODES, or adding TQ008, makestest_rule_codes_match_every_code_the_checker_emitsfailType
🐛 Bug Fix
🚄 Infrastructure
Caveats (if any)
Low
check_test_quality.pyby path so it works under pytest tooFinal Attestation
Link to Devin session: https://app.devin.ai/sessions/f042d1c827b8430ca4685e83b5bd86bc
Open in Devin Desktop: https://app.devin.ai/desktop/session/f042d1c827b8430ca4685e83b5bd86bc?variant=devin