Project Number Date
test_Tails_ISO_20634-greeter-tps-update-failure-fix 18 14 Nov 2024, 11:58

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
Tails persistence 153 1 3 0 0 157 20 1 21 42:12.876 Failed
Tags: @product
Feature Tails persistence
As a Tails user I want to use a Persistent Storage
Tags: @product
2:26.326
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:41.887
And I update APT using apt 15.141
And I install "python3-behave" using apt 26.183
Then the Tails Persistent Storage behave tests pass 3.113
After features/support/hooks.rb:326 0.964
After features/support/hooks.rb:100 0.000
Tags: @product
49.661
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 15.279
When I log in to a new session without activating the Persistent Storage 24.832
Then Tails is running from USB drive "__internal" 0.495
And persistence is disabled 0.408
But a Tails persistence partition exists on USB drive "__internal" 8.647
After features/support/hooks.rb:326 1.218
After features/support/hooks.rb:100 0.000
Tags: @product
3:17.508
Before features/support/hooks.rb:269 0.007
Given I have started Tails without network from a USB drive without a persistent partition and logged in 15.252
Then Tails is running from USB drive "__internal" 0.606
When I create a file in the Persistent directory 0.145
And I create a persistent partition with the default settings 25.989
Then the file I created was copied to the Persistent Storage 0.814
When I shutdown Tails and wait for the computer to power off 13.549
And I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:20.694
Then persistence for "Persistent" is active 0.388
And the file I created in the Persistent directory exists 0.066
After features/support/hooks.rb:326 0.681
After features/support/hooks.rb:100 0.011
Tags: @product
1:3.643
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.553
And the system is very low on memory 8.436
When I create a file in the Persistent directory 0.806
When I try to create a persistent partition 21.851
Then The Persistent Storage app shows the error message "Not enough memory to create Persistent Storage" 0.203
When I close the Persistent Storage app 2.577
And I free up some memory 1.315
And I create a persistent partition with the default settings 15.636
Then the file I created was copied to the Persistent Storage 0.262
After features/support/hooks.rb:326 1.488
After features/support/hooks.rb:100 0.000
Tags: @product
3:0.431
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 15.592
Then Tails is running from USB drive "__internal" 0.411
And all tps features are active 2.585
And all persistent directories have safe access rights 2.820
When I disable the first tps feature 5.630
Then all tps features but the first one are active 2.390
And I shutdown Tails and wait for the computer to power off 13.007
And I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:15.196
Then all tps features but the first one are active 2.797
After features/support/hooks.rb:326 1.070
After features/support/hooks.rb:100 0.010
Tags: @product
23.918
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.211
Then persistence for "Persistent" is active 0.099
And I create a file in the Persistent directory 0.075
Then the file I created was copied to the Persistent Storage 0.162
When I disable the first tps feature 7.707
Then persistence for "Persistent" is not active 0.144
And the Persistent directory does not exist 0.069
When I enable the first tps feature 3.279
Then persistence for "Persistent" is active 0.084
And the file I created in the Persistent directory exists 0.083
After features/support/hooks.rb:326 0.975
After features/support/hooks.rb:100 0.000
Tags: @product
23.932
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 12.824
Then persistence for "Persistent" is active 0.100
When I create a file in the Persistent directory 0.163
And I disable the first tps feature 6.986
And I delete the data of the Persistent Folder feature 3.779
Then the file I created does not exist on the Persistent Storage 0.077
After features/support/hooks.rb:326 0.997
After features/support/hooks.rb:100 0.000
Tags: @product
1:11.287
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.286
And the network is plugged 0.128
And Tor is ready 22.474
And I take note of which tps features are available 0.658
When I write some files expected to persist 1.711
And I shutdown Tails and wait for the computer to power off 8.578
# 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" 26.449
After features/support/hooks.rb:326 0.157
After features/support/hooks.rb:100 0.000
Tags: @product
3:22.733
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.415
And the network is plugged 0.078
And Tor is ready 20.738
And I add a wired DHCP NetworkManager connection called "persistent-con-current" 0.184
And I shutdown Tails and wait for the computer to power off 12.821
Given I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:14.262
And I capture all network traffic 0.008
And the network is plugged 0.096
And Tor is ready 20.503
And I switch to the "persistent-con-current" NetworkManager connection 0.368
And the 1st network device has a spoofed MAC address configured 0.111
And no network device leaked the real MAC address 0.142
After features/support/hooks.rb:326 0.831
After features/support/hooks.rb:100 0.075
Tags: @product
1:4.265
Before features/support/hooks.rb:269 0.007
Given I have started Tails without network from a USB drive without a persistent partition and stopped at Tails Greeter's login screen 15.673
And I enable persistence creation in Tails Greeter 1.153
And I log in to a new session expecting no warning about the Persistent Storage not being activated 22.711
Then I create a persistent partition with the default settings using the wizard that was already open 24.727
After features/support/hooks.rb:326 1.673
After features/support/hooks.rb:100 0.000
Tags: @product
4:50.998
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 12.688
When I enable persistence 40.882
Then no persistent Greeter options were restored 14.604
When I set all Greeter options to non-default values 30.098
And I log in to a new session in German (de) after having activated the Persistent Storage 51.660
Then all Greeter options are set to non-default values 0.483
When I cold reboot the computer 7.935
And the computer reboots Tails 1:6.418
Given I enable persistence 20.478
Then persistent Greeter options were restored 0.567
When I log in to a new session after having activated the Persistent Storage 44.888
Then all Greeter options are set to non-default values 0.291
After features/support/hooks.rb:326 1.160
After features/support/hooks.rb:100 0.009
Tags: @product
3:40.155
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.425
# 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.034
And I shutdown Tails and wait for the computer to power off 12.830
Then I start Tails from USB drive "__internal" with network unplugged and I login with the changed persistence passphrase 2:8.151
And I change the passphrase of the Persistent Storage back to the original 32.713
After features/support/hooks.rb:326 2.219
After features/support/hooks.rb:100 0.013
Tags: @product
1:3.765
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 10.644
And I log in to a new session without activating the Persistent Storage 21.994
Then persistence is disabled 0.394
But a Tails persistence partition exists on USB drive "__internal" 12.319
And all notifications have disappeared 11.767
When I delete the persistent partition 6.085
Then there is no persistence partition on USB drive "__internal" 0.558
After features/support/hooks.rb:326 1.095
After features/support/hooks.rb:100 0.000
Tags: @product
2:29.498
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.010
When I write some dotfile expected to persist 0.071
And I shutdown Tails and wait for the computer to power off 9.087
And I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled 2:8.923
Then the expected persistent dotfile is present in the filesystem 0.404
After features/support/hooks.rb:326 0.691
After features/support/hooks.rb:100 0.009
Tags: @product
1:38.002
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.349
And I create a symlink "/home/amnesia/Persistent" to "/etc" 0.089
When I try to enable persistence 0.287
Then the Welcome Screen tells me that the Persistent Folder feature couldn't be activated 29.243
When I log in to a new session after having activated the Persistent Storage 41.021
And all notifications have disappeared 8.996
Then the Persistent Storage settings tell me that the Persistent Folder feature couldn't be activated 4.361
And all tps features are enabled 2.572
And all tps features but the first one are active 2.079
After features/support/hooks.rb:326 1.286
After features/support/hooks.rb:100 0.000
Tags: @product
5:7.293
Before features/support/hooks.rb:269 0.015
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:37.083
And I enable persistence 36.990
And I log in to a new session after having activated the Persistent Storage 46.535
Then a Tails persistence partition with LUKS version 2 and argon2id exists on USB drive "__internal" 3.979
And persistence is enabled 2.704
After features/support/hooks.rb:326 1.109
After features/support/hooks.rb:100 0.000
Tags: @product
31.964
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 9.160
And I enable persistence but something goes wrong during the LUKS header upgrade 21.784
Then the Tails persistence partition on USB drive "__internal" still has LUKS version 1 1.019
After features/support/hooks.rb:326 0.871
After features/support/hooks.rb:100 0.000
Tags: @product
1:10.188
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 26.318
And I corrupt the Persistent Storage filesystem on USB drive "__internal" 7.138
When I enable persistence 33.699
Then the filesystem of the Persistent Storage was repaired 0.108
And persistence is successfully enabled 2.923
After features/support/hooks.rb:326 1.001
After features/support/hooks.rb:100 0.000
Tags: @product
1:27.894
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.007
And I corrupt the Persistent Storage filesystem on USB drive "__internal" in a way which can't be automatically repaired 10.538
When I try to enable persistence 0.462
Then the Welcome Screen tells me that filesystem errors were found on the Persistent Storage 6.630
When I repair the filesystem of the Persistent Storage 1.254
Then the Welcome Screen tells me that the filesystem was repaired successfully 1:0.001
try_for() timeout expired
Last ignored exception was: Dogtail::Failure: The Dogtail init script raised: SearchError: child of [desktop frame | main]: "Welcome to Tails!" application
STDOUT:

