Repository navigation
test(docs): expect dependency locking under release navigation - #144002
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. |
e7426f8 to
4f017ed
Compare
|
Codex review: needs maintainer review before merge. Reviewed September 10, 2026, 7:55 AM ET / 11:55 UTC. ClawSweeper reviewWhat this changesUpdates 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 Review scores
Verification
How this fits togetherThe 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
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +1. Total +1 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
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 Original stop diagnosis (retained for history): Landing stopped at exact-head CI for CI run 34473207141, job checks-node-compact-small-28, failed in 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 |
|
Merged via squash.
|
## 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 | | --- | --- | |  |  | | After: build dialog | | --- | |  | 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.
…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.
…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.
## 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 | | --- | --- | |  |  | | After: build dialog | | --- | |  | 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.
Problem
test/scripts/docs-sync-publish.test.tspins the Release & CI route list. #143977 movedgateway/security/dependency-lockingfrom Gateway & Ops into the Release process group indocs/docs.json, but the pinned list was not updated, sokeeps generated locale navigation aligned with English routesfails 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.