Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement version_downgrade_with_rollback test #1013

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

eaudetcobello
Copy link
Contributor

@eaudetcobello eaudetcobello commented Jan 28, 2025

It is possible that during a refresh something goes wrong and snapd decides it should rollback. To simulate this we should have a test as part of the upgrade suite that would do a refresh to the new revision.

This test will downgrade the snap through the channels, and at each downgrade, attempt a rollback.
Example of downgrading while rolling back through channels:
Channels: 1.32-classic/stable, 1.31-classic/stable
Segment 1: 1.32-classic/stable -> 1.31-classic/stable -> 1.32-classic/stable
Segment 2: 1.31-classic/stable -> 1.30-classic/stable -> 1.31-classic/stable

@eaudetcobello eaudetcobello requested a review from a team as a code owner January 28, 2025 00:11
@eaudetcobello eaudetcobello marked this pull request as draft January 28, 2025 03:32
@eaudetcobello eaudetcobello force-pushed the KU-2526/test-snap-rollback branch from 279671e to fb73e9c Compare January 28, 2025 17:09
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.

1 participant