Skip to content

fix(test): retain native package command failure details - #155669

Merged
vincentkoc merged 3 commits into
mainfrom
fix/bundled-mcp-pack-failure-details
Sep 26, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
fix/bundled-mcp-pack-failure-details

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Native package-test failures can lose their exit status, signal or spawn error when stderr is present, leaving the CI failure hard to diagnose.

User Impact

Internal test diagnostics only. Failing package commands retain their native failure facts and both captured streams; successful commands still require exit status zero. No shipped packaging or runtime behavior changes.

Why This Change Was Made

Use one assertion helper for the shared tarball fixture and the six current MCP command checks. Preserve current main's MCP 1.9.0, subprocess and package-test budgets, and template-archive reuse.

The refresh preserves the original PR commit as an ancestor. The signed candidate and integration commits have the same tested tree, a43a4930d6a3211ce17eab358c6f957663574b72, based on a99102804ebab7cc2e99687f7ca8ed34e576a9f1. The net change remains two test/support files, +78/-9.

Evidence

  • Remote baseline and causal controls: original full MCP file 20/20. Restoring the old assertion behavior under the new caller signature makes both added diagnostic cases fail at their intended assertions, not on an import error; 20 unrelated cases were filtered.
  • That run's aggregate remains failed: its verifier searched Vitest's abbreviated JSON failure message. The hashed raw reports and full reporter output independently establish the intended missing native facts at 132:7 and missing status-seven diagnostic at 142:73. Completed baseline/red tests were retained, not replayed.
  • Missing-only continuation: full candidate 22/22, three selected generic tarball sibling cases pass with 98 unrelated cases filtered, and all 17 explicit two-path changed-check stages pass. Formatting and diff checks pass; source and 204 dependency-input pins were restored and verified. Both owned Testboxes completed.
  • One-worker full-file command: baseline 23.335s, candidate 23.107s. This is cost evidence, not a speedup claim. Candidate green covers cleanup, success/nonzero exits and combined native-error/stream diagnostics; no separate causal-red claim is made for the combined-stream assertion.
  • Fresh independent autoreview found no actionable P0-P2 findings. Current-head repository CI and a completed fresh trusted review remain required before landing.

Testbox Actions cancellation during external lease cleanup does not change the recorded application result.

@vincentkoc vincentkoc self-assigned this Sep 22, 2026
@clawsweeper

clawsweeper Bot commented Sep 22, 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.

@vincentkoc
vincentkoc marked this pull request as ready for review September 22, 2026 10:33
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Sep 22, 2026
@clawsweeper

clawsweeper Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 25, 2026, 10:34 PM ET / September 26, 2026, 02:34 UTC (Revision 4).

ClawSweeper review

What this changes

The branch gives package-tarball tests a shared native-command assertion that reports failure details and adds regression coverage for spawn errors, exit status, streams, and fixture cleanup.

Merge readiness

✅ Ready for maintainer review

Keep open. Current main still loses native failure details in these package-test assertions, and the refreshed branch resolves the conflict noted in the prior review. I found no actionable defect introduced by the patch.

Priority: P3
Reviewed head: 931eb07c0cb7930474395034cde74d3ca3666a3f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused patch has credible before-and-after Testbox evidence and no actionable introduced finding.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The changed package-test assertion is exercised by a real missing-command spawn and the package test's native-command flow. The PR's linked Testbox evidence reports controlled red diagnostics followed by 22/22 passing candidate cases on a tree matching this head; the outer Actions run was canceled during cleanup, and its logs were unavailable through the review proxy. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The changed package-test assertion is exercised by a real missing-command spawn and the package test's native-command flow. The PR's linked Testbox evidence reports controlled red diagnostics followed by 22/22 passing candidate cases on a tree matching this head; the outer Actions run was canceled during cleanup, and its logs were unavailable through the review proxy. No stored-data contract changes.
Evidence reviewed 7 items Current-main behavior: The shared fixture on current main chooses stderr before the spawn error message; when stderr exists, that assertion omits the native error, signal, and explicit status from its diagnostic.
Introduced assertion: The PR's shared assertion preserves status, signal, native error, stderr, and stdout while still requiring exit status zero. The verified test-merge result contains the same two-file change.
Regression coverage: The new cases exercise a real missing-command spawn through the fixture, verify cleanup, check zero and nonzero exits, and check combined native-error and stream diagnostics.
Findings None None.
Security None None.

How this fits together

OpenClaw's package tests build a tarball and run native pack, install, and integrity-check commands against it. Their assertions turn command results into CI failures that maintainers use to diagnose packaging problems.

flowchart LR
  A[Package test] --> B[Tarball fixture]
  B --> C[Native pack and install commands]
  C --> D[Command result]
  D --> E{Exit status zero?}
  E -->|Yes| F[Continue package checks]
  E -->|No| G[CI failure with native details]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +69. Total +69 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 78 9 +69
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 78 9 +69

Review metrics

Metric Value Why it matters
Package-test cost 20 to 22 cases; reported one-worker wall time 23.335s to 23.107s The added diagnostic coverage has a measured file-level cost without an observed increase in this comparison.

Technical review

