Project

General

Profile

Bug #11453

Bug #10288: Fix newly identified issues to make our test suite more robust and faster

"Chatting with some friend over XMPP" test is fragile

Added by intrigeri over 3 years ago. Updated 4 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Test suite
Target version:
Start date:
05/20/2016
Due date:
% Done:

100%

Feature Branch:
https://salsa.debian.org/tails-team/tails/merge_requests/33
Type of work:
Code
Blueprint:
Starter:
Affected tool:
Instant Messaging

Description

  @check_tor_leaks
  Scenario: Chatting with some friend over XMPP                                    # features/pidgin.feature:11
calling as root: echo 'hello?'
call returned: [0, "hello?\n", ""]
[log] CLICK on (1024,384)
calling as root: /sbin/ifconfig eth0 | grep -q 'inet addr'
call returned: [0, "", ""]
calling as root: systemctl --quiet is-active tor@default.service
call returned: [0, "", ""]
calling as root: systemctl stop tor@default.service
call returned: [0, "", ""]
calling as root: rm -f /var/log/tor/log
call returned: [0, "", ""]
calling as root: systemctl --no-block restart tails-tor-has-bootstrapped.target
call returned: [0, "", ""]
calling as root: date -s '@1463661139'
call returned: [0, "Thu May 19 12:32:19 UTC 2016\n", ""]
spawning as root: restart-tor
calling as root: /usr/local/sbin/tor-has-bootstrapped
call returned: [1, "", ""]
calling as root: /usr/local/sbin/tor-has-bootstrapped
call returned: [3, "", ""]
calling as root: /usr/local/sbin/tor-has-bootstrapped
call returned: [3, "", ""]
calling as root: /usr/local/sbin/tor-has-bootstrapped
call returned: [0, "", ""]
calling as root: cat /proc/cmdline
call returned: [0, "BOOT_IMAGE=/live/vmlinuz2 initrd=/live/initrd2.img boot=live config live-media=removable apparmor=1 security=apparmor nopersistence noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 splash noautologin module=Tails slab_nomerge slub_debug=FZ mce=0 vsyscall=none  quiet autotest_never_use_this_option blacklist=psmouse \n", ""]
    Given I have started Tails from DVD and logged in and the network is connected # features/step_definitions/snapshots.rb:199
calling as amnesia: mktemp
call returned: [0, "/tmp/tmp.C6FPCQzyGp\n", ""]
calling as root: rm -f '/tmp/tmp.C6FPCQzyGp'
call returned: [0, "", ""]
calling as amnesia: echo '#!/usr/bin/python
from dogtail import tree
from dogtail.config import config
config.searchShowingOnly = True
application = tree.root.application('"'"'gnome-shell'"'"')
application.child('"'"'Applications'"'"', roleName='"'"'label'"'"').click()' >> '/tmp/tmp.C6FPCQzyGp'
call returned: [0, "", ""]
calling as amnesia: /usr/bin/python '/tmp/tmp.C6FPCQzyGp'
call returned: [0, "Creating logfile at /tmp/dogtail-amnesia/logs/tmp.C6FPCQzyGp_20160519-123224_debug ...\nClicking on [label | Applications]\nMouse button 1 click at (47,13)\n", ""]
calling as root: rm -f '/tmp/tmp.C6FPCQzyGp'
call returned: [0, "", ""]
calling as amnesia: mktemp
call returned: [0, "/tmp/tmp.abhkI1fDgM\n", ""]
calling as root: rm -f '/tmp/tmp.abhkI1fDgM'
call returned: [0, "", ""]
calling as amnesia: echo '#!/usr/bin/python
from dogtail import tree
from dogtail.config import config
config.searchShowingOnly = True
application = tree.root.application('"'"'gnome-shell'"'"')
application.child('"'"'Internet'"'"', roleName='"'"'label'"'"').click()' >> '/tmp/tmp.abhkI1fDgM'
call returned: [0, "", ""]
calling as amnesia: /usr/bin/python '/tmp/tmp.abhkI1fDgM'
call returned: [0, "Creating logfile at /tmp/dogtail-amnesia/logs/tmp.abhkI1fDgM_20160519-123228_debug ...\nClicking on [label | Internet]\nMouse button 1 click at (59,166)\n", ""]
calling as root: rm -f '/tmp/tmp.abhkI1fDgM'
call returned: [0, "", ""]
calling as amnesia: mktemp
call returned: [0, "/tmp/tmp.YCggbyT0NL\n", ""]
calling as root: rm -f '/tmp/tmp.YCggbyT0NL'
call returned: [0, "", ""]
calling as amnesia: echo '#!/usr/bin/python
from dogtail import tree
from dogtail.config import config
config.searchShowingOnly = True
application = tree.root.application('"'"'gnome-shell'"'"')
application.child('"'"'Pidgin Internet Messenger'"'"', roleName='"'"'label'"'"').click()' >> '/tmp/tmp.YCggbyT0NL'
call returned: [0, "", ""]
calling as amnesia: /usr/bin/python '/tmp/tmp.YCggbyT0NL'
call returned: [0, "Creating logfile at /tmp/dogtail-amnesia/logs/tmp.YCggbyT0NL_20160519-123232_debug ...\nClicking on [label | Pidgin Internet Messenger]\nMouse button 1 click at (343,292)\n", ""]
calling as root: rm -f '/tmp/tmp.YCggbyT0NL'
call returned: [0, "", ""]
    When I start Pidgin through the GNOME menu                                     # features/step_definitions/pidgin.rb:291
    Then I see Pidgin's account manager window                                     # features/step_definitions/pidgin.rb:301
