Skip to content

test(docs): expect dependency locking under release navigation - #144002

Merged
steipete merged 1 commit into
mainfrom
steipete/docs-nav-release-routes-test
Sep 10, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/docs-nav-release-routes-test

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Problem

test/scripts/docs-sync-publish.test.ts pins the Release & CI route list. #143977 moved gateway/security/dependency-locking from Gateway & Ops into the Release process group in docs/docs.json, but the pinned list was not updated, so keeps generated locale navigation aligned with English routes fails on main and blocks every landing (for example https://github.com/openclaw/openclaw/actions/runs/34470840974/job/102850320085).

Solution

Add the moved route to the expected release routes at its navigation position (after reference/release-performance-sweep).

Impact

Main CI is green again; no navigation or docs behavior changes.

Evidence

  • node scripts/run-vitest.mjs test/scripts/docs-sync-publish.test.ts — 11 passed.

@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 10, 2026
@steipete
steipete force-pushed the steipete/docs-nav-release-routes-test branch from e7426f8 to 4f017ed Compare September 10, 2026 11:47
@steipete steipete self-assigned this Sep 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 10, 2026, 7:55 AM ET / 11:55 UTC.

ClawSweeper review

What this changes

Updates the docs publishing test to expect the dependency-locking page in Release & CI navigation.

Merge readiness

✅ Ready for maintainer review

The correction is still needed on fetched main and matches the intentional navigation move. No actionable patch defects were found; the maintainer-labeled PR remains suitable for normal landing review.

Priority: P3
Reviewed head: 4f017ed1a2a142814822b10b4ce77324aab8ee63

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-supported correction with reported passing tests and no actionable defects.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies a maintainer author, so external-contributor runtime proof is not required; this test-only correction has reported focused validation and no production behavior change.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies a maintainer author, so external-contributor runtime proof is not required; this test-only correction has reported focused validation and no production behavior change.
Evidence reviewed 7 items Verified introduced change: The pinned base-to-head diff adds only the dependency-locking route to the existing expected list. Exact equality, uniqueness, and locale parity assertions remain intact.
Current main still needs the correction: Fetched main places dependency-locking immediately after release-performance-sweep in Release process, while its test expectation omits that route.
Navigation owner: The complete publisher module was inspected. composeDocsConfig reads English navigation, clones its routes for generated locales, and overlays translated labels; the changed test exercises this existing owner.
Findings None None.
Security None None.

How this fits together

The docs publisher generates localized navigation from the English docs configuration. This test checks that release routes retain their order and appear consistently across generated locales.

flowchart LR
  A[English docs navigation] --> B[Docs publisher]
  C[Translated navigation labels] --> B
  B --> D[Generated locale navigation]
  D --> E[Route order and parity checks]
  F[Expected release routes] --> E
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +1. Total +1 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 1 0 +1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 0 +1

Review metrics

None.

Technical review

Best possible solution:

Keep the intentional navigation placement and align its existing locale-parity test expectation.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: current main generates the added release route but compares it against a list that omits it. Tests were not executed during this read-only review.

Is this the best way to solve the issue?

Yes. Updating the existing expectation preserves the intended navigation and all existing parity assertions without changing production behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against b9d6923d505b.

Labels

Label changes:

  • add P3: This is a low-risk test expectation correction with no change to published navigation or runtime behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Label justifications:

  • P3: This is a low-risk test expectation correction with no change to published navigation or runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete

steipete commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor Author

Resolved: the coordinator identified the timeout below as a known unrelated CI-load flake and authorized a failed-job rerun. Run 34473207141, attempt 2 passed on the same exact head. Native preparation and squash merge completed as a23560202def802a7bb2e3620f0dbba3684a39b4, verified on main. No additional rerun or code changes were needed.

Original stop diagnosis (retained for history):

Landing stopped at exact-head CI for 4f017ed1a2a142814822b10b4ce77324aab8ee63.

