Repository navigation
test(update): align deferred readiness diagnostics - #170634
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8ee7a82e05
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| detail: | ||
| "Exit code: 1; Gateway readiness was not verified; service status: stopped. Check openclaw gateway status --deep.", |
There was a problem hiding this comment.
Isolate profile selectors before matching the diagnostic
When this test runs with an ambient non-default OPENCLAW_PROFILE or OPENCLAW_CONTAINER_HINT, updateFinalizeCommand preserves that selector in its service environment and formatCliCommand records advice such as openclaw --profile work gateway status --deep, so both newly hard-coded strings fail despite correct production behavior. Clear those selectors in the fixture or build the expected command through the formatter so the test remains isolated from the developer's environment.
AGENTS.md reference: AGENTS.md:L103-L103
Useful? React with 👍 / 👎.
## What Problem This Solves The deferred update-finalization test still expects the old “Gateway did not settle” message. Commit c6414d4 (openclaw#169280) deliberately improved that diagnostic with the observed service status and `openclaw gateway status --deep` guidance. The stale expectations fail in CI run 38345859459, job 115127314999. Align the exact recorded step detail and failure-fact message with the accepted diagnostic. The test continues checking failure status, all verification and recovery facts, configuration writes, closed update authority, and absence of a core update. Production behavior is unchanged. One test file changes, +8/−2 lines; production LOC, SQL calls, and T1 access are unchanged. No check is removed or relaxed. ## Evidence - Cached failing job reports exactly the two message differences this patch repairs; this is candidate CI evidence, not a claim of an executed scheduled-main failure. - One isolated Codex review: scoped-clean, no findings through P2. - Formatting, scoped lint (1 file, 258 rules), whitespace checks, and workflow actionlint pass. - Exact-candidate hosted proof [38347072165](https://github.com/openclaw/openclaw/actions/runs/38347072165/job/115130849404) passed both complete files with `pnpm test ... --maxWorkers=1 --reporter=verbose`: `src/cli/update-cli.deferred-completion.test.ts` 7/7 and `src/cli/update-cli/update-command-verification-report.test.ts` 3/3, no skips. Command wall time was 89.46 seconds (88.62 seconds in the runner). - This only aligns test expectations; it does not modify update, Doctor, migration, plugin, or service-lifecycle implementation. - Ordinary CI [38347073268](https://github.com/openclaw/openclaw/actions/runs/38347073268) finished successfully: 18 jobs passed and 29 were skipped. All selected lint, test-type, source-contract, boundary, and aggregate checks passed; Madge found zero cycles. T1 stayed 455→455, compatibility calls 9→9, and the dialect ratchet 0→0. Knip, production build, SDK diff, and the published-driver cell were unselected, so no fresh pass is claimed for them. This test-only message change adds no exports or dependencies. Candidate: `8ee7a82e0553368a09c857e7d9c13c19cde0a908`; base: `b85e058dde779bbf2558321ae64cac14e4217287`. Normal commit hooks passed.
## What Problem This Solves The deferred update-finalization test still expects the old “Gateway did not settle” message. Commit 6a86065 (#169280) deliberately improved that diagnostic with the observed service status and `openclaw gateway status --deep` guidance. The stale expectations fail in CI run 38345859459, job 115127314999. Align the exact recorded step detail and failure-fact message with the accepted diagnostic. The test continues checking failure status, all verification and recovery facts, configuration writes, closed update authority, and absence of a core update. Production behavior is unchanged. One test file changes, +8/−2 lines; production LOC, SQL calls, and T1 access are unchanged. No check is removed or relaxed. ## Evidence - Cached failing job reports exactly the two message differences this patch repairs; this is candidate CI evidence, not a claim of an executed scheduled-main failure. - One isolated Codex review: scoped-clean, no findings through P2. - Formatting, scoped lint (1 file, 258 rules), whitespace checks, and workflow actionlint pass. - Exact-candidate hosted proof [38347072165](https://github.com/openclaw/openclaw/actions/runs/38347072165/job/115130849404) passed both complete files with `pnpm test ... --maxWorkers=1 --reporter=verbose`: `src/cli/update-cli.deferred-completion.test.ts` 7/7 and `src/cli/update-cli/update-command-verification-report.test.ts` 3/3, no skips. Command wall time was 89.46 seconds (88.62 seconds in the runner). - This only aligns test expectations; it does not modify update, Doctor, migration, plugin, or service-lifecycle implementation. - Ordinary CI [38347073268](https://github.com/openclaw/openclaw/actions/runs/38347073268) finished successfully: 18 jobs passed and 29 were skipped. All selected lint, test-type, source-contract, boundary, and aggregate checks passed; Madge found zero cycles. T1 stayed 455→455, compatibility calls 9→9, and the dialect ratchet 0→0. Knip, production build, SDK diff, and the published-driver cell were unselected, so no fresh pass is claimed for them. This test-only message change adds no exports or dependencies. Candidate: `8ee7a82e0553368a09c857e7d9c13c19cde0a908`; base: `c7bbfd1281cd673a9a76e95acb43f33b4c7f3be6`. Normal commit hooks passed. (cherry picked from commit 78410c7)
What Problem This Solves
The deferred update-finalization test still expects the old “Gateway did not settle” message. Commit 6a86065 (#169280) deliberately improved that diagnostic with the observed service status and
openclaw gateway status --deepguidance. The stale expectations fail in CI run 38345859459, job 115127314999.Align the exact recorded step detail and failure-fact message with the accepted diagnostic. The test continues checking failure status, all verification and recovery facts, configuration writes, closed update authority, and absence of a core update. Production behavior is unchanged. One test file changes, +8/−2 lines; production LOC, SQL calls, and T1 access are unchanged. No check is removed or relaxed.
Evidence
pnpm test ... --maxWorkers=1 --reporter=verbose:src/cli/update-cli.deferred-completion.test.ts7/7 andsrc/cli/update-cli/update-command-verification-report.test.ts3/3, no skips. Command wall time was 89.46 seconds (88.62 seconds in the runner).Candidate:
8ee7a82e0553368a09c857e7d9c13c19cde0a908; base:c7bbfd1281cd673a9a76e95acb43f33b4c7f3be6. Normal commit hooks passed.