Repository navigation
fix(test): retain native package command failure details - #155669
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. |
|
Codex review: needs maintainer review before merge. Reviewed September 25, 2026, 10:34 PM ET / September 26, 2026, 02:34 UTC (Revision 4). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherOpenClaw'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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +69. Total +69 across 2 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
* commit '01d961cc13b481f95ec3cc5b0c9e48bea7bf585f': fix(test): retain native package command failure details
|
Merged via squash.
|
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 ona99102804ebab7cc2e99687f7ca8ed34e576a9f1. The net change remains two test/support files, +78/-9.Evidence
Testbox Actions cancellation during external lease cleanup does not change the recorded application result.