Repository navigation
fix(update): show progress while staging Git runtimes - #155671
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. |
Record runtime staging through the existing update step owner, including elapsed time, heartbeat and public failure identity before cleanup. Keep the original staging error and activation boundary intact. Adapt the runtime-staging step approach from #153407 to the current updater. This adds observability; it does not change copy performance. Co-authored-by: Dallin Romney <[email protected]>
68dd059 to
128429c
Compare
|
Codex review: needs maintainer review before merge. Reviewed September 23, 2026, 5:49 AM ET / 09:49 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR adds progress, elapsed-time reporting, heartbeat coverage, and public failure identification while Git updates stage their built runtime. Merge readiness✅ Ready for maintainer review The change remains useful on current main, and no blocking defect was found. The added test-cost evidence resolves the previous review’s required follow-up. Priority: P2 Review scores
Verification
How this fits togetherThe Git updater builds and validates a candidate before staging its runtime files for activation. The existing update-step lifecycle supplies progress and failure information to the CLI and update records. flowchart TD
A[Git update request] --> B[Build and validate candidate]
B --> C[Stage runtime files]
C --> D[Update progress and heartbeat]
C --> E{Staging succeeds}
E -->|Yes| F[Activate prepared runtime]
E -->|No| G[Report failure and clean staging]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +8, Tests +90. Total +98 across 5 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep runtime staging within the existing update-step lifecycle while preserving installed-updater ownership and activation ordering. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main awaits runtime staging outside the step lifecycle, so that phase emits no step progress or heartbeat of its own. No runtime reproduction was executed in this read-only review. Is this the best way to solve the issue? Yes. Reusing the existing step owner is a narrow repair that preserves staging behavior and avoids a second progress or heartbeat implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 99cfeee8405b. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* fix(update): show progress while staging Git runtimes Record runtime staging through the existing update step owner, including elapsed time, heartbeat and public failure identity before cleanup. Keep the original staging error and activation boundary intact. Adapt the runtime-staging step approach from openclaw#153407 to the current updater. This adds observability; it does not change copy performance. Co-authored-by: Dallin Romney <[email protected]> * style(update): format runtime staging regression fixture --------- Co-authored-by: Dallin Romney <[email protected]>
What Problem This Solves
Git source updates can appear idle while preparing the built runtime because that filesystem phase has no recorded update step.
User Impact
Operators see runtime staging start, elapsed time, and a public failure reason before cleanup. The step keeps the update heartbeat active while the old Gateway serves. This improves visibility; it does not reduce copying time.
The running installed updater owns this behavior. An older driver selecting this candidate gains the new progress on later updates driven by the repaired build.
Why This Change Was Made
Wrap runtime staging with the existing step lifecycle and register
preflight-runtime-stageas a public identity. Preserve the original error and activation/cleanup ordering.The staging tests use the candidate fixture's existing registration pattern, retaining real activation Doctor execution and inspection-root cleanup.
Adapts the runtime-staging instrumentation from #153407 by @RomneyDa. That broader PR is uneditable and conflicts with the current updater API; its CLI/status changes remain separate.
Evidence
e355e8f86a70295b5ee0631465c499fa9972a769.pnpm test <file> --maxWorkers=1(Node 24.19.0, pnpm 12.4.0, Linux x86_64, 4 CPUs): candidate activation, 51/51 in 26.890 s command wall; public failures, 18/18 in 20.141 s command wall. Existing CI reported 33.631 s and 0.001 s respectively as summed, millisecond-rounded test-case times in shared two-worker shards; these CI figures exclude import/worker startup and are not focused wall measurements.[email protected]→ installed2026.9.5withlegacy-operator-state. Update/manual restart, migrations, cron retention before later Doctor, state survival, health/provider/plugin checks, no-op update, and backup rollback passed. Package artifact; tarball SHA-256:9c2b92a8070ceb3c87791520bb3f51030bca59a3a47b6b3f54060e714e4c8f2b.Compatibility limit:
firstHopPostCorewas unavailable (No complete exit snapshot), so the original child terminal outcome is unknown; the captured publishedupdate.jsonwas redacted/truncated at 16 KiB. This establishes package-driver compatibility, not a captured child terminal receipt, first-time Git conversion, live-supervisor behavior, or latency improvement.Follow-up: the unchanged browser relay coexistence fixture has a
getFreePort→ listener race observed in prior CI. Its formerly failing case passed in the current run.