CI run 34473207141, job checks-node-compact-small-28, failed in test/scripts/run-vitest-profile.test.ts:409: rejects main --runner=custom-runner.ts before evaluating config timed out after 120000 ms. The shard reported 1 failed, 808 passed, and 4 skipped tests. This is outside the one-line docs navigation expectation change; the available log does not establish an obviously transient infrastructure failure.

The requested rebase was conflict-free and patch-identical. Changed-file oxlint and whitespace checks passed, and a direct docs composer probe confirmed release-route alignment across 18 generated locales. The CI watcher terminated with FAILURE (exit 15). No CI rerun, scope expansion, prepare, or merge was attempted after the failure, per the bounded landing work order. The PR remains open for the coordinator to resolve this blocker.

@steipete
steipete merged commit a235602 into main Sep 10, 2026
207 of 209 checks passed
@steipete
steipete deleted the steipete/docs-nav-release-routes-test branch September 10, 2026 12:17
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 10, 2026
## What Problem This Solves

Cloud worker snapshots could be inspected and recovered in Settings, but operators could not start a build, rebuild a project image, or cancel an active build from that view.

## Why This Change Was Made

Add Build snapshot with eligible-profile and Gateway-local repository selection, Rebuild using a recorded local project root, and confirmed cancellation through the existing environment methods. Group build environments with their snapshots, refresh worker inventory before image inventory, and poll every 10 seconds while a worker build or capture remains active. Preserve the observed worker state when image listing fails.

Failed and orphaned builds remain visible with their existing worker error and count toward Needs attention; they do not keep polling or offer cancellation. Capture counts are deduplicated by lease ID. Pending build dialogs retain their errors, and profile-save notices direct operators to Snapshots after restart.

Carry optional local project-root metadata through preparation and Crabbox allocation/listing, and include profile identity in the existing worker summary. Preserve main's computed project label for repository-backed sources; only local snapshots expose Gateway-local root metadata. No new RPCs, configuration options, database schema, or image reuse policy. The rebase retains #143893's pin, previous-generation, rollback, delete, and retention controls.

## User Impact

Operators can prepare committed project snapshots without starting a session. Inline errors explain invalid selections and prepared-pool capacity. Rebuild uses ordinary preparation/reuse policy and does not force a capture when the existing image remains reusable. Images without a recorded local root omit Rebuild; the repository picker remains available for local checkouts.

Cancellation explicitly asks to destroy the selected worker, including an unused ready reserve. It uses non-force destruction: the existing lifecycle owner checks attachment under the environment lock and retains failed/orphaned records. The earlier stale-cancellation review concern was rejected on that source evidence, and the review accepted the rejection.

## Evidence

- Rebased onto #144002, which repairs the unrelated docs-navigation CI expectation. The previously failing navigation test now passes locally.
- Expanded focused tests passed: 50 project-preparation/provider tests, 117 cloud-worker UI tests, four snapshot browser flows, and 23 Crabbox Gateway tests (194 total).
- Changed-file `pnpm exec oxlint` passed. Core typechecking passed after narrowing the existing local/repository project union without casts or suppressions.
- Independent review of the complete feature was scoped-clean at P0–P2. The new one-line project-variant integration repair also received a clean scoped review.
- Asynchronous failure, capture polling, inventory ordering, and image-list failure regressions were each demonstrated failing before their repair and passing afterward.
- Full `node scripts/check-changed.mjs` passed before the patch-identical rebase onto #144037. Post-rebase changed-file oxlint and all four focused snapshot test shards passed; both previously failing navigation assertions also passed. Exact-head CI [34480832658](https://github.com/openclaw/openclaw/actions/runs/34480832658) passed for `31306f3861d4ec0aee8b5de1bf2c2a0c89fa2d53`.

