Project Number Date
test_Tails_ISO_20634-greeter-tps-upgrade-failure-fix 8 29 Oct 2024, 02:43

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
Tails persistence 155 1 1 0 0 157 20 1 21 45:16.264 Failed
Tags: @product
Feature Tails persistence
As a Tails user I want to use a Persistent Storage
Tags: @product
2:20.519
Before features/support/hooks.rb:269 0.007
Given I have started Tails from DVD and logged in with an administration password and the network is connected 1:39.143
And I update APT using apt 13.546
And I install "python3-behave" using apt 25.330
Then the Tails Persistent Storage behave tests pass 2.498
After features/support/hooks.rb:326 0.841
After features/support/hooks.rb:100 0.000
Tags: @product
42.951
Before features/support/hooks.rb:269 0.006
Given I have started Tails without network from a USB drive with a persistent partition and stopped at Tails Greeter's login screen 11.843
When I log in to a new session without activating the Persistent Storage 22.386
Then Tails is running from USB drive "__internal" 0.531
And persistence is disabled 0.545
But a Tails persistence partition exists on USB drive "__internal" 7.645
After features/support/hooks.rb:326 0.788
After features/support/hooks.rb:100 0.000
Tags: @product
3:28.055
Before features/support/hooks.rb:269 0.004
Given I have started Tails without network from a USB drive without a persistent partition and logged in 18.925
Then Tails is running from USB drive "__internal" 0.604
When I create a file in the Persistent directory 0.141
And I create a persistent partition with the default settings 26.470
Then the file I created was copied to the Persistent Storage 0.662
When I shutdown Tails and wait for the computer to power off 15.070
And I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:25.536
Then persistence for "Persistent" is active 0.505
And the file I created in the Persistent directory exists 0.138
After features/support/hooks.rb:326 0.933
After features/support/hooks.rb:100 0.009
Tags: @product
1:4.893
Before features/support/hooks.rb:269 0.004
Given I have started Tails without network from a USB drive without a persistent partition and logged in 11.500
And the system is very low on memory 4.968
When I create a file in the Persistent directory 1.499
When I try to create a persistent partition 27.629
Then The Persistent Storage app shows the error message "Not enough memory to create Persistent Storage" 0.323
When I close the Persistent Storage app 3.013
And I free up some memory 1.747
And I create a persistent partition with the default settings 13.934
Then the file I created was copied to the Persistent Storage 0.275
After features/support/hooks.rb:326 1.881
After features/support/hooks.rb:100 0.000
Tags: @product
2:53.030
Before features/support/hooks.rb:269 0.007
Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in 12.094
Then Tails is running from USB drive "__internal" 1.375
And all tps features are active 3.005
And all persistent directories have safe access rights 2.584
When I disable the first tps feature 6.376
Then all tps features but the first one are active 2.260
And I shutdown Tails and wait for the computer to power off 10.992
And I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:12.000
Then all tps features but the first one are active 2.341
After features/support/hooks.rb:326 1.058
After features/support/hooks.rb:100 0.011
Tags: @product
21.640
Before features/support/hooks.rb:269 0.007
Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in 10.202
Then persistence for "Persistent" is active 1.293
And I create a file in the Persistent directory 0.070
Then the file I created was copied to the Persistent Storage 0.067
When I disable the first tps feature 6.295
Then persistence for "Persistent" is not active 0.083
And the Persistent directory does not exist 0.057
When I enable the first tps feature 3.423
Then persistence for "Persistent" is active 0.078
And the file I created in the Persistent directory exists 0.067
After features/support/hooks.rb:326 0.847
After features/support/hooks.rb:100 0.000
Tags: @product
22.380
Before features/support/hooks.rb:269 0.005
Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in 10.301
Then persistence for "Persistent" is active 0.623
When I create a file in the Persistent directory 0.123
And I disable the first tps feature 7.309
And I delete the data of the Persistent Folder feature 3.961
Then the file I created does not exist on the Persistent Storage 0.061
After features/support/hooks.rb:326 0.984
After features/support/hooks.rb:100 0.000
Tags: @product
1:7.037
Before features/support/hooks.rb:269 0.007
Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in 10.167
And the network is plugged 0.118
And Tor is ready 20.002
And I take note of which tps features are available 0.567
When I write some files expected to persist 1.672
And I shutdown Tails and wait for the computer to power off 8.876
# XXX: The next step succeeds (and the --debug output confirms that it's actually looking for the files) but will fail in a subsequent scenario restoring the same snapshot. This exactly what we want, but why does it work? What is guestfs's behaviour when qcow2 internal snapshots are involved?
Then only the expected files are present on the persistence partition on USB drive "__internal" 25.632
After features/support/hooks.rb:326 0.114
After features/support/hooks.rb:100 0.000
Tags: @product
3:15.894
Before features/support/hooks.rb:269 0.005
Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in 10.289
And the network is plugged 0.353
And Tor is ready 21.099
And I add a wired DHCP NetworkManager connection called "persistent-con-current" 0.217
And I shutdown Tails and wait for the computer to power off 8.714
Given I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:15.664
And I capture all network traffic 0.013
And the network is plugged 0.104
And Tor is ready 18.829
And I switch to the "persistent-con-current" NetworkManager connection 0.375
And the 1st network device has a spoofed MAC address configured 0.105
And no network device leaked the real MAC address 0.128
After features/support/hooks.rb:326 1.029
After features/support/hooks.rb:100 0.049
Tags: @product
1:3.265
Before features/support/hooks.rb:269 0.006
Given I have started Tails without network from a USB drive without a persistent partition and stopped at Tails Greeter's login screen 17.633
And I enable persistence creation in Tails Greeter 1.215
And I log in to a new session expecting no warning about the Persistent Storage not being activated 23.181
Then I create a persistent partition with the default settings using the wizard that was already open 21.234
After features/support/hooks.rb:326 1.493
After features/support/hooks.rb:100 0.000
Tags: @product
5:11.903
Before features/support/hooks.rb:269 0.006
Given I have started Tails without network from a USB drive with a persistent partition and stopped at Tails Greeter's login screen 12.003
When I enable persistence 38.983
Then no persistent Greeter options were restored 14.568
When I set all Greeter options to non-default values 27.188
And I log in to a new session in German (de) after having activated the Persistent Storage 55.233
Then all Greeter options are set to non-default values 0.360
When I cold reboot the computer 9.860
And the computer reboots Tails 1:1.625
Given I enable persistence 32.124
Then persistent Greeter options were restored 15.205
When I log in to a new session after having activated the Persistent Storage 44.176
Then all Greeter options are set to non-default values 0.574
After features/support/hooks.rb:326 1.532
After features/support/hooks.rb:100 0.012
Tags: @product
3:50.688
Before features/support/hooks.rb:269 0.007
Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in 10.943
# Note that if anything fails after the passphrase was changed and
# before it's changed back below, subsequent scenarios might fail
# because the Persistent Storage doesn't have the expected passphrase.
When I change the passphrase of the Persistent Storage 33.850
And I shutdown Tails and wait for the computer to power off 12.450
Then I start Tails from USB drive "__internal" with network unplugged and I login with the changed persistence passphrase 2:12.305
And I change the passphrase of the Persistent Storage back to the original 41.139
After features/support/hooks.rb:326 2.243
After features/support/hooks.rb:100 0.007
Tags: @product
1:0.410
Before features/support/hooks.rb:269 0.005
Given I have started Tails without network from a USB drive with a persistent partition and stopped at Tails Greeter's login screen 11.065
And I log in to a new session without activating the Persistent Storage 21.960
Then persistence is disabled 0.368
But a Tails persistence partition exists on USB drive "__internal" 10.179
And all notifications have disappeared 10.663
When I delete the persistent partition 5.697
Then there is no persistence partition on USB drive "__internal" 0.474
After features/support/hooks.rb:326 0.838
After features/support/hooks.rb:100 0.000
Tags: @product
2:30.718
Before features/support/hooks.rb:269 0.004
Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in 10.349
When I write some dotfile expected to persist 0.611
And I shutdown Tails and wait for the computer to power off 9.526
And I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:9.669
Then the expected persistent dotfile is present in the filesystem 0.561
After features/support/hooks.rb:326 1.016
After features/support/hooks.rb:100 0.009
Tags: @product
1:49.899
Before features/support/hooks.rb:269 0.006
Given I have started Tails without network from a USB drive with a persistent partition and stopped at Tails Greeter's login screen 10.881
And I create a symlink "/home/amnesia/Persistent" to "/etc" 0.142
When I try to enable persistence 0.399
Then the Welcome Screen tells me that the Persistent Folder feature couldn't be activated 31.440
When I log in to a new session after having activated the Persistent Storage 50.166
And all notifications have disappeared 7.962
Then the Persistent Storage settings tell me that the Persistent Folder feature couldn't be activated 4.342
And all tps features are enabled 2.344
And all tps features but the first one are active 2.218
After features/support/hooks.rb:326 1.450
After features/support/hooks.rb:100 0.000
Tags: @product
6:38.724
Before features/support/hooks.rb:269 0.006
Given I have started Tails without network from a USB drive with a LUKS 1 persistent partition and stopped at Tails Greeter's login screen 5:14.929
And I enable persistence 34.045
And I log in to a new session after having activated the Persistent Storage 46.654
Then a Tails persistence partition with LUKS version 2 and argon2id exists on USB drive "__internal" 3.002
And persistence is enabled 0.093
After features/support/hooks.rb:326 1.159
After features/support/hooks.rb:100 0.000
Tags: @product
2:9.862
Scenario LUKS backup header is restored if something goes wrong during upgrade
Before features/support/hooks.rb:269 0.005
Steps
Given I have started Tails without network from a USB drive with a LUKS 1 persistent partition and stopped at Tails Greeter's login screen 9.101
And I enable persistence but something goes wrong during the LUKS header upgrade 2:0.760
try_for() timeout expired (Timeout::Error)
./features/support/helpers/misc_helpers.rb:145:in `rescue in try_for'
./features/support/helpers/misc_helpers.rb:51:in `try_for'
./features/step_definitions/usb.rb:683:in `/^persistence is successfully enabled$/'
./features/step_definitions/usb.rb:702:in `/^I enable persistence( with the changed passphrase)?$/'
./features/step_definitions/usb.rb:712:in `/^I enable persistence but something goes wrong during the LUKS header upgrade$/'
features/persistence.feature:162:in `And I enable persistence but something goes wrong during the LUKS header upgrade'
Then the Tails persistence partition on USB drive "__internal" still has LUKS version 1 0.000
After features/support/hooks.rb:326 4.988

SCENARIO FAILED: 'LUKS backup header is restored if something goes wrong during upgrade' (at time 03:34:49)

Boot log: https://jenkins.tails.boum.org/job/test_Tails_ISO_20634-greeter-tps-upgrade-failure-fix/8/artifact/build-artifacts/03:34:49_LUKS_backup_header_is_restored_if_something_goes_wrong_during_upgrade.file_content_var_log_boot.log

Screenshot: https://jenkins.tails.boum.org/job/test_Tails_ISO_20634-greeter-tps-upgrade-failure-fix/8/artifact/build-artifacts/03:34:49_LUKS_backup_header_is_restored_if_something_goes_wrong_during_upgrade.png

Video: https://jenkins.tails.boum.org/job/test_Tails_ISO_20634-greeter-tps-upgrade-failure-fix/8/artifact/build-artifacts/03:34:49_LUKS_backup_header_is_restored_if_something_goes_wrong_during_upgrade.mkv

Systemd journal: https://jenkins.tails.boum.org/job/test_Tails_ISO_20634-greeter-tps-upgrade-failure-fix/8/artifact/build-artifacts/03:34:49_LUKS_backup_header_is_restored_if_something_goes_wrong_during_upgrade.journal

After features/support/hooks.rb:100 0.000
Tags: @product
45.424
Before features/support/hooks.rb:269 0.005
Given I have started Tails without network from a USB drive with a persistent partition and stopped at Tails Greeter's login screen 9.093
And I corrupt the Persistent Storage filesystem on USB drive "__internal" 5.310
When I enable persistence 30.543
Then the filesystem of the Persistent Storage was repaired 0.094
And persistence is successfully enabled 0.381
After features/support/hooks.rb:326 0.994
After features/support/hooks.rb:100 0.000
Tags: @product
50.073
Before features/support/hooks.rb:269 0.006
Given I have started Tails without network from a USB drive with a persistent partition and stopped at Tails Greeter's login screen 9.158
And I corrupt the Persistent Storage filesystem on USB drive "__internal" in a way which can't be automatically repaired 6.532
When I try to enable persistence 0.586
Then the Welcome Screen tells me that filesystem errors were found on the Persistent Storage 24.229
When I repair the filesystem of the Persistent Storage 5.165
Then the Welcome Screen tells me that the filesystem was repaired successfully 1.402
And the filesystem of the Persistent Storage was repaired 1.264
When I close the filesystem repair dialog 1.248
Then persistence is successfully enabled 0.487
After features/support/hooks.rb:326 1.369
After features/support/hooks.rb:100 0.000
Tags: @product @doc
2:0.497
Before features/support/hooks.rb:269 0.006
Given I have started Tails without network from a USB drive with a persistent partition and stopped at Tails Greeter's login screen 9.478
And the Persistent Storage filesystem is corrupted beyond what e2fsck can repair 0.119
When I try to enable persistence 0.325
Then the Welcome Screen tells me that filesystem errors were found on the Persistent Storage 33.140
When I repair the filesystem of the Persistent Storage 1.804
Then the Welcome Screen tells me that it failed to repair the Persistent Storage 0.346
When I log in to a new session 48.052
And all notifications have disappeared 9.137
# Now both WhisperBack and Tor Browser has started at the same
# time, so we do not know which window is focused. The steps about
# Tor Browser care about that, but the ones about WhisperBack do
# not, so we first deal with WhisperBack and then kill it to
# ensure that Tor Browser is focused.
Then WhisperBack is prefilled for fsck with summary: "Failed to repair the file system of your Persistent Storage" 0.544
And the file "/var/lib/gdm3/post-greeter-whisperback.json" is empty 1.106
When I close the "whisperback" window 1.466
Then the Tor Browser starts 14.189
And "Tails - Recovering data from the Persistent Storage when it has file system errors" has loaded in the Tor Browser 0.787
After features/support/hooks.rb:326 2.200
After features/support/hooks.rb:100 0.000
Tags: @product @doc
1:48.393
Before features/support/hooks.rb:269 0.007
Given I have started Tails without network from a USB drive with a persistent partition and stopped at Tails Greeter's login screen 8.639
And I corrupt the Persistent Storage filesystem on USB drive "__internal" in a way which can't be automatically repaired 5.671
And Tails detects disk read failures on the boot device 1.710
When I try to enable persistence 0.426
Then the Welcome Screen tells me that my hardware is probably failing 21.183
When I log in to a new session 41.203
And all notifications have disappeared 7.924
Then the Tor Browser starts 20.958
And "Tails - Recovering data from the Persistent Storage when it has file system errors" has loaded in the Tor Browser 0.676
After features/support/hooks.rb:326 3.369
After features/support/hooks.rb:100 0.000