=== _salem is now known as salem_ === salem_ is now known as _salem [06:41] Saviq: 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] Saviq: or 10 of then, to be exact [07:10] bug #1244549 [07:10] bug 1244549 in Unity 8 "unity8 test failures in trusty" [Critical,New] https://launchpad.net/bugs/1244549 [07:56] mzanetti, hey! got to write the test today. https://code.launchpad.net/~om26er/unity8/add_searchIndicator_test/+merge/192647 [07:58] om26er: cool stuff! (there is a typo in the comment sping -> spin) [07:59] ooh - fixed that. === iahmad is now known as iahmad|afk [08:15] om26er, hey dude [08:16] Cimi, hi [08:16] om26er, just had a look at the test :) [08:16] needs fixing ? ;) [08:16] it's good, you should add more situations [08:16] om26er, like you know when the search box comes in or not [08:17] om26er, searchVisible: !greeter.shown && !lockscreen.shown && dash.shown [08:17] Cimi, something like, close the app and then make sure the indicator is visible ? [08:17] om26er, so we should test those conditions [08:17] I was actually planning to change that to: [08:17] om26er, the idea of the tests is "we test the condition, so if something breaks the test can detect" [08:17] searchVisible: !greeter.shown && !lockscreen.shown && !applicationRunning [08:19] rather !applicationFocused [08:20] Cimi, i'll enhance this test to also test if the indicator is shown while greeter is locked [08:20] you learn quickly ;) [08:21] there 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 anywhere [08:21] om26er, that too [08:21] om26er, have a chat with a designer [08:21] or mark the bug as incomplete [08:21] on Uubuntu UX [08:22] Cimi, ok, will do. [08:27] Saviq, mzanetti how do I get the current lens from a test? [08:27] I can add current index, but names seems to be mapped [08:28] otherwise I go again for autopilot [08:28] duude [08:28] Cimi: don't pick a test framework for that reason (unless everything else is the same) [08:29] mzanetti, isn't like selecting best tool for my needs? [08:29] Cimi: 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 soon [08:30] there is no ready example, just I like autopilot for few things :) [08:30] Cimi: I need to read the code to answer your question. give me a few minutes [08:30] but can be done in qmltest [08:30] mzanetti, Dash.qml iirc [08:32] Cimi: tests/qmltests/tst_Shell.qml line 368 [08:43] mzanetti, what? [08:43] Cimi: can't you use something like this? [08:44] mzanetti, oh yeah, my branch had different line numbers :) [08:44] mzanetti, 368 was pointing to a useless piece of code :) [08:44] #fridaymorning [08:44] lol [08:44] let me check again [08:46] mzanetti, might try [08:46] something similar though [08:46] Cimi: do you have a pointer to the item you need? [08:46] e.g. with findChild() [08:47] then you could use something like the itemIsOnScreen() (line 403) [08:47] ok [08:51] Cimi: but you have a good point. would be cool to get a list of all items at position x,y [08:51] Cimi: maybe I'll hack that into our utils at some point [08:51] (unless you want to give it a shot ;) [08:56] mzanetti, mmm [08:56] mzanetti, in reality I want to test if the application scope is already on screen while I swipe [08:57] mzanetti, does itemisonscreen verify if things are on screen with different z index? [08:59] Cimi: it doesn't care about the z index [09:00] mzanetti, so it detects if underneath the app we have the dash? [09:00] Cimi: if the item is fully inside the visible part, it returns true, otherwise false [09:00] brilliant [09:00] Cimi: yes. can even be covered [09:27] mzanetti, can I run a single test instead of running the whole TestCase {} ? [09:27] right now I am doing make testShell which runs like 16 tests [09:27] om26er: nope. you can't (except commenting out all the others temporarily) [09:28] mzanetti, ok [09:28] om26er: hint: you could try to use cleanup() to close any open applications (which will be executed after each test function) [09:28] mzanetti, yes I was going to do that. I am writing another test for search indicator taking greeter into account. [09:28] ah cool :) [09:28] how do I get back the greeter in test? [09:29] will greeter.show = true do ? [09:29] *shown [09:29] om26er: greeter.show() should do I think [09:35] mzanetti, https://code.launchpad.net/~cimi/unity8/fix-1231996/+merge/192372 [09:36] Cimi: cheers. will just tag the last 5 bugs and review it then [09:39] Saviq, I'm using UbuntuShapeForItem, what's the best way to set it's colour? [09:42] nic-doffay: Saviq is away today [09:42] nic-doffay: You can use a Rectangle {} in it [09:47] Cimi: shouldn't you make sure that there is another scope visible before the swipe? [09:47] mzanetti, it does before [09:47] ok [09:47] mzanetti, when it checks the home lens [09:47] mzanetti, well, that apps is out of the way [09:47] mzanetti, you sure? I've tried that already. [09:48] * mzanetti wishes there would be a feature to expand the diff to the full source file in LP [09:48] nic-doffay: yes, I'm sure [09:48] mzanetti, you remember me how to trigger lock screen? [09:49] nic-doffay: you can only have one item in there. but if you wrap the existing one inside the rectangle you should be fine [09:49] mzanetti, want to work on the wallpaper shift [09:49] mzanetti, that's what I've done. [09:49] and set the anchors to fill the ubuntushape parent. [09:49] The ubuntu shape doesn't mask off the rectangle though. [09:49] Cimi: http://design.canonical.com/2013/07/unlocking-the-phone/ [09:50] nic-doffay: well, I'm quite sure it works if done right. would need to see your code to spot the error [09:51] brb [09:52] mzanetti, http://pastebin.ubuntu.com/6299790/ [10:06] nic-doffay: image: Rectangle {} [10:07] nic-doffay: I agree that the API is bad and the property shouldn't be named image but rather "contentItem" or the like. [10:20] Cimi: approved [10:32] mzanetti, you see anything wrong here? http://paste.ubuntu.com/6299936/ [10:33] mzanetti, lockscreen_background is NoneType [10:34] Cimi: the greeter might not be visible? [10:34] Cimi: in which case the Loader unloads it and select_single wont find it (as it's deleted) [10:34] mzanetti, it's the same code of the greeter test I wrote basically [10:34] I cannot see why this should fail [10:35] mzanetti, the lock screen is not on a loader === rachelliu_ is now known as rachelliu [10:40] Cimi: don't know then. also to me this looks like a qml test candidate tbh [10:55] MacSlow: heya [10:55] mzanetti, yup [10:55] MacSlow: do you think this is yours? https://bugs.launchpad.net/indicator-network/+bug/1238990 [10:55] Ubuntu bug 1238990 in Network Menu ""Unlock SIM" gets stuck if snap decision failed" [Low,Triaged] [10:56] mzanetti, hm... not sure... but I'll look into it... fullscreen-support is almost done (thank god) so I have time for this [10:57] MacSlow: yay! very nice :) [11:13] om26er_: heh, I'm afraid you understood the cleanup() thingie wrong :) [11:14] how about that ;) [11:14] om26er_: cleanup() is automatically called after each test function. However, you need to implement it yourself to actually do the cleanup [11:15] mzanetti, a function to make sure all the apps are killed ? [11:17] mzanetti, one of the tests is calling cleanup(); in it as well. is that doing wrong ? [11:17] re: test_rightEdgeDrag() [11:17] om26er_: probably. let me check [11:18] mzanetti, self.app.select_single doesn't work for images [11:18] om26er_: that seems to be a special case [11:18] mzanetti, works if I change the lock screen Image to CrossFadeImage [11:18] om26er_: as he does some more checks after the cleanup. but yes, that one calls cleanup() twice in the end [11:19] om26er_: but: I see the cleanup() already does the killing of apps [11:19] mzanetti, so no need to do that in my code ? [11:19] om26er_: so I've been wrong. your test is fine even without the manual cleanup() [11:19] mzanetti, ack, does the second test look good ? [11:19] om26er_: one sec, haven't read through it yet [11:20] Cimi: hmm... afaik it should work for images too [11:20] mzanetti, doesn't seem to [11:21] mzanetti, shall I change to CrossFadeImage on the lock screen? :) [11:22] is there a reason why we have Image here and not CFI ? [11:22] Cimi, something else might have the same object name ? [11:22] Cimi: 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 resources [11:22] om26er_, lockscreenBackground ,.. [11:23] om26er_: is this change wanted? 8 + readonly property alias previewShown: previewLoader.onScreen === _salem is now known as salem_ [11:24] mzanetti, mmm I dunno how to select that Image then [11:24] mzanetti, no, not really I think I pushed a local change, I was working on a different bug, let me revert that [11:24] Cimi: imho you still should use qmltest for this. [11:25] mzanetti, globalRect is super handy [11:25] but it wastes 40 seconds in every CI run for no benefit [11:25] mzanetti, pushed. === alan_g is now known as alan_g|lunch [11:25] besides the fact that you're working on it for 3 hours now doesn't make it look super handy tbh [11:25] om26er_: thanks [11:26] mzanetti, 3 hours? [11:26] more? [11:26] mzanetti, 1? [11:27] mzanetti, btw it's not my fault if an API doesn't work [11:27] mzanetti, if it were working I would have finished in 20 mins [11:27] mzanetti, but it didn't so I wasted time figuring out why [11:29] * Cimi is doing the qmltest === MacSlow is now known as MacSlow|lunch [11:42] mzanetti, is there anything else that needs to be set in the rectangle? [11:43] nic-doffay: don't think so... color of course :) [11:44] nic-doffay: still not working? [11:44] mzanetti, nope [11:44] nic-doffay: can you push the branch? I'll check it out then [11:47] mzanetti, yeah sure I'll push it to a junk branch. [11:54] mzanetti, here it is: lp:~nicolas-doffay/+junk/ubuntu-shape-colour-test [11:54] It's in PageHeader.qml [11:58] nic-doffay: you need to place the item inside the rectangle [12:00] which doesn't solve your problem still... hmmm. weird [12:01] mzanetti, btw... http://ubuntuone.com/4jWA8iX9nJrNn2o7MkQHgh [12:01] nic-doffay: ah. got it [12:02] nic-doffay: the component you set to image: is not a direct child of the shape. hence the anchors.fill: parent doesn't work [12:02] nic-doffay: give the UbuntushapeForItem an id: secondaryItemShape [12:02] nic-doffay: and make the rectangle width: secondaryItemShape.width and height: secondaryItemShape.height [12:04] nic-doffay: another hint: anchors { horizontalCenter: parent.horizontalCenter; verticalCenter: parent.verticalCenter } is the same as "anchors.centerIn: parent" [12:05] MacSlow|lunch: it's getting close :) [12:05] mzanetti, yup... top and bottom margins still give me headaches... but everything else works now smoothly [12:07] MacSlow|lunch: background image also missing still [12:08] mzanetti, ah cool. [12:08] MacSlow|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 stuff [12:09] mzanetti, 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] mzanetti, that's up for discussion though... [12:09] MacSlow|lunch: ok. I'll give it a shot with the blurring later on [12:10] mzanetti, fixing the margins is higher prio ... and with the skipBackground flag it looks nicer (with very little effort) [12:10] yep. works for me [12:11] mzanetti, yeah... the blurring will take more time so this flag is a good effort/looks compromise === MacSlow|lunch is now known as MacSlow === alan_g|lunch is now known as alan_g === alex_abreu is now known as alex-abreu [13:03] Saviq, morning [13:04] Saviq, can you change this blueprint to the 'core' track? https://blueprints.launchpad.net/ubuntu/+spec/client-1311-upstream-merger-20 [13:26] fginther: Saviq is out today i thikn [13:27] kgunn, thanks. There's no rush on my request. I'll try to remember next week [13:32] dednick_: nic-doffay: standup [13:42] I'll be away for an hour or so. bbl [13:43] mzanetti, any idea who should I talk to about those automatic releases of packages made by "PS Jenkins bot"? [13:43] fginther, ^ [13:45] dandrader, packages are automatically released by the daily release processs, PS Jenkins bot is the user [13:46] fginther, 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:55] Hi 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/1244529 [13:55] Ubuntu bug 1244529 in chromium-browser (Ubuntu) "no repaint of unity at end of fullscreen chromium" [Undecided,New] [14:00] dandrader, ah, finally found it. unity-mir is failing the landing pipeline testing so it hasn't been released [14:02] fginther, anything I can do about it? [14:04] dandrader, Mirv is the contact for that item (landing #268) Mirv ^ ? === dandrader is now known as dandrader|afk === dandrader|afk is now known as dandrader [14:35] my favourite qa engineer [14:35] mzanetti, hey [14:35] mzanetti, I removed MathLocal [14:36] mzanetti, but ubuntu ui toolkit is missing tests we had in shell [14:36] mzanetti, https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1244685 [14:36] Ubuntu bug 1244685 in Ubuntu UI Toolkit "MathUtils does not have tests" [Undecided,New] [14:36] pls have a look at it, it gets fixed :) [14:36] unity 8 branch is here https://code.launchpad.net/~cimi/unity8/remove-mathlocal/+merge/192709 [14:44] Cimi: can you move the tests over to the SDK? [14:44] Cimi: would be a waste to just drop them [14:45] dandrader: didrocks should be able to help there too [14:52] mzanetti, look at the bugreport [14:52] mzanetti, I attached our test file [14:52] * didrocks backlogs [14:52] dandrader: ah, so yeah, we are blocked on Mir [14:52] and this is under resolution [14:52] (they broke the ABI, we are going back on track) [14:52] didrocks, ok. thanks for the info [14:53] dandrader: probably on Mondya [14:53] Monday* [15:14] Saviq: hiii [15:15] Saviq: did you guys have a minute to take a look at https://bugs.launchpad.net/unity8/+bug/1244549 ? [15:15] Ubuntu bug 1244549 in Unity 8 "unity8 test failures in trusty" [Critical,New] === salem_ is now known as _salem === jalcine_ is now known as jalcine [15:44] MacSlow, ^ [15:48] Cimi, the bug? [15:48] Cimi, not sure what you're refering to [15:49] MacSlow, that bug looks like notification autopilot issues [15:49] MacSlow, thought you knew more than Saviq [15:49] sil2100, Saviq is off today [15:49] Cimi, well these tend to be "fragile" [15:50] Cimi, so if there's something currently moving with autopilot in trusty I expect these to be false positives for the moment until proven wrong [15:51] MacSlow, don't tell that to me, but the bug report :) [15:51] sure [15:51] Cimi, but I wanted to let you know too [15:58] bregma: ping! Hi! [15:59] yo [16:01] bregma: I don't know who to ping related to those, but we have HUD failures in trusty: https://bugs.launchpad.net/hud/+bug/1244704 [16:01] Ubuntu bug 1244704 in Unity HUD "Some test_hud tests fail on trusty desktop" [Critical,Incomplete] [16:02] bregma: tedg got informed, but as these are from lp:unity autopilot, do you know who we should assign to that? [16:05] Cimi, sil2100: commented on 1244549 === _salem is now known as salem_ === dandrader is now known as dandrader|lunch [16:13] MacSlow: thanks, let me try a re-run and see if it's still the same failure pack [16:15] MacSlow: anyway, maybe in some time-critical cases we could bump the 10-second timeout? (as AP allows that) [16:18] sil2100, 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 unity [16:18] sil2100, oh... didn't know that [16:18] sil2100, good to know [16:19] tedg: ^ === jalcine is now known as jalcine_ === jalcine_ is now known as jalcine [17:01] greyback_: can you share your qtscenegraph doc with me ? [17:01] like on google [17:01] kgunn: for the whole internets to see? Okie dokey [17:02] kgunn: done! [17:02] greyback_: actually...i meant just canonical :) [17:02] but then shared with me as an individual [17:03] kgunn: well you got shared [17:03] greyback_: you did it right :) [17:05] * greyback_ eow === 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