Project

General

Profile

Feature #15286

Feature #15281: Stack one single SquashFS diff when upgrading

Adapt automated test suite for the "one single SquashFS diff" upgrade scheme

Added by anonym over 1 year ago. Updated 5 months ago.

Status:
In Progress
Priority:
Normal
Assignee:
-
Category:
Test suite
Target version:
Start date:
02/05/2018
Due date:
% Done:

50%

Feature Branch:
feature/15281-single-squashfs-diff
Type of work:
Code
Blueprint:
Starter:
Affected tool:

Description

We need scenarios for installing an IUK when:
  • 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

Blocks Tails - Feature #15283: Implement the "one single SquashFS diff" scheme in Tails Upgrader In Progress 03/07/2014
Blocks Tails - Feature #16209: Core work: Foundations Team Confirmed 03/22/2019

Associated revisions

Revision d7a84c53 (diff)
Added by anonym over 1 year ago

Test suite: adapt/add Gherkin scenarios for 1BigIUK.

No work on the steps have been done so far.

Refs: #15286

Revision 6f739c73 (diff)
Added by anonym over 1 year ago

Add UDFs for 2.0~test, used by the automated test suite.

Refs: #15286

Revision c578c42f (diff)
Added by anonym over 1 year ago

Test suite: implement missing steps for IUK scenarios.

Will-fix: #15286

History

#1 Updated by anonym over 1 year 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 over 1 year ago

  • Status changed from Confirmed to In Progress

#3 Updated by intrigeri over 1 year 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 over 1 year ago

  • Blocks Feature #15283: Implement the "one single SquashFS diff" scheme in Tails Upgrader added

#5 Updated by anonym over 1 year 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 over 1 year ago

  • Assignee changed from intrigeri to anonym
  • QA Check changed from Ready for QA to Dev Needed

#7 Updated by intrigeri over 1 year ago

  • Blocks Feature #15282: Add a prompt right before applying an IUK added

#8 Updated by intrigeri over 1 year 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 over 1 year 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 over 1 year 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 about 1 year ago

  • Target version changed from Tails_3.8 to Tails_3.10.1

#13 Updated by intrigeri about 1 year ago

  • Target version changed from Tails_3.10.1 to Tails_3.11

#14 Updated by intrigeri 11 months ago

#15 Updated by intrigeri 11 months ago

  • Assignee changed from anonym to CyrilBrulebois

As per summit meeting notes.

#16 Updated by intrigeri 9 months ago

  • Target version changed from Tails_3.11 to Tails_3.13

#17 Updated by intrigeri 9 months ago

  • Blocks deleted (Feature #15282: Add a prompt right before applying an IUK)

#18 Updated by intrigeri 7 months ago

  • Target version changed from Tails_3.13 to 2019

#19 Updated by intrigeri 5 months ago

#20 Updated by intrigeri 5 months ago

#21 Updated by intrigeri 5 months ago

  • Assignee deleted (CyrilBrulebois)

Also available in: Atom PDF