/srv/irclogs.ubuntu.com/2014/05/29/#ubuntu-autopilot.txt

=== xnox_ is now known as xnox
=== lderan_ is now known as lderan
=== vrruiz_ is now known as rvr
balloonsthomi, did the new autopilot land with my needed apparmor changes?12:41
thomiballoons: yes12:41
thomiballoons: I wonder if you could please help us get the 1.5 docs online?12:41
thomiwe *really* need them to be online now12:42
balloonsthomi, I thought we took care of all that in Malta. I'll ping dpm again to sync12:42
thomiballoons: AFAICT they're still not online12:43
balloonsindeed, I agree.. I still see 1.412:43
ahayzen_balloons, were the apparmor changes todo with the fix to writing to /tmp by using the autopilot/fakeenv?12:45
balloonsahayzen_, the apparmor changes in the last AP release were supposed to solve our /tmp issue yes12:47
ahayzen_balloons, hmmm i tried to resolve the issue, i'm correct in thinking we had to move to ~/autopilot/fakeenv like the calendar?12:48
balloonsafternoon elopio13:11
cgoldbergthomi, ping... got a sec?13:14
thomicgoldberg: maybe, what's up?13:14
cgoldbergthomi, quick question with my video branch.. stuck replacing that sleep statement i was working on my last day at malta13:15
cgoldbergI'm trying to check for the recordmydesktop /tmp directory before I stop the video capture.13:15
cgoldberg It looks like testtools PathExists() matcher doesn't work with globs/wildcards.. you need an exact directory name (which is unknown before the test starts).  Got another idea how I can check if the /tmp/rMD-session* directory eventually exists?13:15
thomicgoldberg: why not use glob.glob, and wait till it doesn't equal the old value?13:16
cgoldbergah.. nice.. that should work.  just wait in a loop until timeout?13:17
thomicgoldberg: use the EVentually matcher :)13:17
thomicgoldberg: which takes a callable13:17
thomiself.assertThat(lambda: glob.glob(...), Eventually(NotEquals(old_value)))13:17
thomior something like that13:17
cgoldbergcool... that should do13:18
cgoldbergthanks much13:18
cgoldbergbtw, I marked my branch as WIP, but will resubmit for review in a little bit once I push that up... if you have any time to look13:18
balloonsthomi, david says https://launchpad.net/ubuntu/utopic/amd64/python3-autopilot/1.5.0+14.10.20140526.1-0ubuntu1 still contains AP 1.4 docs13:20
balloonsthomi, also on this; https://code.launchpad.net/~thomir/ubuntu-calendar-app/trunk-fix-ugly-bits/+merge/221099, I find the local_location_qml change interesting.13:21
balloonsI guess it's simpler and still relative; I'll adopt it13:23
elopioballoons: hello!13:26
thomiballoons: sorry, I really don't have time to look now - can you ping me tomorrow if it's still outstanding please?13:26
elopiohow are you feeling now?13:26
balloonsthomi, the 1.4 docs is the important bit.. I was just commenting on your proposed merge; I don't need you to look at it, sorry to confuse13:28
cgoldbergballoons, regarding AP docs.  I just looked at the sphinx conf.py, and I see there might be an issue with the version it reports if for example you download the tarball13:28
cgoldbergballoons, it pulls the version number from debian changelog.  if you have a source tarball and no changelog, it defaults to whatever is specified in conf.py... which is currently:13:29
cgoldberg# The short X.Y version.13:30
cgoldbergversion = '1.413:30
balloonscgoldberg, ahh.. that would be why then13:30
balloonsso the 1.5 docs are up, they simply say 1.413:30
cgoldbergballoons, thats what it looks like.  I'll MP a fix to conf.py13:30
balloonselopio, feeling a bit more alive.. I think I'm on the road to recovery now13:31
balloonscgoldberg, shall we tweak the current docs to say 1.5 in the interim?13:32
cgoldbergballoons, if you have access, yes.. since my change won't land until next release13:33
cgoldbergyou can either regenerate the docs with the changelog present.. or just hack the generated html13:33
balloonscgoldberg, sure thing, will do13:33
cgoldbergballoons, this should do it:  https://code.launchpad.net/~coreygoldberg/autopilot/fix-docs-version/+merge/221381   we'll land it for next release13:42
balloonselopio, you EOD?15:28
elopioballoons: nop.15:28
elopiofighting autopilot weird view on inheritance.15:29
balloonselopio, how far along did you get on the sdk helper for env setup?15:29
elopioballoons: for home?15:29
elopioit's merged into staging.15:29
balloonsyes15:29
balloonsoO, can I see? I've been working on it this morning with Jamie, and I think calendar finally works15:30
balloonshowever we have something to discuss with it. We have to create 9 directories atm; not sure if more will be needed or not.. Jamie says /home is setup for clicks and they are prevented from making any dirs themselves15:31
balloonshe suggested cloning /home into our temp_dir and pruning what we don't want15:31
balloonsas it stands, we make the new /home and set it up from scratch. If something changes in /home, our helper will need to change else apparmor errors will sweep the tests15:32
elopioballoons: https://code.launchpad.net/~elopio/ubuntu-ui-toolkit/fix1317639-patch_home/+merge/22080515:33
balloonselopio, so that won't work out of the box on the phone15:34
elopioballoons: all that you are mentioning is new to me. That's why you can't get sick anymore :)15:34
balloonselopio, yes I didn't want this to linger all week.. I'm sorry :-(15:35
balloonsI didn't know it wouldn't work without additional tweaks either.. until I can confirm, I leave room for error15:35
elopioballoons: don't worry, I'm joking.15:35
balloonslol.. I know.. at least about the being sick part15:35
elopioballoons: so is this usable at all?15:35
balloonselopio, have a look at this mp: https://code.launchpad.net/~nskaggs/ubuntu-calendar-app/fix-ap-env-setup/+merge/22141615:36
balloonsit seems to work for calendar. You can see the 9 dirs I create; everything else is the same, but I do additional post-setup work.15:37
balloonsAs it stands, yes your branch will work, but the additional dir creation would have to be done in the test in order for apparmor to not whine15:37
balloonselopio, does what I said above make sense? ^^16:15
elopioballoons: sorry, I got distracted with a branch.16:19
elopioballoons: wow, so many things to create.16:19
elopiothe other way, we would have to delete only one dir from home with the name of the app, right?16:20
balloonselopio, well, we would need to cleanup anything we felt could potentially mess with the results I guess..16:22
balloonsOr maybe just anything we know the test writes in16:22
balloonswhich sort of leads us back to where we started with backing up directories16:22
balloonswe also have the time and potentially storage issues of running a full copy on /home16:23
balloonsI don't like the idea, as it's just not the clean solution we are looking for. I don't care if we have to make 20 dirs, as long as we can be assured we've setup things properly and won't break stuff16:24
elopioballoons: I meant, make a new temp home, and copy into it everything that was on the real home16:30
elopioexcept the directory with the application data.16:31
elopioand the new temp dir, or we will end in wonderland.16:31
balloonselopio, yes.. see my concerns with doing the copy above16:34
balloons1) storage space16:34
balloons2) time to copy if many files16:34
balloons3) potential hidden conflicts16:34
balloons4) some apps do write to other dirs (music for instance uses mediascanner)16:34
elopioballoons: ahh, sorry, my brain is about to stop.16:35
balloons5) Not as clean as setting up a pristine environment ;-)16:35
elopioballoons: ok, then lets make the 9 directories.16:35
balloonselopio, I feel the same way, different reason though, heh16:35
elopioand we need a better test on the toolkit that tells us if we could launch the app, so it will break when app armor rules change.16:35
balloonselopio, well I'm concerned about both approaches.. the thing I think that stops me on the copy is the storage issue16:35
elopioballoons: wait a second while I go up to my room16:36
* elopio migrates to a warmer place.16:36
elopioballoons: I'm back.16:43
balloonselopio, warmer I hope? :-)16:43
elopiostarting to get warmer. The cleaning lady keeps turning on the air.16:44
balloonselopio, so I guess we'll go with the create the dirs approach then? I wouldn't worry about modifying your helper just yet.. We need this in a few apps, so I'm going to push the function as part of _init_.py. I want to ensure we're not missing a directory for instance :-)16:56
balloonsonce everything is converted over we'll see where we land16:56
elopioballoons: I will start thinking how to test it on the SDK16:56
elopiomy helper in any of the two approaches just needs more directories. We can create them, or copy them. I'm not sure which one is best, so either way seems fine for now.16:57
cgoldbergballoons, just read scrollback.  do you need environment isolation between tests? as in... do you want to create the dirs once for a test suite.. or do you want it created fresh between each test?   might be nice to use a Fixture instead of adding to __init__.py .  just wondering if the env gets poluted between tests18:21
balloonscgoldberg, https://code.launchpad.net/~elopio/ubuntu-ui-toolkit/fix1317639-patch_home/+merge/22080518:57
cgoldbergballoons, right.. so don't you wanna add your dirs there, instead if in __init__ of every app test suite?18:59
balloonscgoldberg, most certainly.. the helper will need updated19:00
cgoldbergballoons, cool.  that gives you nice isolation.. especially if you remove the dirs in the Fixture as a Cleanup step19:02
cgoldbergand as to the copy vs. create...   both are feasible..  but I wouldn't copy existing /home.  I think it would be better to create a fresh env structure in your source tree and copy that.  or else just create them in the fixture19:04
cgoldbergballoons, let me know if you need a hand... I like small tasks besides hacking Autopilot itself  :)19:07
balloonscgoldberg, well I'm still seeing apparmor issues..19:11
balloonscalendar works, but music doesn't.. and I'm seeing issues in calc even though it's not been migrated19:12
balloonsI'd prefer to construct things as opposed to copy19:12
cgoldbergballoons, that's fine.  the end result is the same if you are copying from a known source (not existing /home)  ... my main point was to do them in a Fixture instead of __init__19:14
balloonscgoldberg, check on the fixture.. The idea of copying a prisitine source is interesting, but you would have to bundle it with the toolkit19:15
balloonswell the toolkit helper19:15
cgoldbergright... you check in a pristine dir. and have your test call a fixture that sets up and tears down the env between tests19:16
cgoldbergbasically a hybrid your yours and Leo's branch :)19:17
cgoldbergwith some dirs checked into bzr19:17
balloonsI guess that's an implementation detail for the helper :-)19:18
balloonsI still think I prefer the creation19:18
balloonsmostly I just want it to work19:18
balloonsheh19:18
cgoldbergfair enough :)19:21

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