/srv/irclogs.ubuntu.com/2014/09/08/#ubuntu-quality.txt

pittiGood morning04:23
=== om26er is now known as om26er|afk
=== om26er|afk is now known as om26er
elfyballoons: hi - not sure if you caught the earlier ping, but ubuntu, xubuntu and lubuntu at least still have this seat0 issue, I have found that it appears to only be a vm issue - but an issue nonetheless, I did bug 1366206 against lightdm for the moment, but I think it is a vbox bug atm13:15
ubot5bug 1366206 in lightdm (Ubuntu) "Graphical desktop not starting from livesession" [Undecided,Confirmed] https://launchpad.net/bugs/136620613:15
balloonselfy, I did see and was going to ask thanks13:15
elfyjust added a screenshot to the bug of the 3 vt's13:16
elfygiven that we push people to test in vm's it'll need looking at I suppose lol13:16
balloonsIlm syncing today's iso to see what remains for me13:20
elfy:)13:21
elfyhave fun13:21
elfyI did those tests with synced iso's 30 minutes ago13:21
=== om26er is now known as om26er|doc
elfyballoons: any luck with it?14:22
balloonssynced, but haven't yet been able to try14:23
=== chihchun_afk is now known as chihchun
=== _salem is now known as salem_
=== chihchun is now known as chihchun_afk
balloonselfy, I get the same issue15:06
balloonsI can confirm15:06
elfyballoons: thanks - though I wish not ;)15:09
=== Ursinha is now known as Ursinha-afk
balloonsknome, elfy did you meet yesterday to discuss the tracker?16:49
knomeyes16:50
knomehttp://pad.ubuntu.com/trackers16:50
knomesee that16:50
balloonsknome, I'm getting info from stephane today so I should be able to review and update things.. :-)16:52
knomeyep16:52
elfynice16:52
balloonsso I'll try and get your stuff landed as my first exercise of power :-)16:52
knomethat's a start...16:54
elfyballoons: you got any idea who to prod about this vm no graphic issue? if it doesn't get looked at soon we'll be all over final beta16:54
elfyand with I'm wandering off for a bit16:55
balloonselfy, when you get back let's look at the bug together a bit more and see if we can come to a conclusion on what's failing16:56
elopiohello ubuntu-qa. Can I get a review here please? https://code.launchpad.net/~canonical-platform-qa/ubuntu-ui-toolkit/autopilot-upstart_local_modules/+merge/23265016:56
=== Ursinha-afk is now known as Ursinha
elfyballoons: ok - I'll be about an hour or so16:57
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== Ursinha is now known as Ursinha-afk
elfyballoons: about when you are18:10
balloonselfy, your timing is good. let's roll18:15
elfynot sure if you have seen the old lightdm bug - but seems that xserver-xorg-video-vmware is affected by it18:15
elfynot used vmware for ~6 years so no idea :p18:16
balloonselfy, we should try this on qemu18:16
elfynor that - only virtualisation I bother with is vbox18:16
balloonselfy, I suspect this is still a vm driver thing18:18
elfyyea - I'd agree with that18:18
balloonsso actually I'm not sure there's much more to go after here18:19
elfyyou can try with qemu?18:19
balloonselfy, ok, so I can get the livesession to boot if I start it manually.. That's the same as you right?18:21
elfyyep18:21
elfybut sometimes get xfce session instead of xubuntu18:22
elfyballoons: but prior to starting manually you get the CanGraphic=no?18:23
balloonselfy, yep18:24
elfyok - so vbox/vmware and qemu all fail the same - with I assume different xorg drivers18:25
balloonscould just be a udev issue, which is messed up currently18:25
elfyyep18:25
elfynot sure what to report this against - I couldn't report it against vbox - use the prop. one :)18:27
balloonselfy, I assume on boot we're getting xserver-xorg-video-vesa18:32
balloonsso that's where I would place the bug18:33
elfyaah yes - I did check the logs once I got in18:34
elfyI'll change the one I reported the other day to affecting that18:34
balloonsexcellent18:35
elfythere done :)18:35
balloonselfy, it would be useful to have the logs for that tho18:36
elfyI'll boot vm and attach anything I can think of :D18:36
* balloons is checking what apport pulls now18:37
elfydoing that now or I will forget18:37
balloonsyou going to simply add the bug to https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1365336?18:37
ubot5Ubuntu bug 1365336 in fglrx-installer-updates (Ubuntu) "Lightdm update=No desktop" [Critical,In progress]18:37
elfyoh actually I could apport-cli ubuntu-bug foo-vesa I guess18:37
elfydupe it ?18:38
elfyballoons: actually - add the -vesa package to that bug would be best perhaps18:39
balloonselfy, yes that's what I think18:39
elfynot sure I can add -vesa to that bug18:40
balloonsdone18:41
elfyta - to do that is it the Also affects distribution/package button?18:42
balloonsyes, and I duped your bug18:42
elfyok cheers - just getting the logs from a vbox boot to add to it18:43
=== Ursinha-afk is now known as Ursinha
elfyballoons: attached as many logs as I could think of to 1365336 :)19:04
=== roadmr is now known as roadmr_afk
=== salem_ is now known as _salem
balloonselopio, re: https://code.launchpad.net/~nskaggs/ubuntu-calculator-app/ap-fix-missing-keypress/+merge/233534/comments/570815. I need to file a bug in autopilot as the click duration does not work on phablet devices.https://bugs.launchpad.net/autopilot/+bug/1366949. I also left a larger comment explaining my reasoning19:35
ubot5Ubuntu bug 1366949 in Autopilot "press_duration is ignored on phablet devices" [Undecided,New]19:35
=== chihchun_afk is now known as chihchun
elfyballoons: seems that LaƩrcio is on the case again - I shall wait to get a .rule to try somehow :p20:20
=== roadmr_afk is now known as roadmr
balloonsknome, I don't see any proposed branches?20:37
balloonsknome, lol, I see them now.. You just committed them20:37
elopio balloons: that is https://bugs.launchpad.net/autopilot/+bug/126878221:01
elopiofixed but not yet released.21:01
ubot5Ubuntu bug 1268782 in Autopilot "tap method of Touch device doesn't have press_duration arg" [Undecided,Fix committed]21:01
balloonselopio, you are ALWAYS one step ahead of me..21:01
balloonssuperherp21:01
balloonselopio, is the mp otherwise a-ok for you/21:02
elopioballoons: but why is the default click duration not enough for the calculator?21:02
balloonselopio, it's possible it's fine now that I fixed the issue with not waiting for the screen before pressing keys, but I think verifying the keypress is the better way to go21:03
balloonsit seems to run faster now than before21:03
elopioballoons: the default on autopilot should simulate what a standard user does as close as possible. So if it doesn't work sometimes on the calculator it would mean either that it would fail for a default user or that the parameter needs and adjustment on autopilot.21:05
elopiothat's why I don't like the workaround, it's not clear which one is happening.21:05
balloonselopio, you think checking for the keypress is a workaround?21:06
elopioballoons: I do. That must always happen when we call autopilot's click_object.21:07
balloonssadly we must also think about slow machines.. the tests run in an xvfb environment as well.. There is some input lag and the default is REALLY quick21:07
balloonselopio, click_object isn't going to check for any response, it's simply going to send a click21:07
thomiballoons: you think 100ms between key press and key release is 'really quick' ?21:08
elopioballoons: then I think it is a problem on autopilot.21:08
elopioand we need a combination of low level and autopilot tests to make sure that a mouse click fires the pressed signal.21:08
elopioif this is a standard button, that test must be on Qt upstream.21:08
balloonsthomi, I think the issue is that we fire off 5 presses in 550 ms21:09
balloonsit's possible to miss one in a quick fire sequence21:09
thomiballoons: so you're suggesting that there needs to be a pause _after_ the key press, which is a different issue to the touch_duration MP then21:09
balloonsthomi, well I suppose I wouldn't argue that ap needs to change actually. But a real user certainly won't hit keys that fast. The test could stagger the key presses21:10
elopioballoons: yes, I didn't understand that. From your MP, that would mean to put a sleep after click_object, not between the press and release.21:10
balloonselopio, yes, that might be the issue.. I say might because I didn't try solving it that way21:11
balloonsbut I like my check much better than adding sleeps anywhere21:11
thomiotp - will get back to this when I'm done21:11
veeberselopio, balloons: Will getting elopios MP released (press_duration) help with this at all?21:12
balloonselopio, I do know the first keypress is lost because it fails to wait for the screen to come up. adding a wait_for.visible(True) fixed that.21:12
veebers(balloons I'm just taking a look at your MP now too :-) )21:12
balloonsveebers, without his MP I have to press, sleep, release to get the press_duration, which was my original change21:13
balloonselopio, I think other keypresses get lost, but you could simply run trunk tests or check the dashboard to confirm or deny this21:13
veebersballoons: ok, well it should be a pretty simple release, if it will help I can get that in  motion21:13
elopioballoons: what I asked on your MP was for a clarification of why the default is not good enought. What you are doing actually corresponds more or less with what a user would do, that's taking into account the button UI feedback when it's pressed.21:14
balloonsveebers, if I get my way however I don't need press_duration, lol :-) I'm checking the key state, but not sure I'll convince the others it's the way to go21:14
elopiothat makes sense. I would be happy with that comment on the code. Just a little worried that it might be affecting users somehow.21:14
balloonsdoes the comment do it justice? since you asked it's worth making sure the comment makes sense21:15
veebersballoons: ack, let me know if you need it urgently. It will be released in the near future but we can do it sooner if required21:15
balloonsveebers, and yea, I finally got a free minute to fix that little functional test failure21:15
veebersballoons: ah cool, was just loading the MP21:16
balloonsthis has been the longest mp I've my life21:16
elopioballoons: I'm happy you took that autopilot branch instead of me :)21:18
elopioballons taking the bullet for the team21:18
balloonslol.. it pushed me, all good stuff21:19
elopioballoons: about calc, yes, the comment makes sense. If you are not sure if it's needed or not, I would prefer to land the branch with a normal click_object and see how it goes.21:19
veebersballoons: yeah sorry part of that was me not reviewing in time :-P21:19
elopioballoons: but if you prefer to land it as is, I won't object.21:19
elopiothe comment makes it clear in case somebody wants to go deeper and eventually remove it.21:19
veebersballoons: hey, put my mind at ease, what changes (if any) will need to happen within app acceptance tests with this change? i.e. have you tested against the cal. app?21:20
balloonselopio, there is a slowdown fix branch that is depending on this to land.. maybe it can be swapped back after. Still, I prefer this implementation for the reasons I mentioned above21:21
elopioballoons: then go forth and land.21:22
balloonsI was somewhat forced into it because of the AP bug, but I prefer it to adding sleeps or tweaking press_duration21:22
elopioI'll leave my +121:22
balloonselopio, ty sir21:22
elopioballoons, thomi, veebers: I'll report a bug on autopilot for the missing sleep after click argument.21:23
balloonselopio, well that's a bigger discussion I think. Do you think it should sleep by default after a click?21:24
elopioballoons: I think it should at least give you the option to do it. And ideally the default will be something close to what a user would do.21:24
elopiothe second part is the hard one.21:24
balloonsit might fix some of the random failures we see I suppose21:24
veeberselopio: perhaps I missed something, why should click have a sleep?21:24
veebersah, this is between clicks?21:25
balloonsbut I'm not convinced AP should change for it21:25
elopioveebers: because if you call click_object two times in a row, it will do it a lot faster than a human could.21:25
balloonsyes, we're discussing for instance the calc which started this. Currently the test can enter operations insanely fast compared to a human21:25
veebershmmm21:26
elopiowhat do you think veebers? should it be autopilot's API, or the sleep should be added by a higher level loop?21:26
balloonsbut imho, the test should account for this and not the tool21:26
balloonsI would argue you should check the UI for a response21:26
balloonsno sleep21:26
elopioballoons: I think the response test is a low level QML test.21:27
balloonsunless you wanted to stagger input to completely mimic a user's input speed21:27
veebersI don't think 'click_object' should have an pre/post sleep as it's a stand alone action, if it was 'click_objects' (i.e. plural) sure it would make sense21:27
elopioon autopilot you should just assume that if you click, the button receives the input and fires the signal.21:27
veeberselopio: I agree with you there21:27
elopioveebers: click objects makes sense only for calculator and osk, so I won't file the bug.21:28
balloonsclick_objects.. that's interesting21:28
elopiowe can solve it on the higher level project.21:28
veebersright, if anything click_objects can start as a UUTK helper (as that's where it's used)21:29
balloonsthe osk is interesting thought21:29
elopiothanks for the review robotfuel21:29
veebersballoons: re: your datetime MP you'll need a packaging persons ack on the packaging changes (shouldn't be to hard, they're quite simple)21:35
balloonsveebers, who do you suggest?21:37
balloonsjust anyone?21:37
veebersballoons: I've asked robru in the past, but any packaging person is fine (I'm not sure of that list of people off the top of my head though)21:37
balloonsveebers, ok, :-)21:38
thomihi guys - I'm back22:31
knomewelcome back22:31
thomiwhat about having AP keep track of the last time it sent a click command, and delaying if that is < 100ms ago?22:31
thomiveebers: balloons, elopio ^^22:31
thomithat would keep the API clean, and mimic what a user would do22:31
elopiothomi: that works for me. My only concern would be how to define the right delay.22:32
veebersthomi: sounds nice and clean, I can't imagine it stepping on anyones toes either (i.e. I want a test that taps as fast as hell on this button)22:33
thomielopio: 100ms seems reasonable. We can always land a conservative guess and tweak it if it causes problems22:33
elopioI agree.22:33
thomiwe could even land a branch that just measures the gap and reports that statistic to a test attachment, but doens't do any sleeping22:33
thomithen, in phase 2, we could use that data to come up with a sensible value22:34
thomibut TBH, that sounds like a lot of work22:34
thomiI'd just land the first idea, myself22:34
thomibut I'll levae it in veebers hands.22:34
* thomi needs coffee22:34
veeberselopio: do you mind filing the bug you mentioned earlier re between tap delays so we don't loose the conversation. The idea is sound, just needs to be scoped out and implemented22:36
elopioveebers: on it.22:36
veebersthanks :-)22:36
balloonsinteresting you all agree22:36
elopioveebers: you have some code to get information from click list --manifest22:37
balloonsI guess I might be the lone dissenter on this22:37
elopioveebers: I need something similar. Is there a good place to put those helpers so we can all use them?22:37
veeberselopio: it depends on what you're needing :-) What are your requirements?22:38
balloonsthomi, ofc you'll make it an optional arg. In theory it will have no effect on 99% of the running tests as they are rather unlikely to send taps that quickly22:38
elopioveebers: give the package id and receive the version number.22:38
veeberselopio: hmm, I thought that was there too, I'll take a look shortly and get back to you22:39
elopioveebers: oh, and I also need the directory22:39
thomiballoons: I wasn't going to make it optional - I missed some of the scrollback - want to tell me why you think that's a bad idea? I'm interested in dissenting opinions :)22:50
balloonsthomi, so having a global wait on click if you will isn't nearly as concerning as a wait after each click. From elopio's perspective autopilot should clone the user as much as possible. That's an interesting thought, but I'm not sure autopilot as a tool has attempted to do that historically persay. That is to say, it's not tried to prevent you from shooting yourself in the foot22:54
balloonsso I wouldn't dissent too much about a global wait on click; especially something so small as 100 ms. I suppose my concern there would be the inability to avoid having to wait 100 ms between each tap. No I don't have a use case for way, but I don't like arbitrary restrictions. And it's probably non-trivial to make the global wait be 0.. autopilot doesn't really have any global options..22:59
elopioballoons: I think that if you try to test something that requires you a really small amount of time between events and you use autopilot, you would be shooting yourself on the foot.23:00
thomiballoons: you are correct that we haven't tried very hard to stop people shooting themselves in the foot in the past, but I think that's a bad thing, and something I want to change23:00
elopioit has a lot of overhead, and you could do better with QML in that case.23:01
thomiI think that AP should, whenever possible, mimic the user - this is what sets us apart from squish, for example23:01
elopioand anyway, it wouldn't be hard to make the time between events configurable, if that's needed for a good reason.23:01
balloonselopio, thomi I'm in full agreement. Ok, so you recognize at least you are steering autopilot into that direction.23:01
thomiballoons: absolutely23:01
thomiballoons: and if someone every comes up with a use case for wanting faster clicks that fits in with the autopilot testing strategy, then we can look at making it configurable23:02
elopio+1. It should be user simulation. Not just task automation.23:02
balloonsthomi, for my own sanity, if this was implemented at a method level, what's the harm in an optional arg?23:02
elopiohaving said that, selenium has a nice mode that runs the tests in cocaine mode.23:03
balloonselopio, lolololol23:03
thomiballoons: options are to be avoided at all costs. They make the API much harder to use, and introduce bugs23:03
elopiothat's not really useful to get stable executions, but it's good to exercise the application and gather some interesting bugs.23:03
balloonsI feel like python does them quite well.. althought in general I understand and agree conceptually23:03
thomiballoons: basically, it adds complexity where none is required23:03
balloonsthanks for the discussion. . . +1 from me for the global wait23:05
balloonsSo elopio, when will we be tapping on the OSK for all input? :p23:05
elopioballoons: I hope to have all set by the sprint. Then we can hack an evening to make sure all apps are using it.23:06
elopioballoons: there's a big list of things to do. First, get the osk tests running on MPs and dashboard.23:07
balloonsmore UITK goodness23:07
elopiothen, get the toolkit helpers working in a way that lets us enable the OSK one suite at a time.23:07
balloonsyep, awesome. that aligns with my thoughts23:07
elopioand then enable them on all projects. I expect many troubles on this last step, because many tests assume too much.23:07
balloonswe've gotten much better.. I feel like it won't be nearly as painful as you think23:08
balloonsthe helpers might be a bit23:08
elopioballoons: dios lo oiga.23:08
veeberselopio: out of interest, what's the haps with the OSK autopilot stuff, it used to work and there was work to get it in the dash + used by other tests23:08
elopioyou see? I can use weird sayings too :)23:08
elopioveebers: the tests are not running on MPs, so I expect the helpers to be a little outdated.23:09
elopiothen the problem was about restarting the keyboard with testability23:09
elopiowe now have many ways of doing it. We just need to pick one, that's not a big problem.23:09
elopioand then, the helpers on the toolkit are not using osk, they are using uinput. So we need to extend that to use osk if it's available.23:10
elopioveebers: not a big deal in general. It just requires one or two weeks of work, and lately we haven't been able to duplicate the available weeks.23:11
balloonselopio, oie23:11
veeberselopio: ack23:12

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