Project Number Date
test_Tails_ISO_20634-greeter-tps-upgrade-failure-fix 11 30 Oct 2024, 19:06

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 52:8.936 Failed
Tags: @product
Feature Tails persistence
As a Tails user I want to use a Persistent Storage
Tags: @product
2:22.450
Before features/support/hooks.rb:269 0.005
Given I have started Tails from DVD and logged in with an administration password and the network is connected 1:40.403
And I update APT using apt 14.275
And I install "python3-behave" using apt 25.587
Then the Tails Persistent Storage behave tests pass 2.185
After features/support/hooks.rb:326 1.297
After features/support/hooks.rb:100 0.000
Tags: @product
1:3.201
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 25.062
When I log in to a new session without activating the Persistent Storage 24.454
Then Tails is running from USB drive "__internal" 0.638
And persistence is disabled 0.591
But a Tails persistence partition exists on USB drive "__internal" 12.453
After features/support/hooks.rb:326 3.144
After features/support/hooks.rb:100 0.000
Tags: @product
3:28.041
Before features/support/hooks.rb:269 0.005
Given I have started Tails without network from a USB drive without a persistent partition and logged in 15.420
Then Tails is running from USB drive "__internal" 0.492
When I create a file in the Persistent directory 0.165
And I create a persistent partition with the default settings 24.251
Then the file I created was copied to the Persistent Storage 0.812
When I shutdown Tails and wait for the computer to power off 12.958
And I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:33.478
Then persistence for "Persistent" is active 0.385
And the file I created in the Persistent directory exists 0.076
After features/support/hooks.rb:326 0.705
After features/support/hooks.rb:100 0.015
Tags: @product
1:2.862
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 12.516
And the system is very low on memory 7.803
When I create a file in the Persistent directory 1.308
When I try to create a persistent partition 19.673
Then The Persistent Storage app shows the error message "Not enough memory to create Persistent Storage" 0.256
When I close the Persistent Storage app 2.556
And I free up some memory 1.312
And I create a persistent partition with the default settings 17.174
Then the file I created was copied to the Persistent Storage 0.259
After features/support/hooks.rb:326 1.390
After features/support/hooks.rb:100 0.000
Tags: @product
2:59.461
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 13.573
Then Tails is running from USB drive "__internal" 0.492
And all tps features are active 2.592
And all persistent directories have safe access rights 2.781
When I disable the first tps feature 7.969
Then all tps features but the first one are active 3.421
And I shutdown Tails and wait for the computer to power off 11.031
And I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:14.449
Then all tps features but the first one are active 3.149
After features/support/hooks.rb:326 0.992
After features/support/hooks.rb:100 0.009
Tags: @product
22.987
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 11.397
Then persistence for "Persistent" is active 0.106
And I create a file in the Persistent directory 0.125
Then the file I created was copied to the Persistent Storage 0.114
When I disable the first tps feature 7.780
Then persistence for "Persistent" is not active 0.088
And the Persistent directory does not exist 0.092
When I enable the first tps feature 3.126
Then persistence for "Persistent" is active 0.082
And the file I created in the Persistent directory exists 0.074
After features/support/hooks.rb:326 1.065
After features/support/hooks.rb:100 0.000
Tags: @product
25.782
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 13.092
Then persistence for "Persistent" is active 0.088
When I create a file in the Persistent directory 0.081
And I disable the first tps feature 7.926
And I delete the data of the Persistent Folder feature 4.535
Then the file I created does not exist on the Persistent Storage 0.058
After features/support/hooks.rb:326 1.464
After features/support/hooks.rb:100 0.000
Tags: @product
1:40.098
Before features/support/hooks.rb:269 0.010
Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in 11.883
And the network is plugged 0.084
And Tor is ready 51.510
And I take note of which tps features are available 0.721
When I write some files expected to persist 1.899
And I shutdown Tails and wait for the computer to power off 9.090
# 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.907
After features/support/hooks.rb:326 0.116
After features/support/hooks.rb:100 0.000
Tags: @product
3:19.596
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 11.279
And the network is plugged 0.086
And Tor is ready 25.896
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.284
Given I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:9.945
And I capture all network traffic 0.006
And the network is plugged 0.614
And Tor is ready 22.525
And I switch to the "persistent-con-current" NetworkManager connection 0.444
And the 1st network device has a spoofed MAC address configured 0.142
And no network device leaked the real MAC address 0.152
After features/support/hooks.rb:326 0.650
After features/support/hooks.rb:100 0.055
Tags: @product
1:7.628
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 15.767
And I enable persistence creation in Tails Greeter 1.147
And I log in to a new session expecting no warning about the Persistent Storage not being activated 24.138
Then I create a persistent partition with the default settings using the wizard that was already open 26.574
After features/support/hooks.rb:326 1.929
After features/support/hooks.rb:100 0.000
Tags: @product
5:44.985
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 29.692
When I enable persistence 46.694
Then no persistent Greeter options were restored 14.122
When I set all Greeter options to non-default values 26.625
And I log in to a new session in German (de) after having activated the Persistent Storage 1:0.145
Then all Greeter options are set to non-default values 0.707
When I cold reboot the computer 8.252
And the computer reboots Tails 1:5.092
Given I enable persistence 34.257
Then persistent Greeter options were restored 15.444
When I log in to a new session after having activated the Persistent Storage 43.231
Then all Greeter options are set to non-default values 0.718
After features/support/hooks.rb:326 0.824
After features/support/hooks.rb:100 0.009
Tags: @product
3:57.367
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.971
# 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 35.508
And I shutdown Tails and wait for the computer to power off 13.798
Then I start Tails from USB drive "__internal" with network unplugged and I login with the changed persistence passphrase 2:15.948
And I change the passphrase of the Persistent Storage back to the original 39.140
After features/support/hooks.rb:326 2.942
After features/support/hooks.rb:100 0.010
Tags: @product
1:1.464
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 12.266
And I log in to a new session without activating the Persistent Storage 22.192
Then persistence is disabled 0.359
But a Tails persistence partition exists on USB drive "__internal" 8.648
And all notifications have disappeared 9.801
When I delete the persistent partition 7.648
Then there is no persistence partition on USB drive "__internal" 0.548
After features/support/hooks.rb:326 0.874
After features/support/hooks.rb:100 0.000
Tags: @product
2:34.795
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 12.732
When I write some dotfile expected to persist 0.063
And I shutdown Tails and wait for the computer to power off 8.950
And I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:12.685
Then the expected persistent dotfile is present in the filesystem 0.363
After features/support/hooks.rb:326 0.873
After features/support/hooks.rb:100 0.010
Tags: @product
2:11.781
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.598
And I create a symlink "/home/amnesia/Persistent" to "/etc" 0.115
When I try to enable persistence 0.283
Then the Welcome Screen tells me that the Persistent Folder feature couldn't be activated 49.411
When I log in to a new session after having activated the Persistent Storage 53.852
And all notifications have disappeared 8.857
Then the Persistent Storage settings tell me that the Persistent Folder feature couldn't be activated 4.255
And all tps features are enabled 2.861
And all tps features but the first one are active 2.546
After features/support/hooks.rb:326 1.835
After features/support/hooks.rb:100 0.000
Tags: @product
9:24.069
Before features/support/hooks.rb:269 0.009
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 7:51.112
And I enable persistence 44.936
And I log in to a new session after having activated the Persistent Storage 46.935
Then a Tails persistence partition with LUKS version 2 and argon2id exists on USB drive "__internal" 0.955
And persistence is enabled 0.129
After features/support/hooks.rb:326 1.320
After features/support/hooks.rb:100 0.000
Tags: @product
2:26.558
Scenario LUKS backup header is restored if something goes wrong during upgrade
Before features/support/hooks.rb:269 0.007
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 25.789
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 5.508

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

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

