fix(scripts): end make check with a ran/skipped summary and verdict - #36864
Merged
mateo-berri merged 2 commits intoAug 14, 2026
Conversation
Contributor
Greptile SummaryThe PR adds explicit verdicts to informational exits and appends a ran/skipped summary and final status to normal lint runs.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| scripts/pre_commit_lint.sh | Adds per-check summary output, no-op diagnostics, and PASS/FAIL verdicts while preserving the existing exit status. |
| tests/test_litellm/test_pre_commit_lint.py | Extends the sandboxed script tests to verify summaries, no-op logging, and success/failure verdict output. |
Reviews (2): Last reviewed commit: "fix(scripts): print the make check verdi..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
Author
Contributor
Author
|
bugbot run |
Contributor
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 3fbe40c. Configure here.
tin-berri
approved these changes
Aug 14, 2026
5 tasks
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:
How it solves it:
User Flow
Before: a contributor whose staged files match no lint check gets a silent exit 0 and a zero-byte log, indistinguishable from the script dying early
After: the same run ends with a per-check ran/skipped summary, the reason nothing ran, and an explicit verdict
Relevant issues
Linear ticket
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
@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
Scenario from the bug report: a file no gating check covers (a tests/test_litellm Python file) is the only thing staged, in a bootstrapped worktree
Before, running the script as of the merge base 9d069f2:
After, same staged file at cfbd431:
Early-exit verdict at 3fbe40c, in a clean detached worktree at the staging tip with nothing staged and no changes:
And a run at cfbd431 where checks are in scope (this PR's own files staged plus the scripts change exercised via make check before committing) ended the same way with the ran/skipped split and a verdict, per the new tests which also cover the FAIL path
Type
🐛 Bug Fix
Caveats (if any)
Final Attestation
Note
Low Risk
Changes are limited to the local pre-commit lint script and its unit tests; no production runtime, auth, or data paths are touched.
Overview
make check(scripts/pre_commit_lint.sh) no longer finishes with a silent exit 0 and an empty log when nothing runs. Every run now ends with acheck: summaryblock that labels each of the four gating checks as ran or skipped (with a short reason).When staged or scoped files match no lint gate, the script prints a NOTE listing those paths and stating the pass is a no-op, not a lint verdict. Early exits (nothing to check vs. cannot resolve merge base) also print
check: PASSorcheck: FAILso the outcome matches the exit code.Tests in
test_pre_commit_lint.pyassert the new verdict lines and add coverage for the summary, the no-match no-op path (including a non-empty log), and failing runs.Reviewed by Cursor Bugbot for commit 3fbe40c. Bugbot is set up for automated code reviews on this repo. Configure here.