Skip to content

feat: Stop canisters before upgrading#418

Open
adamspofford-dfinity wants to merge 6 commits intomainfrom
spofford/stop-for-upgrade
Open

feat: Stop canisters before upgrading#418
adamspofford-dfinity wants to merge 6 commits intomainfrom
spofford/stop-for-upgrade

Conversation

@adamspofford-dfinity
Copy link
Contributor

No description provided.

@adamspofford-dfinity adamspofford-dfinity requested a review from a team as a code owner March 10, 2026 17:31
@lwshang
Copy link
Contributor

lwshang commented Mar 10, 2026

The audit error is fixed in #419

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the canister install/upgrade flow so that canisters are stopped before an upgrade and started again afterward, and documents the behavior change in the changelog.

Changes:

  • Wrap install execution with stop/start behavior for Upgrade mode.
  • Add StopCanister / StartCanister error variants and warning log for failed restarts.
  • Update CHANGELOG.md to reflect the new upgrade behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
crates/icp-cli/src/operations/install.rs Adds stop/start wrapper around install operations during upgrades and introduces new error variants.
CHANGELOG.md Documents the new stop-before-upgrade/start-after behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants