Repository navigation
fix: unblock core lint after cron history ordering changes - #160942
roboclaw-bot wants to merge 1 commit into
Conversation
Remove the map spread introduced by #160897 that fails core lint on main and unrelated PR merge refs. Preserve all timestamp values, sorting cases, and assertions. Validation: the exact one-file canonical lint check reproduced no-map-spread, then passed with zero warnings and errors after this correction. No runtime suite rerun. Co-authored-by: sallyom <[email protected]> Co-authored-by: steipete <[email protected]>
|
🦞👀 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. Reviewed September 29, 2026, 12:06 AM ET / 04:06 UTC. ClawSweeper reviewWhat this changesThe branch replaces an object spread in a cron history ordering test fixture with explicit identity and timestamp fields. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Current main still contains the lint-breaking fixture expression. The proposed correction preserves the ordering inputs, and the current-head core lint check passes. No actionable patch defect was found. Priority: P2 Review scores
Verification
How this fits togetherCron history turns stored run records into paginated entries using a shared ordering rule. The changed test supplies synthetic records to that path, while core lint checks the test source in CI. flowchart LR
A[Run records] --> B[Ordering test fixture]
B --> C[History page projection]
C --> D[Shared ordering rule]
D --> E[Order assertions]
B --> F[Core lint]
F --> G[CI gate result]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +3. Total +3 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the shared ordering rule and ascending and descending assertions, with fixture construction that satisfies typed core lint. Do we have a high-confidence way to reproduce the issue? Yes. Current main contains the offending spread, and the PR gives the exact single-file typed lint command and its before/after diagnostics; this review did not execute it. Is this the best way to solve the issue? Yes. Explicitly projecting the fields removes the reported lint trigger without changing the comparator, test cases, assertions, or lint policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5902fd290c4c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Superseded by the canonical main fix 743c2ce, which removes the same forbidden map spread while preserving the five ordering records and assertions. Verified that commit is contained in current main. Closing this redundant repair rather than reconciling two equivalent fixture rewrites; the worker PR can now incorporate the landed fix. |
What Problem This Solves
Fixes core lint failing on main and unrelated PR merge refs after the cron history ordering fixture added in #160897. This blocked #160465 without that PR changing the cron file.
User Impact
No production behavior changes. Restores the lint gate so unrelated changes can be validated and landed.
Why This Change Was Made
Project the fixture’s four identity/timestamp fields explicitly instead of spreading each record inside
map. Timestamp values, ordering cases, and all assertions are preserved. No lint rules, suppressions, or timeouts change.GitHub rejected the direct non-force main push with
GH013: Changes must be made through a pull request; this PR follows that required route.Evidence
oxc/no-map-spreadbefore the fix: 1 error, 0 warnings, 11 s wall.node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json src/cron/run-history.test.ts.git diff --checkpassed. The tested file is unchanged after rebasing onto the latest main snapshot. No runtime test suite was rerun; the existing ordering assertions are unchanged.Worked on by
Work sessions
View the OpenClaw team session