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

Saviqveebers, hey, around yet?18:39
veebersSaviq: Hi, I'19:40
veebersm  aruond now19:40
veeberserr I'm around now*19:40
Saviqveebers, hey19:43
Saviqveebers, I left you a note on your "u8 tests use upstart" MP19:43
Saviqveebers, I'll be around for some time still if you get it to a "ready for review" state19:45
veebersSaviq: This is the OSK stuff?19:47
veebersSaviq: a couple of things, why isn't OSK running at that stage, does it die when unity8 is stopped? Also, none of the unity8 tests at use the OSK for the tests themselves (as stated in the bug)19:48
Saviqveebers, it crashes sometimes, yeah19:49
Saviqveebers, but the new unity8 job makes sure it's started19:49
Saviqveebers, so as long as we launch unity8 with upstart, should be good19:49
Saviqveebers, the password entry do19:50
Saviqveebers, well, they type stuff in19:50
Saviqveebers, but autopilot uses maliit internally19:50
veebersSaviq: oh ok. So no need to merge the fix the specifically starts OSK, just merging the 'start with upstart' will do?19:50
Saviqveebers, yeah, and making the "recreate the finger" workaround not on Desktop19:52
Saviqveebers, ap using maliit is bug #1238645 btw - to track what we want to do with it19:52
ubot5bug 1238645 in Unity 8 "Shell does not get autopilot keyboard input if maliit isn't running" [Undecided,In progress] https://launchpad.net/bugs/123864519:52
veebersSaviq: autopilot only uses maliit internally if it's using the osk backend, it's not here. The only reason that it pops up during the tests is because a text input becomes focused19:53
Saviqveebers, how can you tell it's not using the osk backend on devices?19:53
Saviqveebers, or do you mean on desktop it does not?19:53
Saviqveebers, oh btw19:53
Saviqveebers, unity8.conf job - we should move it to lp:unity819:54
Saviqveebers, do it in your MP19:54
Saviqveebers, and I'll make sure of removing it from the ubuntu-touch-session19:54
Saviq-the19:54
veebersSaviq: I mean on device, I can tell 2 ways: in the logs you see something like: DEBUG _uinput:79 - Pressing o (24) (notice the _uinput) and that the keyboard isn't doing anything while things are being typed in19:55
veebersSaviq: I don't follow, the 'unity8.conf job'?19:55
Saviqveebers, upstart19:55
Saviqveebers, unity8.conf is in lp:ubuntu-touch-session - we need to move it to unity8 if we want to run unity8 on the desktop via upstart for ap tests19:56
Saviqveebers, regardless - starting maliit makes sure we do get the keyboard input19:56
veebersSaviq: yes, I can confirm that's the same for me (re: keyboard)19:57
Saviqveebers, so starting u8 for testing will get us maliit anyway19:57
veebersSaviq: right, so: Don't merge the 'start maliit' fix, add the u8.conf which will make it work for desktop and it's ready19:58
Saviqveebers, we still want:19:59
Saviq16- from autopilot.input import _uinput19:59
Saviq17- _uinput._touch_device = _uinput.create_touch_device()19:59
Saviq18+ if model() != "Desktop":19:59
Saviq19+ from autopilot.input import _uinput19:59
Saviq20+ _uinput._touch_device = _uinput.create_touch_device()19:59
Saviq21+ ####19:59
Saviqveebers, as that crashes compiz and/or Xorg on desktop19:59
Saviqveebers, but yeah19:59
Saviq23+ #### FIXME: This is a work around re: lp:1238645 ####19:59
Saviq24+ if model() != "Desktop":19:59
Saviq25+ subprocess.call(["/sbin/initctl", "start", "maliit-server"])19:59
Saviq26+ def stopMaliit():19:59
Saviq27+ subprocess.call(["/sbin/initctl", "stop", "maliit-server"])19:59
Saviq28+ self.addCleanup(stopMaliit)19:59
Saviqwe don't need anymore19:59
veebersSaviq:  ah understood19:59
Saviqveebers, btw, there's no python bindings for upstart? it's kinda ugly to call initctl everywhere20:00
Saviqveebers, ah, and shouldn't it use _patch_environment for QT_LOAD_TESTABILITY as well?20:02
Saviqveebers, also20:03
Saviq84+ self._using_upstart = False20:03
Saviq85+ if model() != "Desktop": # or check env20:03
Saviq86+ self._using_upstart = True20:03
veebersSaviq: hmm, I agree re: ugly I'm just double checking for bindings now20:03
Saviqwhy don't we not want to use upstart on desktop?20:03
veebersSaviq: hmm, no, _patch_environment is there for the difference between using and not using upstart20:03
veebersif we'regoing to use upstart on desktop that changes20:04
Saviqveebers, yeah - why would we not want to run under upstart20:04
Saviqveebers, can use upstart on desktop too, no?20:04
veebersSaviq: It's not that we wouldn't it's just that it wasn't at the time. I"m not sure, I assume that we can use upstart on desktop20:04
Saviqveebers, where we would like *not* to, potentially, is when running tests on a local installation - unless obviously we can point upstart at a different dir to find unity8.conf20:05
veebersSaviq: which reminds me, with the MR as it currently is the only way to test a unity8 branch that is in devlopment will be to build a package, install then run the tests20:05
Saviqin case unity8 is not installed system wide20:05
Saviq↑ that20:05
veebersSaviq: right, :-)20:05
Saviq;)20:05
veebersSaviq: I'm pretty sure that we could write an override file that points to the path of the binary20:06
veebersi.e. exec /path/to/unity8/in/dev20:06
veebersactually, we'll need to do that on the desktop right so we can pass it the -geo etc.20:06
Saviqveebers, I think I'm ok with that limitation20:07
Saviqor well, right...20:07
Saviqwe should try and find a way to run the local version :/20:08
veebersSaviq: right, I think the override version will work, I can test it out.20:08
veebersSaviq: also, that repo you linked me (lp:ubuntu-touch-session) apparently doesn't exist20:08
Saviqright, looking20:08
veeberscheers20:09
Saviqveebers, https://launchpad.net/session-manager-touch20:09
Saviqveebers, yeah, an .override could work indeed20:12
mhr3for a moment i was wondering whether it's monday already20:13
Saviqveebers, or maybe even - maybe we could prepend PATH?20:13
Saviqmhr3, for some people it is ;)20:13
mhr3Saviq, it shouldn't be for you though :)20:14
Saviqveebers, if we set-env PATH to prepend builddir/install/bin, think that'd work?20:14
Saviqveebers, or well, we could build support for something like that into the job20:15
Saviqso that we don't require manual intervention from people20:15
Saviqmhr3, blah blah blah ;P20:15
mhr3Saviq, workaholic :P20:17
mhr3otoh i spent yesterday couple of hours trying to figure out what's wrong with mediascanner... so, ehm, maybe i shouldn't call names :P20:18
Saviq;)20:22
veebersSaviq: well, the test already gets the path to the binary, I was going to write an override file if the path isn't system. Although I presume that set-env'ing PATH would work too20:24
veebersSaviq: ah, prepending PATH would work for the binary but not the args (i.e. geo on desktop)20:25
Saviqveebers, yeah, args are something I don't know how to do with upstart20:26
Saviqveebers, but well, should be possible, shouldn't it?20:27
Saviqveebers, like we can pass GEO=blah and use that in the upstart job?20:27
veebersSaviq: the only way I know of is using the override file :_\20:27
Saviqveebers, or even ARGS=-blah -blah20:27
veebersSaviq: perhaps, I'm not sure20:27
Saviqveebers, yeah, you can just "start unity8 GEOMETRY=blah" and then use it as "exec unity8 -geometry=$GEOMETRY"20:28
veebersSaviq: ah, this is in the unity8.conf right? (the exec un . . .)20:29
sergiusensSaviq, veebers pass args through a set-env and consume them from an upstart override job?20:32
sergiusensor patch the real upstart job20:32
veeberssergiusens: that's wha Saviq is suggesting and patch in unity8.config20:32
veeberssergiusens: ^_^20:33
sergiusensveebers, sorry, only read the first 4-5 lines of my further back backlog20:33
veeberssergiusens: no worries, I appreciate the help/feedback20:33
sergiusenswell I'm +120:33
Saviqveebers, no20:39
Saviqveebers, well, why set-env20:39
Saviqthere's arguments to jobs20:39
Saviqor well20:39
Saviq"initctl start unity8 FOO=bar" and "inictl start unity8 FOO=baz" might be different jobs20:39
Saviqveebers, so yeah, it might be better to pass through a set-env then20:40
Saviqor no, "instance" clause is what's doing it :D20:40
veebersSaviq: right, but those vars set by set-env need to be consumed at some stage right?20:41
Saviqveebers, AFAICT no need for set-env on them - just:20:41
Saviqinitctl start unity8 FOO=bar20:41
Saviqand then in the .conf20:41
Saviqyou can use $FOO20:41
SaviqI'm good with ARGS20:41
Saviqand so "exec unity8 $ARGS"20:41
Saviqin unity8.conf20:42
Saviqsergiusens, ↑?20:42
veebersSaviq: cool (thats' what I was suggesting in unity8.conf)20:42
veebersSaviq: minor issue with just bringing in unity8.conf to lp:unity8, it contains this:20:43
veeberspost-start script20:43
veebers    sleep 1220:43
veebers    /usr/bin/ofono-setup20:43
veebersend script20:43
veebers(which won't work on desktop)20:43
Saviqveebers, let's hope it's not going to be a critical issue (just a warning)20:43
Saviqveebers, and I'll talk to people to move it out of unity8.conf tomorrow20:43
Saviqveebers, if it is critical - just move it out, and I'll talk to people where to put it again20:44
sergiusensSaviq, that's good, it's how the application job does it20:44
veebersSaviq: Hmm, I thought it brought up the crash dialog, but maybe i was wrong20:45
Saviqsergiusens, yup20:45
Saviqveebers, if it does - just remove it, I'll ask someone to put it somewhere in a better place20:45
veebersSaviq: cool, will do.20:45
sergiusensSaviq, that can be a separate job20:46
Saviqsergiusens, yup, I thought so20:46
Saviqveebers, it just occurred to me, we can use the same for the binary path21:20
Saviqveebers, i.e.21:20
Saviqinitctl start unity8 BINARY=/path/to/binary ARGS=21:20
Saviq"-foo -bar"21:20
Saviqand then in the .conf:21:20
Saviqexec ${BINARY-unity8} $ARGS21:20
Saviq${BINARY:-unity8} that is21:21
Saviqassuming it'll get parsed by bash and not by sh21:21
Saviqbiab21:21
veebersSaviq: nice, will try that too. Just trying to upgrade to sort some issues out21:29
veebersSaviq, do you know if there is anything else I need to do to get unity logging when started with upstart on desktop? I'm trying to determine if/why it's having issues with QT_LOAD_TESTABILITY22:15
Saviqveebers, not logging for you in ~/.cache/upstart/unity8.log is it?22:16
* veebers triple checks22:16
Saviqveebers, indeed, it's quiet there22:18
veebersSaviq: thanks, I think I was checking ~/.config not ~/.cache :-\ oops22:18
Saviqveebers, ah no22:18
Saviqit just takes long to start22:18
Saviqstupid hud22:18
veebersSaviq: right, so I don't see "Loading testability driver." if I just use QT_LOAD_TESTABILITY, but I do if I add -testability to the args :-\22:20
* Saviq tries22:21
Saviqveebers, indeed, interesting22:23
Saviqveebers, but if I just go "QT_LOAD_TESTABILITY=1 unity8" - it works22:23
veebersSaviq: but if you use set-env QT_LOAD_TESTABILITY=1  does that work?22:25
Saviqveebers, it's unset after set-env for some reason :S22:25
veebersSaviq: ugh, odd :-\22:27
veebersSaviq: at the moment then I have an "if desktop: args.append('-testability')"22:27
Saviqveebers, yeah, but if set-env doesn't work - we'll have issues with the paths anyway22:28
Saviqveebers, had to pass -g22:29
veebersSaviq: its odd as the mocks seem to work (when running the test it has the "Alph release, not ready . . .")22:29
* veebers tries22:29
Saviqveebers, that's 'cause there is nothing not-mocked available22:29
Saviqveebers, on desktop22:29
veebersSaviq: oh, very good point22:31
Saviqveebers, I think we need -g indeed22:31
veebersSaviq: just tried and it works for me, adding now22:31
Saviqveebers, btw, there's reset-env22:31
Saviqveebers, although if we'd be overriding an existing value, it's probably better what you're doing22:32
veebersSaviq: when I tried that on Friday it browe everything for me, i.e. unity8 never connected to dbus after issuing that command, had to reboot etc.22:32
veebersSaviq: wasn't sure if that was expected (i.e. reset as in set eberything back to empty) or a bug22:32
Saviqveebers, I think expected, and anyway it would reset it to the "original" value22:33
Saviqas in the one that upstart was started with22:33
Saviqnot the one that was there before we used set-env22:33
Saviqveebers, so.... because on the desktop we're running *in* an upstart job (unity7) - we need to use --global22:33
veebersSaviq: right, but I found it odd that if I used the command reset then unity8 wouldn't connect to dbus afterward at all22:34
veebersSaviq: ah ok makes sense, I've added that to the set-env calls22:34
Saviqveebers, on device / during otto we wouldn't need it, as the commands are ran outside of upstart jobs22:35
Saviqveebers, dbus env is set by dbus when it starts22:35
Saviqveebers, so if you reset it, unity8 wouldn't know it22:35
veebersSaviq: ah I see re: --global, would there be any issue using it on device anyway?22:36
veebersSaviq: oh, thank makes sense re: dbus, thanks for clarifying :-)22:36
Saviqveebers, I don't think there would22:36
Saviqveebers, it's actually implied22:36
Saviqveebers, when ran outside of a job22:36
veebersSaviq: cool, I'll use it regardless of desktop/device then :-)22:36
Saviq+122:36
veebersSaviq: I've just pushed the updated branch23:15
veebersSaviq: I think though that it still needs something handling OSK. It appears that trying to `stop unity8 while the OSK is up breaks things23:16
veebersunity and the osk is still on screen and unity's status is post-start, if I stop maliit-server it works again23:16

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