Repository navigation
fix(ci): let independent test budgets merge - #187164
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
|
@clawsweeper status Please report the existing review request status for this PR at |
|
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR adds independent test-budget allocation records and measures test growth using literal newline counts. Example: Two branches each add one test line to a repository with two lines and a ceiling of two.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR addresses demonstrated budget contention and incorrect newline accounting; no actionable patch defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe repository's test-line checker reads tracked tests, budget files, and a Git comparison snapshot, then returns a CI result or explicitly prunes budget metadata. flowchart TD
A[Tracked tests] --> D[Test line checker]
B[Scalar and allocation records] --> D
C[Git comparison snapshot] --> D
D --> E[Growth and debt checks]
E --> F[CI result]
D --> G[Explicit budget pruning]
Technical reviewBest possible solution: Keep exact LF accounting, allocation validation, inherited-debt enforcement, and pruning together in the existing checker. Do we have a high-confidence way to reproduce the issue? Current-main source establishes both shared-scalar contention and the LF-versus-numstat mismatch; linked discussion supplies a concrete landing incident, and no target code was executed during this review. Is this the best way to solve the issue? The approach is focused: it reuses the existing parser, Git snapshot loader, checker, and CI routing while comparing effective ceilings to prevent folded allocations from granting credit twice. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8a3c02cb3c01. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +170, Docs +31, Other +96. Total +297 across 8 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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 October 28, 2026, 10:23 PM ET / October 29, 2026, 02:23 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* fix(ci): let independent test budgets merge * fix(ci): require braces in test budget checks
Conflict: config/test-lines-baseline.txt. Main no longer raises the shared scalar for new tests; each change adds its own record under config/test-lines-allocations/ (openclaw#187164). Kept main's scalar and moved this branch's 98 added test lines into plugin-schedule-retire-186957.txt.
Closes #187163
What Problem This Solves
Independent PRs with justified regression tests repeatedly conflict while editing the same test-line ceiling, including #186977.
User Impact
Maintainers can review separate test-budget records that merge independently. The aggregate test-line limit, inherited-debt checks, and review requirement remain in force. This changes repository validation only.
Why This Change Was Made
Keep the fixed scalar and add tracked integer records under
config/test-lines-allocations/. When the parsed allocation map changes, positive effective-ceiling growth cannot exceed positive actual test-line growth against the same selected base. This includes scalar movement, so an older branch cannot reuse credit that pruning already folded into the scalar.The checker now measures changed sources in the same literal-LF units as the total. Git numstat reports zero net lines for an unterminated line gaining its final newline; the previous check could therefore admit real growth through the inherited non-growing exception.
Pruning folds the measured total into the scalar and removes tracked allocation records, including at zero slack. Index/reference snapshots remain exact; untracked files are ignored and preserved. Scalar-only reconciliation remains separately review-owned.
The change reuses the existing scalar parser, Git snapshot loader, checker, and CI routing. It adds 94 tooling lines and 170 net test lines; its own allocation is exactly 170. The extra tooling owns record loading and exact changed-source LF accounting. No package/runtime surface or dependency changes.
Evidence
64cb11485db8b0c30bab2e359124dcf99bd5fb0a: independent reviewer found no actionable issue. Local autoreview completed one P0–P3 pass with scoped-clean status and no findings on staged snapshotdfca9f91eaae88dce40513c781e2b56a7fed5ead7ef6029bfa9762ce9b2f63be.git diff --check, and docs inventory passed.e4f13c0ea6f30915777ab206034c45db618284bdthrough mergede335931853c8dee7167da9d36ae4181b8d0dc09, with ordered baseline44ffd0a845b32480ffaf46ff6cfbcaa2267491c1and PR-head parents. All 99 relevant cases passed: 10 checker and 64 changed-scope cases, plus 25 check-family cases. Corrected changed-file/script lint, type, docs, format, guards and all remaining selected proof jobs passed. The seven brace corrections were independently reviewed as behavior-equivalent; their two added test lines are included in the 170-line grant.eslint(curly)atsrc/agents/tools/sessions-send-tool.admission.test.ts:722, alongside existing session-manager max-lines warnings. The failing source, warning subjects, lint configuration, runner and dependency inputs have identical Git objects in the actual baseline and tested merge. The informational classifier labels it new because the scheduled main job passed without comparing selected scope; this attribution uses the inspected source objects instead. The native inherited-failure route retains the real red result and all review/security requirements.