Repository navigation
fix(e2e): recognize missing Codex after registry fallback - #150748
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 17, 2026, 8:22 AM ET / 12:22 UTC (Revision 6). ClawSweeper reviewWhat this changesUpdates the upgrade-test validator and regression coverage to recognize expected missing-Codex results from npm, ClawHub, or their ordered fallback history. Merge readiness✅ Ready for maintainer review This remains a useful, focused validation repair: current main still rejects the expected fallback history. The recorded full-scenario proof applies to the changed assertion logic, and no blocking patch defect was found. Priority: P2 Review scores
Verification
How this fits togetherThe upgrade survivor test installs a candidate over a published OpenClaw version and checks update results, preserved state, Gateway health, and Doctor recovery. Its result validator determines whether the scenario can proceed beyond an intentionally unavailable plugin. flowchart TD
A[Published OpenClaw installation] --> B[Update to candidate package]
C[Registry fixture with Codex unavailable] --> B
B --> D[Update result validator]
D --> E[Expected failure history and guidance]
D --> F[Reject unrelated failures]
E --> G[Gateway and deferred migration checks]
G --> H[Restore package and verify Doctor recovery]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +102, Other +17. Total +119 across 2 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep the existing validator as the single acceptance boundary, with narrowly named fixture exceptions and unchanged rejection of unrelated update failures. Do we have a high-confidence way to reproduce the issue? Yes, from source: the current-main validator rejects the updater's two-error fallback history because it requires exactly one npm error. This review did not execute tests. Is this the best way to solve the issue? Yes. Extending the existing scenario-specific validator matches the updater's established output while preserving the ordinary scenario's rejection rules. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c62c2d9db5e7. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
1e26b5b to
0623fff
Compare
…50748) * fix(e2e): recognize missing Codex after registry fallback * fix(test): retain expected missing-plugin fallback history
What Problem This Solves
The missing-plugin upgrade scenario rejects its expected Codex package-not-found result when npm falls back to ClawHub. The updater retains both the source transition and final failure in its outcome history.
User Impact
The upgrade test can continue checking retained migration inputs, Gateway service, and eventual Doctor recovery after its fixture deliberately makes Codex unavailable in both registries. Product behavior is unchanged.
Why This Change Was Made
Recognize the existing direct npm result, the exact direct ClawHub package404, or the exact ordered Codex npm-to-ClawHub transition followed by that final404. Every accepted row requires matching actionable recovery guidance. Independent core-update, sync, integrity, consent, pending-state, serving, and recovery checks remain intact.
Evidence
1e26b5b4, the identical retained517a5b44package (SHA-25625d0259d61cd504e9335bdd5eccc58c9630b2bdbc61a8f6c4cacd10939fd4803), and the published2026.9.2updater with manual restart. All 15 required phases passed: deferred migration state after update/startup/Doctor, real Gateway health/status and diagnostic export, then both binding migrations and config validation after Codex becomes available. No recovery fallback was needed. The downloaded survivor artifact10489808591was digest-verified (SHA-256bdb10cc0f3202509c0998224b471016d0474b48aa8fba5e610a254129dc03b2e) and its complete phase summary inspected. This resolves the review's pending full-scenario proof; the patch changes no persistent data model.no-map-spreadlint error inscripts/lib/ci-changed-node-test-plan.mts:770; that file has identical blob5622a49c386c717aa53bf5a7a3f5f749d9ae1ff9at the PR head and base. PR150767 owns its correction. Landing remains held for that fix, refreshed exact-head CI, and recovery of the native landing checkout after the host disk incident.