/srv/irclogs.ubuntu.com/2014/05/16/#ubuntu-autopilot.txt

elopiothomi: thanks for fixing it.00:03
thomielopio: well, as mentioned above you'll still need to patch it in the short-term, and then again once our point release is out00:03
elopiothomi: yes, that's ok.00:05
elopioit's also ok if you don't want to expose that function as public, as long as you give us an alternative.00:05
thomielopio: no, it really should be part of the public API, we just forgot aboutit00:05
thomisince we're exposing validate_dbus_object we really have to expose that as well00:06
thomiwe just forgot to put it in the __init__ file00:06
elopiothomi: and now we have two different APIs, one in trusty and one in utopic.00:06
thomielopio: yeah, but that's been the case for every release for the last 2 years00:07
elopioare you going to release ap1.5 to trusty? or do I have to add check for the current installed version?00:07
thomielopio: we'll release to a PPA for trusty, but not in the distro itself00:07
thomiin fact, I might start that work today00:08
thomielopio: your tests that mocked DBusIntrospectionObject - they haven't landed yet, right?00:12
thomiveebers: could you please review https://code.launchpad.net/~thomir/autopilot/temp-dev-fx-docs/+merge/219630 for me?00:29
veebersthomi: sure thing (sorry for the delay)01:56
thomiveebers: nw01:56
thomiveebers: I also wonder if you have any insight into the CI failure here: https://code.launchpad.net/~thomir/autopilot/begin-renaming-of-emulatorbase/+merge/21962501:56
veebersthomi: I'll take a look at that too01:57
veebersthomi: with yout docs changes, did you want to fix the mentions of 'CustomEmulatorBase' (i.e. change to ProxyBase) within the "Writing Custom Proxy Classes" section in this MP?02:06
veeberss/with yout/wirh regards to your/02:06
veebersclose enough02:06
thomihmmm, probably should eh02:06
thomithanks :)02:06
veebersnw :-)02:07
thomiveebers: that, and a few other instances have been fioxed & pushed. revno 50102:09
* veebers pulls02:12
veebersthomi: looks awesome, approved02:16
veebersthomi: re: that test failure I wonder if it's an infrastructure thing (otto perhaps?) I really don't know as it's not consistent and passes for me here02:21
veebersthomi: further more, your docs change branch has the same code changes as the one with the failing test (minus the __name__ renaming) and that passes fine02:27
thomiveebers: I think it's not consistently failing02:42
thomihave restarted the CI run to see02:42
veebersthomi: awesome, cheers02:43
veebersthomi: any idea on how long the CI run takes?02:43
thomifar too long02:43
thomiabout 2 hours02:43
thomiveebers: ugh, this failed to land as well: https://code.launchpad.net/~thomir/autopilot/temp-dev-fx-docs/+merge/21963002:52
thomion the same test02:52
veebersthomi: ugh, that is very odd. :-\ they both have the same code changes now too I guess02:53
thomiI guess I'll delete the smaller MP02:54
thomiwhat happened was I assumed it would land quickly02:54
veebersaye, makes sense02:55
thomioooh, I just got it to fail locally as well :)02:57
thomitry running:02:57
thominice -n20 python3 -m autopilot.run run -r -v autopilot.tests.functional.test_autopilot_functional.AutopilotVerboseFunctionalTests.test_no_video_session_dir_saved_for_passed_test02:57
* veebers tries 02:58
veebersthomi: that still passes for me :-\02:58
thomiveebers: I had to run it a few times before it failed03:04
veebersthomi: ah ok, let me try and spam it03:09
veebersthomi: just ran it a bunch and still no failure. Perhaps I should try it on a single core VM03:11
thomiveebers: interesting03:11
thomiwell, since I can reproduce it, I'll dig into it soon03:11
thomijust trying to help plars with a subunit issue03:11
veebersthomi: ack03:16
thomiugh, now I can't reproduce it03:25
veebers:-(03:25
thomieven using 'stress' to load the machine03:25
thomioh, there we go :)03:26
veebersheh :-)03:27
thomihmmmm "CPU5: Core temperature above threshold, cpu clock throttled (total events = 1429060)"03:27
veebersthomi: heh, don't burn out your laptop just before a sprint :-P03:28
thomiahh, I think I see the issue here03:28
thomithere's a race condition in the test03:28
thomihmmm03:28
thominot sure how to fix this03:30
thomiveebers: TBH, I don't think we can test this easily - care to take a look?03:31
veebersthomi: whats the race condition?03:39
thomiwe're assuming that on the second line, the recording session for rmd hasn't been created yet03:39
thomibut that might not be the case03:39
thomiline 501 I mean03:39
veebersline 501 of test_autopilot_functional.py?03:40
* veebers opens editor03:40
thomiyeah03:40
thomiwe could patch rmd's working dir, but I don't think you can do that via an environment variable03:41
thomihmmm03:42
veebersthomi: yeah, only --workdir option looks like it can do that03:44
thomiveebers: aha - got it!03:46
thomiI can remove the AutopilotTestCase class form the equation comepletel03:46
thomiy03:46
veebersthomi: oh, in the created test file?03:46
elopiothomi: my branch with DBusIntrospectionObject mocks is about to land to staging.03:47
elopiojust waiting for jenkins to stop being crazy.03:47
veeberselopio: heh, you might be waiting a while. You may have to make do with it being 'less crazy' ;-)03:49
thomielopio: hmmm, with 1.5 out, you could now mock things out properly03:50
elopiothomi: actually, kalikiana prepared an alternate runner that lets us test with a qml, instead of mocking.03:51
elopioit looks prettier. But needs a couple of fixes, so we will have the ugly test around for a week or less.03:51
thomielopio: right, but now you don't need your ap test to be ugly at all :)03:52
elopiothomi: well, I would still need it to be ugly for trusty.03:59
thomielopio: not for long03:59
thomielopio: you can add the 1.5 ppa03:59
elopiothomi: I would have to add the ppa for all the runners. I'd prefer not to do that today.04:06
thomielopio: ok, I guess you'll either need to stop using trusty, or do that eventually anyway04:07
elopioyes, I suppose not using trusty is not an option.04:09
thomiveebers: fix pushed - you wanna take a look? revno 50204:14
thomiwould love to get a review04:14
veebersthomi: awesome ^_^04:17
* veebers looks now04:17
veebersthomi: diffline 98 commented out pudb04:18
thomiugh - forgot to save it :)04:19
veebers:-)04:19
thomirevno 503 comin at you ....now!04:19
veebersthomi: sorry didn't notice before, I'm getting flake8 errors04:25
veebers(2 of them)04:25
thomiugh, I shoulda checked that04:25
thomiveebers: thanks, revno 504 pushed... now!04:26
* veebers pulls04:27
thomiveebers: I need to go start making dinner. I'll be back later - could I get you to make sure that branch gets approved please?04:36
thomiI need it to land before I can land my other MP04:36
veeberscan do04:36
thomithanks. I'll bbl04:37
veebersthomi: branch (top) approved just waiting on CI now. I'll come back later to check it04:46
belkinsaHello, I think this page: https://wiki.ubuntu.com/Touch/CoreApps/Testing/ContributeAutopilotTestcase is outdated because I try get it going and I got this:http://paste.ubuntu.com/7473449/15:15
belkinsaIt looked like I had the PPA already.15:23
belkinsaI have a question.  Can anyone do the autopilot test once one is created with noone assigned to it?17:59
balloonsbelkinsa, howdy17:59
belkinsaHey there, balloons.18:00
balloonsif you are speaking about a bug, yes. If no one is assigned, feel free to work on it18:00
belkinsaYes, bugs that say Autopilot need in Ubuntu  Touch Core apps18:00
balloonsohh I see the page still mentions the ppa.. you shouldn't need it. I'll remove it18:00
belkinsaThanks.18:01
balloonslet me know if you need any help.. This is the channel to ask, but it's a little lonely at this hour, as it's late friday night / saturday morning for most folks :-)18:02
belkinsaAlright.18:02
balloonsi'll be here for a few more hours, so :-)18:03
belkinsaAlright, I could ask you how to get started with a test.  I assigned myself to this one https://bugs.launchpad.net/dropping-letters/+bug/1317214 and I don't know how to start it.18:03
ubot5Ubuntu bug 1317214 in Dropping Letters "Autopilot test needed: check for game over" [Medium,Confirmed]18:04
balloonsahh excellent. So first, grab the branch for dropping letters and make sure you can run the existing tests18:04
balloonsfirst things first right? ;-)18:04
balloonsAre you running trusty?18:04
belkinsaYup, trusty and I have the branch already.18:04
belkinsaAnd I have the game both on my Nexus 7 2013 and PC.18:05
balloonsawesome.. so inside is a test folder18:05
balloonsand inside that is a folder named autopilot18:05
belkinsaFound it18:07
balloonssorry, got interrupted :-)(18:15
belkinsaIt's cool18:15
balloonsanyways, belkinsa to list the tests do 'autopilot list MODULE_NAME'18:15
balloonsI think it might be dropping_letters?18:15
belkinsaYup, you are right18:16
belkinsaThis one? test_dropping_letters.py18:17
balloonsbelkinsa, if you ls in that subdirectory you will see a folder containing the testsuite18:17
balloonsthe folder name is the module name, and it's what you want to use18:18
belkinsasvetlana@svetlana-TECRA-M5:~/autopilottests/dropping-letters/tests/autopilot/dropping_letters_app$ ls18:19
belkinsaemulators.py  __init__.py  tests18:19
belkinsa ?18:19
balloonsbelkinsa, ahh you need to be at :~/autopilottests/dropping-letters/tests/autopilot/18:19
balloonsthen you see dropping_letters_app?18:20
balloonsso autopilot list dropping_letters_app18:20
belkinsaI think I might be missing that directory.18:20
belkinsano, I have it18:21
belkinsasvetlana@svetlana-TECRA-M5:~/autopilottests/dropping-letters/tests$ ls18:22
belkinsaautopilot18:22
balloonscd into the autopilot directory18:22
balloonsbelkinsa, http://unity.ubuntu.com/autopilot/tutorial/getting_started.html#files-and-directories18:23
belkinsadone18:23
belkinsaThanks.  I will read that.18:23
balloonsthe entire tutorial will help18:23
balloonsanyways, autopilot list dropping_letters_app will know show you the tests18:24
balloons*now18:24
belkinsaOh, I see.  you to write the test.18:25
balloonsbelkinsa, yes to run the testsuite as-is, you can issue an autopilot run dropping_letters_app.18:29
balloonsI like to pass the -v argument, which makes the logging verbose so you get alot more output. This will be useful when you are writing the test18:29
balloonsit's important you execute the autopilot run step from the proper directory. autopilot won't find the tests if they are in the local path or installed. So practically that means as a test author writing local tests, make sure you launch from that directory18:30
balloons*won't find the tests if they are NOT in the local path or installed18:31
belkinsaI see and that requires knowing the code of that app, right?18:35
balloonsbelkinsa, what do you mean?18:36
belkinsaDon't you need the code to know what to test for?18:37
belkinsa(of that app)18:37
xnoxdo we have a rough idea as to which qt4 based apps use autopilot?18:43
Letozaf_balloons, elopio hi18:44
balloonsbelkinsa, you have the entire source of the app right there.. the tests and the source code for the app. You can run the app using qmlscene on your pc as well18:44
belkinsaThanks, I guess I need to do my homework before driving in18:44
balloonsbelkinsa, you should go through the tutorial, it will help :-)18:44
belkinsaOkay.18:45
balloonshttp://unity.ubuntu.com/autopilot/tutorial/tutorial.html18:45
balloonsthat said, you can run the tests right now.. did you try it?18:45
balloonsissuing the run command will take over your keyboard / mouse, launch the app and click away18:45
belkinsaNot yet.18:45
balloonsyou can also push it to your device and run them there, but we'll save that18:45
balloonsLetozaf_, sorry, missed your message snuck in there!19:00
balloonsLetozaf_, elopio is not around at the moment. I hope you had a good week and ready for the weekend!19:01
Letozaf_balloons, no worries :)  have you guys got new on reminders-app ?19:01
Letozaf_balloons, yes sure I am19:01
balloonsLetozaf_, we are waiting for python3-thrift to be packaged still. But I'm sorry I haven't gotten further on your branch19:02
balloonsI'm looking at a calendar app problem , it's been a bit tough :-)19:02
Letozaf_balloons, ok just wanted to know thanks19:02
Letozaf_balloons, what problem ?19:02
balloonsLetozaf_, weird apparmor errors, and failing tests ofc19:13

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