[log] CLICK on (437,527)
[log] CLICK on (474,297)
[log] CLICK on (473,323)
[log] CLICK on (507,270)
[log] TYPE "testtailslizard1" 
[log] CLICK on (508,309)
[log] TYPE "riseup.net" 
[log] CLICK on (498,387)
[log] TYPE "h1zmDhugTewisbnIxxLPCXqjGvwESpMg" 
[log] CLICK on (420,424)
[log] CLICK on (389,157)
[log] CLICK on (472,313)
[log] TYPE "xmpp.riseup.net" 
[log] CLICK on (638,704)
    When I create my XMPP account                                                  # features/step_definitions/pidgin.rb:51
    And I close Pidgin's account manager window                                    # features/step_definitions/pidgin.rb:305
[log] CLICK on (710,528)
calling as amnesia: xdotool search --name 'Buddy List' windowactivate --sync
call returned: [1, "", "X Error of failed request:  BadWindow (invalid Window parameter)\n  Major opcode of failed request:  20 (X_GetProperty)\n  Resource id in failed request:  0x16000b9\n  Serial number of failed request:  58\n  Current serial number in output stream:  58\n"]
calling as amnesia: xdotool set_desktop '3'
call returned: [0, "", ""]
calling as amnesia: xdotool set_desktop '0'
call returned: [0, "", ""]
calling as amnesia: xdotool search --name 'Buddy List' windowactivate --sync
call returned: [0, "", ""]
    Then Pidgin automatically enables my XMPP account                              # features/step_definitions/pidgin.rb:76
calling as amnesia: xdotool search --name 'Buddy List' windowactivate --sync
call returned: [0, "", ""]
    Given my XMPP friend goes online                                               # features/step_definitions/pidgin.rb:81
INFO:jabberbot:bot connected. serving forever.
calling as amnesia: xdotool search --name 'Buddy List' windowactivate --sync
call returned: [0, "", ""]
    When I start a conversation with my friend                                     # features/step_definitions/pidgin.rb:96
calling as amnesia: xdotool search --name 'testtailslizard2' windowactivate --sync
call returned: [0, "", ""]
g
" 
DEBUG:potr.context:'ping'
DEBUG:jabberbot:*** props = [u'http://jabber.org/protocol/chatstates', u'jabber:client']
DEBUG:jabberbot:*** jid = testtailslizard1@riseup.net/5f47cb2f-d54f-48ee-a13d-17b2e4655b9a
DEBUG:jabberbot:*** username = testtailslizard1
DEBUG:jabberbot:*** type = chat
DEBUG:jabberbot:*** text = ping
INFO:jabberbot:Ignoring message from unseen guest: testtailslizard1@riseup.net/5f47cb2f-d54f-48ee-a13d-17b2e4655b9a
DEBUG:jabberbot:I've seen: []
    And I say something to my friend                                               # features/step_definitions/pidgin.rb:112
calling as amnesia: xdotool search --name 'testtailslizard2' windowactivate --sync
call returned: [0, "", ""]
    Then I receive a response from my friend                                       # features/step_definitions/pidgin.rb:124
      FindFailed: can not find PidginFriendExpectedAnswer.png on the screen.
      Line ?, in File ? (RuntimeError)
      features/pidgin.feature:21:in `Then I receive a response from my friend'
      Scenario failed at time 01:38:37

      Screenshot: https://jenkins.tails.boum.org/job/test_Tails_ISO_test-10497-tor-bootstrap-is-fragile/12/artifact/build-artifacts/01:38:37_Chatting_with_some_friend_over_XMPP.png

      Video: https://jenkins.tails.boum.org/job/test_Tails_ISO_test-10497-tor-bootstrap-is-fragile/12/artifact/build-artifacts/01:38:37_Chatting_with_some_friend_over_XMPP.mkv

Video attached.

01_38_37_Chatting_with_some_friend_over_XMPP.mkv (376 KB) intrigeri, 05/20/2016 06:47 PM

Associated revisions

Revision dadd01c0 (diff)
Added by intrigeri over 3 years ago

Mark one more Pidgin test as fragile.

refs: #11453

Revision d6700def (diff)
Added by intrigeri over 3 years ago

Revert "Mark one more Pidgin test as fragile."

This reverts commit dadd01c05f91b6109eb083a4b72bef890901a9eb.

refs: #11453

Revision 87843be0 (diff)
Added by intrigeri over 3 years ago

Mark one more Pidgin test as fragile.

refs: #11453

Revision 639900dd (diff)
Added by intrigeri 4 months ago

Test suite: remove obsolete fragile tag (refs: #11453)

This scenario never failed on Jenkins in the last 2 months.

Revision a7ca22af
Added by Sandro Knauß 4 months ago

Merge remote-tracking branch 'test/update-fragile-tags' into devel (refs: #16281, #11890)

Closes: #13470, #11606, #11457, #11563, #11591
Closes: #10499, #11584, #11414, #11453, #11463

History

#1 Updated by intrigeri over 3 years ago

  • Feature Branch set to test/11453-chatting-with-some-friend-over-xmpp-is-fragile

#2 Updated by intrigeri 4 months ago

  • Affected tool set to Instant Messaging

#3 Updated by intrigeri 4 months ago

  • Status changed from Confirmed to In Progress

#4 Updated by intrigeri 4 months ago

  • Status changed from In Progress to Needs Validation
  • Assignee set to hefee
  • Target version set to Tails_4.0
  • Feature Branch changed from test/11453-chatting-with-some-friend-over-xmpp-is-fragile to https://salsa.debian.org/tails-team/tails/merge_requests/33

#5 Updated by Anonymous 4 months ago

  • Status changed from Needs Validation to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF