Repository navigation
fix(test): accept release subpages in docs route shape - #140337
Conversation
|
🦞👀 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. |
9ebe835 to
20673ed
Compare
|
Codex review: needs maintainer review before merge. Reviewed September 6, 2026, 1:57 PM ET / 17:57 UTC. ClawSweeper reviewWhat this changesUpdates the docs navigation test to accept release-version subpages while retaining checks against malformed versions and deeper routes. Merge readiness✅ Ready for maintainer review This remains a useful, narrowly scoped repair: fetched main still rejects valid release subpages. No actionable patch defects were found, and the maintainer-protected PR should remain open for normal landing. Priority: P2 Review scores
Verification
How this fits togetherThe docs publisher builds localized navigation from the English navigation configuration. This test checks the resulting release routes, ordering, uniqueness, and alignment across languages. flowchart LR
A[English docs navigation] --> B[Compose localized navigation]
B --> C[Collect release routes]
C --> D[Validate version and optional subpage]
D --> E[Check ordering and uniqueness]
E --> F[Verify locale alignment]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +3. Total +3 across 1 file. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep the navigation guard aligned with accepted release subpages while preserving locale, ordering, and duplicate-route invariants. Do we have a high-confidence way to reproduce the issue? Yes, from source: current-main navigation supplies single-level release subpages that its version-only assertion necessarily rejects. Tests were not executed during this read-only review. Is this the best way to solve the issue? Yes. Extending the existing guard to the accepted route shape is a narrow repair, and the two negative controls preserve meaningful rejection boundaries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 813b509ef147. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Merge openclaw#140337 so docs navigation validation accepts actual release subpages. Preserve all 17 performance files and original contributor ancestry. Keep allocation evidence bound to bd16 and the separate seconds/RSS pair bound to 83b; no performance measurement was repeated for this integration. Co-authored-by: xuyuanhao <[email protected]>
Incorporate the canonical openclaw#140337 repair for the actual docs route test failure while preserving the reviewed CLI quoted-record fix and all upstream changes. The scoped production delta remains net -5 lines. Co-authored-by: luyifan <[email protected]>
Merge the canonical docs route test repair from openclaw#140337 after the published-head CI failure. Preserve the local response projection fix, its reviewed test fixture, and all contributor ancestry. Co-authored-by: ben.li <[email protected]>
* origin/main: (25 commits) docs(releases): keep the release-notes nav group to version routes (#140353) fix(ui): hide trust wrappers in imported chat history fix(subagents): subagent list building decodes unrelated saved prompts in large session stores (#139540) test(process): share relay startup fixtures (#140345) refactor(doctor): inline GitHub skill discovery inputs (#140343) refactor(ui): share channel status type definitions (#140331) refactor: simplify queue state and infrastructure dispatch (#140311) fix: require saved agent turns before update verification succeeds (#140274) fix(update): keep the service profile when switching to Git (#140263) fix(ui): prevent image avatars overlapping mobile chat (#140341) fix(test): accept release subpages in docs route shape (#140337) refactor(plugins): share uninstall mutation ownership (#140322) refactor(agents): use canonical tool execution arguments (#140280) perf(cli): keep inference metadata and domain help lazy (#140327) refactor(plugins): simplify self-hosted setup results (#140332) refactor(config): reuse parent lookup for unset operations (#140326) fix(plugins): preserve exact installed-index mutation receipts (#140328) test(agents): simplify MCP and LSP boundary fixtures (#140312) fix(ui): preserve literal source previews and copied whitespace (#140306) fix: OpenCode Go/Zen requests are missing the required x-opencode-session header (#137464) ...
* perf(cron): skip validation of absent delivery fields * fix(cron): yield between system job convergence mutations Let I/O progress between settled heartbeat and skill-review monitor mutations. Recheck the existing reconciliation guard after each turn, before entering wrappers that can stop owners ahead of the database guard. Preserve duplicate/upsert/stale order and per-row failure isolation. Regression proof: 13 scheduling and lifecycle cases fail before the change; all 150 affected tests pass on Node 26.7 Linux afterward. * test(cron): use typed convergence fixtures and public reads * test(cron): satisfy convergence test lint rules * test(cron): await scheduled reconciliation results * test: accept release subpages in docs route shape Pick up the already-landed test correction from 96bf365 (#140337) to repair the inherited merge-target CI failure. Production source is unchanged.
* perf(cron): skip validation of absent delivery fields * fix(cron): yield between system job convergence mutations Let I/O progress between settled heartbeat and skill-review monitor mutations. Recheck the existing reconciliation guard after each turn, before entering wrappers that can stop owners ahead of the database guard. Preserve duplicate/upsert/stale order and per-row failure isolation. Regression proof: 13 scheduling and lifecycle cases fail before the change; all 150 affected tests pass on Node 26.7 Linux afterward. * test(cron): use typed convergence fixtures and public reads * test(cron): satisfy convergence test lint rules * test(cron): await scheduled reconciliation results * test: accept release subpages in docs route shape Pick up the already-landed test correction from 4413c7c (openclaw#140337) to repair the inherited merge-target CI failure. Production source is unchanged.
Related: #140319, #140331
What Problem This Solves
Fixes the docs navigation test failure after #140319 split the v2026.8.1 release page into subpages. The existing guard accepts only a bare version route and rejects valid routes such as
releases/2026.8.1/installation-and-onboarding, making unrelated main-based CI fail.Why This Change Was Made
Accept either a version route or that route plus one lowercase alphanumeric/hyphenated slug. Preserve the unpinned release list, index-first ordering, minimum length, locale alignment, and duplicate-route checks. Explicitly reject an invalid version and a second subpage level with the same pattern used for actual navigation.
User Impact
Restores the intended release-navigation check without changing published docs or runtime behavior. This is a maintainer-assigned CI repair. Production/tooling/docs delta is zero; test delta is +3 (+5/−2).
Evidence
node scripts/run-vitest.mjs test/scripts/docs-sync-publish.test.tsreproduced the real navigation failure: 1 failed, 9 passed.releases/not-a-versionand deeperreleases/2026.8.1/memory/nestedroutes remain rejected.pnpm check:changed: passed the complete selected gate.