Repository navigation
fix(ci): repair red merge-ref gates (dead CLI wrapper, oversized test file) - #123794
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 2:55 PM ET / 18:55 UTC. ClawSweeper reviewWhat this changesThe PR deletes an unused skills-CLI workspace-directory wrapper and moves six gateway deduplication-maintenance tests into a focused sibling suite to repair merge-ref typecheck and max-lines gates. Merge readinessKeep open. Current main still contains the unreferenced CLI wrapper and the dedupe tests in a file governed by the 1,000 counted-line rule; this PR removes and relocates those exact lines without changing gateway runtime behavior. No blocking patch defect was found; exact-head gates are still running. Priority: P3 Review scores
Verification
How this fits togetherThe skills CLI resolves target workspaces for ClawHub operations, while gateway maintenance periodically retains or expires deduplication records for active and queued work. Merge-ref CI typechecks the CLI and enforces source-size rules on the gateway test suites. flowchart LR
A[Skills command] --> B[Workspace resolver]
B --> C[ClawHub CLI action]
D[Gateway startup] --> E[Maintenance timer]
E --> F[Dedupe retention]
F --> G[Focused maintenance tests]
C --> H[Merge-ref CI]
G --> H
Before merge
Agent review detailsSecurityNone. PR surfaceSource -7, Tests +107. Total +100 across 3 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain one canonical CLI resolver, keep the six dedupe regressions in their focused suite, and merge once the exact-head CI gates confirm both repair claims. Do we have a high-confidence way to reproduce the issue? Yes, source reproducible: the private wrapper has no callers while core compilation enables noUnusedLocals, and the applicable test-file rule caps counted lines at 1,000. This read-only review did not run the exact gates locally. Is this the best way to solve the issue? Yes. Deleting the unused projection preserves the three canonical resolver call sites, and moving the six unchanged dedupe tests to a focused sibling suite satisfies the repository’s required split-over-suppression policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c6b339460284. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
#116489 migrated its last callers to resolveClawHubTargetWorkspace but left the wrapper, failing check-prod-types (TS6133) on every merge-ref CI run.
server-maintenance.test.ts crossed the 1000-counted-line test cap when #123642 added payload-retention coverage, failing check-lint-core-2 on every merge-ref CI run. Move the dedupe TTL/overflow block into a themed sibling; module mocks are hoisted per file so the mock preamble is repeated while fixtures stay local. Test parity 41 = 41.
0955b5f to
8d8e181
Compare
|
Merged via squash.
|
1 similar comment
|
Merged via squash.
|
… file) (openclaw#123794) * chore(cli): drop unused resolveClawHubTargetWorkspaceDir openclaw#116489 migrated its last callers to resolveClawHubTargetWorkspace but left the wrapper, failing check-prod-types (TS6133) on every merge-ref CI run. * test: split dedupe maintenance suite below the max-lines cap server-maintenance.test.ts crossed the 1000-counted-line test cap when openclaw#123642 added payload-retention coverage, failing check-lint-core-2 on every merge-ref CI run. Move the dedupe TTL/overflow block into a themed sibling; module mocks are hoisted per file so the mock preamble is repeated while fixtures stay local. Test parity 41 = 41.
What Problem This Solves
check-prod-typesis red on every PR's merge-ref CI:src/cli/skills-cli.ts(224,10): error TS6133: 'resolveClawHubTargetWorkspaceDir' is declared but its value is never read.#116489 (feat(security): require acknowledgement for policy warnings) migrated the two remaining callers toresolveClawHubTargetWorkspacebut left the one-line wrapper behind.Why This Change Was Made
Red main gate blocks all open PRs (observed on #123742, #123769). Smallest correct fix per repo doctrine: delete the dead wrapper.
User Impact
None (dead code removal); unblocks merge-ref CI.
Evidence
pnpm tsgoclean post-removal (was failing with TS6133 pre-removal on this exact file); oxlint clean. Production LOC delta: −7.Update
Second main-gate breakage folded in (same class, found while this PR was in flight):
check-lint-core-2red on every merge-ref run becausesrc/gateway/server-maintenance.test.tscrossed the 1000-counted-line test cap (1007) when #123642 added payload-retention coverage. The dedupe TTL/overflow block moves toserver-maintenance.dedupe.test.ts(module mocks are hoisted per file, so the mock preamble is repeated; fixtures stay local). Test parity 41 = 41; both suites green; oxlint clean on both files.