Repository navigation
chore: reserve bounded room for regression tests - #186785
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesRaises the repository test-line ceiling from 6,302,000 to 6,310,000 without changing tests or enforcement logic. Example: The reported frozen tree contains 6,301,989 counted test lines.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR provides a justified, bounded reserve through the existing manual-adjustment path. No actionable defects were found; ordinary current-head CI remains pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe CI test-line ratchet reads tracked test sources and the configured ceiling, then reports capacity or rejects qualifying over-budget growth. flowchart LR
A[Tracked test sources] --> C[Test line ratchet]
B[Configured ceiling] --> C
D[Comparison base] --> C
C --> E[Capacity report]
C --> F[CI result]
Technical reviewBest possible solution: Retain the fixed reserve in the existing scalar while preserving counting, growth checks, downward pruning, and individual regression-proof requirements. Do we have a high-confidence way to reproduce the issue? This is a capacity adjustment rather than a runtime bug; the supplied native-counter output establishes the reported 11-line reserve. Is this the best way to solve the issue? The existing scalar is the appropriate owner, and the complete diff is the smallest coherent adjustment without changing counting or weakening assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6bd45e1ba982. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceOther -3. Total -3 across 1 file. Added test files: 0. View PR surface stats
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, 9:56 AM ET / 13:56 UTC. |
|
Added: bounded regression-test headroom with a fixed 6,310,000-line ceiling and unchanged counting rules. |
Merge pinned main 8889b59 to resolve generated config conflicts and adopt the accepted bounded test reserve from #186785. Regenerate config artifacts through their owner; preserve the P6 role-dispatch behavior and regression coverage. Co-authored-by: galiniliev <[email protected]>
Reuse the exact config/test-lines-baseline.txt policy already landed in 1e13102 (#186785). This imports its fixed ceiling without selecting a new budget or deleting distinct regression coverage. Runtime, benchmark workload, and dependency inputs remain unchanged. Existing performance failures and the separate landing hold remain recorded in PR #186510.
Merge pinned main 8889b59 to adopt the test-line reserve already landed in #186785. Preserve the reviewed cancellation implementation and regression blobs, with no PR-specific ceiling change or test removal. Canonical validators, the budget guard, 65 focused tests, and targeted static checks pass. Co-authored-by: galiniliev <[email protected]>
Raise the fixed test-code ceiling to 6,310,000 to retain necessary regression coverage while preserving existing counting and CI rules.
* fix(update): avoid recopying admitted rollback images Carry the cleanup-owned generation image into the same rollback capture while retaining source-generation, integrity, publication and rollback checks. Add bounded capture work-count and paired-performance workloads; end-to-end performance qualification is pending. * test(perf): bound rollback capture verification buffers * test(update): verify retained rollback image lifecycle * fix(update): satisfy retained-image static checks * test(update): bind retained-image hold to test lifetime * test(update): retain failed backup fixture evidence * test(update): separate cache and retained-image fixtures * test(update): preserve paired fixture failure causes * chore(test): reuse upstream regression budget Reuse the exact config/test-lines-baseline.txt policy already landed in 1e13102 (#186785). This imports its fixed ceiling without selecting a new budget or deleting distinct regression coverage. Runtime, benchmark workload, and dependency inputs remain unchanged. Existing performance failures and the separate landing hold remain recorded in PR #186510. * perf(update): avoid unrelated backup capture imports Keep archive path encoding in its canonical policy owner and load PostgreSQL capture only after engine admission. Preserve the updater pre-swap preparation contract and retained-image custody. This removes unnecessary cold import work; memory and latency qualification remain pending. * fix(update): reconcile image reuse with current capture owners * test(update): expose unused prepared-inventory imports * test(update): preserve schema import failure diagnostics * fix(update): avoid discovery imports for prepared state inventories * test(update): document isolated inventory mock boundaries * test(backup): isolate archive command scratch roots * fix: refresh the reviewed correction baseline Baseline-Refresh: 2ddcbe5449fbd647dd319f7a8e182a9fbaf27dec * test(backup): retain isolated fixtures through cleanup * fix(update): reuse verified generation receipts after capture Co-authored-by: Vincent Koc <[email protected]>
* fix(update): avoid recopying admitted rollback images Carry the cleanup-owned generation image into the same rollback capture while retaining source-generation, integrity, publication and rollback checks. Add bounded capture work-count and paired-performance workloads; end-to-end performance qualification is pending. * test(perf): bound rollback capture verification buffers * test(update): verify retained rollback image lifecycle * fix(update): satisfy retained-image static checks * test(update): bind retained-image hold to test lifetime * test(update): retain failed backup fixture evidence * test(update): separate cache and retained-image fixtures * test(update): preserve paired fixture failure causes * chore(test): reuse upstream regression budget Reuse the exact config/test-lines-baseline.txt policy already landed in 69b5f8d (openclaw#186785). This imports its fixed ceiling without selecting a new budget or deleting distinct regression coverage. Runtime, benchmark workload, and dependency inputs remain unchanged. Existing performance failures and the separate landing hold remain recorded in PR openclaw#186510. * perf(update): avoid unrelated backup capture imports Keep archive path encoding in its canonical policy owner and load PostgreSQL capture only after engine admission. Preserve the updater pre-swap preparation contract and retained-image custody. This removes unnecessary cold import work; memory and latency qualification remain pending. * fix(update): reconcile image reuse with current capture owners * test(update): expose unused prepared-inventory imports * test(update): preserve schema import failure diagnostics * fix(update): avoid discovery imports for prepared state inventories * test(update): document isolated inventory mock boundaries * test(backup): isolate archive command scratch roots * fix: refresh the reviewed correction baseline Baseline-Refresh: 2ddcbe5449fbd647dd319f7a8e182a9fbaf27dec * test(backup): retain isolated fixtures through cleanup * fix(update): reuse verified generation receipts after capture Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
The repository-wide test-code budget has almost no room for distinct regression coverage. On frozen main e094e4c, the unchanged counter reports 6,301,989 lines against a 6,302,000 ceiling, leaving 11 lines. Small guest recovery, authority and history repairs need to retain the cases that demonstrate their behavior.
User Impact
This provides bounded room for necessary regression tests. It delivers no guest-runtime change by itself: each repair still needs its own behavioral proof, review and CI checks. Existing assertions, test-quality requirements and all other gates remain in place.
Why This Change Was Made
Raise the existing scalar from 6,302,000 to 6,310,000, an increase of 8,000 lines (about 0.127%), and update its explanatory comments. This is a fixed reserve, not an estimate of an exact combined repair tree or a guarantee that every future change fits. Further increases need their own justification.
The documented manual-adjustment path already supports this change. The counter, file selection, newline counting, staged handling, branch-delta rule and downward-only pruning remain unchanged. No tests are deleted, packed into fewer lines or weakened to satisfy the budget.
Evidence
The native counter on e094e4c reported
Test lines OK: 6301989; ceiling: 6302000; slack: 11.On the candidate, the same command reportsTest lines OK: 6301989; ceiling: 6310000; slack: 8011.It also emits the expected6302000 -> 6310000manual-increase warning, justified above.Remote changed-file formatting, all selected type groups, and
git diff --checkpassed. The existing counter and scalar-loader suites passed all 9 tests across 2 files, preserving checks for file selection, newline counting, staged state, net growth and pruning. The committed tree matches the tested tree.On the later target 6bd45e1, the native counter reports 6,301,464 lines under the existing 6,302,000 ceiling. The exact composed tree keeps that count and loads 6,310,000, leaving 8,536 lines. These are measured snapshots, not a promise of permanent headroom.
Current-head CI passed, including the test-line ratchet. Independent engineering review is clean, and ClawSweeper reviewed the exact head at Platinum with no findings. Local automated review was unavailable; the hosted review supplies that evidence.