/srv/irclogs.ubuntu.com/2016/11/22/#ubuntu-unity.txt

=== JanC is now known as Guest78373
=== JanC_ is now known as JanC
om26erTrevinho: Hello!07:34
=== duflu_ is now known as duflu
=== boiko__ is now known as boiko
Trevinhohey om26er13:56
om26erTrevinho: Hi! it was about a bug in zesty, which has since been fixed. https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/163775813:57
ubot5`Ubuntu bug 1637758 in lightdm (Ubuntu) "lightdm greeter session not properly shut down at login" [High,Fix released]13:57
=== dandrader is now known as dandrader|afk
pete-woodshey folks. I'm having trouble with a QML test in this MR (https://code.launchpad.net/~pete-woods/ubuntu-settings-components/add-ethernet-item/+merge/311503)15:02
pete-woodsfor some reason line 246: compare(getChild("labelName").text, data.name)15:02
pete-woodsis failing to find the "labelName" child widget15:02
pete-woodsstrangely, if I comment it out, the following lines find their widgets15:02
pete-woodsi.e. "labelStatus" and "statusIcon"15:03
pete-woodsI was hoping someone with more QML-fu than me might spot what's wrong15:03
* pete-woods plays small violin15:41
pete-woodsltinkl_, mzanetti: maybe obvious to one of you guys? ^15:42
pete-woods(it's a pretty small MR)15:42
ltinkl_pete-woods, looking at it15:42
pete-woodsthanks!15:42
josharensonpstolowski: I've added a feature to unity8 that fixes lp:1575319 However, it introduces a UI hang when dealing with a large number of scopes. For example, on the ScopesList page, if you drag the scope in position #20 to position #0, there is a several second hang as moveFavoriteTo is called. I assume something expensive is happening with the model, but do you have any insight as to why it hanging for so long?15:43
ltinkl_pete-woods, visible: text !== "" (so if that label isn't visible, it won't find it; I think it's as simple as that :)15:43
mzanettiltinkl_, no... you can find invisible things15:43
pete-woodsltinkl_: good suggestion. I thought that there *was* text, though15:44
pete-woodseven so, I'm going to try it15:44
ltinkl_mzanetti, pete-woods: sure, I meant _if_ it doesn't have text15:44
* mzanetti suspects it's just not ready yet... perhaps waitForRendering(root) 15:45
ltinkl_pete-woods, yup, that too maybe; so in getChild(), instead of verify() try to use tryCompare()15:47
pstolowskijosharenson, hi. yeah, i was looking at it a few months ago and i thought i eliminated the most important bottlenecks there. apparently not :(15:49
pete-woodsltinkl_: right, will see what happens there!15:50
pstolowskijosharenson, would be good to know if it's actually moveFavoriteTo(), or if its storeFavorites() called by moveFavoriteTo15:50
josharensonpstolowski: I'll instrument it and see15:56
pete-woodsltinkl_, mzanetti: adding the waitForRendering, (and also removing the visible property), didn't seem to help16:03
pete-woodsI couldn't think of a way to use tryCompare in that method16:04
pete-woodsI don't know how to do a tryCompare(getChild(...), NOT NIL)?16:04
pete-woodstype construct16:04
mzanettipete-woods, check out "tryCompareFunction" in unity816:05
mzanettibut not sure if that's really your issue16:05
pete-woodsnor am I16:05
mzanettiat this point I'd need to run your code and debug it16:05
pete-woodsfair enough16:05
pete-woodsI can't see any difference between this widget and the other text widget now16:06
pete-woods(after I removed the visible condition)16:06
=== dandrader|afk is now known as dandrader
pete-woodsmzanetti: looks like that helped you mentioned has been integrated into the UbuntuTestCase class already16:11
mzanetticould very well be, yes16:11
pete-woodsmzanetti: you were correct that this isn't the problem, though16:13
pete-woodsit just waits until the timeout now16:13
pete-woods(but still succeeds for the other widgets)16:13
mzanettipete-woods, well, worst case, you can print the object tree16:13
mzanettiand check if it's there or not16:14
pete-woodsmzanetti: print(ethernetItem) ?16:14
pete-woodsor more difficult than that?16:14
mzanettimore difficult16:14
mzanettibut not much :D16:14
pete-woodsJSON.stringify(anything) ?16:15
mzanettiethernetItem.children.foreach(print("have item", item); callTheSameRecursiveForAll(item))16:15
mzanettipseudo-code-ish :D16:15
mzanettipete-woods, or, you getChild() the parent of it and print direct children only16:17
mzanettisomething like that16:17
pete-woods        function banana(item) {item.children.foreach(print("have item", item); banana(item)) }16:18
pete-woods?16:18
pete-woodsdid you invent the foreach function?16:20
pete-woodsit seems like I need to do a more traditional index based iteration16:20
pete-woodshmm, can't see the print output16:24
pete-woodsoh no, I can16:24
pete-woodsjust not getting any children16:24
pete-woodshaha16:26
pete-woods.length, not .size16:26
pete-woodsthe DOM is interesting16:27
pete-woodslooks like the object name is being overwritten16:27
pete-woodsand set to "label"16:28
pete-woodsmzanetti: any idea how that could happen?16:28
pete-woodsthe test passes if I look for "label", rather than "labelStatus"16:29
pete-woodssorry, "labelName"16:29
pete-woodstell me I've not spelled the property wrongly16:30
pete-woodsthere's something seriously weird going on16:34
mzanettipete-woods, qml should not overwrite the objectName on its own. but perhaps it happens where the component is used?16:35
pete-woodsmzanetti: I don't think it does?16:35
mzanettipete-woods, I did not invent the foreach function, there is such a thing in JS, but I never remember the syntax16:35
mzanettias I said, pseudo-code16:35
pete-woodsmzanetti: I'm now in the situation where the DOM isn't changing when I tweak the component under test16:35
pete-woodswhich makes me think the test env is a bit wacky16:36
pete-woodsdammit16:36
pete-woodsyou need to run make each time16:36
mzanettiare you perhaps loading the wrong thing? e.g. something installed in the system instead of the one in the build tree?16:36
pete-woodsthat's very un-QML16:36
mzanettidepends on the build-system really16:36
pete-woodsfair enough16:36
pete-woodsbut still, at least I know why my changes are having no effect16:36
mzanettithat's something16:37
pete-woodsand now the tests pass16:37
pete-woodswoo!16:38
mzanettigreat!16:38
pete-woodswell, I learned an important lesson16:38
pete-woodsknow what the build scripts are doing!16:38
mzanettihaha16:38
mzanettiSaviq, resubmitted https://code.launchpad.net/~mzanetti/unity8/disable-spread-while-locked/+merge/31151516:50
mzanettiSaviq, also kicked the silo build16:50
mzanettineeds reapproval, ltinkl_ perhaps? ^16:50
=== ltinkl_ is now known as ltinkl
ltinklmzanetti, yup16:55
ltinklmzanetti, in http://bazaar.launchpad.net/~mzanetti/unity8/disable-spread-while-locked/revision/2700, the change test_spreadDisabled(data) looks like a bad merge? or was this intentional?16:58
mzanettiltinkl, bad merge indeed16:59
mzanettiltinkl, fixed17:02
Saviqmzanetti, tx17:04
Saviqwe seem to have some other trouble in the silo though17:04
Saviqgreyback_, any idea what could've caused FTBFS on zesty (across the board) https://launchpadlibrarian.net/294546675/buildlog_ubuntu-zesty-amd64.qtmir_0.5.0+17.04.20161122.1-0ubuntu1_BUILDING.txt.gz17:05
greyback_Saviq: duplicate gmocks?17:07
=== dandrader is now known as dandrader|afk
greyback_I'll look into it17:08
Saviqtx17:08
Saviqit's in silo 2202 https://bileto.ubuntu.com/#/ticket/220217:08
Saviqthere's only 3 qtmir MPs17:09
Saviq@unity: please sanity-check the list of MPs in https://bileto.ubuntu.com/#/ticket/2202 - if there's anything missing, or something that maybe shouldn't land yet - please let me know17:09
=== dandrader|afk is now known as dandrader
=== JanC_ is now known as JanC

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