Merge lp://qastaging/~jamesodhunt/snappy/show-upgrade-details into lp://qastaging/~snappy-dev/snappy/snappy-moved-to-github

Proposed by James Hunt
Status: Work in progress
Proposed branch: lp://qastaging/~jamesodhunt/snappy/show-upgrade-details
Merge into: lp://qastaging/~snappy-dev/snappy/snappy-moved-to-github
Diff against target: 114 lines (+76/-0)
1 file modified
snappy/systemimage.go (+76/-0)
To merge this branch: bzr merge lp://qastaging/~jamesodhunt/snappy/show-upgrade-details
Reviewer Review Type Date Requested Status
Michael Vogt (community) Needs Fixing
Review via email: mp+249053@code.qastaging.launchpad.net

Description of the change

There will be a follow-on MP to perform additional checks in the upgrader, but given the issues we've had in this area, I think there is value in adding this basic runtime safety check.

* snappy/systemimage.go:
  - showUpgradeDetails(): Display basic debug showing planned upgrade details
    (displayed if SNAPPY_DEBUG=1).
  - checkUpgrade(): Basic test run unconditionally to ensure the upgrade
    revision applied is as expected.

To post a comment you must log in.
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for this branch.

I added some inline comments. I also get a test failure when I run this branch.

review: Needs Fixing
Revision history for this message
Michael Vogt (mvo) wrote :

I was thinking a little bit about this and I wonder if we could move the verification into cmd_update.go and essentially just verify that for all parts we install. It seems like if we want to verify, why be specific only to the "SystemImagePart". The other benefit this has is that we don't need to create a "SystemImageRepository" inside the "SystemImagePart" (which makes me a bit uneasy and feels like a layering violation). Just a idea.

Revision history for this message
James Hunt (jamesodhunt) :
Revision history for this message
Michael Vogt (mvo) :

Unmerged revisions

154. By James Hunt

* snappy/systemimage.go:
  - showUpgradeDetails(): Display basic debug showing planned upgrade details
    (displayed if SNAPPY_DEBUG=1).
  - checkUpgrade(): Basic test run unconditionally to ensure the upgrade
    revision applied is as expected.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches