/srv/irclogs.ubuntu.com/2015/09/09/#ubuntu-autopilot.txt

balloonso/16:26
gang66Hello balloons16:27
nik90hey16:27
balloonshey guys16:32
balloonsso it's time to solve your autopilot issues!16:32
nik90:)16:37
balloonsjust finishing up the last little details on https://core-apps-jenkins.ubuntu.com/16:38
nik90ooh nice16:39
gang66./ubuntu_clock_app/fixture_setup.py:                'sudo setprop custom.location.testing {}'.format(test),16:40
gang66./ubuntu_clock_app/fixture_setup.py:                'sudo restart ubuntu-location-service && '16:40
balloonsnik90, yea you can see my email. Login and you can build away16:40
gang66Why do we need these sudo there?16:40
balloonsyou can't restart the location service without it.16:40
balloonsit's more a bigger question of why we need to restart location service16:41
nik90I don't remember adding that line either16:42
nik90Could it be to show the location-trust-store prompt and press the "ok" button?16:43
nik90at one point clock-app was failing because of it, and we fixed it once the trust-store became testable16:43
balloonsright. If there's anymore of those, it's not a testable service, we should pushback on making sure it is testable. But I think we've rooted all those out16:44
nik90balloons: I am admiring the jenkins service at the moment. Its so cool that I can provide it with branch link, framework to see if it passes or not! Superb! No more having to do empty commits in the Mp just to kick jenkins to rebuild and test.16:46
nik90wait is jenkins running it on the krillin device *and* a local machine? Or just krillin atm?16:47
balloonsnik90, jenkins builds on a machine, but the tests run on the krillin16:47
* nik90 leaves university. bbs16:57
balloonsso, do the tests run for you guys?18:45
balloonsas in, does the app launch and try to do something/18:46
gang66nope it is just crashing18:52
nik90balloons: no it crashes after opening the app. Pretty much at MainView12 point18:53
balloonsI'm trying again with a fresh branch18:54
balloonsI'm not even getting that far, imho18:54
gang66https://core-apps-jenkins.ubuntu.com/job/adt-krillin/15/artifact/logs/autopilot-stderr/*view*/18:55
gang66autopilot.exceptions.StateNotFoundError: Object not found with name 'MainView'.18:55
gang66I'm curious why it cannot find MainView18:55
balloonsthere we go, finally it launches18:57
balloonsok, I'm on the same page as you now :-)18:57
balloonsgang66, the issue with mainview is because of versioned qml classes and autopilot18:59
balloonsindeed, mainview12 is the mainview, fun times19:00
balloonshere's the bug https://bugs.launchpad.net/autopilot-qt/+bug/134167119:03
ubot5Ubuntu bug 1341671 in Autopilot Qt Support "Versioned QML classes are not recognized by their public type name" [High,Confirmed]19:03
gang66How we could workaround it?19:05
balloonsI need to check and see if some code landed in autopilot 1.519:07
balloonsthe fix is really in autopilot itsel19:07
balloonsindeed, it landed in 1.5, sweet19:08
nik90oh19:09
nik90what are we using in vivid jenkins at the moment? Autopilot 1.4 or 1.5?19:09
balloonsvivid jenkins does make it hard19:10
balloonsmmm.. but it's using the overlay, so we should be fine19:10
balloonsyep, it should be using  1.5.1+15.04.20150908-0ubuntu119:11
balloonsok, so the fix is what's described in here https://code.launchpad.net/~canonical-platform-qa/autopilot/fix-cpo-having-different-name-1337004/+merge/262047/comments/66822719:12
balloonsnik90, you about?19:48
nik90balloons: yes19:48
balloonsso autopilot is complaining about finding multiple mainview matches19:48
balloonsand indeed I see several mainviews amongst the qml files. I assume this hasn't changed from before19:49
nik90multiple mainviews in the qml files?19:49
balloonsapp/upstreamcomponents/PageWithBottomEdge.qml:    MainView {19:49
balloonsapp/ubuntu-clock-app.qml:MainView {19:49
* nik90 checks19:49
nik90balloons: app/upstreamcomponents/PageWithBottomEdge.qml:    MainView { doesn't exist19:50
nik90it is a comment19:50
nik90looking at http://bazaar.launchpad.net/~ubuntu-clock-dev/ubuntu-clock-app/trunk/view/head:/app/upstreamcomponents/PageWithBottomEdge.qml19:50
balloonsahh indeed ;-)19:50
nik90;)19:51
balloonsNevertheless, AP isn't happy. ValueError: More than one custom proxy class matches this object: Matching classes are: <class 'ubuntu_clock_app.PageWithBottomEdge'>,<class 'ubuntu_clock_app.ClockPage'>,<class 'ubuntu_clock_app.MainView'>19:51
balloonsso I'll sort it19:52
nik90ok, I am installing autopilot 1.5 from the PPA on my vivid machine now19:53
nik90hmm I am actually in wily19:53
balloonsyou forgot you upgraded?19:53
nik90doesn't 15.10 get autopilot 1.5 without PPAs?19:53
balloonsyep19:53
nik90its my development machine. So I kind of forgot about it :P19:53
* nik90 updates19:54
balloonsI actually dropped one of my machines back to trusty for fun. So I have no vivid19:54
nik90oh...I realize how easy it is when developing on the latest development release.19:55
balloonsyea, autopilot is very unhappy20:04
balloonsit can't even traverse the tree :-(20:04
balloonsnik90, so I'd like to set an objectName for the MainView as one way to stop AP from being so confused. However, the app won't run if I set one20:08
nik90hmm, the app doesn't run?20:09
nik90let me try setting it20:09
balloonsyes please20:09
nik90balloons: in ubuntu-clock-appq.qml, we already have the objectName of mainView set to 'clock'20:11
nik90http://bazaar.launchpad.net/~ubuntu-clock-dev/ubuntu-clock-app/trunk/view/head:/app/ubuntu-clock-app.qml#L3320:12
balloonslol, ok let me try again20:12
balloonsI tried the fix out on music, it works20:12
balloonsso it should fix clock too20:12
ahayzen...did someone mention music ? ;-)20:13
balloonsahayzen, so let me give you a little diff20:13
nik90;D20:13
balloonsahayzen, http://paste.ubuntu.com/12323350/20:14
ahayzenheh the MainView vs MainView12 thing20:14
balloonsahayzen, that little method is a 'nice way' of working around the greater bug20:15
ahayzenlooks it :-)20:15
balloonsit also lets you set the query name for anything you wish, so you can call a local class 'andrewisawesome' and have it point at anything in the tree20:15
ahayzensweet :-)20:16
balloonsnik90, clock however isn't so nice.. It really is confused. I think we're hitting https://bugs.launchpad.net/autopilot/+bug/1350532 too20:17
ubot5Ubuntu bug 1350532 in Autopilot "validate_dbus_object can cause more than one class in the cpo cache" [High,Confirmed]20:17
nik90:/20:18
balloonsin a moment veebers will be here20:19
balloonsthen we'll get out the pitchforks20:19
balloonsahah, ok, so I get why now20:23
balloonswoot, success20:24
nik90wat did you do?20:25
balloonsI did the simple fix, but I realized it was our own class declarations that was causing AP to go nuts20:25
balloonsclockpage and pagewithbottomedge were both pulling in mainview also20:25
nik90oh20:26
balloonsi thought it was in the qml, but lol, nope it's in our helpers20:26
balloonsok, let me commit this20:26
nik90so does it run now?20:26
balloonsyea, it tries to do things now20:26
nik90cool20:26
balloonslp:~nskaggs/ubuntu-clock-app/fix-ap-mainview20:27
balloonsyou still get my debugging info if you pull that now, lol20:28
* nik90 test20:28
balloonsrev 380 is more or less a clean base to fix things20:29
ahayzenballoons, the new coreapps jenkins looks awesome btw :-)20:32
balloonsI'm glad you like it. Some more goodies and tweaks to do, but it's ready to rock.20:33
balloonswe've been delayed on getting the MP functionality working20:34
balloonsI still have my MP ready and waiting on your project20:34
balloonsnik90, so are you going to attempt to actual correct the tests now or ? I don't want us both working on the same thing, heh20:35
nik90balloons: I am going to be real busy with uni for the next 1-2 weeks. But its something that me and gang66 are putting emphasis on for this release.20:36
balloonsok, I'll keep going and see if I can't get at least one test running and propose something20:36
balloonsthanks for the help in deciphering this20:36
nik90balloons: oke, but beware the whole navigation has changed..so its going to be lot of change to get that first test passing.20:37
nik90(code wise)20:37
balloonsrighto20:37
nik90balloons: and thnx a lot :)20:37
veebersbarry: Hey if you're around, I believe this bug should be considered fix released? https://bugs.launchpad.net/autopilot/+bug/148817521:47
ubot5Ubuntu bug 1488175 in Autopilot "FTBFS on Wily" [Undecided,In progress]21:47
veebersbarry: unless there are other issues?21:47
barryveebers: i *think* it's due to testtools bugs, but this is mostly for tracking.  if it's messing you up, the bug can be closed21:50
veebersbarry: ah right, this is failing to build in the 3.5 ppa right?21:51
barryveebers: yep21:51
barryveebers: i suspect it would also fail if we rebuilt testtools in the archive21:51
veebersbarry: ah ok, that's not good :-\ Is there anything I can do to help? Or is it waiting on something else21:56
barryveebers: upstream testtools isn't compatible w/ the version of twisted we have in the archive.  there's a patch that *almost* gets us there, but i'm chasing down one last failure.  i'll update the ap bug once it all gets straightened out.  thanks for your help tho, much appreciated!21:57
veebersbarry: nw, I'll be interested to see how it goes21:58
barryveebers: me too :)21:58

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