After features/support/hooks.rb:100 0.000
Tags: @product
1:21.249
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 13.519
And I corrupt the Persistent Storage filesystem on USB drive "__internal" 10.140
When I enable persistence 57.050
Then the filesystem of the Persistent Storage was repaired 0.132
And persistence is successfully enabled 0.406
After features/support/hooks.rb:326 1.505
After features/support/hooks.rb:100 0.000
Tags: @product
1:15.713
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.687
And I corrupt the Persistent Storage filesystem on USB drive "__internal" in a way which can't be automatically repaired 14.128
When I try to enable persistence 0.444
Then the Welcome Screen tells me that filesystem errors were found on the Persistent Storage 40.337
When I repair the filesystem of the Persistent Storage 1.308
Then the Welcome Screen tells me that the filesystem was repaired successfully 4.350
And the filesystem of the Persistent Storage was repaired 2.588
When I close the filesystem repair dialog 1.289
Then persistence is successfully enabled 0.578
After features/support/hooks.rb:326 1.490
After features/support/hooks.rb:100 0.000
Tags: @product @doc
2:5.836
Before features/support/hooks.rb:269 0.013
Given I have started Tails without network from a USB drive with a persistent partition and stopped at Tails Greeter's login screen 11.599
And the Persistent Storage filesystem is corrupted beyond what e2fsck can repair 0.112
When I try to enable persistence 0.283
Then the Welcome Screen tells me that filesystem errors were found on the Persistent Storage 34.288
When I repair the filesystem of the Persistent Storage 1.413
Then the Welcome Screen tells me that it failed to repair the Persistent Storage 0.110
When I log in to a new session 47.258
And all notifications have disappeared 11.363
# 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.453
And the file "/var/lib/gdm3/post-greeter-whisperback.json" is empty 0.928
When I close the "whisperback" window 1.823
Then the Tor Browser starts 14.858
And "Tails - Recovering data from the Persistent Storage when it has file system errors" has loaded in the Tor Browser 1.340
After features/support/hooks.rb:326 5.723
After features/support/hooks.rb:100 0.000
Tags: @product @doc
2:13.004
Before features/support/hooks.rb:269 0.019
Given I have started Tails without network from a USB drive with a persistent partition and stopped at Tails Greeter's login screen 11.825
And I corrupt the Persistent Storage filesystem on USB drive "__internal" in a way which can't be automatically repaired 13.040
And Tails detects disk read failures on the boot device 1.892
When I try to enable persistence 0.490
Then the Welcome Screen tells me that my hardware is probably failing 25.406
When I log in to a new session 49.810
And all notifications have disappeared 9.826
Then the Tor Browser starts 19.523
And "Tails - Recovering data from the Persistent Storage when it has file system errors" has loaded in the Tor Browser 1.188
After features/support/hooks.rb:326 1.926
After features/support/hooks.rb:100 0.000