/srv/irclogs.ubuntu.com/2013/10/25/#ubuntu-unity.txt

=== _salem is now known as salem_
=== salem_ is now known as _salem
MirvSaviq: now that we finally start to have cu2d & co. up and running, is it known that unity8 tests fail on desktop too? should I file a bug?06:41
MirvSaviq: or 10 of then, to be exact06:41
Mirvbug #124454907:10
ubot5bug 1244549 in Unity 8 "unity8 test failures in trusty" [Critical,New] https://launchpad.net/bugs/124454907:10
om26ermzanetti, hey! got to write the test today. https://code.launchpad.net/~om26er/unity8/add_searchIndicator_test/+merge/19264707:56
mzanettiom26er: cool stuff! (there is a typo in the comment sping -> spin)07:58
om26erooh - fixed that.07:59
=== iahmad is now known as iahmad|afk
Cimiom26er, hey dude08:15
om26erCimi, hi08:16
Cimiom26er, just had a look at the test :)08:16
om26erneeds fixing ? ;)08:16
Cimiit's good, you should add more situations08:16
Cimiom26er, like you know when the search box comes in or not08:16
Cimiom26er, searchVisible: !greeter.shown && !lockscreen.shown && dash.shown08:17
om26erCimi, something like, close the app and then make sure the indicator is visible ?08:17
Cimiom26er, so we should test those conditions08:17
om26erI was actually planning to change that to:08:17
Cimiom26er, the idea of the tests is "we test the condition, so if something breaks the test can detect"08:17
om26ersearchVisible: !greeter.shown && !lockscreen.shown && !applicationRunning08:17
om26errather !applicationFocused08:19
om26erCimi, i'll enhance this test to also test if the indicator is shown while greeter is locked08:20
Cimiyou learn quickly ;)08:20
om26erthere is one more thing. I think the search indicator should also not be visible if a preview is opened, since tapping on the search indicator bring up the OSK but text does not appear anywhere08:21
Cimiom26er, that too08:21
Cimiom26er, have a chat with a designer08:21
Cimior mark the bug as incomplete08:21
Cimion Uubuntu UX08:21
om26erCimi, ok, will do.08:22
CimiSaviq, mzanetti how do I get the current lens from a test?08:27
CimiI can add current index, but names seems to be mapped08:27
Cimiotherwise I go again for autopilot08:28
mzanettiduude08:28
mzanettiCimi: don't pick a test framework for that reason (unless everything else is the same)08:28
Cimimzanetti, isn't like selecting best tool for my needs?08:29
mzanettiCimi: we have no more than 500 tests. if people start writing autopilot tests just because some certain task has a ready made example there, we'll end up with a test-duration of 2 days soon08:29
Cimithere is no ready example, just I like autopilot for few things :)08:30
mzanettiCimi: I need to read the code to answer your question. give me a few minutes08:30
Cimibut can be done in qmltest08:30
Cimimzanetti, Dash.qml iirc08:30
mzanettiCimi: tests/qmltests/tst_Shell.qml line 36808:32
Cimimzanetti, what?08:43
mzanettiCimi: can't you use something like this?08:43
Cimimzanetti, oh yeah, my branch had different line numbers :)08:44
Cimimzanetti, 368 was pointing to a useless piece of code :)08:44
Cimi#fridaymorning08:44
mzanettilol08:44
mzanettilet me check again08:44
Cimimzanetti, might try08:46
Cimisomething similar though08:46
mzanettiCimi: do you have a pointer to the item you need?08:46
mzanettie.g. with findChild()08:46
mzanettithen you could use something like the itemIsOnScreen() (line 403)08:47
Cimiok08:47
mzanettiCimi: but you have a good point. would be cool to get a list of all items at position x,y08:51
mzanettiCimi: maybe I'll hack that into our utils at some point08:51
mzanetti(unless you want to give it a shot ;)08:51
Cimimzanetti, mmm08:56
Cimimzanetti, in reality I want to test if the application scope is already on screen while I swipe08:56
Cimimzanetti, does itemisonscreen verify if things are on screen with different z index?08:57
mzanettiCimi: it doesn't care about the z index08:59
Cimimzanetti, so it detects if underneath the app we have the dash?09:00
mzanettiCimi: if the item is fully inside the visible part, it returns true, otherwise false09:00
Cimibrilliant09:00
mzanettiCimi: yes. can even be covered09:00
om26ermzanetti, can I run a single test instead of running the whole TestCase {} ?09:27
om26erright now I am doing make testShell which runs like 16 tests09:27
mzanettiom26er: nope.  you can't (except commenting out all the others temporarily)09:27
om26ermzanetti, ok09:28
mzanettiom26er: hint: you could try to use cleanup() to close any open applications (which will be executed after each test function)09:28
om26ermzanetti, yes I was going to do that. I am writing another test for search indicator taking greeter into account.09:28
mzanettiah cool :)09:28
om26erhow do I get back the greeter in test?09:28
om26erwill greeter.show = true do ?09:29
om26er*shown09:29
mzanettiom26er: greeter.show() should do I think09:29
Cimimzanetti, https://code.launchpad.net/~cimi/unity8/fix-1231996/+merge/19237209:35
mzanettiCimi: cheers. will just tag the last 5 bugs and review it then09:36
nic-doffaySaviq, I'm using UbuntuShapeForItem, what's the best way to set it's colour?09:39
mzanettinic-doffay: Saviq is away today09:42
mzanettinic-doffay: You can use a Rectangle {} in it09:42
mzanettiCimi: shouldn't you make sure that there is another scope visible before the swipe?09:47
Cimimzanetti, it does before09:47
mzanettiok09:47
Cimimzanetti, when it checks the home lens09:47
Cimimzanetti, well, that apps is out of the way09:47
nic-doffaymzanetti, you sure? I've tried that already.09:47
* mzanetti wishes there would be a feature to expand the diff to the full source file in LP09:48
mzanettinic-doffay: yes, I'm sure09:48
Cimimzanetti, you remember me how to trigger lock screen?09:48
mzanettinic-doffay: you can only have one item in there. but if you wrap the existing one inside the rectangle you should be fine09:49
Cimimzanetti, want to work on the wallpaper shift09:49
nic-doffaymzanetti, that's what I've done.09:49
nic-doffayand set the anchors to fill the ubuntushape parent.09:49
nic-doffayThe ubuntu shape doesn't mask off the rectangle though.09:49
mzanettiCimi: http://design.canonical.com/2013/07/unlocking-the-phone/09:49
mzanettinic-doffay: well, I'm quite sure it works if done right. would need to see your code to spot the error09:50
mzanettibrb09:51
nic-doffaymzanetti, http://pastebin.ubuntu.com/6299790/09:52
mzanettinic-doffay: image: Rectangle {}10:06
mzanettinic-doffay: I agree that the API is bad and the property shouldn't be named image but rather "contentItem" or the like.10:07
mzanettiCimi: approved10:20
Cimimzanetti, you see anything wrong here? http://paste.ubuntu.com/6299936/10:32
Cimimzanetti, lockscreen_background is NoneType10:33
mzanettiCimi: the greeter might not be visible?10:34
mzanettiCimi: in which case the Loader unloads it and select_single wont find it (as it's deleted)10:34
Cimimzanetti, it's the same code of the greeter test I wrote basically10:34
CimiI cannot see why this should fail10:34
Cimimzanetti, the lock screen is not on a loader10:35
=== rachelliu_ is now known as rachelliu
mzanettiCimi: don't know then. also to me this looks like a qml test candidate tbh10:40
mzanettiMacSlow: heya10:55
MacSlowmzanetti, yup10:55
mzanettiMacSlow: do you think this is yours? https://bugs.launchpad.net/indicator-network/+bug/123899010:55
ubot5Ubuntu bug 1238990 in Network Menu ""Unlock SIM" gets stuck if snap decision failed" [Low,Triaged]10:55
MacSlowmzanetti, hm... not sure... but I'll look into it... fullscreen-support is almost done (thank god) so I have time for this10:56
mzanettiMacSlow: yay! very nice :)10:57
mzanettiom26er_: heh, I'm afraid you understood the cleanup() thingie wrong :)11:13
om26er_how about that ;)11:14
mzanettiom26er_: cleanup() is automatically called after each test function. However, you need to implement it yourself to actually do the cleanup11:14
om26er_mzanetti, a function to make sure all the apps are killed ?11:15
om26er_mzanetti, one of the tests is calling cleanup(); in it as well. is that doing wrong ?11:17
om26er_re: test_rightEdgeDrag()11:17
mzanettiom26er_: probably. let me check11:17
Cimimzanetti, self.app.select_single doesn't work for images11:18
mzanettiom26er_: that seems to be a special case11:18
Cimimzanetti, works if I change the lock screen Image to CrossFadeImage11:18
mzanettiom26er_: as he does some more checks after the cleanup. but yes, that one calls cleanup() twice in the end11:18
mzanettiom26er_: but: I see the cleanup() already does the killing of apps11:19
om26er_mzanetti, so no need to do that in my code ?11:19
mzanettiom26er_: so I've been wrong. your test is fine even without the manual cleanup()11:19
om26er_mzanetti, ack, does the second test look good ?11:19
mzanettiom26er_: one sec, haven't read through it yet11:19
mzanettiCimi: hmm... afaik it should work for images too11:20
Cimimzanetti, doesn't seem to11:20
Cimimzanetti, shall I change to CrossFadeImage on the lock screen? :)11:21
Cimiis there a reason why we have Image here and not CFI ?11:22
om26er_Cimi, something else might have the same object name ?11:22
mzanettiCimi: I'd say no. as it's not possible to change the image while the device its locked. so it would be a waste of resources11:22
Cimiom26er_, lockscreenBackground ,..11:22
mzanettiom26er_: is this change wanted? 8+ readonly property alias previewShown: previewLoader.onScreen11:23
=== _salem is now known as salem_
Cimimzanetti, mmm I dunno how to select that Image then11:24
om26er_mzanetti, no, not really I think I pushed a local change, I was working on a different bug, let me revert that11:24
mzanettiCimi: imho you still should use qmltest for this.11:24
Cimimzanetti, globalRect is super handy11:25
mzanettibut it wastes 40 seconds in every CI run for no benefit11:25
om26er_mzanetti, pushed.11:25
=== alan_g is now known as alan_g|lunch
mzanettibesides the fact that you're working on it for 3 hours now doesn't make it look super handy tbh11:25
mzanettiom26er_: thanks11:25
Cimimzanetti, 3 hours?11:26
mzanettimore?11:26
Cimimzanetti, 1?11:26
Cimimzanetti, btw it's not my fault if an API doesn't work11:27
Cimimzanetti, if it were working I would have finished in 20 mins11:27
Cimimzanetti, but it didn't so I wasted time figuring out why11:27
* Cimi is doing the qmltest11:29
=== MacSlow is now known as MacSlow|lunch
nic-doffaymzanetti, is there anything else that needs to be set in the rectangle?11:42
mzanettinic-doffay: don't think so... color of course :)11:43
mzanettinic-doffay: still not working?11:44
nic-doffaymzanetti, nope11:44
mzanettinic-doffay: can you push the branch? I'll check it out then11:44
nic-doffaymzanetti, yeah sure I'll push it to a junk branch.11:47
nic-doffaymzanetti, here it is: lp:~nicolas-doffay/+junk/ubuntu-shape-colour-test11:54
nic-doffayIt's in PageHeader.qml11:54
mzanettinic-doffay: you need to place the item inside the rectangle11:58
mzanettiwhich doesn't solve your problem still... hmmm. weird12:00
MacSlow|lunchmzanetti, btw... http://ubuntuone.com/4jWA8iX9nJrNn2o7MkQHgh12:01
mzanettinic-doffay: ah. got it12:01
mzanettinic-doffay: the component you set to image: is not a direct child of the shape. hence the anchors.fill: parent doesn't work12:02
mzanettinic-doffay: give the UbuntushapeForItem an id: secondaryItemShape12:02
mzanettinic-doffay: and make the rectangle width: secondaryItemShape.width and height: secondaryItemShape.height12:02
mzanettinic-doffay: another hint: anchors { horizontalCenter: parent.horizontalCenter; verticalCenter: parent.verticalCenter } is the same as "anchors.centerIn: parent"12:04
mzanettiMacSlow|lunch: it's getting close :)12:05
MacSlow|lunchmzanetti, yup... top and bottom margins still give me headaches... but everything else works now smoothly12:05
mzanettiMacSlow|lunch: background image also missing still12:07
nic-doffaymzanetti, ah cool.12:08
mzanettiMacSlow|lunch: if it's possible to use shell.background easily it'd be great. otherwise I think it would be about time to have another go on the blurring stuff12:08
MacSlow|lunchmzanetti, well... I added a skipBackground flag to Lockscreen because otherwise I would not be able to get a consistent background up to the edges...12:09
MacSlow|lunchmzanetti, that's up for discussion though...12:09
mzanettiMacSlow|lunch: ok. I'll give it a shot with the blurring later on12:09
MacSlow|lunchmzanetti, fixing the margins is higher prio ... and with the skipBackground flag it looks nicer (with very little effort)12:10
mzanettiyep. works for me12:10
MacSlow|lunchmzanetti, yeah... the blurring will take more time so this flag is a good effort/looks compromise12:11
=== MacSlow|lunch is now known as MacSlow
=== alan_g|lunch is now known as alan_g
=== alex_abreu is now known as alex-abreu
fgintherSaviq, morning13:03
fgintherSaviq, can you change this blueprint to the 'core' track? https://blueprints.launchpad.net/ubuntu/+spec/client-1311-upstream-merger-2013:04
kgunnfginther: Saviq is out today i thikn13:26
fgintherkgunn, thanks. There's no rush on my request. I'll try to remember next week13:27
mzanettidednick_: nic-doffay: standup13:32
mzanettiI'll be away for an hour or so. bbl13:42
dandradermzanetti, any idea who should I talk to about those automatic releases of packages made by "PS Jenkins bot"?13:43
dandraderfginther, ^13:43
fgintherdandrader, packages are automatically released by the daily release processs, PS Jenkins bot is the user13:45
dandraderfginther, yes. the thing is that it's been a long while since the last release of lp:unity-mir. Why a new release of it hasn't been made?13:46
qenghoHi all.  I have a bug report assigned to chromium-browser, but I think it might should be assigned to unity.  What do you think? https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/124452913:55
ubot5Ubuntu bug 1244529 in chromium-browser (Ubuntu) "no repaint of unity at end of fullscreen chromium" [Undecided,New]13:55
fgintherdandrader, ah, finally found it. unity-mir is failing the landing pipeline testing so it hasn't been released14:00
dandraderfginther, anything I can do about it?14:02
fgintherdandrader, Mirv is the contact for that item (landing #268) Mirv ^ ?14:04
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
Cimimy favourite qa engineer14:35
Cimimzanetti, hey14:35
Cimimzanetti, I removed MathLocal14:35
Cimimzanetti, but ubuntu ui toolkit is missing tests we had in shell14:36
Cimimzanetti, https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/124468514:36
ubot5Ubuntu bug 1244685 in Ubuntu UI Toolkit "MathUtils does not have tests" [Undecided,New]14:36
Cimipls have a look at it, it gets fixed :)14:36
Cimiunity 8 branch is here https://code.launchpad.net/~cimi/unity8/remove-mathlocal/+merge/19270914:36
mzanettiCimi: can you move the tests over to the SDK?14:44
mzanettiCimi: would be a waste to just drop them14:44
mzanettidandrader: didrocks should be able to help there too14:45
Cimimzanetti, look at the bugreport14:52
Cimimzanetti, I attached our test file14:52
* didrocks backlogs14:52
didrocksdandrader: ah, so yeah, we are blocked on Mir14:52
didrocksand this is under resolution14:52
didrocks(they broke the ABI, we are going back on track)14:52
dandraderdidrocks, ok. thanks for the info14:52
didrocksdandrader: probably on Mondya14:53
didrocksMonday*14:53
sil2100Saviq: hiii15:14
sil2100Saviq: did you guys have a minute to take a look at https://bugs.launchpad.net/unity8/+bug/1244549 ?15:15
ubot5Ubuntu bug 1244549 in Unity 8 "unity8 test failures in trusty" [Critical,New]15:15
=== salem_ is now known as _salem
=== jalcine_ is now known as jalcine
CimiMacSlow, ^15:44
MacSlowCimi, the bug?15:48
MacSlowCimi, not sure what you're refering to15:48
CimiMacSlow, that bug looks like notification autopilot issues15:49
CimiMacSlow, thought you knew more than Saviq15:49
Cimisil2100, Saviq is off today15:49
MacSlowCimi, well these tend to be "fragile"15:49
MacSlowCimi, so if there's something currently moving with autopilot in trusty I expect these to be false positives for the moment until proven wrong15:50
CimiMacSlow, don't tell that to me, but the bug report :)15:51
MacSlowsure15:51
MacSlowCimi, but I wanted to let you know too15:51
sil2100bregma: ping! Hi!15:58
bregmayo15:59
sil2100bregma: I don't know who to ping related to those, but we have HUD failures in trusty: https://bugs.launchpad.net/hud/+bug/124470416:01
ubot5Ubuntu bug 1244704 in Unity HUD "Some test_hud tests fail on trusty desktop" [Critical,Incomplete]16:01
sil2100bregma: tedg got informed, but as these are from lp:unity autopilot, do you know who we should assign to that?16:02
MacSlowCimi, sil2100: commented on 124454916:05
=== _salem is now known as salem_
=== dandrader is now known as dandrader|lunch
sil2100MacSlow: thanks, let me try a re-run and see if it's still the same failure pack16:13
sil2100MacSlow: anyway, maybe in some time-critical cases we could bump the 10-second timeout? (as AP allows that)16:15
bregmasil2100, those failures all look to me like unexpected results are being returned by the HUD (5 instead of 0, for example) ....  they don;t appear to be UI issues in unity16:18
MacSlowsil2100, oh... didn't know that16:18
MacSlowsil2100, good to know16:18
sil2100tedg: ^16:19
=== jalcine is now known as jalcine_
=== jalcine_ is now known as jalcine
kgunngreyback_: can you share your qtscenegraph doc with me ?17:01
kgunnlike on google17:01
greyback_kgunn: for the whole internets to see? Okie dokey17:01
greyback_kgunn: done!17:02
kgunngreyback_: actually...i meant just canonical :)17:02
kgunnbut then shared with me as an individual17:02
greyback_kgunn: well you got shared17:03
kgunngreyback_: you did it right :)17:03
* greyback_ eow17:05
=== alan_g is now known as alan_g|EOW
=== jalcine is now known as jalcine_
=== dandrader|lunch is now known as dandrader
=== jalcine_ is now known as jalcine
=== racarr is now known as racarr|sick
=== salem_ is now known as _salem

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