Post-install health probe + auto-revert to staged previous bundle #10

Open
opened 2025-12-15 00:37:10 +00:00 by 44r0n7 · 0 comments
Owner

Proposal

  • After apply finishes, run health checks: ping API status endpoint and serve a static asset to confirm frontend availability.
  • Keep prior bundle staged in /var/tmp/pikit-update// and, if health fails, automatically roll back to it (no full backups).
  • Record result in updater state and show a clear error/toast when revert happens.
  • Make revert opt-in via config/env to start, then default-on once stable.

Acceptance

  • Successful applies perform health probe and finish only if checks pass.
  • Failed probe triggers automatic rollback to the previous bundle and updates state accordingly.
  • Tests cover success, failed probe + revert, and missing previous bundle cases.
Proposal - After apply finishes, run health checks: ping API status endpoint and serve a static asset to confirm frontend availability. - Keep prior bundle staged in /var/tmp/pikit-update/<prev>/ and, if health fails, automatically roll back to it (no full backups). - Record result in updater state and show a clear error/toast when revert happens. - Make revert opt-in via config/env to start, then default-on once stable. Acceptance - Successful applies perform health probe and finish only if checks pass. - Failed probe triggers automatic rollback to the previous bundle and updates state accordingly. - Tests cover success, failed probe + revert, and missing previous bundle cases.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 44r0n7/pi-kit#10