Project

General

Profile

Bug #12461

Test suite fails to enable persistence in "Persistent browser bookmarks"

Added by intrigeri 6 months ago. Updated about 1 month ago.

Status:
Confirmed
Priority:
Normal
Assignee:
Category:
Test suite
Target version:
Start date:
04/19/2017
Due date:
% Done:

0%

QA Check:
Feature Branch:
Type of work:
Code
Blueprint:
Easy:
Affected tool:
Greeter

Description

  #11585
  @fragile
  Scenario: Persistent browser bookmarks                                                                          # features/torified_browsing.feature:155
    Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in # features/step_definitions/snapshots.rb:172
    And all persistence presets are enabled                                                                       # features/step_definitions/usb.rb:365
    And all persistent filesystems have safe access rights                                                        # features/step_definitions/usb.rb:470
    And all persistence configuration files have safe access rights                                               # features/step_definitions/usb.rb:481
    And all persistent directories have safe access rights                                                        # features/step_definitions/usb.rb:500
    When I start the Tor Browser in offline mode                                                                  # features/step_definitions/common_steps.rb:376
    And I add a bookmark to eff.org in the Tor Browser                                                            # features/step_definitions/common_steps.rb:418
    And I warm reboot the computer                                                                                # features/step_definitions/common_steps.rb:554
    And the computer reboots Tails                                                                                # features/step_definitions/common_steps.rb:259
    And I enable persistence                                                                                      # features/step_definitions/usb.rb:352
      FindFailed: can not find TailsGreeterPersistencePassphrase.png in S(0)[0,0 1024x768]
        Line 2171, in file Region.java
       (RuntimeError)
      features/torified_browsing.feature:165:in `And I enable persistence'

I see 4 chars already in the persistence passphrase field which explains the resulting behavior. Never seen that outside of the test suite. Seen that on feature/stretch and #5630. Interestingly, I've never seen this happen in other scenarios that use persistence, which might help identify the root cause :)


Related issues

Blocks Tails - Feature #13240: Core work 2017Q4: Test suite maintenance Confirmed 06/29/2017

History

#1 Updated by intrigeri 5 months ago

-  @screen.wait_and_click('TailsGreeterPersistencePassphrase.png', 10)
+  sleep 5 # Give the Greeter some more time to be ready
+  @screen.type("p", Sikuli::KeyModifier.ALT)

Might be enough. Untested.

#2 Updated by intrigeri 5 months ago

  • Target version changed from Tails_3.0~rc1 to Tails_3.0

#3 Updated by intrigeri 5 months ago

  • Assignee changed from anonym to intrigeri

This bug prevents me from automatically testing the branch for #12568 so I'll give it a try (and will give up if a trivial workaround isn't enough).

#4 Updated by intrigeri 5 months ago

I've tried a few workarounds and none of their effects makes any sense to me. It really looks like Sikuli's keyboard interaction in a very weird state during "I enable persistence" in this scenario. So I'm giving up and will have to test #12568 manually.

#5 Updated by intrigeri 5 months ago

  • Assignee changed from intrigeri to anonym

#6 Updated by intrigeri 5 months ago

I strongly suspect that we're hit by the QXL "graphics buffers from previous boot strike again" issue, and try to interact with a Greeter that's not there yet, but is merely a picture of something that happens during the previous boot.

#7 Updated by anonym 4 months ago

  • Target version changed from Tails_3.0 to Tails_3.1

#8 Updated by anonym 4 months ago

  • Blocks Feature #13239: Core work 2017Q3: Test suite maintenance added

#9 Updated by anonym 3 months ago

  • Target version changed from Tails_3.1 to Tails_3.2

#10 Updated by intrigeri about 1 month ago

  • Target version changed from Tails_3.2 to Tails_3.3

#11 Updated by intrigeri 16 days ago

  • Blocks Feature #13240: Core work 2017Q4: Test suite maintenance added

#12 Updated by intrigeri 16 days ago

  • Blocks deleted (Feature #13239: Core work 2017Q3: Test suite maintenance)

Also available in: Atom PDF