/srv/irclogs.ubuntu.com/2014/06/25/#ubuntu-quality.txt

=== _salem is now known as salem_
pittiGood morning04:23
=== salem_ is now known as _salem
=== chihchun_afk is now known as chihchun
=== roadmr_afk is now known as roadmr
=== roadmr is now known as roadmr_afk
=== roadmr_afk is now known as roadmr
ki7mtHello all, I have couple merge proposals (server test cases) any chance one of the commiters can look at them so I can get the bugs closed?08:54
elfyki7mt: I'll look at them both in the next hour or so08:56
ki7mtelfy, Thanks, appreciate that.08:57
elfywelcome08:59
elfyki7mt: there's a few issues with them still09:40
ki7mtelfy, Yes, I got your emails, I thought I had all those "Should's" out of there I guess I missed one.09:42
elfymmm09:42
elfywonder if I was looking at the right one then - there were a lot09:42
ki7mtThe KB stuff was kind hard to explain, but going though the installer, it's the selections.09:42
elfyok09:43
ki7mtI'll review them again, no probs and drop you a note tomorrow.09:43
elfyok - mark it for review again - you can put elfy in the name - I'll notice that :)09:44
ki7mtJust to be clear though, I did a push to update the MP's do I need to resubmit the MP as well?09:44
elfynot as far as I know09:45
ki7mtOk, was just checking, been since I did that. Ok will get on it.09:46
ki7mtbeen a while since .. ..09:46
elfy:)09:46
pittijibel: OOI, why does adt-virt-ssh need the -H/-l/-p options? isn't that something the setup script needs to know and tell a-v-s?10:24
jibelpitti, it doesn't for adb, but it does for example is you use an existing ssh host that doesn't need a setup script10:25
jibels/is you/if you/10:25
pittijibel: aah10:25
pittijibel: so in that case we wouldn't have root or revert10:25
jibelpitti, right10:26
jibelwell, we could have root but not revert10:26
jibelthat's a case where sudo capability must be autodetected10:26
=== roadmr is now known as roadmr_afk
pittijibel: ah right, with ASKPASS=/bin/true or so11:01
=== _salem is now known as salem_
=== roadmr_afk is now known as roadmr
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
jibelpitti, any idea what fails here http://dmz-jenkins.ubuntu-ci:8080/job/hwe-eol-precise-desktop-amd64-lts-raring/5/console ?14:07
jibelI get this error frequently and a re-run usually fixes it14:07
pittijibel: uh, is that a race condition?14:09
pittijibel: I suppose this does use the adt-buildvm VM, i. e. it shoudl have a root shell?14:10
pittifginther, balloons: yay, I just made autopkgtest's new "apt-get download test deps, unpack into /tmp/ and set $*_PATH" fallback for r/o system capable enough to work for the entire autopilot stack (including libautopilot-qt etc.)14:11
jibelpitti, yes with adt-buildvm, and another job works fine with the same base vm http://dmz-jenkins.ubuntu-ci:8080/view/HWE%20EOL/job/hwe-eol-precise-desktop-amd64-lts-saucy/2/console14:11
pittifginther, balloons: in case we want to stop shipping autopilot on the phone :)14:12
balloonspitti, ohh, so if I update from your branch I'll get all those goodies?14:12
pittiballoons: haven't committed yet, but soon :)14:12
balloonspitti, yes I don't think autopilot should be part of the stack14:12
pittiballoons: I now have a --setup-commands script for starting an upstart user session, another one for switching apt/dpkg to read-only (to force the fallback to "local unpack"), both together approximates what's happening on a phone quite closely14:13
fgintherpitti, very nice!14:13
pittiballoons: i. e. click stuff can be tested in a schroot or LXC14:13
pittiwhich might be enough for the odd merge proposal or automatic click verification, etc.14:14
balloonspitti, so what's the one the phone story look like/14:14
pittiballoons: on the phone we don't need these setup scripts of course, you'd just call adt-run with the click source and binary14:14
pittiwe need the ssh runner for that though, not the lxc/schroot/qemu runner14:15
pittijibel: did you ever happen to watch this in real-time? do you have a rough feeling how much time there is between "adt-run: DBG: sending command to testbed: open" and the failure?14:16
jibelpitti, no only in jenkins. I'll try to run it directly on the host.14:17
pittijibel: I'll add some time stamping to that in git, so that this is easier to debug14:17
pittijibel: I never saw that for utopic-adt-*, so this is new to me, I'm afraid14:17
pittijibel: but this is precise, right? maybe sysvinit/upstart behaved differently there, to start getty on ttyS0 earlier than the autopkgtest init.d script14:18
pittijibel: hang on, I need a few minutes to empty my brain state14:18
jibelpitti, not urgent14:18
jibelI can press the rebuild button :)14:19
pittiand for the record, I don't like ubuntu-app-launch for testing.. it's waaaay too indirect and complicated14:20
balloonspitti, jibel how's the ssh runner coming?14:20
pittiballoons: all pushed now14:22
pittiballoons: the remaining bit that I now need to do is to interpret an x-test description "autopilot": "@AUTOPILOT_DIR@" adequately14:23
pittiballoons: so that we don't need to modify a lot of click packages with the diff I pasted a few days ago14:23
pittijibel: how can I get into that VM?14:24
pittijibel: I have an idea14:24
jibelpitti, it's on rabisu.ubuntu.ci, I think you have access.14:25
pittijibel: wow, first login; I'm in14:26
jibelpitti, then /var/lib/jenkins/HWE-EOL/images14:26
jibelpitti, autopkgtest is in my home dir, but you can git pull it if you need to14:27
pitti⟫ kvm -m 2048 -snapshot -drive file=adt-precise-amd64-cloud-server.img,if=virtio -nographic -monitor none14:27
pittiCould not access KVM kernel module: Permission denied14:27
jibelgrrr14:27
pittijibel: anyway, let me build a local one14:27
pittijibel: is this just a bog standard adt-buildvm-ubuntu-cloud -r precise ?14:28
jibelpitti, not really14:29
jibelpitti, it's $AUTOPKGTEST_BASE/tools/adt-buildvm-ubuntu-cloud -s $DISKSIZE -a $ARCH -r $RELEASE --userdata $HWEDIR/hwe-eol/config/user-data.${RELEASE}.${FLAVOR} -v -o $HWEDIR/images/14:30
jibelpitti, with this user-data file http://bazaar.launchpad.net/~jibel/+junk/hwe-eol/view/head:/config/user-data.precise.desktop14:31
pittijibel: ah, so /etc/init/ttyS0.conf and /etc/init.d/autopkgtest both start for runlevel 214:31
pittijibel: perhaps ttyS0.conf is faster, and it tries to get the shell too early14:32
jibelpitti, changes in user-data are adding a ppa and some addiotional packages14:32
pittijibel: how often does that happen? i. e. after how many runs/days could you say that the problem is fixed?14:36
pittijibel: http://paste.ubuntu.com/7700722/ is something which you could apply locally to the git checkout14:36
pittijibel: this isn't a real fix of course, but if that works I can turn this into a proper poll loop with timing out14:36
jibelpitti, it's random but frequent, I need to restart the job like 2 to 4 times before it works14:37
jibelpitti, another bug http://dmz-jenkins.ubuntu-ci:8080/job/hwe-eol-precise-desktop-amd64-lts-raring/7/console when there is a ppa and proposed enabled14:38
jibelpitti, we sould probably restrict the rewriting to entries with *.ubuntu.com14:38
jibelshould14:38
pittijibel: oh, that's --apt-pocket=proposed?14:39
jibelpitti, yes + ppa:mvo/hwe-eol14:39
jibeldefined in user-data14:39
pittijibel: mind filing a bug about that? I'm running out of time today14:39
jibelpitti, heh, no problem, thanks for your time on this :)14:40
pittijibel: yeah, that fix is a bit more involved, I want to test case this properly etc.14:40
=== zequence_ is now known as zequence
=== salem_ is now known as _salem
=== _salem is now known as salem_
phillwballoons: FYI, the installer has been changed, the step by step instructions for the test cases are now out dated and need updating.17:50
=== salem_ is now known as _salem
=== _salem is now known as salem_
elopioballoons or popey: this is ready for a review. It doesn't change anything to make reminders tests more stable, but will give better feedback:18:06
elopiohttps://code.launchpad.net/~elopio/reminders-app/fix_with_account/+merge/22422118:06
elopioballoons: what about your branch with the reordered account manager? Should we merge it too?18:07
elfyphillw: do a bug report for it - I watch them18:07
phillwelfy: not too sure if I'm allowed to do official stuff. But, I will flag them up.18:09
elfymmm18:09
balloonsphillw, ty for the heads up. I'll echo elfy in that please do a bug report18:26
balloonsthe more detail the better ofc, but report it :-)18:26
balloonselopio, I was planning to make a go / no go decision on it this afternoon. It doesn't work without it for me, but I feel like there is a better way18:27
elopioballoons: can you merge mine and then see what the log looks for you in case of error?18:33
balloonselopio, yep that sounds like a plan18:34
ki7mtelfy, Hello, if your around, think I have all the syntax and other issues resolved on the two proposals. I used the tidy script to test them. Whenever you have time to review again, they've been pushed up.19:12
elfyki7mt: cool - I'll grab that in the morning and get them tidied away then :)19:20
balloonselopio, btw do the tests with account work for you on your desktop?19:31
elopioballoons: on my laptop, yes. On my desktop it's still crazy, not even passing the account store.19:32
elopioballoons: before adding the logs, I could reproduce the error on delete like 1/20.19:32
elopionow with the logs, I haven't been able to reproduce it.19:32
balloonselopio, I feel it would be helpful to print the account info as a debug print19:34
elopioballoons: I was looking for that, but I'm not sure where is the oauth token stored.19:34
elopioI made tests for everything account-console show prints19:35
balloonselopio, is there not a call we can make?19:35
elopiowhich is not really useful, just "evernote"19:35
balloonselopio, well, you'd end up reading it out a db19:36
balloonsmy old branch has the location..19:36
elopioballoons: which old branch?19:37
balloonselopio, looks like ~/.config/signond/signon.db and signon-secrets.db19:37
balloonslp:~nskaggs/reminders-app/oauth-ap19:38
elopioballoons: and how do I print that file?19:39
balloonselopio, it's an sqlite db19:40
balloonselopio,  I was originally meaning just print the account info.. just what account console shows19:40
balloonsbut if you want more, you could query the db and print the output19:40
elopioballoons: I'm not sure what to query. I actually don't want anymore, as setting the oauth token has never failed.19:41
elopiobut it was you that asked for more :)19:41
balloonselopio, yes I think it's overkill.. I was simply wanting account console to confirm the account was created in the debug log19:42
elopiowith the tests I added, we are making sure that the evernote account is always added and enabled19:42
balloonsshow me a little something about it19:42
balloonsI know, I just like to see it :-)19:42
balloonselopio, mostly I'm asking because your branch still fails for me on the desktop19:42
elopioballoons: but what does it show on error?19:43
balloonselopio, nope19:43
elopiothat's what I wanted to see.19:43
balloonselopio, here's the run: http://paste.ubuntu.com/7702244/19:44
balloonsNotice it *seems* to create ok?, but reminders doesn't see it and it fails to delete but doesn't say why19:45
balloonsit's still building in the chroot, I'll have a run from the device soon19:46
elfyki7mt: in fact I just did it now - all merged/synced and fix released now - thanks :)19:46
ki7mtelfy, Thanks !!19:47
elfythank you :)19:47
balloonselfy, phillw did we get a bug filed? I may have missed it19:47
phillwballoons: I will bug it tomorrow, it is a grey bug and testing for red bugs is the priority19:49
elfyI've not seen one yet - am watching for it19:49
elopioballoons: http://bazaar.launchpad.net/~elopio/reminders-app/fix_with_account/revision/17019:53
elopiothat's what we can gather easily.19:53
elopiolooking at your paste...19:53
phillwballoons: I've been busy, I'll file the bugs :)19:54
balloonsphillw, :-)19:55
elopioballoons: can you pull and run again please?19:59
=== chihchun is now known as chihchun_afk
balloonselopio,  sure.. did you make qml changes20:06
balloonsif not, re-running on device is much easier :-)20:06
elopioI didn't.20:06
balloonselopio, nice output :-) The account shows it's not enabled :-)20:16
balloons16:16:07.269 DEBUG credentials:152 - enabled: False20:16
elopionice.20:18
elopionow why on earth is that happening.20:18
elopioballoons: can you run the test_credentials.py ?20:18
balloonsjust a sec and yea I'll invesitgate20:19
elopioballoons: take a look at account.set_enabled(True) on _create_account20:20
elopioyou can put a pdb there, and then inspect what account.get_enabled() returns after that20:20
elopioit's hard to inspect because it's async. But you could continue putting breakpoints to find where the account is disabled.20:21
balloonsright20:21
balloonshmm.. no luck on device either.. back to desktop for a moment20:23
balloonselopio, it indeed shows false after get_enabled.. running set_enabled(True) and get_enabled still shows false20:25
elopioballoons: are you on desktop now?20:30
balloonselopio, yes.. looking at account-console it says it's enabled.. interesting..20:30
elopioballoons: remember to do HOME=/tmp/... before account-consoel20:31
balloonselopio, I did.. id matches etc20:31
elopiomakes no sense.20:31
balloonswild..20:32
balloonselopio, I'm not seeing the method calls in Accounts.py you are using.. I'm missing something20:38
balloonselopio, could you list what account-console show shows?20:44
balloonsNot that I think it will change anything20:45
balloonsbut yes, accounts console and the python are returning different thingds20:45
elopioyes I can.20:50
elopioone second.20:50
balloonselopio, it's odd, but your latests updates makes the app not launch on the device20:50
balloonsthe diff doesn't reveal anything.. hmm20:51
balloonselopio, so I deleted the account, but I can still print it afterwards20:54
balloonsahh I see the goodies are in account_service.get_auth_data()20:55
elopioballoons: yes, but that's information that we never set. It's taken from online accounts. Would you like to log it too?21:02
elopioballoons: pull, and you will see the list of all accounts.21:02
balloonselopio, I'll pull21:03
elopioI see something weird here. The ids of the accounts are sequential. They should all be 1, as there's no other account.21:04
balloonsmine show up as 1, and indeed21:04
balloonselopio, magically I'm seeing things as enabled now21:05
balloonswtf21:05
elopioif I put a 10 seconds sleep, they all get the 1 id.21:05
elopioso I think the account_manager is not getting a new instance.21:05
elopiowe might need to kill signond.21:05
balloonslookey there, test worked21:06
balloonselopio, ok, so seems there is a small sleep needed before anabling the service21:08
balloonsthe test works and prints enabled if I add a small sleep in _enable_evernote_service21:08
balloonselopio, that sleep actually is required after the         self._join_main_loop(). I suspect you are correct about signond21:16
balloonsa 1 second sleep is enough..21:16
balloonselopio, I think I'm happy with a small sleep after you set the credentials and before you start the service21:20
balloonsthat seems nicer than stopping and starting things. What do you think?21:20
balloonsI deleted my proposal to merge.. yours has everything we should need21:20
elopioballoons: even with the sleep I can't make it get all the accounts created to have id = 121:20
balloonselopio, you are only creating one account correct? Are you saying the account id isn't 1 when you run it?21:22
elopioballoons: test_credentials.py creates 4 accounts21:23
elopioall of them should have id = 1.21:23
balloonselopio, ohh, lol.. I'm still stuck on reminders ofc :-)21:23
* balloons runs21:23
balloonsok, I see now.. indeed, they aren't all 121:25
elopiotwo are, two aren't. That's puzzling.21:26
elopioanyway, I think that you won't need the sleep if I kill the signond.21:26
balloonsyep, I see that. I'll look with you.. my other tests with test_reminders with account look good now21:26
elopiocould you try the branch I'm pushing without the sleep?21:27
balloonselopio, I agree.. I was arguing in favor of sleeping as opposed to killing the service21:27
balloonselopio, happy to try whatever21:27
elopioballoons: well, the service will be killed after 5 seconds of inactivity, according to mardy21:27
elopioso we are just giving it a quicker dead.21:27
balloonselopio, :-) ok21:27
elopioballoons: pushed.21:31
balloonsgot it21:32
balloonselopio, test_credentials run looks the same21:32
balloonselopio, I'd use subprocess and both check the output of pkill and wait for it to finish21:34
balloonselopio, can we stop it in a saner manner? it runs with initctl yes?21:34
elopiohum, you are right. This might not be the way to stop it.21:36
balloonselopio, so can we say subprocess.call(["stop", "signond"])21:37
balloonsor we can do a pidof kill -921:37
balloonsand do we want to then start it up, using our environment? we can use initctl reset-env21:38
balloonsor shall we assume it starts ok?21:38
elopioit will be started when we start calling things from gi.21:38
balloonsyes.. just want to make sure it'll have the proper env when called from gi21:38
elopiostop signond will not work on desktop21:38
elopioit doesn't work on the phone either21:39
elopio$ pkill -9 signond works on the phone21:40
balloonssubprocess.call('kill -9 `pidof /usr/bin/signond`')21:40
balloonsmkay, if pkill works on the phone21:40
elopioballoons: and the problem with subprocess.check_call is that it will fail if the process doesn't exist.21:42
balloonselopio, we can use check_output if you want to check21:44
elopioballoons: I don't want to check. Ah, right, call will work.21:44
balloons:-)21:44
balloonshowever, I'm not getting what I want21:45
balloonsweird.. it runs 1, 1, 2, 321:46
balloonsheh21:46
elopioballoons: what do you want.21:46
elopio?21:46
balloonselopio, for all the ids to be 1, as you said :-)21:46
elopioballoons: yes, I want that too :(21:46
elopioballoons: but did it work without the sleep?21:46
elopiomy phone doesn't let me run the tests again.21:47
balloonselopio, no.. it has no effect on anything afaict21:47
elopioballoons: bah, so I'll just add the sleep between the account creation and the enablement.21:50
balloonselopio, yea, just after the _join_main_loop seems fine21:51
balloonsbut the credentials tests are still concerning21:51
balloonselopio, no other services running? nothing else that might need to be killed?21:51
elopioballoons: the other thing that mardy said was that we might be keeping an reference to Accounts.Manager21:52
elopiothat's why we have the weird del statements.21:52
* balloons watches processes21:54
balloonsI'm concerned about initctl isolation21:55
balloonsmm.. strace shows it's good21:57
balloonsyou are setting xdg too21:58
elopioballoons: pushed with the sleep.21:58
elopioballoons: I'm not sure what do you mean about initctl.21:59
balloonselopio, my concerns are unfounded.. looking at the trace it's all good21:59
elopioballoons: so, should I do something else on this branch?22:08
balloonselopio, it's better than it was22:10
balloonsI'm not seeing anything else being launched22:10
balloonsohh you added so much more22:12
* balloons pulls22:12
balloonselopio, I found a sleep(1) to be enough, but I guess the sleep(10) is fine22:15
balloonsI'm happy to land it as-is.. There's still some lingering questions, but nothing to hold on22:16
balloonsperfection isn't required :-)22:17
balloonsare you happy? I'll top-approve if so22:18
elopioballoons: I'm not happy at all because the accounts are not all 1 :D22:18
elopiobut yeah, if it fixes the issue for you, lets land it.22:18
balloonselopio, I'm ok with landing it, while continuing the fight on accounts not being 122:19
balloonsthere's some much good logging in it22:19
elopioballoons: so, just to confirm, now it works for you on the phone and on the desktop?22:19
elopioyou no longer get an account disabled?22:19
balloonsI'm trying the phone again.. it actually broke the phone earlier22:19
balloonsI'm assuming that's fixed and it works again22:20
balloonsbah, it's still happening..22:21
elopiowhat? The account disabled?22:21
balloonshttp://paste.ubuntu.com/7702960/22:22
balloonsno it doesn't launch22:22
balloonsand its attempting to launch the wrong version, which is why it doesn't launch i'll bet22:23
balloonsohh, nvm that is the right version22:23
balloonsbah the keyfile22:24
* balloons rebuilds22:24
elopioballoons: the same happens here. I thought it was my phone going crazy as it works on yours.22:34
balloonselopio, yea I think the key need to be inserted for phone.. but thats odd22:34
=== salem_ is now known as _salem
balloonselopio, yea, see I installed the original pkg back to the device, no dice22:37
balloonslet me try trunk quickly for sanity22:37
balloonsyep trunk starts properly.. I guess we have to blame the branch22:40
balloonselopio, ^^22:40
balloonsyep new build with trunks tests also work.22:44
balloons( I mean the tests fail, but the app launches properly, etc ;-) )22:44
elopioballoons: right, I can see it. I'll try removing some things.22:45
balloonselopio, it happened before the patch home fixture change.. really it was weird22:47
balloonselopio, should probably fix this too :-) BaseTestCaseWithTempHome22:49
balloonserr 22:21:21.112 WARNING emulators:26 - The ubuntuuitoolkit.emulators module is deprecated. Import the autopilot helpers from the top-level ubuntuuitoolkit module.22:49
elopioballoons: what we are doing differently is that we are patching both then env var and the initctl env var22:50
elopioand it doesn't like it.22:50
balloonselopio, hehe, I think that's the problem I had with music then as well22:53
balloonsworks on desktop, not on phone22:53
balloonsI also had to patch initctl22:53
balloonsand I had to do it before I launched the app22:53
elopioballoons: well, it means that the patch home fixture is less ready than what I expected. I'll revert that change.22:54
balloonselopio, can you approve? https://code.launchpad.net/~nskaggs/reminders-app/fix-new-pep8/+merge/22453623:03
elopioballoons: done.23:05
elopioballoons: oh, wait, I read it backwards. Getting color blind here.23:15
elopiowhy do you put an empty line between the class and its comment?23:15
balloonselopio, I noticed autopep8 wants to do that23:24
balloonsi didn't change it back23:24
balloonsI guess I'll undo i23:24
elopiommm, no, you are right.23:25
elopiowait.23:25
elopioInsert a blank line before and after all docstrings (one-line or multi-line) that document a class23:25
balloonswell the man himself barry doesn't consider autopep8 to be the bible on this23:25
elopioI didn't know about that one.23:25
elopioballoons: ok, my branch is ready again.23:31
elopioapp launches, but now I'm getting that libaccounts-glib can't write on tmp.23:31
balloonsok, let me try it23:33
elopio(process:31524): accounts-glib-WARNING **: Cannot create directory: /tmp/tmpo52mb_sj/.config/libaccounts-glib23:36
balloonsok, seems to start just fine23:45
balloonsso elopio on the phone run, the isolation didn't work and thus the app doesn't see the account23:59
elopioballoons: right. But the account seems to be created properly.23:59

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