snappy-selftest: fake newer version for upgrade test
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Snappy |
High
|
Michael Vogt | ||
| | 15.04 |
High
|
Michael Vogt | ||
Bug Description
Once we made snappy-selftest capable of reboot tests (bug 1424583) and added reboot tests (bug 1424584), figure out how to fake a newer image to upgrade to, so that we can test the upgrader of the latest image. This does not necessarily need to involve some actual changes, just a new image revision and triggering the machinery to do a "null" upgrade.
See https:/
Related branches
- Snappy Developers: Pending requested 2015-05-08
-
Diff: 157 lines (+101/-9)5 files modifiedREADME (+2/-0)
tests/01_test_info (+1/-1)
tests/10_test_info_has_stuff (+1/-1)
tests/90_test_upgrade (+28/-7)
tests/91_test_upgrade_from_stable_image (+69/-0)
- Snappy Developers: Pending requested 2015-05-08
-
Diff: 470 lines (+360/-0) (has conflicts)21 files modifiedREADME (+2/-0)
debian/tests/control (+2/-0)
meta/package.yaml (+8/-0)
meta/readme.md (+3/-0)
meta/snappy-selftest.profile (+34/-0)
meta/snappy-selftest.seccomp (+1/-0)
snappy-selftest (+49/-0)
tests/01_test_info (+4/-0)
tests/02_test_versions (+7/-0)
tests/03_test_apt (+4/-0)
tests/04_test_install_hello (+7/-0)
tests/05_test_install_nonexistant (+5/-0)
tests/06_test_search_framework (+4/-0)
tests/07_test_install_framework (+21/-0)
tests/08_test_versions_has_framework (+4/-0)
tests/10_test_info_has_stuff (+5/-0)
tests/11_test_xkcd_listens (+15/-0)
tests/90_test_upgrade (+67/-0)
tests/91_test_upgrade_from_stable_image (+69/-0)
tests/framework (+46/-0)
tests/settings (+3/-0)
| Changed in snappy-ubuntu: | |
| status: | New → Triaged |
| importance: | Undecided → Wishlist |
| assignee: | nobody → Martin Pitt (pitti) |
| tags: | added: autopkgtest testsuite |
| Changed in snappy-ubuntu: | |
| status: | Triaged → In Progress |
| Changed in snappy-ubuntu: | |
| status: | In Progress → Triaged |
| James Hunt (jamesodhunt) wrote : | #1 |
| Martin Pitt (pitti) wrote : Re: [Bug 1424586] Re: snappy-selftest: fake newer version for upgrade test | #2 |
Hi James,
I mostly set this to wishlist because it's not a malfunction but an improvement. But I don't care much either way, if you want to interpret this as urgency and not as bug severity.
Am 16. März 2015 17:51:17 OEZ, schrieb James Hunt <email address hidden>:
>Hi Martin,
>
>Is this now wishlist simply due to other priorities, or a change in
>strategy for upgrade testing?
>
>--
>You received this bug notification because you are subscribed to the
>bug
>report.
>https:/
>
>Title:
> snappy-selftest: fake newer version for upgrade test
>
>To manage notifications about this bug go to:
>https:/
--
Diese Nachricht wurde von meinem Android-
| Changed in snappy-ubuntu: | |
| importance: | Wishlist → High |
| Martin Pitt (pitti) wrote : | #3 |
In the google doc, could you please describe how to modify the revision numbers for this to make sense and work? Thanks!
| Changed in snappy-ubuntu: | |
| status: | Triaged → Incomplete |
| Steve Langasek (vorlon) wrote : | #4 |
We don't want to fake the revision numbers here. Instead, we want to import the existing images onto a channel on a testing instance of the ubuntu-system-image server; synthesize a test upgrade of some kind; and upgrade from this, to ensure end-to-end testing of the upgrade support.
The google doc describes the manual tests we're doing today in the absence of support for this; it's not the way we should automate these tests going forward.
| Changed in snappy-ubuntu: | |
| status: | Incomplete → Triaged |
| Steve Langasek (vorlon) wrote : | #5 |
BTW, I have a list of test cases for system image updates which was written for the phone, and which have never been automated. Automatic generation of synthetic channels to use for testing is a very important part of this. I understand that Barry has some code in the system-image client test suite which should be reusable for this purpose.
| affects: | snappy-ubuntu → snappy |
| Michael Vogt (mvo) wrote : | #6 |
See lp:~mvo/snappy/selftest-upgrade-rollback for a implementation of this (not quite ready, needs some cleanup as its duplicating quite a bit of code right now).
| Changed in snappy: | |
| assignee: | Martin Pitt (pitti) → Michael Vogt (mvo) |
| status: | Triaged → Fix Released |
| Ricardo Salveti (rsalveti) wrote : | #7 |
Adding fix commited for 15.04.1 since we're not merging the selftests yet for 15.04 (but instead using the common branch for both rolling and 15.04). We should merge it as part of 15.04.2.


Hi Martin,
Is this now wishlist simply due to other priorities, or a change in strategy for upgrade testing?