Skip to content

test(update): align deferred readiness diagnostics - #170634

Merged
steipete merged 1 commit into
mainfrom
redmain/update-readiness-expectations
Oct 13, 2026
Merged

steipete merged 1 commit into
mainfrom
redmain/update-readiness-expectations

Conversation

@steipete

@steipete steipete commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

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 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 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.

@clawsweeper

clawsweeper Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T04:38:27.106453Z 8ee7a82 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: XS labels Oct 13, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +119 to +120
detail:
"Exit code: 1; Gateway readiness was not verified; service status: stopped. Check openclaw gateway status --deep.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@steipete
steipete merged commit 78410c7 into main Oct 13, 2026
107 of 110 checks passed
@steipete
steipete deleted the redmain/update-readiness-expectations branch October 13, 2026 04:45
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
## 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.
RomneyDa pushed a commit that referenced this pull request Oct 21, 2026
## 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant