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

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:13.409 Failed
Tags: @product
Feature Tails persistence
As a Tails user I want to use a Persistent Storage
Tags: @product
2:22.141
Before features/support/hooks.rb:269 0.004
Given I have started Tails from DVD and logged in with an administration password and the network is connected 1:41.441
And I update APT using apt 13.059
And I install "python3-behave" using apt 25.553
Then the Tails Persistent Storage behave tests pass 2.087
After features/support/hooks.rb:326 0.643
After features/support/hooks.rb:100 0.000
Tags: @product
54.316
Before features/support/hooks.rb:269 0.004
Given I have started Tails without network from a USB drive with a persistent partition and stopped at Tails Greeter's login screen 17.141
When I log in to a new session without activating the Persistent Storage 23.935
Then Tails is running from USB drive "__internal" 0.750
And persistence is disabled 0.415
But a Tails persistence partition exists on USB drive "__internal" 12.072
After features/support/hooks.rb:326 2.066
After features/support/hooks.rb:100 0.000
Tags: @product
3:19.928
Before features/support/hooks.rb:269 0.006
Given I have started Tails without network from a USB drive without a persistent partition and logged in 11.389
Then Tails is running from USB drive "__internal" 0.595
When I create a file in the Persistent directory 0.153
And I create a persistent partition with the default settings 25.205
Then the file I created was copied to the Persistent Storage 0.505
When I shutdown Tails and wait for the computer to power off 12.725
And I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:28.695
Then persistence for "Persistent" is active 0.589
And the file I created in the Persistent directory exists 0.069
After features/support/hooks.rb:326 0.809
After features/support/hooks.rb:100 0.009
Tags: @product
1:5.180
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 10.882
And the system is very low on memory 8.135
When I create a file in the Persistent directory 1.167
When I try to create a persistent partition 24.051
Then The Persistent Storage app shows the error message "Not enough memory to create Persistent Storage" 0.164
When I close the Persistent Storage app 2.660
And I free up some memory 2.241
And I create a persistent partition with the default settings 15.365
Then the file I created was copied to the Persistent Storage 0.512
After features/support/hooks.rb:326 1.643
After features/support/hooks.rb:100 0.000
Tags: @product
2:54.555
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 14.493
Then Tails is running from USB drive "__internal" 0.735
And all tps features are active 4.821
And all persistent directories have safe access rights 2.666
When I disable the first tps feature 5.704
Then all tps features but the first one are active 6.861
And I shutdown Tails and wait for the computer to power off 10.974
And I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:5.702
Then all tps features but the first one are active 2.593
After features/support/hooks.rb:326 0.753
After features/support/hooks.rb:100 0.010
Tags: @product
20.760
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.236
Then persistence for "Persistent" is active 0.171
And I create a file in the Persistent directory 0.447
Then the file I created was copied to the Persistent Storage 0.101
When I disable the first tps feature 6.042
Then persistence for "Persistent" is not active 0.131
And the Persistent directory does not exist 0.087
When I enable the first tps feature 3.360
Then persistence for "Persistent" is active 0.096
And the file I created in the Persistent directory exists 0.084
After features/support/hooks.rb:326 1.066
After features/support/hooks.rb:100 0.000
Tags: @product
22.948
Before features/support/hooks.rb:269 0.008
Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in 10.226
Then persistence for "Persistent" is active 0.512
When I create a file in the Persistent directory 0.092
And I disable the first tps feature 8.196
And I delete the data of the Persistent Folder feature 3.857
Then the file I created does not exist on the Persistent Storage 0.062
After features/support/hooks.rb:326 1.060
After features/support/hooks.rb:100 0.000
Tags: @product
1:5.568
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.067
And the network is plugged 0.111
And Tor is ready 19.739
And I take note of which tps features are available 0.604
When I write some files expected to persist 1.564
And I shutdown Tails and wait for the computer to power off 9.206
# 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" 24.275
After features/support/hooks.rb:326 0.127
After features/support/hooks.rb:100 0.000
Tags: @product
3:6.366
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 11.324
And the network is plugged 0.090
And Tor is ready 17.834
And I add a wired DHCP NetworkManager connection called "persistent-con-current" 0.262
And I shutdown Tails and wait for the computer to power off 9.052
Given I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:7.339
And I capture all network traffic 0.016
And the network is plugged 0.080
And Tor is ready 19.792
And I switch to the "persistent-con-current" NetworkManager connection 0.327
And the 1st network device has a spoofed MAC address configured 0.095
And no network device leaked the real MAC address 0.148
After features/support/hooks.rb:326 0.584
After features/support/hooks.rb:100 0.073
Tags: @product
1:7.305
Before features/support/hooks.rb:269 0.004
Given I have started Tails without network from a USB drive without a persistent partition and stopped at Tails Greeter's login screen 20.308
And I enable persistence creation in Tails Greeter 1.249
And I log in to a new session expecting no warning about the Persistent Storage not being activated 22.057
Then I create a persistent partition with the default settings using the wizard that was already open 23.690
After features/support/hooks.rb:326 1.737
After features/support/hooks.rb:100 0.000
Tags: @product
5:23.182
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 13.757
When I enable persistence 40.224
Then no persistent Greeter options were restored 14.153
When I set all Greeter options to non-default values 25.725
And I log in to a new session in German (de) after having activated the Persistent Storage 55.379
Then all Greeter options are set to non-default values 0.652
When I cold reboot the computer 7.651
And the computer reboots Tails 1:18.408
Given I enable persistence 32.962
Then persistent Greeter options were restored 15.005
When I log in to a new session after having activated the Persistent Storage 38.911
Then all Greeter options are set to non-default values 0.348
After features/support/hooks.rb:326 1.481
After features/support/hooks.rb:100 0.008
Tags: @product
4:1.379
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.689
# 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 39.936
And I shutdown Tails and wait for the computer to power off 13.050
Then I start Tails from USB drive "__internal" with network unplugged and I login with the changed persistence passphrase 2:19.555
And I change the passphrase of the Persistent Storage back to the original 38.147
After features/support/hooks.rb:326 2.036
After features/support/hooks.rb:100 0.010
Tags: @product
1:6.859
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.872
And I log in to a new session without activating the Persistent Storage 24.312
Then persistence is disabled 0.312
But a Tails persistence partition exists on USB drive "__internal" 12.063
And all notifications have disappeared 13.354
When I delete the persistent partition 6.472
Then there is no persistence partition on USB drive "__internal" 0.470
After features/support/hooks.rb:326 1.143
After features/support/hooks.rb:100 0.000
Tags: @product
2:24.764
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 9.722
When I write some dotfile expected to persist 0.184
And I shutdown Tails and wait for the computer to power off 8.801
And I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:5.651
Then the expected persistent dotfile is present in the filesystem 0.404
After features/support/hooks.rb:326 0.844
After features/support/hooks.rb:100 0.007
Tags: @product
1:44.788
Before features/support/hooks.rb:269 0.004
Given I have started Tails without network from a USB drive with a persistent partition and stopped at Tails Greeter's login screen 9.954
And I create a symlink "/home/amnesia/Persistent" to "/etc" 0.167
When I try to enable persistence 0.316
Then the Welcome Screen tells me that the Persistent Folder feature couldn't be activated 30.905
When I log in to a new session after having activated the Persistent Storage 43.674
And all notifications have disappeared 9.871
Then the Persistent Storage settings tell me that the Persistent Folder feature couldn't be activated 5.126
And all tps features are enabled 2.498
And all tps features but the first one are active 2.273
After features/support/hooks.rb:326 1.115
After features/support/hooks.rb:100 0.000
Tags: @product
6:9.061
Before features/support/hooks.rb:269 0.004
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 4:45.641
And I enable persistence 33.060
And I log in to a new session after having activated the Persistent Storage 48.222
Then a Tails persistence partition with LUKS version 2 and argon2id exists on USB drive "__internal" 1.989
And persistence is enabled 0.147
After features/support/hooks.rb:326 1.670
After features/support/hooks.rb:100 0.000
Tags: @product
2:14.288
Scenario LUKS backup header is restored if something goes wrong during upgrade
Before features/support/hooks.rb:269 0.004
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 13.520
And I enable persistence but something goes wrong during the LUKS header upgrade 2:0.768
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.961

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

Boot log: https://jenkins.tails.boum.org/job/test_Tails_ISO_20634-greeter-tps-upgrade-failure-fix/9/artifact/build-artifacts/03:33:46_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/9/artifact/build-artifacts/03:33:46_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/9/artifact/build-artifacts/03:33:46_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/9/artifact/build-artifacts/03:33:46_LUKS_backup_header_is_restored_if_something_goes_wrong_during_upgrade.journal

After features/support/hooks.rb:100 0.000
Tags: @product
45.601
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 8.896
And I corrupt the Persistent Storage filesystem on USB drive "__internal" 6.024
When I enable persistence 30.182
Then the filesystem of the Persistent Storage was repaired 0.093
And persistence is successfully enabled 0.404
After features/support/hooks.rb:326 1.095
After features/support/hooks.rb:100 0.000
Tags: @product
51.948
Before features/support/hooks.rb:269 0.008
Given I have started Tails without network from a USB drive with a persistent partition and stopped at Tails Greeter's login screen 10.801
And I corrupt the Persistent Storage filesystem on USB drive "__internal" in a way which can't be automatically repaired 7.221
When I try to enable persistence 0.493
Then the Welcome Screen tells me that filesystem errors were found on the Persistent Storage 25.667
When I repair the filesystem of the Persistent Storage 3.909
Then the Welcome Screen tells me that the filesystem was repaired successfully 0.402
And the filesystem of the Persistent Storage was repaired 1.707
When I close the filesystem repair dialog 1.173
Then persistence is successfully enabled 0.571
After features/support/hooks.rb:326 1.174
After features/support/hooks.rb:100 0.000
Tags: @product @doc
1:53.466
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 8.943
And the Persistent Storage filesystem is corrupted beyond what e2fsck can repair 0.169
When I try to enable persistence 0.330
Then the Welcome Screen tells me that filesystem errors were found on the Persistent Storage 31.311
When I repair the filesystem of the Persistent Storage 1.267
Then the Welcome Screen tells me that it failed to repair the Persistent Storage 4.183
When I log in to a new session 39.404
And all notifications have disappeared 7.451
# 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" 1.145
And the file "/var/lib/gdm3/post-greeter-whisperback.json" is empty 0.242
When I close the "whisperback" window 1.524
Then the Tor Browser starts 16.645
And "Tails - Recovering data from the Persistent Storage when it has file system errors" has loaded in the Tor Browser 0.847
After features/support/hooks.rb:326 1.349
After features/support/hooks.rb:100 0.000
Tags: @product @doc
1:58.996
Before features/support/hooks.rb:269 0.004
Given I have started Tails without network from a USB drive with a persistent partition and stopped at Tails Greeter's login screen 9.209
And I corrupt the Persistent Storage filesystem on USB drive "__internal" in a way which can't be automatically repaired 8.890
And Tails detects disk read failures on the boot device 0.592
When I try to enable persistence 0.452
Then the Welcome Screen tells me that my hardware is probably failing 20.462
When I log in to a new session 52.995
And all notifications have disappeared 8.051
Then the Tor Browser starts 17.630
And "Tails - Recovering data from the Persistent Storage when it has file system errors" has loaded in the Tor Browser 0.711
After features/support/hooks.rb:326 1.982
After features/support/hooks.rb:100 0.000