Repository navigation
Conversation
The per-PR allowance (#197602) gives credit only for records a PR adds or raises, so merged records no longer affect the check. Co-authored-by: obviyus <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR deletes historical test-line allocation records that no longer grant credit under the per-PR budget. Example: A later PR adds 401 net test lines without a new allocation.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored cleanup removes obsolete allocation records without changing budget enforcement; no code findings were identified, but the failed Labeler check remains unresolved. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherLocal checks and CI compare test-source growth and changed allocation records against a Git base, then return a budget verdict. flowchart TD
A[Local checks and CI] --> B[Git comparison base]
B --> C[Net test line delta]
B --> D[New or raised allocations]
C --> E[Apply 400 line allowance]
D --> E
E --> F[Budget verdict]
Technical reviewBest possible solution: Remove the inert records while retaining the existing checker, allocation format, and normal merge gates. Do we have a high-confidence way to reproduce the issue? This is cleanup rather than a reported runtime defect; current source and documentation establish that merged allocations grant no further credit. Is this the best way to solve the issue? Deletion is the smallest complete cleanup: the existing checker already handles missing allocation paths, and future allocations remain supported. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9fe59d5e7ef0. Provenance checked
SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfacePR surface statistics unavailable: the file list is incomplete. Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 12, 2026, 3:34 AM ET / 08:34 UTC. |
|
Superseded by three smaller PRs. CI puts the full changed-path list into one env var ( |
Problem
After #197602, the test-lines check measures only each PR's own net delta. It gives credit only for allocation records that the PR adds or raises. The 2,665 records already on
mainno longer affect any check.Change
Delete
config/test-lines-allocations/*. The check reads records withgit ls-tree/ls-files, so a missing folder gives an empty set. A future PR above the 400-line allowance adds a new record, as documented.Evidence
node scripts/check-test-lines-ratchet.mts --base origin/mainon this branch:Test lines OK. Net test lines: 0; allowance: 400; allocation credit: 0.pnpm test test/scripts/check-test-lines-ratchet.test.ts: 2 passed.The Labeler workflow can crash with
write EINVALwhen a PR has this many changed files. That is a Labeler limit on huge diffs, not a defect in this change.