Repository navigation
perf(cron): reuse collation within name-sorted job lists - #135597
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 7:08 PM ET / 23:08 UTC. ClawSweeper reviewWhat this changesThe PR reuses one lazy ICU name comparator per cron-job list sort, documents its lint exception, and narrows a sidebar test selector made ambiguous by a merged UI change. Merge readinessKeep open for maintainer handling. The introduced comparator is locally scoped and preserves the existing sort contract; no correctness or security defect was found, but this member-authored, Priority: P3 Review scores
Verification
How this fits togetherCron job lists are filtered and sorted in the cron service before a paged response reaches Gateway, Control UI, and operator callers. The changed comparator only affects name ordering within that list transformation. flowchart LR
A[Cron jobs] --> B[Filter and snapshot]
B --> C[Sort job list]
C --> D{Name sort?}
D -->|Yes| E[Local ICU comparator]
D -->|No| F[Timestamp ordering]
E --> G[Paged response]
F --> G
G --> H[Gateway and Control UI]
Decision needed
Why: The PR carries the protected Before merge
Agent review detailsSecurityNone. PR surfaceSource -1, Tests +5. Total +4 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the comparator scoped to one complete list sort rather than introducing a process-wide locale cache, then land after the current head has a complete green check rollup. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR optimizes an existing implementation rather than reporting a broken behavior. The source path and its caller establish where name-sorted lists are processed. Is this the best way to solve the issue? Yes for the functional change: the sort owner is the narrowest place to reuse collation while avoiding process-wide locale state; a global cache would broaden lifetime and locale assumptions without helping other sort modes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d9d19fefb4bb. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
24d9a1c to
1f9e259
Compare
|
Exact-head CI is now green for The reviewer's upstream-network limitation is covered by the retained direct Node 26.8.1 source inspection: StringLocaleCompare excludes explicit options from the default-collator cache, and the compare getter returns its bound comparison function. The PR's per-sort ownership and all disclosed performance limits remain unchanged. Landing under the maintainer's explicit autonomous performance-campaign direction. Fresh structured review found no actionable findings; the complete sidebar suite passes 323 tests after the bounded test-selector repair. No GitHub-enforced approval rule is bypassed. |
|
Merged via squash.
|
Account for newly tracked artifact tests and internal workflow-only inputs. Keep synthetic runner timing checks independent of unrelated suite budgets. Reuse the catalog-row selector fix already landed in #135597.
Use the canonical session-label selector landed in #135597. Keep both label-value checks and all marquee reset assertions while removing the duplicate conflict.
Use the canonical session-label selector landed in #135597. Keep both label-value checks and all marquee reset assertions while removing the duplicate conflict.
* ci: separate Control UI browser concurrency owners * test(ci): keep shared config routing guard scoped * ci: build only runtime artifacts for browser extension proof * ci: balance combined Control UI project shards * docs(ci): clarify UI bootstrap and runner concurrency * test(ui): sample the sheet animation from its start * fix(ci): stabilize browser checks and reuse E2E setup * fix(ci): preserve tab rollback and await child readiness Keep unfinished-tab cleanup owned by its creator after the relay closes while retaining group and access revocation checks. Await the Windows process fixture readiness event before expiring its existing cleanup deadline. * docs: retain Chrome release context in the PR Chrome tab access: prevent newly created tabs from losing access during group setup, keep revocations effective for in-flight commands, recover automation after selected-group access is restored, and clean up unfinished tabs when the relay disconnects. * test: select the catalog session label for marquee resets Scope the lifecycle fixture to the session row after catalog headings gained their own marquee. Assert both label values while retaining DOM replacement, class, and style checks. Reproduced on main before the fix; all 323 sidebar tests pass afterward. * test: align catalog label selector with main Use the canonical session-label selector landed in #135597. Keep both label-value checks and all marquee reset assertions while removing the duplicate conflict.
* ci: refit shard weights within existing runner caps * ci: retain support shard costs across inventory changes * test: select the catalog session label for marquee resets Scope the lifecycle fixture to the session row after catalog headings gained their own marquee. Assert both label values while retaining DOM replacement, class, and style checks. Reproduced on main before the fix; all 323 sidebar tests pass afterward. * test: align catalog label selector with main Use the canonical session-label selector landed in #135597. Keep both label-value checks and all marquee reset assertions while removing the duplicate conflict.
Account for newly tracked artifact tests and internal workflow-only inputs. Keep synthetic runner timing checks independent of unrelated suite budgets. Reuse the catalog-row selector fix already landed in #135597.
…35639) * perf(release): prepare publication artifacts during validation * fix(release): scope npm registry environment restoration * test(ci): align release artifact verification fixtures Account for newly tracked artifact tests and internal workflow-only inputs. Keep synthetic runner timing checks independent of unrelated suite budgets. Reuse the catalog-row selector fix already landed in #135597. * fix(release): preserve correction identity across prepared artifacts
Merge current main to inherit the canonical catalog-row test selector repair from openclaw#135597, resolving the observed UI check failure. Keep the reviewed optional-field producer fix, strict payload validation, tool restrictions and real service persistence regression unchanged. Use neutral filenames for an inherited Markdown import fixture without changing its source-classification input or assertions. Co-authored-by: Solomon Neas <[email protected]>
…5597) * perf(cron): reuse collation within name-sorted job lists * test(cron): register bound collator lint exception * test(ui): scope catalog marquee assertions to session rows
* ci: separate Control UI browser concurrency owners * test(ci): keep shared config routing guard scoped * ci: build only runtime artifacts for browser extension proof * ci: balance combined Control UI project shards * docs(ci): clarify UI bootstrap and runner concurrency * test(ui): sample the sheet animation from its start * fix(ci): stabilize browser checks and reuse E2E setup * fix(ci): preserve tab rollback and await child readiness Keep unfinished-tab cleanup owned by its creator after the relay closes while retaining group and access revocation checks. Await the Windows process fixture readiness event before expiring its existing cleanup deadline. * docs: retain Chrome release context in the PR Chrome tab access: prevent newly created tabs from losing access during group setup, keep revocations effective for in-flight commands, recover automation after selected-group access is restored, and clean up unfinished tabs when the relay disconnects. * test: select the catalog session label for marquee resets Scope the lifecycle fixture to the session row after catalog headings gained their own marquee. Assert both label values while retaining DOM replacement, class, and style checks. Reproduced on main before the fix; all 323 sidebar tests pass afterward. * test: align catalog label selector with main Use the canonical session-label selector landed in openclaw#135597. Keep both label-value checks and all marquee reset assertions while removing the duplicate conflict.
* ci: refit shard weights within existing runner caps * ci: retain support shard costs across inventory changes * test: select the catalog session label for marquee resets Scope the lifecycle fixture to the session row after catalog headings gained their own marquee. Assert both label values while retaining DOM replacement, class, and style checks. Reproduced on main before the fix; all 323 sidebar tests pass afterward. * test: align catalog label selector with main Use the canonical session-label selector landed in openclaw#135597. Keep both label-value checks and all marquee reset assertions while removing the duplicate conflict.
…enclaw#135639) * perf(release): prepare publication artifacts during validation * fix(release): scope npm registry environment restoration * test(ci): align release artifact verification fixtures Account for newly tracked artifact tests and internal workflow-only inputs. Keep synthetic runner timing checks independent of unrelated suite budgets. Reuse the catalog-row selector fix already landed in openclaw#135597. * fix(release): preserve correction identity across prepared artifacts
Name-sorted cron lists construct an ICU collator for every comparison because
localeComparereceives explicit options. The cost grows with the full filtered job list, even when the caller requests one small page.This change keeps one lazy
Intl.Collatorcomparison function withinsortCronJobs. Empty, single-job and numeric sorts do not construct it. Locale and sensitivity defaults, ascending ID tie-breaks, missing-last numeric ordering, input ownership, filtering and snapshot revisions stay unchanged. The adjacent missing-time branches collapse into one equivalent branch. Production: +9/−10 lines, net −1; test and test-support changes total +7/−2, net +5; no new dependency, configuration, schema or persistent cache.The narrow lint suppression documents a language contract:
Intl.Collator.comparereturns a bound function. Node's localeCompare implementation shows the explicit-options cache exclusion; the compare getter retains the bound function.Measured behavior
One fixed before/candidate/candidate/before sequence on Node 26.8.1, with actual SQLite-backed cron services and authenticated loopback Gateway requests. Each of 12 rows has one first use, eight warmups and 31 measured observations in each host: 1,920 observations, with full returned values, serialized output, revisions, timings and RSS retained. The clock includes the entire list operation and JSON serialization; Gateway rows also include transport. No output normalization, excluded outliers, workload retuning or timing retries.
All four primary rows exceeded the predeclared 3% improvement requirement in both orders. No control exceeded the predeclared 3% regression limit in both orders. This is a name-sort improvement, with real limits:
Validation
The original paired native proof compares 24 complete output cases: Unicode and case ties, both directions, unchanged ID ordering, malformed helper-only inputs, all 72 numeric/missing combinations, page isolation, full revisions and off-page mutations, defaults, filtering and invalid RPC parameters. Both variants have complete startup logs, the expected two disabled managed jobs, clean shutdown and verified process/database/coordinator cleanup. Earlier successful proof runs without native logs were retained as incomplete evidence and were not used for timing.
Measurements are pinned to
3a6654c851582b81f15f9c54dc5deacf5e5f945a. After pulling main213975df7583433c088dc18e755d5c870156fa9f, fresh validation covered the newer startup catch-up code:pnpm check:changed: passed (224.8 seconds). The first run passed typechecks and guards but flagged the specified bound function as an unbound method; the explanatory suppression passed a separate type-aware lint run. It adds only a comment to the measured executable source.The fixed timing result SHA-256 is
da1466e6076a569af57168ee450c1e229bbe6981846f9529d073dce97ccfbc95; independent audit seal isc9b0f22ff19833ccbd8f42a83546f366056fc481877de4aa1a2ef8184c72536e. Raw local artifacts are retained; hosted checks provide the independently runnable repository validation.No changelog or public API/docs changes are needed. Release context: reduce overhead when operators or clients list cron jobs sorted by name.
A separate source-only follow-up records that visibility-scoped pagination should be reproduced under concurrent mutation to check snapshot consistency. It is unconfirmed and predates this comparator change.
CI caught the repository suppression inventory missing the intentional
Intl.Collator.comparelint exception. Head24d9a1cadds one exact allowlist entry and its bound-getter explanation (two test lines); production remains +9/−10, net −1. All four suppression-guard tests, the changed-file checks, and a fresh structured review pass. No runtime code or historical measurements changed. The failed CI result is retained and the updated head runs normal CI.The second CI run exposed a sidebar test selector made ambiguous by upstream #135523: a new heading now also uses
.hover-marquee. This PR includes the bounded test repair: select the catalog session label and assert its old and new text while retaining replacement/style checks. The full sidebar suite reproduced one failure out of 323 before the edit and passed all 323 afterward. The refreshed complete PR passed a new structured Codex review and changed-file checks. The current head includes this test-only repair and a rebase ontoa6f0d094; the cron production owner remains byte-identical to the previously measured candidate. No UI production behavior changed.