Repository navigation
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 changes before merge. Reviewed September 28, 2026, 4:01 AM ET / 08:01 UTC. ClawSweeper reviewWhat this changesThe branch changes package-update crash tests to check POSIX child exit results directly instead of importing a private SQLite reliability assertion. Merge readiness⛔ Needs changes before merge - 1 item remains Current main still imports a helper that is private, and no merged fix replaces this PR. The narrow test repair remains useful. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw's package-update tests kill isolated child processes at defined crash points, then check the activation journal and recovery behavior. Core test typechecking must resolve the suites' imports before those tests run. flowchart LR
A[Package update tests] --> B[Isolated child process]
B --> C[Forced crash result]
C --> D[Exit signal assertion]
D --> E[Journal recovery checks]
E --> F[Test result]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +2. Total +2 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the reliability assertion private while preserving the POSIX crash and recovery checks, then land the focused test repair with measured suite validation. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible: fetched main imports a non-exported helper, and the cited core test-type job failed. This review did not execute the typecheck. Is this the best way to solve the issue? Yes. Direct exit assertions in these POSIX-only fixtures remove the invalid import without reopening the helper's public surface or changing the crash points. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 69a2b5094bad. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Closing as superseded by main commit da2efd8, which restores the export needed by the package-update tests. The duplicate-fix check found that repair while this PR was being validated. This PR was not merged; dependent provider work will retain main's repair and drop these test edits. |
What Problem This Solves
Core test typechecking fails because two package-update suites import
assertReliabilityForcedExit, which is now private to the SQLite reliability process helper.User Impact
No production behavior changes. The existing package-update crash tests compile again and retain their exact POSIX termination, journal recovery, stdout receipt, and cleanup assertions.
Why This Change Was Made
The new package activation tests in #158491 landed after #159362 made the helper private. Their five call sites already run only on POSIX and self-terminate at precise synchronous crash points, so they can assert the expected SIGKILL result directly with Vitest. Reusing the IPC crash-worker launcher would change those crash points and stdout ownership; restoring an unnecessary export would undo the earlier cleanup.
Evidence
package-update-activation-journal.test.tsandpackage-update-activation-lifetime.test.ts.