/srv/irclogs.ubuntu.com/2015/02/10/#ubuntu-quality.txt

=== JoseeAntonioR is now known as jose
elopioalesage: didn't this fix the import issues for you?04:41
elopiohttps://code.launchpad.net/~canonical-platform-qa/ubuntu-sanity-tests/remove_tests_import/+merge/24881704:41
elopioit should have.04:42
=== ePierre_ is now known as ePierre
=== chihchun is now known as chihchun_afk
=== vrruiz_ is now known as rvr
=== chihchun_afk is now known as chihchun
=== jpds is now known as Guest49936
=== pgraner-afk is now known as pgraner
elopioHello everybody.14:14
=== chihchun is now known as chihchun_afk
dobeyhi elopio14:28
* dobey wonders what the "password" is for ssh into the failed adt-run vm14:28
dobeyderp14:29
dobeyubuntu duh14:29
=== chihchun_afk is now known as chihchun
elopiodobey: hello.14:49
dobeyyay progress14:50
elopiodobey: yay, I've just read your email14:51
* dobey hopes those tests run correctly this time14:51
dobeyalso, i should probably set up an archive mirror on my server14:51
elopioI have no idea why I get only the build dir. But it seems you got it right. I will just ask you to put on the README the intructions to get the vm and to run the tests there.14:52
dobeysure14:52
elopiodobey: what pitti has recommended me is to use an apt cache.14:52
elopioI used to have squid-deb-proxy, now I need it again.14:52
dobeyelopio: yeah14:52
dobeyelopio: but i have this: /dev/md200      3.6T   88G  3.4T   3% /srv14:53
dobeymight as well use the space :)14:53
pittiapt-cacher-ng FTW :)14:53
elopio:D14:53
elopiopitti: have you tried apt-cacher-ng when running the tests in the phone?14:53
pittielopio: no, I didn't; you can't reconfigure apt on a phone, after all (as /etc is r/o)14:54
elopiopitti: I tried making it read/write, installing squid-deb-proxy, and then back to read only. It didn't work.14:55
pittielopio: yeah, that can't work at all14:55
pittielopio: at most, you can add an apt.conf.d/ snippet to use apt-cacher-ng or squid-deb-proxy or whatever from your *host*14:56
pittiand set up ssh port forwarding14:56
pittiso that you forward your host's port 3142 to the phone14:56
elopioI can try that. It's too slow for me, it takes like 20 minutes to set up the phone, and 10 running the tests.14:56
pitti$ cat /etc/apt/apt.conf.d/01proxy14:57
pittiAcquire::http::Proxy "http://127.0.0.1:3142";14:57
pittii. e. put something like this on the phone14:57
pittiand then ssh -R 3142:localhost:3142 phablet..14:58
pitti(not sure if phablet-shell has an option to add ssh options, i. e. do port forwarding through adb)14:58
pittielopio: it takes 20 mins to download the test deps?14:58
dobeyit doesn't directly, but you can hack the script14:59
elopiopitti: yes. And sometimes it fails when it's about to end. That's the joy of living here.14:59
brendandelopio, functionally speaking https://code.launchpad.net/~canonical-platform-qa/ubuntu-sanity-tests/skip_sim_pin_if_nosim/+merge/248920 is ready15:23
brendandelopio, please review when you can15:23
brendandalesage, fgimenez ^15:23
elopiobrendand: on it.15:25
elopiofgimenez: I have built the selenium package in the ppa with debuild, but it doesn't contain the debian/patches.15:26
elopiocan you give me a hand with that?15:26
fgimenezelopio: of course if i can, where is it?15:27
elopiofgimenez: https://launchpad.net/~canonical-platform-qa/+archive/ubuntu/selenium/+packages15:28
fgimenezelopio: ok thanks, i'll ping you back15:29
elopiofgimenez: I've made this a task inside the oxide card.15:30
=== qwebirc76277 is now known as slickymasterWork
elopiopitti: do you have any recommendations for putting a package from a ppa in the test bed?15:33
paulliuelopio: hi. I tried to run autopilot3 with latest image. But seems a lot of error. http://paste.ubuntu.com/10159979/15:33
elopioso far, we are copying the package into our branch, because we have only one dependency. That might be better than adding the ppa to apt sources, because that will require apt-get update.15:33
paulliuelopio: Is it because the image and the code I'm using is outdated?15:34
elopiopaulliu: if it's the latest image, it has unity from trunk, right? I see that trunk has the emulators module.15:35
elopioyou could be missing some dependencies. Did you install unity8-autopilot?15:36
paulliuelopio: yes. But I don't know why it loads failed.15:36
paulliuelopio: yes. I've installed it.15:36
pittielopio: you can do soemthing like --setup-commands 'add-apt-repository -y ppa:user/repo' -U15:37
elopiopaulliu: phablet-shell, and then open the python3 interpreter.15:37
elopiotry from there: from unity8.shell import emulators15:38
pittielopio: but on a touch image that's of course only for a local test (nothing for production)15:38
paulliuelopio: ah. error.15:39
paulliuelopio: let me check.15:39
elopiopitti: and that -U brings us back to having a system that's different from the published image.15:41
elopioI guess the right solution is to update selenium on the archive.15:41
elopiofgimenez: fyi, we have selenium in a ppa because of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=77023215:42
ubot5Debian bug 770232 in python-selenium "Please remove the non-free files and upload to main" [Serious,Open]15:42
pittielopio: well, yes (but that's already done by adding a PPA)15:44
fgimenezelopio: ah ok thanks15:44
elopiopitti: right, but the ppa only has selenium, which doesn't affect the system and is used only for testing. It might be nice to be able to install packages from a ppa with the read-only partition.15:45
pittielopio: so a complete thing might be:15:46
pittielopio: --setup-commands 'mount -o remount,rw /; add-apt-repository -y ppa:user/repo' -U --setup-commands 'sync; sleep 2; mount -o remount,ro /'15:46
elopiowhat if instead of adding the repository, we wget the deb and dpkg -i ?15:47
elopiothat setup will look uglier, but doesn't need the -U.15:48
pittielopio: well, then just replace the -U with an apt-get install -y selenium15:48
elopiopitti: doesn't it require and apt-get udate?15:49
pittielopio: ah yes, you have to do that15:50
elopioand that can cause later the read-only upgrade of things that don't work that way, like unity.15:50
elopioI think that coping selenium into our code base while we update it in the archive is not so bad. Will discuss during today's meeting.15:51
elopios/coping/copying.15:51
pittielopio: as long as you remount-ro after that, it shouldn't be too bad15:52
pittibut it's quite brittle of course15:52
pittiapt-get often fails, remounting r/o sometimes fails with "busy" (the sync+sleep seems to help, but obviously not guaranteed)15:52
dobeyelopio: YAY! got some passing tests now :D15:54
elopiowoohoo.15:57
dobeystill some failures, but the app starts up correctly now15:59
elopiodobey: in addition to the weird launching and the ubuntu-touch-session script, did you have to do something else?16:01
dobeyit would be really sweet if mir had a virtual frame buffer we could use, and we could have qemu images built with the ubuntu-touch seed and a mirvfb that was used as the display system in it16:02
dobeyelopio: there's still a couple things that need to be done i think16:02
dobeybut i'm not sure exactly what yet16:02
elopiohttps://bugs.launchpad.net/mir/+bug/123987216:03
ubot5Launchpad bug 1239872 in Mir "[enhancement] Add a virtual framebuffer mode/driver for testing" [Medium,Triaged]16:03
elopiofor qemu touch images, I suppose we can request that to ci.16:03
dobeywhy?16:03
dobeyci isn't using qemu for running the tests16:04
dobeyand the qemu images are easy enough to create locally (well, i created mine locally, but i don't recall exactly how i did it right now)16:04
dobey1:04:41.269 INFO testresult:44 - OK: pay_ui.tests.test_pay_ui.PayUITestCase.test_add_credit_card_completed16:04
dobeywhee16:05
dobeythouse pasting that line made irssi go a bit nuts16:05
dobeysomething weird is happening16:07
dobeythere are 7 test_foo methods in the test_pay_ui.py, but trv on the subunit output file only shows two tests16:07
dobeyi think autopilot itself is crashing16:11
dobeyhttp://pastebin.ubuntu.com/10160415/16:12
dobeyelopio, pitti: ^^ that trace seems to be coming from within autopilot itself, and not my tests16:12
pittiyeah, I've seen  this occasionally too16:13
pittipython-testtools or whatever16:13
dobeyany idea how to fix it? i think it's preventing autopilot from completing the whole test suite16:13
pittilast time I've seen it was from bug 1417966, but when I fixed that it just went away16:14
ubot5bug 1417966 in autopkgtest (Ubuntu) "adt-run does not work with autopilot on emulator" [High,Fix committed] https://launchpad.net/bugs/141796616:14
paulliualesage: https://code.launchpad.net/~paulliu/unity8/notification_helper/+merge/24921116:15
pittibut I didn't investigate that actual crash (and no cookies for using something as legacy as latin1 by default..)16:15
alesagepaulliu, I'll have a look at thx16:16
dobeypitti: is the locale not being set properly in the emulator perhaps?16:17
pittidobey: adt-run defaults to C.UTF-8, and services in the emulator will probably have en_US.UTF-8 or so16:17
pittidobey: for sure nothing uses latin1 (ubuntu never supported non-UTF8 locales in any release)16:18
dobeypitti: until very recently the default locale was unset, which led to it being something like C.ANSI-something16:18
dobeypitti: we hit that plenty in builds on launchpad with the u1 packages16:19
=== roadmr is now known as roadmr_afk
elopiodobey: that's a crash when trying to append the failed results. It's reported in testtools, I think.16:29
elopiobut your test has an error too, before that crash.16:30
dobeyelopio: yes, but it's only running 2/7 tests16:42
dobeyok, so --setup-commands ro-apt is unusable16:55
elopiodobey: pitti: it's reported here: https://github.com/testing-cabal/testtools/issues/11116:56
pittiah, thanks16:57
=== roadmr_afk is now known as roadmr
dobeyis there any way we can work around that somehow?17:03
dobeybah17:11
dobeyi don't remember how exactly i created the qemu images17:11
elopiodobey: I don't know. Would have to dig into testtools' details. If you want to see the results of the rest of the tests, I would just skip the one causing the crash.17:14
elopioand, well, there's also the option to fix it, of course :)17:14
dobeyelopio: i don't think there is a specific test causing that17:14
elopiodobey: if no tests fail, autoplot won't go into that code branch. It won't try to append the failed details, which is what causes that exception.17:15
dobeyelopio: what seems to be happening is that sometimes a couple of the tests time out, and autopilot crashes before the test finishes, and it doesn't run the tests after it.17:15
dobeyelopio: well i can't just skip all the tests :)17:15
dobeyand i don't know why the tets are timing out17:16
elopiodobey: I prefer to run them one by one, either skipping all except one, or passing the test id to the run command.17:16
dobeyelopio: the problem then is if they all pass when run individually, it doesn't help when running them all at the same time, so i like to avoid creating such situations :)17:17
elopiodobey: yeah, it's your choice for which method sucks less :)17:19
* dobey wonders what the easiest way to skip tests is17:19
dobey@skip('Foo') ?17:19
meetingologydobey: Error: "skip('Foo')" is not a valid command.17:19
elopioI also find comfort on those situations thinking about the 100 tests in system settings.17:20
elopio@unittest.skip('Foo')17:20
meetingologyelopio: Error: "unittest.skip('Foo')" is not a valid command.17:20
elopioweird.17:20
alesage@makemeasandwich17:20
meetingologyalesage: Error: "makemeasandwich" is not a valid command.17:20
elopioself.skipTest('foo') inside the test or the setup.17:20
dobeyi thought the decorators were available in python now17:21
elopioyeah, you can use both.17:21
dobeyand not just twisted or such17:22
dobeyok, the decorator doesn't work17:31
dobeyand need to find a solution for running the tests on a device/emulator/etc running with mir17:54
wxlwho's the best person to chat at about touch image testing? got a nexus 4 at long last!18:21
balloonswxl, awesome to hear it18:24
balloonsflash the devel-proposed channel and go break stuff!18:24
wxlballoons: yeah, so i'm anxious to get going with testing and then eventually move on to development18:24
wxlballoons: so it's all exploratory testing? i note there are testcases on the iso tracker18:25
balloonsthere is usually something specific to test as well, if you sub to ubuntu-phone18:25
wxlyeah i've already done that so i guess we'll see what happens there18:25
balloonsweird; I removed those testcases18:27
wxlballoons: well there's no linked images :)18:27
balloonswxl, there isn't supposed to be18:31
balloonsit's not managed there18:31
balloonshence my surprise the daily builds were showing up; I removed them.. odd18:32
* wxl shrugs18:32
balloonswxl, you can look at https://wiki.ubuntu.com/QATeam/TouchTesting and https://wiki.ubuntu.com/Touch/Testing18:32
wxlballoons: thanks! i didn't notice that second one so that's super helpful18:33
dobeywhy oh why is this timing out18:35
dobeyah, of course, i know why it's timing out :(18:42
dobeyawful credentials18:47
=== elfy is now known as hobgoblin
dobeyhmmm, maybe not :-/19:23
=== hobgoblin is now known as elfy
=== chihchun is now known as chihchun_afk
doug5Letozaf_, hello!19:56
Letozaf_doug5, hello howzit ?19:57
Letozaf_balloons, hey!19:57
doug5Letozaf_, good, you?!?19:58
Letozaf_dobey, ah... I have a bad cold, have an headache ... but no so bad :P19:59
Letozaf_oops doug5 not dobey sorry :P20:00
doug5:D20:00
dobeyok, so the buy button isn't being clicked :(20:02
doug5Letozaf_, you're working too much :)20:07
Letozaf_dobey, naaah! when you like something you never get enough :P20:08
doug5correct :)20:08
Letozaf_oopss it's the cold I keep on getting dobey instead of doug5 LOL20:09
=== roadmr is now known as roadmr_afk
balloonshowdy Letozaf_ ! back from the trip?20:25
balloonsdoug5, hello to you as well20:26
Letozaf_balloons, yes :D20:26
Letozaf_balloons, howzit ? is your wrist fine now?20:26
balloonsLetozaf_, yep totally fine, pretty much 100% at this point20:27
Letozaf_balloons, so you're brand new :P20:27
balloonsLetozaf_, something like that hah!20:27
Letozaf_:)20:28
balloonsso . . . how's the phone? Better when you aren't testing it?20:28
Letozaf_balloons, the phone is great, very responsive and fast, better than the Nexus 420:28
Letozaf_balloons, well I also like testing with it :D20:28
Letozaf_balloons, you kind of get bored if you do "normal" things with it, have to hack to have fun :D20:29
Letozaf_balloons, Ubuntu Phones are for hackers :D otherwise you would get "normal" ones, this is special :D20:30
balloonsLetozaf_, very true20:30
doug5balloons, hello!20:33
Letozaf_balloons, you know what? once you get used to the Ubuntu Phone if you go back to Android you feel weired and uncomfortable, you wish to go back to Ubuntu Phone asap20:33
Letozaf_balloons, :P20:34
dobeyelopio: any idea how to figure out why autopilot is clicking the mouse in the wrong location?20:36
elopiodobey: are you clicking in a scope?20:37
dobeyelopio: no it's the pay ui app20:37
elopiodobey: I was trying to click the uninstall button and found out that I was trying to click a button that was out of view, I had selected the wrong one.20:38
elopiodobey: are you using click_object ?20:38
dobeylet me see20:39
dobeyelopio: yes20:39
dobeyitem = select_single(); click_object(item)20:39
dobeythe button is definitely not out of view. it's in the failed screen shot20:40
elopiodobey: things that come to mind: selecting the wrong object, or that the button is hidden by something else that's catching the mouse click.20:40
dobeybut i think the screen shot might be scaled down and i can't figure out how to get it out so i can open it in gimp and find the exact coordinates where it was clicked20:41
elopiodobey: corey did a package for that. Let me see...20:42
elopiodobey: https://github.com/cgoldberg/subunitdetails20:43
dobeyoh, hrmm, the coordinates are correct it seems20:44
dobeyso if the coordinates are correct, where is the mouse click going :(20:45
dobeyelopio: any idea how to debug why the click isn't happening if the coords are correct?20:48
balloonsdobey, sounds alot like a timing issue20:48
balloonsas a quick check, add a sleep before grabbing the object and clicking it. When it works you'll have confirmed it :-)20:49
dobeyi already tried adding a sleep before the call and it didn't help20:49
balloonswhen you grab and click an object that *looks* like it's on screen the object properties often are incorrect20:50
dobeyi guess i'll add one between finding it and clicking it and see if it helps20:50
balloonsdobey, it's certainly possible it's something else, I just know timing definitely causes what appears to be autopilot clicking in the wrong place. The next thing I would try is to print the object and see what the properties are (and see if they line up with where the object actual is)20:51
dobeyballoons: yes, i already verified the coordinates are correct from the object tree. i was just confused about what the values for the rect were actually referring to20:52
dobey(some rectangle implementations use two corners instead of width/height for example)20:52
balloonsdobey, you can also manually move the mouse and click the coords as you read them from the object20:53
balloonsmy guess is it will click in the same "wrong" spot :-)20:53
dobeyit clicks in the correct spot20:56
dobeyand adding a sleep didn't help20:57
balloonsLetozaf_, so I missed the discussion around file manager.. need something?20:58
balloonsalso doug5 did you get connected on the scientific calc tests?20:58
dobeyit's too bad i can't just do button.activate()20:58
balloonsdobey, so it clicks the right spot if you read it manually? If so, we can check the ap source for determining click object.. let's see20:59
Letozaf_balloons, yes I cannot find out why tests fail on this mp: https://code.launchpad.net/~ajalkane/ubuntu-filemanager-app/sdcard-less-is-more/+merge/24844420:59
dobeythat is one thing that was nice about gtk+/a11y stuff20:59
dobeyballoons: i don't know what you mean by reading it manually20:59
elopiodobey: no, that's precisely the idea. You have to go through the display and the input services to do the click with autopilot.20:59
elopiodobey: do you have any other clicks working? could it just be that your qemu is not receiving the input?20:59
Letozaf_balloons, looks like the problem is with patching home as it happens only when launching tests21:00
dobeyballoons: i printed the tree and checked the globalRect: value, and calculated the center of that rectangle, and it's the exact value where the log says the mouse is clicking21:00
Letozaf_balloons, not if you launch filemanager on desktop alone without tests21:00
Letozaf_balloons, look at this http://91.189.93.70:8080/job/generic-mediumtests-vivid/964/artifact/filemanager.tests.test_places.PlacesTestCase.test_go_to_root_must_open_the_root_directory.ogv21:00
balloonsdobey, yes it uses globalRect first, then center_x, center_y, and finally the x, y, w, h21:00
dobeyelopio: i doubt that's it. before trying to tap that button, it selects a text field and enters a value in it with no problem21:00
Letozaf_balloons, anyway I am still trying to find out the reason of this problem21:01
balloonsdobey, I mean if you issue a pointer.move(x, y), then pointer.click()21:01
=== roadmr_afk is now known as roadmr
balloonswith x, y based on the properties you read21:01
balloonsI assume that's what you mean when you said you got it to work21:02
balloonsLetozaf_, ohh, I see the labels are blank. That the issue?21:02
dobeyi never said i got it to work. i said the values were correct based on the data available :)21:03
balloonsdobey, ahh.. I would play with move and move_to_object then21:03
elfyballoons: seems like that gnome-sys-mon testcase is a new copy of yesterday's21:04
Letozaf_balloons, yes21:04
* dobey turns up some basement jaxx21:05
elfyinstead of just changing the original - added one to get rid of lubuntu references21:05
Letozaf_balloons, tests fails because of that as there is no Object name 'Standard' and properties {'objectName': 'placeDevice'}.21:05
Letozaf_balloons, for instance21:05
balloonselfy, yesterays?21:05
elfyhttps://code.launchpad.net/~saqman2060/ubuntu-manual-tests/gnome-system-monitor_on_Lubuntu/+merge/24899021:06
=== pgraner is now known as pgraner-afk
wxlsorry i haven't got to that :(21:06
elfythat's where the _lubuntu one is coming from - just grabbed his branch - has both files :)21:06
dobeyok, doing a manual click doesn't help either21:10
balloonselfy, ahh21:11
balloonswxl, ideally we like things to be agnostic when they are common across flavors21:11
balloonswxl, but please add your comments to the review :-) it'll be nice to have more than just elfy and me bantering hehe21:12
elfywxl: and no worries I watch for things on the manual side21:12
wxlballoons: understood. makes it possible to start testing metapackages (e.g. lubuntu-desktop) in an agnostic fashion sometimes in the future.21:12
balloonsdobey, right, I assume it clicks the exact same location21:12
wxlokie dokie21:12
balloonswhich means the coords are not correct or something else is amiss21:13
Letozaf_balloons, also this mp tests fail for the same problem: https://code.launchpad.net/~nikwen/ubuntu-filemanager-app/compressed-tars/+merge/24925021:13
balloonswxl, well things specific to lubuntu should assume lubuntu, but i don't think gnome-system-monitor counts in that regard21:13
wxlballoons: well, that too!21:14
elfywxl: for a lot of the specific xubuntu things - you'll see them in a folder of their own on the branch21:14
dobeyare the screenshots that get crammed into the subunit data, and which cause the testtools crash, getting scaled down when attached?21:14
wxlwhat *IS* flavor specific? anyone can install anything from the repos21:15
elfyaaah yes - but then that's not default and hardly likely to end up being tested21:15
balloonswxl, right we try and focus on default stuff.. So pcmanfm would be lubuntu only for instance21:16
elfyeven so - we still tried as much as possible to make them agnostic21:16
wxlso lxsession would be an example of something lubuntu-specific21:16
wxlright right21:16
balloonsright21:16
* dobey thinks it would be easier to build a budget flow bench and controller than to do what he's doing21:16
balloonsdobey, are you using trv to read subunit files? it's really nice21:16
balloonsand yes, you should save the subunit output to a file21:17
balloonsdon't console out it21:17
dobeyyes21:17
elfywxl: but even though pcmanfm is only used by you - if the testcase is agnostic - then anyone else can use it if they needed to21:17
dobeybut the screen grabs look scaled in that21:17
wxlmakes sense elfy21:17
balloonsmakes it simpler to write as well.. and in case the UI changes, heh, means you are changing silly steps in the test21:18
balloons*aren't changing21:18
elfyif it says FAMILY instead of lubuntu or xubuntu - then it looks right21:18
wxlelfy: can you link me to the xubuntu testcase folder if you have it handy?21:18
wxlelse i can go look it up21:18
elfyhttp://bazaar.launchpad.net/~ubuntu-testcase/ubuntu-manual-tests/trunk/files/head:/testcases/packages/Xfce/21:18
balloonsLetozaf_, that all makes sense. I assume trunk still passes though right?21:18
wxlthx21:18
Letozaf_balloons, let me check just to be sure, but I think so21:20
* balloons pulls21:20
* Letozaf_ is running trunk tests21:24
balloonsso Letozaf_ if you wish, you could try it without patching home, but instead making a temp file inside of it.. Or run the test on the device (no patching there)21:25
wxlthere, nice comment left :)21:25
Letozaf_balloons, I am seeing the same error running trunk tests, I see the folders without labels, running tests on my desktop21:26
dobeyok, using a different set of coordinates didn't help either :-/21:28
Letozaf_balloons, I will try as you said, that is, running the tests on the device but anyway on desktop I will need to try without patching if I want to fix them21:29
balloonsLetozaf_, ok so it's pre-existing and that makes sense. I suppose it wasn't an issue in the past21:29
dobeywhee, and no screen shot this time either :-/21:29
balloonsLetozaf_, what I would do is remove the patching. Then change things so you change directory to a new temporary folder you create before each test. Does that make sense?21:30
balloonsit was setup this way at one point, but moved back21:30
dobeyhrmm, but a couple other tests tap on a hyperlink label, and they pass just fine :-/21:30
Letozaf_balloons, ok makes sense I will try what you say21:31
balloonsLetozaf_, although actually, I'm wondering how trunk is failing too. I'll have jenkins run it21:31
balloonshere's a trunk run; http://91.189.93.70:8080/job/ubuntu-filemanager-app-ci/453/21:32
Letozaf_balloons, even if I saw the directories without labels this is the result of running trunk tests on sandbox on my desktop:21:33
Letozaf_Ran 42 tests in 522.855s21:33
Letozaf_FAILED (failures=1)21:33
Letozaf_I: autopilot tests done21:33
Letozaf_XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":5.0"21:33
Letozaf_      after 8483 requests (8483 known processed) with 0 events remaining.21:33
dobeyso why isn't this working :(21:35
Letozaf_balloons, mmm ... on Jenkins tests passed21:43
Letozaf_balloons, oops no... wrong build21:45
Letozaf_balloons, yes it passed, now it has finished21:47
Letozaf_balloons, I will re-run trunk on my PC and check better21:48
balloonsLetozaf_, it just makes me suspicious of new code, since trunk does pass21:50
balloonsdobey, sounds like it's not an autopilot thing based on what you said21:50
dobeyballoons: what could it be then? it works fine when i run it on my phone and tap on the screen with my finger :-/21:51
Letozaf_balloons, I will check better, anyway I am also curios to find out why tests fail on my desktop :-P21:52
Letozaf_balloons, I will be back tomorrow, it's getting late now21:52
Letozaf_balloons, 'night21:52
balloonsLetozaf_, sure.. sounds like some fun hacking is in your future21:52
balloonsciao Letozaf_21:52
balloonsdobey, if click_object and move, click both click the same place, and according to you the object's properties are correct and it's clicking in the right place, then ??? something with qemu?21:53
dobeyballoons: well other things get clicked ok, so i doubt it's qemu21:54
dobeyand changing it to click the cancelButton works21:59
dobeyso something else is definitely wrong21:59
dobeyeither an invisible gremlin is stealing the event, or autopilot is getting the coordinates wrong somehow22:01
balloonsdobey, fair enough.. you are seeing what is going on, not I so ;-) I guess my point is, it sounds like autopilot is clicking exactly where it's supposed to click. Why the object is lying to you about where it' slocated is ?22:01
dobeywell it's clicking exactly where it thinks it is supposed to click22:01
balloonsdobey, ohh.. so you aren't sure it's in the wrong place? if it's an event stealing thing, that too could be interesting22:01
dobeywell, i'm sure it's the right place, given the data from the print_tree()22:02
dobeybut i am not sure the data is correct, i guess22:02
dobeysince clicking on all these other things works fine22:02
balloonsright.. so every other object reports correctly, just not this one. I guess I'm confused by your statements of event stealing22:03
balloonsthat does make more sense.. in other words the click isn't captured. you could check that by having it click more than once22:05
dobeyit waasn't a statement22:10
dobeyit was a suggestion of something that is possible22:10
dobeyi just can't imagine what would be stealing the event22:10
balloonsapps can do that.. there was an app I worked on at one point that did it22:13
balloonsI think it was a UITK bug actually.. indeed it was22:13
balloonsa special scenario the app created, which caused the first click after opening the page to get eaten22:14
balloonsstill since it works everywhere but in qemu, well :-)22:14
dobeyeh? it works in qemu for all the other buttons in this qml22:16
balloonsdobey, the answer is obvious. Autopilot hates you :-)22:18
balloonsyou should join #ubuntu-autopilot and tell veebers to remove the #don't work for dobey code22:19
* veebers perks up on his name mentioned22:19
balloonsbtw veebers things are still moving along on the AP import. I'm working on the quality section;probably have something to show you tomorrow22:20
veebersballoons: awesome news ^_^, you're not currently waiting on anything from me are you?22:20
balloonsjust the autopilot release :-) did it go in, I didn't check22:20
balloonsI saw it went to proposed22:20
veebersballoons: also, let me know if there is anything I can do to help in this current convo22:20
veebersballoons: oh rats, I forgot to put it on the backlog *blush* I'll work on that, but it might be delayed (sorry)22:21
balloonsveebers, dobey has historically had horrible times with ap, and is experiencing some interesting behavoir atm22:21
balloonsI'll let you two talk if you wish..22:21
* balloons goes to walk the dog22:21
balloonsveebers, no worries, just keep in touch on it landing!22:21
veebersballoons: will do22:21
veebersdobey: without knowing the whole story, I would suggest ensuring you're selecting the correct object that has the correct globalrect (and not some sub-support object for instance)22:22
veebersalso, when using the -v (and -vv) flags autopilot will report the coords of where it is clicking, which might be useful double checking it's happening in the right place22:23
veebersand finally, ensure that the object that you are attempting to click is ready for the input (and not currently moving for instance (and the coords would be wrong))22:23
veebers</spam> ^_^22:24
dobeyhttp://pastebin.ubuntu.com/10164717/22:26
dobeythat is the code that does the select and tap of the object22:26
dobeyand yes, the coordinates are correct. just checked again what they are in relation to the button which does get clicked, and is immediately next to this button22:27
dobeyboth buttons are same width/height, and 16px between them22:27
dobeyveebers: the big problem is that i have no idea how to even debug this22:39
veebersdobey: pretty much the first thing I do to debug issues like this is to put a break point in the code and poke around once it's paused22:40
veebers(e.g. if I do the tap a 2nd will it work, if I wait for a second will it work)22:41
dobeyveebers: i am not sure i can do that here. i'm running the tests under adt-run with qemu22:41
dobeyso i don't think a break in pdb will result in adt-run spawning sshd and letting me access the vm22:42
dobeyno, adding a sleep, or calling it multiple times, doesn't work22:42
dobeyit's like the event is not making it to the button for some reason22:42
veebersdobey: ah right, so when I do that I scp the code onto the device and run it manually there22:44
veebersthat does sound odd, are you able to tap the button yourself during the test?22:44
dobeyno22:44
* dobey wonders if it's something to do with screen resolution22:45
veebersdobey: as in, when the test is running and when the test attempts to tap the button, if you manually tap it for it does the button work?22:46
dobeyveebers: you mean physically, or by calling pointer.click() at the specified location?22:46
veebersdobey: sorry yes I meant manually with your own finger :-)22:47
dobeycalling pointer.move() then pointer.click() didn't work22:47
dobeywell it works as installed on the phone. i can't do that with a virtual X display inside a qemu22:47
dobeywhere the test is running22:47
dobeyand running tests on a phone or in the emulator, is very non-trivial right now, because this isn't a normal app22:48
veebersdobey: ah right (sorry I'm not completely up to play on how your running it etc.)22:49
veebersdobey: Can you see the screen when the test is running?22:50
dobeyyeah, it's the pay-ui which is a very special thing, so can't ubuntu-app-launch it, and can't start random processes that connect to mir22:51
dobeyi cannot22:51
dobeyi can see the attached failed screenshot in the subunit data when it fails, is all22:52
veebersdobey: Ah I see. Yeah, the screenshot is what I was going to suggest taking a look at22:54
dobeyyeah the screenshot isn't helpful22:55
dobeyi can see the button is there :)22:55
veebersdobey: heh right :-P Is there a cursor on screen? Also, might be worth trying the video recording argument (I really don't know if that will work or not with the qemu/virtual X, but worth a try)23:04
dobeycursor isn't visible, but that's normal for screenshot to not show cursor23:05
dobeyand i don't think there is a reasonable way to pass additional arguments to autopilot through adt-run23:06
veebersdobey: hmm, I'm a little stumped. It would be ideal to be able to run the test locally or on a device as it gives us a bunch more debugging options23:08
dobeywell on a device is probably not going to be doable until we can have a solution to how to run the code under both mir and x without too much trouble23:11
dobeyugh, now the downloading the debs bit is being slow for me23:11
dobeyoh well, way past time to have gone23:55
dobeylater23:55

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!