Earlier CI exposed two settings E2E assertions expecting the old restart notice; those assertions now require the complete intended notice. The integrated pin/delete browser fixture supplies the valid empty worker inventory it consumes. A cancelled security workflow passed on its single retry; the later navigation failures were repaired upstream in #144002 and #144037. No checks or baselines were weakened.

The additive optional provider-metadata compatibility risk is accepted within this reviewed change. Required fields, allocation identity, and preparation policy remain unchanged. Bundled-provider tests and core/plugin typechecks cover the changed boundary; arbitrary third-party providers were not exhaustively exercised.

[Maintainer-provided live UI proof](#143929 (comment)) covers Build snapshot through available-image publication and surplus retirement. The Snapshots UI and project-preparation modules are byte-identical to that proof revision across this rebase. The cancelled Labeler automation passed on its single retry.

## Screenshots

Mock Gateway fixture (synthetic profiles, one build in progress).

| Before: Snapshots view (read-only) | After: Build snapshot, Rebuild, Cancel, and a build row |
| --- | --- |
| ![before](https://github.com/user-attachments/assets/d54e8cff-fd89-4c42-99fa-e685cdd2bf51) | ![after](https://github.com/user-attachments/assets/e5eabb7c-63a7-49dd-90c6-7c89f182bee5) |

| After: build dialog |
| --- |
| ![build dialog](https://github.com/user-attachments/assets/defdee99-9bb1-4e76-ac7c-07c7786def00) |

The underlying `environments.prepare` path was proven live against Crabbox AWS in #143838 (build → capture → available → surplus retirement); this PR wires that method into the view.

The rebase onto #144037 preserved both source commits unchanged by range-diff. No duplicate navigation/catalog repair was included in this PR.
wheakerd pushed a commit to wheakerd/clawdbot that referenced this pull request Sep 10, 2026
…law#144002)

## Problem

`test/scripts/docs-sync-publish.test.ts` pins the Release & CI route list. openclaw#143977 moved `gateway/security/dependency-locking` from Gateway & Ops into the Release process group in `docs/docs.json`, but the pinned list was not updated, so `keeps generated locale navigation aligned with English routes` fails on main and blocks every landing (for example https://github.com/openclaw/openclaw/actions/runs/34470840974/job/102850320085).

## Solution

Add the moved route to the expected release routes at its navigation position (after `reference/release-performance-sweep`).

## Impact

Main CI is green again; no navigation or docs behavior changes.

## Evidence

- `node scripts/run-vitest.mjs test/scripts/docs-sync-publish.test.ts` — 11 passed.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 11, 2026
…law#144002)

## Problem

`test/scripts/docs-sync-publish.test.ts` pins the Release & CI route list. openclaw#143977 moved `gateway/security/dependency-locking` from Gateway & Ops into the Release process group in `docs/docs.json`, but the pinned list was not updated, so `keeps generated locale navigation aligned with English routes` fails on main and blocks every landing (for example https://github.com/openclaw/openclaw/actions/runs/34470840974/job/102850320085).

## Solution

Add the moved route to the expected release routes at its navigation position (after `reference/release-performance-sweep`).

## Impact

Main CI is green again; no navigation or docs behavior changes.

## Evidence

- `node scripts/run-vitest.mjs test/scripts/docs-sync-publish.test.ts` — 11 passed.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 11, 2026
## What Problem This Solves

Cloud worker snapshots could be inspected and recovered in Settings, but operators could not start a build, rebuild a project image, or cancel an active build from that view.

## Why This Change Was Made

Add Build snapshot with eligible-profile and Gateway-local repository selection, Rebuild using a recorded local project root, and confirmed cancellation through the existing environment methods. Group build environments with their snapshots, refresh worker inventory before image inventory, and poll every 10 seconds while a worker build or capture remains active. Preserve the observed worker state when image listing fails.

Failed and orphaned builds remain visible with their existing worker error and count toward Needs attention; they do not keep polling or offer cancellation. Capture counts are deduplicated by lease ID. Pending build dialogs retain their errors, and profile-save notices direct operators to Snapshots after restart.

Carry optional local project-root metadata through preparation and Crabbox allocation/listing, and include profile identity in the existing worker summary. Preserve main's computed project label for repository-backed sources; only local snapshots expose Gateway-local root metadata. No new RPCs, configuration options, database schema, or image reuse policy. The rebase retains openclaw#143893's pin, previous-generation, rollback, delete, and retention controls.

## User Impact

Operators can prepare committed project snapshots without starting a session. Inline errors explain invalid selections and prepared-pool capacity. Rebuild uses ordinary preparation/reuse policy and does not force a capture when the existing image remains reusable. Images without a recorded local root omit Rebuild; the repository picker remains available for local checkouts.

Cancellation explicitly asks to destroy the selected worker, including an unused ready reserve. It uses non-force destruction: the existing lifecycle owner checks attachment under the environment lock and retains failed/orphaned records. The earlier stale-cancellation review concern was rejected on that source evidence, and the review accepted the rejection.

## Evidence

- Rebased onto openclaw#144002, which repairs the unrelated docs-navigation CI expectation. The previously failing navigation test now passes locally.
- Expanded focused tests passed: 50 project-preparation/provider tests, 117 cloud-worker UI tests, four snapshot browser flows, and 23 Crabbox Gateway tests (194 total).
- Changed-file `pnpm exec oxlint` passed. Core typechecking passed after narrowing the existing local/repository project union without casts or suppressions.
- Independent review of the complete feature was scoped-clean at P0–P2. The new one-line project-variant integration repair also received a clean scoped review.
- Asynchronous failure, capture polling, inventory ordering, and image-list failure regressions were each demonstrated failing before their repair and passing afterward.
- Full `node scripts/check-changed.mjs` passed before the patch-identical rebase onto openclaw#144037. Post-rebase changed-file oxlint and all four focused snapshot test shards passed; both previously failing navigation assertions also passed. Exact-head CI [34480832658](https://github.com/openclaw/openclaw/actions/runs/34480832658) passed for `31306f3861d4ec0aee8b5de1bf2c2a0c89fa2d53`.

Earlier CI exposed two settings E2E assertions expecting the old restart notice; those assertions now require the complete intended notice. The integrated pin/delete browser fixture supplies the valid empty worker inventory it consumes. A cancelled security workflow passed on its single retry; the later navigation failures were repaired upstream in openclaw#144002 and openclaw#144037. No checks or baselines were weakened.

The additive optional provider-metadata compatibility risk is accepted within this reviewed change. Required fields, allocation identity, and preparation policy remain unchanged. Bundled-provider tests and core/plugin typechecks cover the changed boundary; arbitrary third-party providers were not exhaustively exercised.

[Maintainer-provided live UI proof](openclaw#143929 (comment)) covers Build snapshot through available-image publication and surplus retirement. The Snapshots UI and project-preparation modules are byte-identical to that proof revision across this rebase. The cancelled Labeler automation passed on its single retry.

## Screenshots

Mock Gateway fixture (synthetic profiles, one build in progress).

| Before: Snapshots view (read-only) | After: Build snapshot, Rebuild, Cancel, and a build row |
| --- | --- |
| ![before](https://github.com/user-attachments/assets/d54e8cff-fd89-4c42-99fa-e685cdd2bf51) | ![after](https://github.com/user-attachments/assets/e5eabb7c-63a7-49dd-90c6-7c89f182bee5) |

| After: build dialog |
| --- |
| ![build dialog](https://github.com/user-attachments/assets/defdee99-9bb1-4e76-ac7c-07c7786def00) |

The underlying `environments.prepare` path was proven live against Crabbox AWS in openclaw#143838 (build → capture → available → surplus retirement); this PR wires that method into the view.

The rebase onto openclaw#144037 preserved both source commits unchanged by range-diff. No duplicate navigation/catalog repair was included in this PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant