Project Number Date
test_Tails_ISO_20634-greeter-tps-update-failure-fix 7 31 Oct 2024, 12:36

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
Tails persistence 150 3 4 0 0 157 18 3 21 1:11:14.239 Failed
Tags: @product
Feature Tails persistence
As a Tails user I want to use a Persistent Storage
Tags: @product
20:35.380
Scenario Tails Persistent Storage behave tests
Before features/support/hooks.rb:269 0.006
Steps
Given I have started Tails from DVD and logged in with an administration password and the network is connected 20:35.380
execution expired (RemoteShell::Timeout)
./features/support/helpers/remote_shell.rb:56:in `read'
./features/support/helpers/remote_shell.rb:56:in `block (3 levels) in communicate'
./features/support/helpers/remote_shell.rb:55:in `block (2 levels) in communicate'
./features/support/helpers/remote_shell.rb:42:in `loop'
./features/support/helpers/remote_shell.rb:42:in `block in communicate'
./features/support/helpers/remote_shell.rb:37:in `communicate'
./features/support/helpers/remote_shell.rb:174:in `execute'
./features/support/helpers/remote_shell.rb:185:in `initialize'
./features/support/helpers/dogtail.rb:80:in `new'
./features/support/helpers/dogtail.rb:80:in `run'
./features/support/helpers/dogtail.rb:70:in `initialize'
./features/step_definitions/common_steps.rb:712:in `new'
./features/step_definitions/common_steps.rb:712:in `/^all notifications have disappeared$/'
./features/step_definitions/snapshots.rb:153:in `block in reach_checkpoint'
./features/step_definitions/snapshots.rb:150:in `each'
./features/step_definitions/snapshots.rb:150:in `reach_checkpoint'
./features/step_definitions/snapshots.rb:137:in `reach_checkpoint'
./features/step_definitions/snapshots.rb:173:in `/^I\ have\ started\ Tails\ from\ DVD\ and\ logged\ in\ with\ an\ administration\ password\ and\ the\ network\ is\ connected$/'
features/persistence.feature:7:in `Given I have started Tails from DVD and logged in with an administration password and the network is connected'
And I update APT using apt 0.000
And I install "python3-behave" using apt 0.000
Then the Tails Persistent Storage behave tests pass 0.000
After features/support/hooks.rb:326 11.015

SCENARIO FAILED: 'Tails Persistent Storage behave tests' (at time 03:24:55)

Screenshot: https://jenkins.tails.boum.org/job/test_Tails_ISO_20634-greeter-tps-update-failure-fix/7/artifact/build-artifacts/03:24:55_Tails_Persistent_Storage_behave_tests.png

Video: https://jenkins.tails.boum.org/job/test_Tails_ISO_20634-greeter-tps-update-failure-fix/7/artifact/build-artifacts/03:24:55_Tails_Persistent_Storage_behave_tests.mkv

Systemd journal: https://jenkins.tails.boum.org/job/test_Tails_ISO_20634-greeter-tps-update-failure-fix/7/artifact/build-artifacts/03:24:55_Tails_Persistent_Storage_behave_tests.journal

After features/support/hooks.rb:100 0.000
Tags: @product
1:1.862
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 26.520
When I log in to a new session without activating the Persistent Storage 25.661
Then Tails is running from USB drive "__internal" 0.506
And persistence is disabled 0.312
But a Tails persistence partition exists on USB drive "__internal" 8.861
After features/support/hooks.rb:326 1.395
After features/support/hooks.rb:100 0.000
Tags: @product
3:56.763
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 54.226
Then Tails is running from USB drive "__internal" 0.718
When I create a file in the Persistent directory 0.153
And I create a persistent partition with the default settings 23.921
Then the file I created was copied to the Persistent Storage 0.544
When I shutdown Tails and wait for the computer to power off 13.846
And I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:22.768
Then persistence for "Persistent" is active 0.457
And the file I created in the Persistent directory exists 0.125
After features/support/hooks.rb:326 0.883
After features/support/hooks.rb:100 0.010
Tags: @product
1:6.063
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.562
And the system is very low on memory 4.904
When I create a file in the Persistent directory 0.708
When I try to create a persistent partition 28.859
Then The Persistent Storage app shows the error message "Not enough memory to create Persistent Storage" 0.193
When I close the Persistent Storage app 2.635
And I free up some memory 1.718
And I create a persistent partition with the default settings 14.177
Then the file I created was copied to the Persistent Storage 0.304
After features/support/hooks.rb:326 1.680
After features/support/hooks.rb:100 0.000
Tags: @product
2:46.256
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.100
Then Tails is running from USB drive "__internal" 0.587
And all tps features are active 2.598
And all persistent directories have safe access rights 2.541
When I disable the first tps feature 5.730
Then all tps features but the first one are active 2.211
And I shutdown Tails and wait for the computer to power off 9.054
And I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:11.036
Then all tps features but the first one are active 2.395
After features/support/hooks.rb:326 1.008
After features/support/hooks.rb:100 0.063
Tags: @product
20.212
Before features/support/hooks.rb:269 0.011
Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in 10.232
Then persistence for "Persistent" is active 0.117
And I create a file in the Persistent directory 0.080
Then the file I created was copied to the Persistent Storage 0.093
When I disable the first tps feature 6.277
Then persistence for "Persistent" is not active 0.077
And the Persistent directory does not exist 0.064
When I enable the first tps feature 3.097
Then persistence for "Persistent" is active 0.086
And the file I created in the Persistent directory exists 0.084
After features/support/hooks.rb:326 0.730
After features/support/hooks.rb:100 0.000
Tags: @product
21.217
Before features/support/hooks.rb:269 0.006
Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in 10.662
Then persistence for "Persistent" is active 0.122
When I create a file in the Persistent directory 0.094
And I disable the first tps feature 6.214
And I delete the data of the Persistent Folder feature 4.051
Then the file I created does not exist on the Persistent Storage 0.071
After features/support/hooks.rb:326 0.976
After features/support/hooks.rb:100 0.000
Tags: @product
1:6.402
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.953
And the network is plugged 0.095
And Tor is ready 20.767
And I take note of which tps features are available 0.612
When I write some files expected to persist 1.561
And I shutdown Tails and wait for the computer to power off 8.388
# 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.023
After features/support/hooks.rb:326 0.144
After features/support/hooks.rb:100 0.000
Tags: @product
3:14.530
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.450
And the network is plugged 0.086
And Tor is ready 20.980
And I add a wired DHCP NetworkManager connection called "persistent-con-current" 0.206
And I shutdown Tails and wait for the computer to power off 9.111
Given I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:13.231
And I capture all network traffic 0.009
And the network is plugged 0.095
And Tor is ready 19.634
And I switch to the "persistent-con-current" NetworkManager connection 0.405
And the 1st network device has a spoofed MAC address configured 0.146
And no network device leaked the real MAC address 0.171
After features/support/hooks.rb:326 0.816
After features/support/hooks.rb:100 0.051
Tags: @product
1:7.578
Before features/support/hooks.rb:269 0.008
Given I have started Tails without network from a USB drive without a persistent partition and stopped at Tails Greeter's login screen 15.364
And I enable persistence creation in Tails Greeter 1.148
And I log in to a new session expecting no warning about the Persistent Storage not being activated 25.986
Then I create a persistent partition with the default settings using the wizard that was already open 25.079
After features/support/hooks.rb:326 1.488
After features/support/hooks.rb:100 0.000
Tags: @product
5:18.895
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 20.633
When I enable persistence 46.478
Then no persistent Greeter options were restored 14.351
When I set all Greeter options to non-default values 27.505
And I log in to a new session in German (de) after having activated the Persistent Storage 53.965
Then all Greeter options are set to non-default values 0.414
When I cold reboot the computer 7.985
And the computer reboots Tails 59.525
Given I enable persistence 32.269
Then persistent Greeter options were restored 15.068
When I log in to a new session after having activated the Persistent Storage 39.850
Then all Greeter options are set to non-default values 0.845
After features/support/hooks.rb:326 1.655
After features/support/hooks.rb:100 0.007
Tags: @product
4:22.398
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.315
# 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 45.137
And I shutdown Tails and wait for the computer to power off 16.634
Then I start Tails from USB drive "__internal" with network unplugged and I login with the changed persistence passphrase 2:28.655
And I change the passphrase of the Persistent Storage back to the original 41.656
After features/support/hooks.rb:326 1.691
After features/support/hooks.rb:100 0.012
Tags: @product
1:20.970
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 21.191
And I log in to a new session without activating the Persistent Storage 26.765
Then persistence is disabled 0.372
But a Tails persistence partition exists on USB drive "__internal" 11.553
And all notifications have disappeared 13.206
When I delete the persistent partition 7.351
Then there is no persistence partition on USB drive "__internal" 0.529
After features/support/hooks.rb:326 1.499
After features/support/hooks.rb:100 0.000
Tags: @product
2:43.773
Before features/support/hooks.rb:269 0.019
Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in 15.320
When I write some dotfile expected to persist 0.492
And I shutdown Tails and wait for the computer to power off 11.539
And I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:15.930
Then the expected persistent dotfile is present in the filesystem 0.489
After features/support/hooks.rb:326 1.367
After features/support/hooks.rb:100 0.009
Tags: @product
2:3.452
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 15.639
And I create a symlink "/home/amnesia/Persistent" to "/etc" 0.115
When I try to enable persistence 0.475
Then the Welcome Screen tells me that the Persistent Folder feature couldn't be activated 47.920
When I log in to a new session after having activated the Persistent Storage 40.788
And all notifications have disappeared 8.752
Then the Persistent Storage settings tell me that the Persistent Folder feature couldn't be activated 4.203
And all tps features are enabled 2.988
And all tps features but the first one are active 2.567
After features/support/hooks.rb:326 2.957
After features/support/hooks.rb:100 0.000
Tags: @product
13:55.030
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 12:19.267
And I enable persistence 47.174
And I log in to a new session after having activated the Persistent Storage 44.924
Then a Tails persistence partition with LUKS version 2 and argon2id exists on USB drive "__internal" 3.522
And persistence is enabled 0.141
After features/support/hooks.rb:326 0.942
After features/support/hooks.rb:100 0.000
Tags: @product
47.300
Before features/support/hooks.rb:269 0.007
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 15.055
And I enable persistence but something goes wrong during the LUKS header upgrade 31.396
Then the Tails persistence partition on USB drive "__internal" still has LUKS version 1 0.848
After features/support/hooks.rb:326 0.941
After features/support/hooks.rb:100 0.000
Tags: @product
53.439
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.948
And I corrupt the Persistent Storage filesystem on USB drive "__internal" 10.242
When I enable persistence 32.724
Then the filesystem of the Persistent Storage was repaired 0.116
And persistence is successfully enabled 0.407
After features/support/hooks.rb:326 0.884
After features/support/hooks.rb:100 0.000
Tags: @product
51.479
Scenario Manual filesystem repair is successful
Before features/support/hooks.rb:269 0.006
Steps
Given I have started Tails without network from a USB drive with a persistent partition and stopped at Tails Greeter's login screen 9.820
And I corrupt the Persistent Storage filesystem on USB drive "__internal" in a way which can't be automatically repaired 15.460
When I try to enable persistence 0.478
Then the Welcome Screen tells me that filesystem errors were found on the Persistent Storage 7.822
When I repair the filesystem of the Persistent Storage 1.276
Then the Welcome Screen tells me that the filesystem was repaired successfully 0.323
And the filesystem of the Persistent Storage was repaired 0.106
When I close the filesystem repair dialog 1.268
Then persistence is successfully enabled 14.922
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.345

SCENARIO FAILED: 'Manual filesystem repair is successful' (at time 04:12:46)

Boot log: https://jenkins.tails.boum.org/job/test_Tails_ISO_20634-greeter-tps-update-failure-fix/7/artifact/build-artifacts/04:12:46_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/7/artifact/build-artifacts/04:12:46_Manual_filesystem_repair_is_successful.png

Video: https://jenkins.tails.boum.org/job/test_Tails_ISO_20634-greeter-tps-update-failure-fix/7/artifact/build-artifacts/04:12:46_Manual_filesystem_repair_is_successful.mkv

Systemd journal: https://jenkins.tails.boum.org/job/test_Tails_ISO_20634-greeter-tps-update-failure-fix/7/artifact/build-artifacts/04:12:46_Manual_filesystem_repair_is_successful.journal

After features/support/hooks.rb:100 0.000
Tags: @product @doc
1:53.382
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.794
And the Persistent Storage filesystem is corrupted beyond what e2fsck can repair 0.119
When I try to enable persistence 0.456
Then the Welcome Screen tells me that filesystem errors were found on the Persistent Storage 31.493
When I repair the filesystem of the Persistent Storage 1.285
Then the Welcome Screen tells me that it failed to repair the Persistent Storage 0.688
When I log in to a new session 41.244
And all notifications have disappeared 7.454
# 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.725
And the file "/var/lib/gdm3/post-greeter-whisperback.json" is empty 0.338
When I close the "whisperback" window 1.663
Then the Tor Browser starts 17.223
And "Tails - Recovering data from the Persistent Storage when it has file system errors" has loaded in the Tor Browser 0.894
After features/support/hooks.rb:326 1.854
After features/support/hooks.rb:100 0.000
Tags: @product @doc
1:27.850
Scenario Filesystem and I/O errors
Before features/support/hooks.rb:269 0.008
Steps
Given I have started Tails without network from a USB drive with a persistent partition and stopped at Tails Greeter's login screen 9.510
And I corrupt the Persistent Storage filesystem on USB drive "__internal" in a way which can't be automatically repaired 13.578
And Tails detects disk read failures on the boot device 2.266
When I try to enable persistence 0.579
Then the Welcome Screen tells me that my hardware is probably failing 7.073
When I log in to a new session 20.351
And all notifications have disappeared 8.404
Then the Tor Browser starts 26.086
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:465: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.027

SCENARIO FAILED: 'Filesystem and I/O errors' (at time 04:16:14)

Boot log: https://jenkins.tails.boum.org/job/test_Tails_ISO_20634-greeter-tps-update-failure-fix/7/artifact/build-artifacts/04:16:14_Filesystem_and_I_O_errors.file_content_var_log_boot.log

Screenshot: https://jenkins.tails.boum.org/job/test_Tails_ISO_20634-greeter-tps-update-failure-fix/7/artifact/build-artifacts/04:16:14_Filesystem_and_I_O_errors.png

Video: https://jenkins.tails.boum.org/job/test_Tails_ISO_20634-greeter-tps-update-failure-fix/7/artifact/build-artifacts/04:16:14_Filesystem_and_I_O_errors.mkv

Systemd journal: https://jenkins.tails.boum.org/job/test_Tails_ISO_20634-greeter-tps-update-failure-fix/7/artifact/build-artifacts/04:16:14_Filesystem_and_I_O_errors.journal

After features/support/hooks.rb:100 0.000