Repository navigation
fix: stop line-limit checks from blocking release branches - #192806
Conversation
Co-authored-by: RomneyDa <[email protected]>
Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 6b50db8b-7990-4791-a9e5-525ecac0a10d
|
🦞👀 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. |
Co-authored-by: RomneyDa <[email protected]>
Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 7c3e25e2-c1a9-4809-962c-2d17afb9d853
|
Codex review: needs changes before merge. What this changesThis PR exempts release and extended-stable branches from line limits and line-count ratchets while retaining correctness checks and explicit pruning. Example: A backport on release/2026.11.4 increases a TypeScript file beyond its 700-line cap.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored PR open: the release-branch exemption has clear value, but its new test demonstrably fails in GitHub Actions because it inherits the enclosing PR’s branch context. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherRepository lint wrappers and ratchets consume local Git or GitHub event context, select release policy, and return diagnostics and check exit codes. flowchart TD
A[Local Git branch] --> C[Shared release resolver]
B[GitHub event context] --> C
C --> D[Oxlint and SwiftLint wrappers]
C --> E[Line count ratchets]
D --> F[Diagnostics and exit codes]
E --> F
Technical reviewBest possible solution: Retain the shared release resolver and existing enforcement owners, and isolate the test-budget suite from its host’s release and GitHub context. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the strict main-branch enforcement path, and the related official-release report supplies concrete lint failures; this review executed no target code. Is this the best way to solve the issue? One resolver feeding the existing wrappers and ratchets is a focused implementation of the approved release policy, with no unnecessary production layer identified. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c7b7c79ef4e6. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests +122, Docs +1, Other +91. Total +214 across 15 files. Added test files: 0. View PR surface stats
Review metrics
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 4, 2026, 9:06 AM ET / 14:06 UTC. |
Co-authored-by: RomneyDa <[email protected]>
Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: b334093e-1ee3-4d15-bd92-3115c4aa1345
Integrate 02d770e, the exact base of the failed CI merge, to repair its inherited UI gates without refreshing to unrelated later main changes. Co-authored-by: RomneyDa <[email protected]>
Remove the duplicate terminal close-session title introduced by #192092 and use the boolean copy result directly after #192046. Preserve all displayed copy and behavior; no baseline or ignore changes. (cherry picked from commit 769180b) Co-authored-by: RomneyDa <[email protected]>
Preserve the real confirm-dialog exports while mocking the cloud-stop confirmation. Allocate exactly the three added fixture lines; inherited test-budget debt remains unchanged. Co-authored-by: RomneyDa <[email protected]>
Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 8ac634d9-92e5-4d53-ab98-9314d3ae47bf
Resolve upstream UI conflicts using current-main implementations and remove the superseded three-line test allocation. Preserve the release size-policy exemptions and minimal documentation. Co-authored-by: RomneyDa <[email protected]>
Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: de552342-bfcd-43ce-8fa7-077930f93ce3
Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 04f83cf8-9ec2-4976-89ec-9c42438ee4a0
Preserve independent expected values for copy-success feedback and the French private/future-results warning. Both failures reproduced on the prior head and pass with the corrected literals. Co-authored-by: RomneyDa <[email protected]>
Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 0e2a0a2c-cfdc-4ea9-8e25-7e8d84e36a34
Resolve the locale assertion conflict to upstream, which now owns all three UI test repairs. Remove their four-line allocation credit; keep release regressions at 122 lines. Co-authored-by: RomneyDa <[email protected]>
Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: c210516c-7c29-4b20-b091-92c71b03cd6a
…192806) * fix: stop line-limit checks from blocking release branches Co-authored-by: RomneyDa <[email protected]> * fix: stop line-limit checks from blocking release branches Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 6b50db8b-7990-4791-a9e5-525ecac0a10d * docs: shorten release line-limit exemption note Co-authored-by: RomneyDa <[email protected]> * Publish openclaw/release-line-limit-exemption Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 7c3e25e2-c1a9-4809-962c-2d17afb9d853 * test: isolate release ratchet fixture from CI environment Co-authored-by: RomneyDa <[email protected]> * Publish openclaw/release-line-limit-exemption Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: b334093e-1ee3-4d15-bd92-3115c4aa1345 * fix(ui): restore static checks after copy updates Remove the duplicate terminal close-session title introduced by openclaw#192092 and use the boolean copy result directly after openclaw#192046. Preserve all displayed copy and behavior; no baseline or ignore changes. (cherry picked from commit 769180b) Co-authored-by: RomneyDa <[email protected]> * test(ui): preserve dialog exports in cloud stop fixture Preserve the real confirm-dialog exports while mocking the cloud-stop confirmation. Allocate exactly the three added fixture lines; inherited test-budget debt remains unchanged. Co-authored-by: RomneyDa <[email protected]> * Publish openclaw/release-line-limit-exemption Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 8ac634d9-92e5-4d53-ab98-9314d3ae47bf * Publish openclaw/release-line-limit-exemption Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: de552342-bfcd-43ce-8fa7-077930f93ce3 * Publish openclaw/release-line-limit-exemption Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 04f83cf8-9ec2-4976-89ec-9c42438ee4a0 * test(ui): match current localized copy in assertions Preserve independent expected values for copy-success feedback and the French private/future-results warning. Both failures reproduced on the prior head and pass with the corrected literals. Co-authored-by: RomneyDa <[email protected]> * Publish openclaw/release-line-limit-exemption Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 0e2a0a2c-cfdc-4ea9-8e25-7e8d84e36a34 * Publish openclaw/release-line-limit-exemption Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: c210516c-7c29-4b20-b091-92c71b03cd6a --------- Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
…est-line budget check-limits.mts now imports release-context.mjs (#192806); the trusted-harness fixture copies scripts by hand. Raise the test-line scalar by the exact measured gap: +25 lines for package-root closure coverage plus 49 lines of inherited main debt.
…#188338) Fixtures that staged package-root launcher modules kept about ten hand-maintained copy lists, so a new sibling import (#182306, #182856) broke integration shards instead of a fast test. Fixtures now name only their entry modules, and collectPackageRootModules computes the closure. vitestWorkerRuntimeAssets moved out of vitest-worker-declarations into the new module, so the trusted PR-wrapper inventory is unchanged. A unit test checks the scanner against an acorn parse and checks that package.json files includes every sibling import of each packaged root module. The docker harness also stages release-context.mjs (#192806). The test-line ceiling is raised by the exact measured gap: +25 lines for this coverage plus 49 lines of inherited debt.
#192806 made scripts/lib/check-limits.mts import release-context.mjs, which imports release-version.mjs. The Control UI performance and OCM changelog fixtures copy a fixed source list, so both failed to resolve the new modules. Add the two files. The packaging fixture already lists them.
Adopt the reviewed release-size exemption from #192806 while retaining correctness, complexity, configuration, and provenance checks. Include the main-first prepush context handoff from #193178 (dd327c7) and fixture isolation from #193195 (fa56528). Canonical closure: 85/85 targeted tests pass with the checksum-verified pinned Bun; tooling types, focused strict lint, format, and whitespace checks pass. Initial 83/85 failure evidence retained; no native or security waiver. Co-authored-by: RomneyDa <[email protected]>
…openclaw#188338) Fixtures that staged package-root launcher modules kept about ten hand-maintained copy lists, so a new sibling import (openclaw#182306, openclaw#182856) broke integration shards instead of a fast test. Fixtures now name only their entry modules, and collectPackageRootModules computes the closure. vitestWorkerRuntimeAssets moved out of vitest-worker-declarations into the new module, so the trusted PR-wrapper inventory is unchanged. A unit test checks the scanner against an acorn parse and checks that package.json files includes every sibling import of each packaged root module. The docker harness also stages release-context.mjs (openclaw#192806). The test-line ceiling is raised by the exact measured gap: +25 lines for this coverage plus 49 lines of inherited debt.
openclaw#192806 made scripts/lib/check-limits.mts import release-context.mjs, which imports release-version.mjs. The Control UI performance and OCM changelog fixtures copy a fixed source list, so both failed to resolve the new modules. Add the two files. The packaging fixture already lists them.
What Problem This Solves
Fixes release backports blocked by source/function line limits, max-lines baseline drift, and total test-line budget. Requested by @RomneyDa for release branches generally, not only local release checks.
User Impact
Release and extended-stable branches can take backports without size-only refactors or baseline/allocation updates. Exemption covers local checks, PRs targeting these branches, and dispatched release CI. Main-branch policy, correctness, blanket lint-disable guards, non-size budgets, and explicit pruning remain unchanged.
Why This Change Was Made
One shared resolver uses the canonical release-branch parser. Oxlint and SwiftLint wrappers suppress only size diagnostics; source-line, max-lines suppression, and total test-line ratchets consume the same release decision. No persistent configuration or blanket lint switch. Both prepush files remain unchanged.
Evidence
Native macOS SwiftLint was not run locally; its wrapper has executable-fixture coverage. No runtime/Gateway behavior change, PR merge, or release publication.
Worked on by