Best possible solution:

Keep the package-test assertion centralized so a failing native command leaves one CI error with the facts needed to diagnose it, without changing shipped packaging behavior.

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

Yes. Current main's stderr-first assertion can hide a simultaneous native spawn error; the PR reports a controlled failing case, though this read-only review did not execute it locally.

Is this the best way to solve the issue?

Yes. A shared fixture assertion covers the changed package-command checks while preserving their exit-zero requirement and existing time budgets.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 9bb0e452d9bb.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The changed package-test assertion is exercised by a real missing-command spawn and the package test's native-command flow. The PR's linked Testbox evidence reports controlled red diagnostics followed by 22/22 passing candidate cases on a tree matching this head; the outer Actions run was canceled during cleanup, and its logs were unavailable through the review proxy. No stored-data contract changes.

Label justifications:

  • P3: This is a focused improvement to internal CI diagnostics with no shipped runtime change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The changed package-test assertion is exercised by a real missing-command spawn and the package test's native-command flow. The PR's linked Testbox evidence reports controlled red diagnostics followed by 22/22 passing candidate cases on a tree matching this head; the outer Actions run was canceled during cleanup, and its logs were unavailable through the review proxy. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed package-test assertion is exercised by a real missing-command spawn and the package test's native-command flow. The PR's linked Testbox evidence reports controlled red diagnostics followed by 22/22 passing candidate cases on a tree matching this head; the outer Actions run was canceled during cleanup, and its logs were unavailable through the review proxy. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; 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.

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-22T10:49:09.831Z sha 01d961c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-22T11:20:37.034Z sha 01d961c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-24T06:06:03.178Z sha 01d961c :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 22, 2026
* commit '01d961cc13b481f95ec3cc5b0c9e48bea7bf585f':
  fix(test): retain native package command failure details
@vincentkoc
vincentkoc requested a review from a team as a code owner September 26, 2026 02:27
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: discord Channel integration: discord channel: googlechat Channel integration: googlechat channel: imessage Channel integration: imessage channel: line Channel integration: line channel: matrix Channel integration: matrix channel: mattermost Channel integration: mattermost channel: msteams Channel integration: msteams channel: nextcloud-talk Channel integration: nextcloud-talk channel: nostr Channel integration: nostr channel: slack Channel integration: slack channel: telegram Channel integration: telegram channel: tlon Channel integration: tlon app: android App: android app: ios App: ios labels Sep 26, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android app: ios App: ios app: linux app: macos App: macos app: wearos App: wearos app: web-ui App: web-ui channel: a2a channel: buzz channel: discord Channel integration: discord channel: feishu Channel integration: feishu channel: googlechat Channel integration: googlechat channel: imessage Channel integration: imessage channel: irc channel: line Channel integration: line channel: matrix Channel integration: matrix channel: mattermost Channel integration: mattermost channel: msteams Channel integration: msteams channel: nextcloud-talk Channel integration: nextcloud-talk channel: nostr Channel integration: nostr channel: qa-channel Channel integration: qa-channel channel: slack Channel integration: slack channel: telegram Channel integration: telegram channel: tlon Channel integration: tlon channel: twitch Channel integration: twitch docker Docker and sandbox tooling docs Improvements or additions to documentation extensions: acpx extensions: active-memory extensions: admin-http-rpc extensions: agentsapi extensions: anthropic extensions: arcee extensions: baseten Extension: baseten extensions: byteplus extensions: cerebras extensions: clawrouter Extension: clawrouter extensions: clickclack extensions: cloudflare-ai-gateway extensions: codex extensions: cohere extensions: comfy extensions: copilot extensions: copilot-proxy Extension: copilot-proxy extensions: crabbox extensions: deepgram extensions: deepinfra extensions: deepseek extensions: device-pair extensions: diagnostics-otel Extension: diagnostics-otel extensions: diagnostics-prometheus extensions: document-extract extensions: duckduckgo extensions: featherless extensions: fish-audio Extension: fish-audio extensions: gmi extensions: huggingface extensions: image-generation-core extensions: inworld Extension: inworld extensions: kilocode extensions: kimi-coding extensions: litellm extensions: llama-cpp extensions: llm-task Extension: llm-task extensions: lmstudio extensions: lobster Extension: lobster extensions: longcat LongCat provider plugin extensions: memory-core Extension: memory-core extensions: memory-lancedb Extension: memory-lancedb extensions: memory-wiki extensions: meta Extension: meta extensions: minimax extensions: onepassword 1Password plugin extensions: openai extensions: qa-lab gateway Gateway runtime maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: azure-speech Azure Speech plugin plugin: beam Beam session sharing plugin plugin: bonjour Plugin integration: bonjour plugin: code-mode-quickjs plugin: cua-computer plugin: facetime FaceTime plugin plugin: file-transfer plugin: geolocation Geolocation plugin (IP to coarse city) plugin: google-meet plugin: imap plugin: linux-node plugin: logbook Logbook automatic work journal plugin plugin: migrate-claude plugin: migrate-hermes plugin: mxc plugin: session-share plugin: team-reports plugin: typesafe plugin: workboard rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. security Security documentation size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant