Project Number Date
test_Tails_ISO_20619-wait-for-persistent-storage-check 4 23 Oct 2024, 21:42

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
Tails persistence 154 2 1 0 0 157 19 2 21 41:0.834 Failed
Tags: @product
Feature Tails persistence
As a Tails user I want to use a Persistent Storage
Tags: @product
2:12.452
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:30.960
And I update APT using apt 13.738
And I install "python3-behave" using apt 25.529
Then the Tails Persistent Storage behave tests pass 2.224
After features/support/hooks.rb:326 0.652
After features/support/hooks.rb:100 0.000
Tags: @product
48.741
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 12.950
When I log in to a new session without activating the Persistent Storage 22.774
Then Tails is running from USB drive "__internal" 0.570
And persistence is disabled 0.449
But a Tails persistence partition exists on USB drive "__internal" 11.996
After features/support/hooks.rb:326 2.248
After features/support/hooks.rb:100 0.000
Tags: @product
3:5.199
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.584
Then Tails is running from USB drive "__internal" 0.390
When I create a file in the Persistent directory 0.124
And I create a persistent partition with the default settings 23.640
Then the file I created was copied to the Persistent Storage 0.531
When I shutdown Tails and wait for the computer to power off 12.711
And I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:14.772
Then persistence for "Persistent" is active 0.371
And the file I created in the Persistent directory exists 0.072
After features/support/hooks.rb:326 0.946
After features/support/hooks.rb:100 0.008
Tags: @product
1:0.520
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 11.257
And the system is very low on memory 4.887
When I create a file in the Persistent directory 1.147
When I try to create a persistent partition 24.917
Then The Persistent Storage app shows the error message "Not enough memory to create Persistent Storage" 0.286
When I close the Persistent Storage app 2.901
And I free up some memory 1.488
And I create a persistent partition with the default settings 13.399
Then the file I created was copied to the Persistent Storage 0.234
After features/support/hooks.rb:326 1.591
After features/support/hooks.rb:100 0.000
Tags: @product
2:47.803
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.498
Then Tails is running from USB drive "__internal" 0.348
And all tps features are active 2.278
And all persistent directories have safe access rights 2.644
When I disable the first tps feature 5.998
Then all tps features but the first one are active 2.028
And I shutdown Tails and wait for the computer to power off 15.519
And I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:6.106
Then all tps features but the first one are active 2.380
After features/support/hooks.rb:326 0.909
After features/support/hooks.rb:100 0.008
Tags: @product
18.730
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.388
Then persistence for "Persistent" is active 0.073
And I create a file in the Persistent directory 0.195
Then the file I created was copied to the Persistent Storage 0.077
When I disable the first tps feature 5.525
Then persistence for "Persistent" is not active 0.140
And the Persistent directory does not exist 0.046
When I enable the first tps feature 3.142
Then persistence for "Persistent" is active 0.063
And the file I created in the Persistent directory exists 0.075
After features/support/hooks.rb:326 1.433
After features/support/hooks.rb:100 0.000
Tags: @product
19.008
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.248
Then persistence for "Persistent" is active 0.152
When I create a file in the Persistent directory 0.097
And I disable the first tps feature 5.694
And I delete the data of the Persistent Folder feature 3.753
Then the file I created does not exist on the Persistent Storage 0.063
After features/support/hooks.rb:326 0.855
After features/support/hooks.rb:100 0.000
Tags: @product
1:9.972
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 12.482
And the network is plugged 0.130
And Tor is ready 20.302
And I take note of which tps features are available 0.612
When I write some files expected to persist 1.397
And I shutdown Tails and wait for the computer to power off 10.734
# 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.313
After features/support/hooks.rb:326 0.111
After features/support/hooks.rb:100 0.000
Tags: @product
3:4.394
Before features/support/hooks.rb:269 0.003
Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in 9.289
And the network is plugged 0.098
And Tor is ready 17.348
And I add a wired DHCP NetworkManager connection called "persistent-con-current" 0.226
And I shutdown Tails and wait for the computer to power off 10.590
Given I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:5.804
And I capture all network traffic 0.014
And the network is plugged 0.071
And Tor is ready 20.372
And I switch to the "persistent-con-current" NetworkManager connection 0.331
And the 1st network device has a spoofed MAC address configured 0.104
And no network device leaked the real MAC address 0.141
After features/support/hooks.rb:326 0.715
After features/support/hooks.rb:100 0.117
Tags: @product
1:0.760
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 12.868
And I enable persistence creation in Tails Greeter 1.143
And I log in to a new session expecting no warning about the Persistent Storage not being activated 23.368
Then I create a persistent partition with the default settings using the wizard that was already open 23.379
After features/support/hooks.rb:326 1.589
After features/support/hooks.rb:100 0.000
Tags: @product
5:5.008
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 12.766
When I enable persistence 37.682
Then no persistent Greeter options were restored 14.662
When I set all Greeter options to non-default values 29.809
And I log in to a new session in German (de) after having activated the Persistent Storage 54.521
Then all Greeter options are set to non-default values 0.626
When I cold reboot the computer 7.609
And the computer reboots Tails 1:1.151
Given I enable persistence 33.500
Then persistent Greeter options were restored 14.908
When I log in to a new session after having activated the Persistent Storage 37.210
Then all Greeter options are set to non-default values 0.558
After features/support/hooks.rb:326 1.678
After features/support/hooks.rb:100 0.015
Tags: @product
3:30.039
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.153
# 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.392
And I shutdown Tails and wait for the computer to power off 12.460
Then I start Tails from USB drive "__internal" with network unplugged and I login with the changed persistence passphrase 2:0.985
And I change the passphrase of the Persistent Storage back to the original 31.047
After features/support/hooks.rb:326 2.283
After features/support/hooks.rb:100 0.007
Tags: @product
1:5.344
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 14.213
And I log in to a new session without activating the Persistent Storage 20.535
Then persistence is disabled 0.308
But a Tails persistence partition exists on USB drive "__internal" 10.504
And all notifications have disappeared 13.255
When I delete the persistent partition 6.045
Then there is no persistence partition on USB drive "__internal" 0.482
After features/support/hooks.rb:326 0.944
After features/support/hooks.rb:100 0.000
Tags: @product
2:23.827
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.478
When I write some dotfile expected to persist 0.050
And I shutdown Tails and wait for the computer to power off 8.544
And I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:5.299
Then the expected persistent dotfile is present in the filesystem 0.455
After features/support/hooks.rb:326 0.699
After features/support/hooks.rb:100 0.007
Tags: @product
1:54.245
Before features/support/hooks.rb:269 0.003
Given I have started Tails without network from a USB drive with a persistent partition and stopped at Tails Greeter's login screen 22.524
And I create a symlink "/home/amnesia/Persistent" to "/etc" 0.086
When I try to enable persistence 0.266
Then the Welcome Screen tells me that the Persistent Folder feature couldn't be activated 30.089
When I log in to a new session after having activated the Persistent Storage 43.332
And all notifications have disappeared 9.302
Then the Persistent Storage settings tell me that the Persistent Folder feature couldn't be activated 4.129
And all tps features are enabled 2.584
And all tps features but the first one are active 1.930
After features/support/hooks.rb:326 1.608
After features/support/hooks.rb:100 0.000
Tags: @product
6:21.255
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:44.187
And I enable persistence 47.056
And I log in to a new session after having activated the Persistent Storage 45.386
Then a Tails persistence partition with LUKS version 2 and argon2id exists on USB drive "__internal" 1.790
And persistence is enabled 2.833
After features/support/hooks.rb:326 1.319
After features/support/hooks.rb:100 0.000
Tags: @product
32.201
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.128
And I enable persistence but something goes wrong during the LUKS header upgrade 22.284
Then the Tails persistence partition on USB drive "__internal" still has LUKS version 1 0.788
After features/support/hooks.rb:326 0.824
After features/support/hooks.rb:100 0.000
Tags: @product
47.028
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.202
And I corrupt the Persistent Storage filesystem on USB drive "__internal" 5.287
When I enable persistence 29.820
Then the filesystem of the Persistent Storage was repaired 0.099
And persistence is successfully enabled 2.619
After features/support/hooks.rb:326 1.333
After features/support/hooks.rb:100 0.000
Tags: @product
39.473
Scenario Manual filesystem repair is successful
Before features/support/hooks.rb:269 0.005
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.964
And I corrupt the Persistent Storage filesystem on USB drive "__internal" in a way which can't be automatically repaired 5.910
When I try to enable persistence 0.487
Then the Welcome Screen tells me that filesystem errors were found on the Persistent Storage 5.861
When I repair the filesystem of the Persistent Storage 1.250
Then the Welcome Screen tells me that the filesystem was repaired successfully 0.236
And the filesystem of the Persistent Storage was repaired 0.072
When I close the filesystem repair dialog 1.270
Then persistence is successfully enabled 15.418
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.191

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

Boot log: https://jenkins.tails.boum.org/job/test_Tails_ISO_20619-wait-for-persistent-storage-check/4/artifact/build-artifacts/03:26:24_Manual_filesystem_repair_is_successful.file_content_var_log_boot.log

Screenshot: https://jenkins.tails.boum.org/job/test_Tails_ISO_20619-wait-for-persistent-storage-check/4/artifact/build-artifacts/03:26:24_Manual_filesystem_repair_is_successful.png

Video: https://jenkins.tails.boum.org/job/test_Tails_ISO_20619-wait-for-persistent-storage-check/4/artifact/build-artifacts/03:26:24_Manual_filesystem_repair_is_successful.mkv

Systemd journal: https://jenkins.tails.boum.org/job/test_Tails_ISO_20619-wait-for-persistent-storage-check/4/artifact/build-artifacts/03:26:24_Manual_filesystem_repair_is_successful.journal

After features/support/hooks.rb:100 0.000
Tags: @product @doc
1:41.468
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 9.158
And the Persistent Storage filesystem is corrupted beyond what e2fsck can repair 0.106
When I try to enable persistence 0.270
Then the Welcome Screen tells me that filesystem errors were found on the Persistent Storage 26.890
When I repair the filesystem of the Persistent Storage 1.672
Then the Welcome Screen tells me that it failed to repair the Persistent Storage 0.108
When I log in to a new session 37.168
And all notifications have disappeared 8.086
# 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.584
And the file "/var/lib/gdm3/post-greeter-whisperback.json" is empty 0.339
When I close the "whisperback" window 1.687
Then the Tor Browser starts 14.659
And "Tails - Recovering data from the Persistent Storage when it has file system errors" has loaded in the Tor Browser 0.736
After features/support/hooks.rb:326 2.948
After features/support/hooks.rb:100 0.000
Tags: @product @doc
1:13.356
Scenario Filesystem and I/O errors
Before features/support/hooks.rb:269 0.005
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.271
And I corrupt the Persistent Storage filesystem on USB drive "__internal" in a way which can't be automatically repaired 6.074
And Tails detects disk read failures on the boot device 1.633
When I try to enable persistence 0.429
Then the Welcome Screen tells me that my hardware is probably failing 5.409
When I log in to a new session 19.339
And all notifications have disappeared 6.933
Then the Tor Browser starts 25.264
cannot find TorBrowserNewTabButton.png on the screen (FindFailed)
./features/support/helpers/screen.rb:173:in `rescue in wait'
./features/support/helpers/screen.rb:157:in `wait'
./features/step_definitions/browser.rb:459:in `/^the Tor Browser (?:has started|starts)$/'
features/persistence.feature:213:in `Then the Tor Browser starts'
And "Tails - Recovering data from the Persistent Storage when it has file system errors" has loaded in the Tor Browser 0.000
After features/support/hooks.rb:326 6.175

SCENARIO FAILED: 'Filesystem and I/O errors' (at time 03:29:27)

Boot log: https://jenkins.tails.boum.org/job/test_Tails_ISO_20619-wait-for-persistent-storage-check/4/artifact/build-artifacts/03:29:27_Filesystem_and_I_O_errors.file_content_var_log_boot.log

Screenshot: https://jenkins.tails.boum.org/job/test_Tails_ISO_20619-wait-for-persistent-storage-check/4/artifact/build-artifacts/03:29:27_Filesystem_and_I_O_errors.png

Video: https://jenkins.tails.boum.org/job/test_Tails_ISO_20619-wait-for-persistent-storage-check/4/artifact/build-artifacts/03:29:27_Filesystem_and_I_O_errors.mkv

Systemd journal: https://jenkins.tails.boum.org/job/test_Tails_ISO_20619-wait-for-persistent-storage-check/4/artifact/build-artifacts/03:29:27_Filesystem_and_I_O_errors.journal

After features/support/hooks.rb:100 0.000