STDERR:


./features/support/helpers/dogtail.rb:93:in `run'
./features/support/helpers/dogtail.rb:70:in `initialize'
./features/step_definitions/usb.rb:108:in `new'
./features/step_definitions/usb.rb:108:in `greeter'
./features/step_definitions/usb.rb:1827:in `block (2 levels) in <top (required)>'
./features/support/helpers/misc_helpers.rb:78:in `block (2 levels) in try_for'
./features/support/helpers/misc_helpers.rb:66:in `loop'
./features/support/helpers/misc_helpers.rb:66:in `block in try_for'
./features/support/helpers/misc_helpers.rb:65:in `try_for'
./features/step_definitions/usb.rb:1826:in `block in <top (required)>' (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:1826:in `/^the Welcome Screen tells me that the filesystem was repaired successfully$/'
features/persistence.feature:178:in `Then the Welcome Screen tells me that the filesystem was repaired successfully'
And the filesystem of the Persistent Storage was repaired 0.000
When I close the filesystem repair dialog 0.000
Then persistence is successfully enabled 0.000
After features/support/hooks.rb:326 7.914

SCENARIO FAILED: 'Manual filesystem repair is successful' (at time 03:39:40)

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

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

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

After features/support/hooks.rb:100 0.000
Tags: @product @doc
1:56.215
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 13.904
And the Persistent Storage filesystem is corrupted beyond what e2fsck can repair 0.163
When I try to enable persistence 0.280
Then the Welcome Screen tells me that filesystem errors were found on the Persistent Storage 27.976
When I repair the filesystem of the Persistent Storage 1.313
Then the Welcome Screen tells me that it failed to repair the Persistent Storage 3.888
When I log in to a new session 39.577
And all notifications have disappeared 9.652
# 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.363
And the file "/var/lib/gdm3/post-greeter-whisperback.json" is empty 0.395
When I close the "whisperback" window 1.352
Then the Tor Browser starts 16.454
And "Tails - Recovering data from the Persistent Storage when it has file system errors" has loaded in the Tor Browser 0.892
After features/support/hooks.rb:326 1.825
After features/support/hooks.rb:100 0.000
Tags: @product @doc
1:13.192
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 8.720
And I corrupt the Persistent Storage filesystem on USB drive "__internal" in a way which can't be automatically repaired 7.379
And Tails detects disk read failures on the boot device 0.476
When I try to enable persistence 0.440
Then the Welcome Screen tells me that my hardware is probably failing 6.234
When I log in to a new session 19.053
And all notifications have disappeared 7.164
Then the Tor Browser starts 22.899
And "Tails - Recovering data from the Persistent Storage when it has file system errors" has loaded in the Tor Browser 0.823
After features/support/hooks.rb:326 1.693
After features/support/hooks.rb:100 0.000