Project Number Date
test_Tails_ISO_20634-greeter-tps-update-failure-fix 4 27 Oct 2024, 12:24

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
Tails persistence 156 1 0 0 0 157 20 1 21 40:51.119 Failed
Tags: @product
Feature Tails persistence
As a Tails user I want to use a Persistent Storage
Tags: @product
2:18.637
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:37.752
And I update APT using apt 13.112
And I install "python3-behave" using apt 25.551
Then the Tails Persistent Storage behave tests pass 2.221
After features/support/hooks.rb:326 0.601
After features/support/hooks.rb:100 0.000
Tags: @product
50.059
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.913
When I log in to a new session without activating the Persistent Storage 25.004
Then Tails is running from USB drive "__internal" 0.703
And persistence is disabled 0.331
But a Tails persistence partition exists on USB drive "__internal" 11.105
After features/support/hooks.rb:326 7.653
After features/support/hooks.rb:100 0.000
Tags: @product
3:10.953
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 13.646
Then Tails is running from USB drive "__internal" 0.561
When I create a file in the Persistent directory 0.195
And I create a persistent partition with the default settings 26.247
Then the file I created was copied to the Persistent Storage 0.427
When I shutdown Tails and wait for the computer to power off 12.804
And I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:16.604
Then persistence for "Persistent" is active 0.392
And the file I created in the Persistent directory exists 0.074
After features/support/hooks.rb:326 0.767
After features/support/hooks.rb:100 0.009
Tags: @product
1:8.538
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.010
And the system is very low on memory 5.763
When I create a file in the Persistent directory 1.592
When I try to create a persistent partition 30.079
Then The Persistent Storage app shows the error message "Not enough memory to create Persistent Storage" 0.165
When I close the Persistent Storage app 2.540
And I free up some memory 1.635
And I create a persistent partition with the default settings 14.468
Then the file I created was copied to the Persistent Storage 0.283
After features/support/hooks.rb:326 1.856
After features/support/hooks.rb:100 0.000
Tags: @product
2:43.532
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.355
Then Tails is running from USB drive "__internal" 0.464
And all tps features are active 2.774
And all persistent directories have safe access rights 2.845
When I disable the first tps feature 5.739
Then all tps features but the first one are active 2.122
And I shutdown Tails and wait for the computer to power off 10.478
And I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:6.243
Then all tps features but the first one are active 2.508
After features/support/hooks.rb:326 0.946
After features/support/hooks.rb:100 0.007
Tags: @product
20.640
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.047
Then persistence for "Persistent" is active 0.135
And I create a file in the Persistent directory 0.105
Then the file I created was copied to the Persistent Storage 0.101
When I disable the first tps feature 6.803
Then persistence for "Persistent" is not active 0.085
And the Persistent directory does not exist 0.052
When I enable the first tps feature 3.143
Then persistence for "Persistent" is active 0.086
And the file I created in the Persistent directory exists 0.080
After features/support/hooks.rb:326 1.095
After features/support/hooks.rb:100 0.000
Tags: @product
20.894
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 9.400
Then persistence for "Persistent" is active 0.201
When I create a file in the Persistent directory 0.157
And I disable the first tps feature 7.360
And I delete the data of the Persistent Folder feature 3.707
Then the file I created does not exist on the Persistent Storage 0.066
After features/support/hooks.rb:326 1.181
After features/support/hooks.rb:100 0.000
Tags: @product
1:1.944
Before features/support/hooks.rb:269 0.015
Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in 10.021
And the network is plugged 0.074
And Tor is ready 16.830
And I take note of which tps features are available 0.718
When I write some files expected to persist 1.477
And I shutdown Tails and wait for the computer to power off 8.427
# 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.394
After features/support/hooks.rb:326 0.133
After features/support/hooks.rb:100 0.000
Tags: @product
3:34.714
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.329
And the network is plugged 0.116
And Tor is ready 44.901
And I add a wired DHCP NetworkManager connection called "persistent-con-current" 0.241
And I shutdown Tails and wait for the computer to power off 8.599
Given I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:11.674
And I capture all network traffic 0.006
And the network is plugged 0.073
And Tor is ready 18.194
And I switch to the "persistent-con-current" NetworkManager connection 0.288
And the 1st network device has a spoofed MAC address configured 0.130
And no network device leaked the real MAC address 0.157
After features/support/hooks.rb:326 0.683
After features/support/hooks.rb:100 0.058
Tags: @product
1:0.510
Before features/support/hooks.rb:269 0.005
Given I have started Tails without network from a USB drive without a persistent partition and stopped at Tails Greeter's login screen 12.793
And I enable persistence creation in Tails Greeter 1.256
And I log in to a new session expecting no warning about the Persistent Storage not being activated 22.911
Then I create a persistent partition with the default settings using the wizard that was already open 23.549
After features/support/hooks.rb:326 1.557
After features/support/hooks.rb:100 0.000
Tags: @product
5:16.790
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 13.697
When I enable persistence 41.470
Then no persistent Greeter options were restored 14.317
When I set all Greeter options to non-default values 31.587
And I log in to a new session in German (de) after having activated the Persistent Storage 54.243
Then all Greeter options are set to non-default values 0.497
When I cold reboot the computer 7.391
And the computer reboots Tails 1:6.000
Given I enable persistence 33.205
Then persistent Greeter options were restored 14.719
When I log in to a new session after having activated the Persistent Storage 39.255
Then all Greeter options are set to non-default values 0.404
After features/support/hooks.rb:326 1.009
After features/support/hooks.rb:100 0.008
Tags: @product
3:36.082
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.257
# 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.393
And I shutdown Tails and wait for the computer to power off 14.961
Then I start Tails from USB drive "__internal" with network unplugged and I login with the changed persistence passphrase 2:4.131
And I change the passphrase of the Persistent Storage back to the original 31.338
After features/support/hooks.rb:326 2.925
After features/support/hooks.rb:100 0.008
Tags: @product
55.456
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.355
And I log in to a new session without activating the Persistent Storage 20.946
Then persistence is disabled 0.292
But a Tails persistence partition exists on USB drive "__internal" 7.203
And all notifications have disappeared 8.716
When I delete the persistent partition 7.550
Then there is no persistence partition on USB drive "__internal" 0.391
After features/support/hooks.rb:326 0.857
After features/support/hooks.rb:100 0.000
Tags: @product
2:27.336
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.212
When I write some dotfile expected to persist 0.164
And I shutdown Tails and wait for the computer to power off 10.832
And I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:5.709
Then the expected persistent dotfile is present in the filesystem 0.417
After features/support/hooks.rb:326 0.732
After features/support/hooks.rb:100 0.010
Tags: @product
1:47.630
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.668
And I create a symlink "/home/amnesia/Persistent" to "/etc" 0.108
When I try to enable persistence 0.253
Then the Welcome Screen tells me that the Persistent Folder feature couldn't be activated 30.228
When I log in to a new session after having activated the Persistent Storage 46.811
And all notifications have disappeared 8.128
Then the Persistent Storage settings tell me that the Persistent Folder feature couldn't be activated 4.033
And all tps features are enabled 5.140
And all tps features but the first one are active 3.258
After features/support/hooks.rb:326 1.410
After features/support/hooks.rb:100 0.000
Tags: @product
5:6.790
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 3:44.854
And I enable persistence 34.919
And I log in to a new session after having activated the Persistent Storage 44.541
Then a Tails persistence partition with LUKS version 2 and argon2id exists on USB drive "__internal" 1.659
And persistence is enabled 0.815
After features/support/hooks.rb:326 2.115
After features/support/hooks.rb:100 0.000
Tags: @product
29.554
Before features/support/hooks.rb:269 0.005
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.929
And I enable persistence but something goes wrong during the LUKS header upgrade 18.565
Then the Tails persistence partition on USB drive "__internal" still has LUKS version 1 1.059
After features/support/hooks.rb:326 1.203
After features/support/hooks.rb:100 0.000
Tags: @product
57.505
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.599
And I corrupt the Persistent Storage filesystem on USB drive "__internal" 15.617
When I enable persistence 31.847
Then the filesystem of the Persistent Storage was repaired 0.091
And persistence is successfully enabled 0.349
After features/support/hooks.rb:326 1.143
After features/support/hooks.rb:100 0.000
Tags: @product
37.348
Scenario Manual filesystem repair is successful
Before features/support/hooks.rb:269 0.004
Steps
Given I have started Tails without network from a USB drive with a persistent partition and stopped at Tails Greeter's login screen 8.562
And I corrupt the Persistent Storage filesystem on USB drive "__internal" in a way which can't be automatically repaired 5.212
When I try to enable persistence 0.452
Then the Welcome Screen tells me that filesystem errors were found on the Persistent Storage 6.003
When I repair the filesystem of the Persistent Storage 1.276
Then the Welcome Screen tells me that the filesystem was repaired successfully 0.295
And the filesystem of the Persistent Storage was repaired 0.101
When I close the filesystem repair dialog 1.240
Then persistence is successfully enabled 14.202
The
The Dogtail init script raised: SearchError: descendent of [application | Welcome to Tails!]: child with name="Your Persistent Storage is unlocked. Its content will be available until you shut down Tails." roleName='label'
STDOUT:

STDERR:

 (Dogtail::Failure)
./features/support/helpers/dogtail.rb:93:in `run'
./features/support/helpers/dogtail.rb:339:in `initialize'
./features/support/helpers/dogtail.rb:268:in `new'
./features/support/helpers/dogtail.rb:268:in `call_tree_api_method'
./features/support/helpers/dogtail.rb:276:in `child'
./features/step_definitions/usb.rb:695:in `/^persistence is successfully enabled$/'
features/persistence.feature:181:in `Then persistence is successfully enabled'
After features/support/hooks.rb:326 5.187

SCENARIO FAILED: 'Manual filesystem repair is successful' (at time 03:26:18)

Boot log: https://jenkins.tails.boum.org/job/test_Tails_ISO_20634-greeter-tps-update-failure-fix/4/artifact/build-artifacts/03:26:18_Manual_filesystem_repair_is_successful.file_content_var_log_boot.log

Screenshot: https://jenkins.tails.boum.org/job/test_Tails_ISO_20634-greeter-tps-update-failure-fix/4/artifact/build-artifacts/03:26:18_Manual_filesystem_repair_is_successful.png

Video: https://jenkins.tails.boum.org/job/test_Tails_ISO_20634-greeter-tps-update-failure-fix/4/artifact/build-artifacts/03:26:18_Manual_filesystem_repair_is_successful.mkv

Systemd journal: https://jenkins.tails.boum.org/job/test_Tails_ISO_20634-greeter-tps-update-failure-fix/4/artifact/build-artifacts/03:26:18_Manual_filesystem_repair_is_successful.journal

After features/support/hooks.rb:100 0.000
Tags: @product @doc
1:48.308
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 8.848
And the Persistent Storage filesystem is corrupted beyond what e2fsck can repair 0.109
When I try to enable persistence 0.305
Then the Welcome Screen tells me that filesystem errors were found on the Persistent Storage 31.262
When I repair the filesystem of the Persistent Storage 1.290
Then the Welcome Screen tells me that it failed to repair the Persistent Storage 0.080
When I log in to a new session 40.716
And all notifications have disappeared 8.157
# 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.374
And the file "/var/lib/gdm3/post-greeter-whisperback.json" is empty 0.332
When I close the "whisperback" window 1.610
Then the Tor Browser starts 14.308
And "Tails - Recovering data from the Persistent Storage when it has file system errors" has loaded in the Tor Browser 0.910
After features/support/hooks.rb:326 1.723
After features/support/hooks.rb:100 0.000
Tags: @product @doc
1:17.890
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.811
And I corrupt the Persistent Storage filesystem on USB drive "__internal" in a way which can't be automatically repaired 6.778
And Tails detects disk read failures on the boot device 1.617
When I try to enable persistence 0.534
Then the Welcome Screen tells me that my hardware is probably failing 5.995
When I log in to a new session 20.874
And all notifications have disappeared 9.710
Then the Tor Browser starts 21.732
And "Tails - Recovering data from the Persistent Storage when it has file system errors" has loaded in the Tor Browser 0.835
After features/support/hooks.rb:326 1.168
After features/support/hooks.rb:100 0.000