Feature #15286
Feature #15281: Stack one single SquashFS diff when upgrading
Adapt automated test suite for the "one single SquashFS diff" upgrade scheme
50%
Description
- no IUK is present
- one IUK is present (make sure old one was removed)
- more than one IUK is present (make sure old ones were removed)
Related issues
Associated revisions
Test suite: adapt/add Gherkin scenarios for 1BigIUK.
No work on the steps have been done so far.
Refs: #15286
Add UDFs for 2.0~test, used by the automated test suite.
Refs: #15286
Test suite: implement missing steps for IUK scenarios.
Will-fix: #15286
History
#1 Updated by anonym almost 2 years ago
- % Done changed from 0 to 20
- Feature Branch set to feature/15281-1bigiuk
I've adapted the Gherkin scenarios (only) in the feature branch.
#2 Updated by anonym almost 2 years ago
- Status changed from Confirmed to In Progress
Applied in changeset d7a84c53c8973dc2096c1436b022911d08d7a79a.
#3 Updated by intrigeri almost 2 years ago
- Subject changed from Adapt automated test suite for 1BigIUK to Adapt automated test suite for the "one single SquashFS diff" upgrade scheme
#4 Updated by intrigeri almost 2 years ago
- Blocks Feature #15283: Implement the "one single SquashFS diff" scheme in Tails Upgrader added
#5 Updated by anonym almost 2 years ago
- Assignee changed from anonym to intrigeri
- % Done changed from 20 to 50
- QA Check set to Ready for QA
- Feature Branch changed from feature/15281-1bigiuk to feature/15281-single-squashfs-diff
I believe I've implemented the required scenarios and changes to current scenarios/steps, but I couldn't test these tests because the thing to be tested (#15283) is no done yet => have fun with TDD! :)
#6 Updated by intrigeri almost 2 years ago
- Assignee changed from intrigeri to anonym
- QA Check changed from Ready for QA to Dev Needed
#7 Updated by intrigeri almost 2 years ago
- Blocks Feature #15282: Add a prompt right before applying an IUK added
#8 Updated by intrigeri almost 2 years ago
My understanding is that the tests you wrote about deleting old SquashFS diffs currently mostly replicate the tests we already have in iuk.git, but they don't exercise the part that I'm actually concerned about, i.e. the behaviour that can only be exercised via full-blown integration testing: deleting old SquashFS diffs that are in use by the running system. I'm assuming that when we do "Tails is fooled to think a 2.1~test squashfs delta is installed", no such SquashFS delta is really union-mounted.
And when you'll implement that, as I had requested in 2763439ddf07cf0fb4eec091a40135e7dda1a67f on the (now gone) feature/11131-endless-upgrade branch, I'd like us to test that any old SquashFS diff is gone after shutting down the system: while we're using them we can merely unlink them but we cannot be sure they have really been deleted. Depending on fine details about our shutdown procedure (and in particular the crazy things we do for the memory erasure feature), such deletion might be effectively applied to the filesystem before it's unmounted cleanly, or things can go wrong, I dunno and I really would like to know and have a safeguard in case we ever break it (e.g. when migrating to overlayfs, which will force me to rewrite great parts of our shutdown procedure).
Minor nitpicking: please s/squashfs/SquashFS/ in various places :)
#9 Updated by intrigeri almost 2 years ago
The test suite needs to be updated wrt. #15282: FindFailed: TailsUpgraderOkButton.png
when the upgrader tells the IUK download is complete.
#10 Updated by intrigeri almost 2 years ago
- Target version changed from Tails_3.6 to Tails_3.7
#11 Updated by intrigeri over 1 year ago
- Target version changed from Tails_3.7 to Tails_3.8
#12 Updated by intrigeri over 1 year ago
- Target version changed from Tails_3.8 to Tails_3.10.1
#13 Updated by intrigeri over 1 year ago
- Target version changed from Tails_3.10.1 to Tails_3.11
#14 Updated by intrigeri about 1 year ago
- Blocks Feature #13241: Core work: Test suite maintenance added
#15 Updated by intrigeri about 1 year ago
- Assignee changed from anonym to CyrilBrulebois
As per summit meeting notes.
#16 Updated by intrigeri about 1 year ago
- Target version changed from Tails_3.11 to Tails_3.13
#17 Updated by intrigeri 12 months ago
- Blocks deleted (Feature #15282: Add a prompt right before applying an IUK)
#19 Updated by intrigeri 9 months ago
- Blocks Feature #16209: Core work: Foundations Team added
#20 Updated by intrigeri 9 months ago
- Blocks deleted (Feature #13241: Core work: Test suite maintenance)