fix(rules): disclose configured blockers omitted past the inline gate-check cap (#8323) - #8367
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8367 +/- ##
==========================================
- Coverage 92.17% 89.70% -2.48%
==========================================
Files 791 98 -693
Lines 79245 23026 -56219
Branches 23946 4009 -19937
==========================================
- Hits 73044 20655 -52389
+ Misses 5062 2187 -2875
+ Partials 1139 184 -955
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-24 11:11:45 UTC
Review summary Nits — 3 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Summary
formatGateCheckOutput(src/rules/advisory.ts) renders configured hard-blocker lines with a baregate.blockers.slice(0, 8)— no comment, no disclosure. A contributor with 9+ genuine configured blockers on one PR saw only the first 8, fixed them, then discovered the 9th (and beyond) on the next gate run — indistinguishable from the bot silently moving the goalposts. Its siblingbuildCheckRunAnnotationsalready discloses truncation via anomittedCount"…N more … omitted from inline check output." line; this closes the gap.8to a namedGATE_CHECK_BLOCKER_LIMITconstant with an explanatory comment.gate.blockers.lengthexceeds the cap, append"…N more configured blocker(s) omitted from inline check output."to the check-runtext, mirroringbuildCheckRunAnnotations' omitted-count wording. The line is not added when blockers are at or under the cap.Validation
npm run typecheckgreen; the full changed-graphtest:changednet passes.test/unit/rules.test.tsextended with both branches (the deliverable + Codecov requirement — both must be independently covered): 11 blockers ⇒ exactly 8 inline lines + a "…3 more … omitted" disclosure; 1 and 8 blockers ⇒ the exact count of lines and no disclosure line. 100% line + branch coverage on every changed line informatGateCheckOutput(verified viavitest --coverage+ the advisory.ts lcov block); the fullrules.test.tssuite (99 tests) passes.Closes #8323