/srv/irclogs.ubuntu.com/2015/06/16/#ubuntu-quality.txt

elopioping veebers, how are you?03:34
veeberselopio: hey yeah I am, how's things on the new team?03:40
elopioveebers: it's good. A little lonely at this time.03:41
elopioI miss working with you on my late night.03:41
veeberselopio: heh yeah I can attest to the loneliness, missed working with you too03:43
veeberselopio: what's the haps?03:46
elopioveebers: not much. Preparing dinner, and about to call it a day.03:48
veeberselopio: nice, you might be happy to know that I'm working on a branch that will push autopilot to 1.6 as it removes the object registry, all uses of CPOs will be explicit03:50
veebersalthough, not sure how much that impacts you nowadays03:50
elopioveebers: cool! I read your email with the proposal and it's awesome.03:51
elopioit won't affect my job much, but as soon as things settle down, I hope I can get back to contribute tests to the community apps.03:51
veebersah I see, well forget that I mentioned it :-)03:53
veeberselopio: was there something I can help you with or you just keen to catch up? (which is fine, I'm just on the edge of my seat thinking "What's broken that he wants me to fix") :-)03:54
elopioveebers: no, just saying hi.03:59
=== chihchun_afk is now known as chihchun
veeberselopio: awesome :-) Make sure you stay in touch (I'll do the same)04:07
veeberselopio: are you still around perchance? (although I suspect you've called it a day)05:47
elopioveebers: doing some last runs. How can I help you?05:50
veeberselopio: hey I'm working a a UUITK branch to make the autopilot tests work with the experimental 1.6 version, I'm wanting to get your opinion on the changes that are happening (i.e. am I missing something, will this impact authors in a more destructive way).05:53
veeberselopio: I'm not expecting you to do more than a cursory glance at the branch05:54
veebersI don't expect you to do my work for me :-)05:54
elopioveebers: throw me the branch.05:54
veeberselopio: one sec, pushing05:55
veeberselopio: branch: https://code.launchpad.net/~canonical-platform-qa/ubuntu-ui-toolkit/update-for-upcoming-autopilot-1.6/05:56
veeberselopio: I'll fire up a MP so it's easier to look at the changes05:57
veeberselopio: https://code.launchpad.net/~canonical-platform-qa/ubuntu-ui-toolkit/update-for-upcoming-autopilot-1.6/+merge/26204505:58
elopioveebers: you have to propose against staging.05:59
veeberselopio: oh? rats, ok let me delete that MP06:00
veeberselopio: this one? ~ubuntu-sdk-team/ubuntu-ui-toolkit/staging06:01
elopioveebers: yes.06:01
veeberselopio: ok, 2nd time lucky: https://code.launchpad.net/~canonical-platform-qa/ubuntu-ui-toolkit/update-for-upcoming-autopilot-1.6/+merge/26204606:01
veeberselopio: ugh, I see there is a translation included there I'll get rid of it06:15
veeberselopio: also you may notice that the inclusion of this branch gets rid of the 'workarounds' in that diff that I haven't removed yet: https://code.launchpad.net/~veebers/autopilot/1.6-OR-removal_from-proxy-object/+merge/26204906:15
elopioveebers: what will happen here if the parent is not a QQuickFlickable? parent = QQuickFlickable.from_proxy_object(parent)06:17
veeberselopio: yeah this gave me dome thought. As long as nothing QQuickFlickable is called on that object (i.e. tries to select an element that it doesn't contain) nothing will go wrong06:19
veebersthere is no validation made etc. It doesn't check the path or 'validate_dbus'. _but_ it's early days and this could be changed perhaps06:19
veebers(hence why I'm running it past you)06:20
elopioveebers: I find it weird. At first I thought it would be nice for it to raise an exception, and we can just catch it in here.06:21
elopiobut this code passes even if we are using a class that extends QQuickFlickable, so the exception won't work.06:21
elopiohum, but then this can potentially break some things. The definition of is_flickable is not linked to the class name. We return true if it has the properties that a flickable would have.06:22
veeberselopio: yeah, it's what got me pondering, as we're changing how it all works, originally autopilot kept track of what it might be and magically applied a CPO (generally correctly) but removing the object registry means that there is no link from app -> selected_class etc.06:23
elopioveebers: yes. I think it's ok. In the future we might need to add a flickable_class argument, so the method supports flickables that are not of type QQuickFlickable.06:24
elopioveebers: 1176+            return self.select_single(AppHeader, objectName='MainView_Header')06:25
elopiowith this, there are some apps that have a header that's not AppHeader. I think your change is good, as the correct thing to do is to overwrite the method06:25
elopiobut you might have to update some tests in some apps.06:26
elopioveebers: this I don't understand:06:27
elopio1222+    def setUp(self, mainview_class=MainView):06:27
elopiohow can you call a setUp with an argument?06:27
elopioah, you are calling it from super().06:28
veeberselopio: like: super().setUp(MyArg)?06:28
veebers:-)06:29
elopiothat's weird, because then you are not able to run a test that doesn't overwrite the setUp.06:29
elopiogenerally, I set that kind of arguments as class or instance variables.06:29
elopioveebers: this looks good. I think it will take some time for me to get used to this new style, but it's a lot clearer.06:31
veeberselopio: hmm, you could have a point there. I think I originally had it as a class var, that can be changed (haven't had it properly reviewed yet :-))06:31
veeberselopio: yeah there will need to be a large mind shift as things work _really_ differently to what they used to06:32
veebersI hope it's for the better, but I'm looking to minimise that impact and get some feedback from devs about it. Its not going to be released overnight :-\06:32
elopioveebers: if you get the whole toolkit suite to work with small changes like this, you are definitely on the right track.06:33
elopioveebers: kalikiana and timp will be able to give you some useful feedback too.06:34
veeberselopio: awesome thanks! I'll get the toolkit suite finished (see if it throws me any curve balls) and get the autopilot documentation up to spec to (i.e. porting guide)06:35
elopioveebers: ok, thanks for this.06:35
veebersI'm glad I picked the toolkit, I had been toying with the idea of from_proxy_object, and now I think it's a good idea, esp in the context of what it's doing in the toolkit tests06:35
veeberselopio: nw, thanks for taking the time for looking at it, I know it's not your thing anymore and you have other things to take care of06:35
elopioveebers: np, I still care about this. And it didn't take a long time, you have it all pretty much solved.06:36
veeberselopio: sweet, right I need to get dinner before my partner kills me ^_^06:37
elopioand I need to get some sleep.06:37
elopiosee you tomorrow.06:37
veebers sleep well elopio o/06:37
=== vrruiz_ is now known as rvr
=== chihchun is now known as chihchun_afk
=== pgraner-dr is now known as pgraner
oSoMoNcan someone who works on autopilot please confirm https://launchpad.net/bugs/1465667 ?13:23
ubot5Launchpad bug 1465667 in Autopilot "autopilot ignores class-level conditional skip() decorator" [Undecided,New]13:23
brendandoSoMoN, you may have to use testtools.skipIf14:07
brendandoSoMoN, at least that seems to wfm14:07
=== chihchun_afk is now known as chihchun
balloonsunittest should support it: https://docs.python.org/3/library/unittest.html#skipping-tests-and-expected-failures14:09
oSoMoNyeah, that’s what I thought too14:10
balloonsbut oSoMoN I do seem to remember having the same trouble14:10
brendandballoons, it might be a bug in testtools, it's not exactly polite in its interaction with unittest14:11
balloonsbrendand, a nice way to say it.. polite :-)14:13
dkesselboo!19:57
balloonsdkessel, you scared me!20:47
balloons:-)20:47
=== chihchun is now known as chihchun_afk
balloonshowdy svij20:59
dkesselOne hour later? Don't think so balloons ;)21:01
balloonsdkessel, hah21:02
balloonssvij, for whenever you read this, I made the updates to calc you needed. There's helpers now so you should be able to finish your test. Pull trunk22:35

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