Repository navigation
fix: reject missing oxlint shard selectors - #120096
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 6, 2026, 10:41 PM ET / August 7, 2026, 02:41 UTC. ClawSweeper reviewWhat this changesThe PR makes the oxlint shard runner reject missing, option-like, and unknown Merge readinessThis PR is still necessary: current main can silently turn malformed shard selectors into successful all-shard or no-shard runs. The exact head resolves the prior option-like selector finding and has no remaining blocking correctness finding. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s lint command delegates to a shard runner that parses selector flags, builds platform-aware work shards, prepares artifacts, and launches oxlint subprocesses under a local heavy-check lock. Invalid selectors must fail without starting work or retaining that lock. flowchart LR
A[Lint command or CI lane] --> B[Shard option parser]
B --> C[Selector validation]
C --> D[Heavy-check lock]
D --> E[Shard construction and matching]
E --> F[Artifact preparation]
F --> G[Oxlint shard subprocesses]
E --> H[Lock cleanup]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +45, Other +17. Total +62 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain this single parser-and-filter validation path and merge it through normal exact-head gates; refresh review only if the merge result changes. Do we have a high-confidence way to reproduce the issue? Yes. Current-main source shows empty selectors selecting all shards and unknown selectors selecting none; the exact-head subprocess tests encode those CLI paths, though this read-only review did not execute them. Is this the best way to solve the issue? Yes. Syntax validation belongs in argument parsing and name validation belongs in shard filtering, preventing the silent no-op at its producer boundaries without adding configuration or fallback behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 21e9634f1084. LabelsLabel changes:
Label 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)
|
Punchcard-Session: clear-harbor-river-2k
|
@clawsweeper re-review Maintainer fix is now on exact head |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
Merged via squash.
|
* origin/main: (58 commits) fix(test): restart shared gateway after migration convergence (openclaw#120089) fix(ui): make active-run steering reliable (openclaw#120083) fix(telegram): preserve voice fallback text test(swift): preserve queued websocket frames (openclaw#120106) fix: reject missing oxlint shard selectors (openclaw#120096) test(channels): align prerelease fallback catalog spec (openclaw#120092) fix(node-cli): warn when systemd user lingering is disabled after install (openclaw#118430) fix(diagnostics): preserve CLI turn usage totals (openclaw#120100) fix(gateway): derive lock and coordinator paths from the resolved state dir (openclaw#120110) fix(release): isolate private Telegram QA harness (openclaw#120088) test(agents): exercise execution attribution ingress guard fix(gateway): defer attribution until admission succeeds refactor(agents): centralize exact execution attribution fix(google): accept base64url provider media (openclaw#116204) fix(plugins): warn when registerHook uses a typed hook event name (openclaw#118601) fix(canvas): serve Content-Length on A2UI HEAD responses (openclaw#117961) fix(gateway): make doctor dreaming timestamp comparators NaN-safe (openclaw#118749) fix(heartbeat): explain target-none skips (openclaw#119689) fix(security): stop recommending retired install-policy bypasses (openclaw#120011) fix(plugins): preserve startup release during repair (openclaw#120085) ... # Conflicts: # CHANGELOG.md # src/config/sessions/session-accessor.sqlite-transcript-write.ts
* fix: reject missing oxlint shard selectors * fix(lint): reject invalid shard selectors Punchcard-Session: clear-harbor-river-2k --------- Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
Fixes an issue where malformed or misspelled oxlint shard selectors could silently run every shard or no shards while returning success.
Why This Change Was Made
The shard runner now validates both
--only valueand--only=valuethrough one syntax guard, rejects every unmatched selector including mixed valid/invalid sets, and performs shard creation and filtering inside the heavy-check lock'stry/finally.User Impact
Invalid shard-runner commands fail immediately with a clear non-zero error. They do not start lint shards, prepare boundary artifacts, or leave the heavy-check lock behind.
Evidence
run_858101e2ef15on leasecbx_699b5557ee46:pnpm test test/scripts/run-oxlint.test.tspassed 45/45.pnpm format:check -- scripts/run-oxlint-shards.mjs test/scripts/run-oxlint.test.tspassed.git diff --checkpassed.pnpm check:changed -- scripts/run-oxlint-shards.mjs test/scripts/run-oxlint.test.tspassed.c623f4a314c4dcbbc36b46363ebb93954bcf90d3.AI-assisted change; implementation and proof reviewed directly.
Punchcard-Session: clear-harbor-river-2k