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

=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== fginther is now known as fginther|away
=== fginther|away is now known as fginther
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== 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
jibelpitti, I made some progress on a nova setup script for the ssh runner. I'd need to add a wait_for_ssh in adt-virt-ssh because nova returns when the VM is active but it takes a moment before ssh is really listening. Are you okay with that or do you think of another way to do it?07:29
pittijibel: no, that's a good idea; it can affect LXC as well07:29
pittijibel: http://anonscm.debian.org/gitweb/?p=autopkgtest/autopkgtest.git;a=shortlog;h=refs/heads/adt-virt-ssh is up to date with what I have07:30
pitti(except the test cases)07:30
jibelpitti, ok, that's the branch I checked out07:30
* pitti AFK for a bit07:31
pittihm, I'm getting sh: 1: Syntax error: Bad fd number07:42
pittifor a tar copy07:42
pittijibel: did you happen to run into something like that? http://paste.ubuntu.com/7709955/08:09
pittijibel: that's the closest I got so far08:09
pittijibel: i. e. with multi-line scripts it fails08:10
pitti$ bash -x /tmp/runcmd sh -ec 'exec 3>&1 >&2; whoami'08:10
pittithat works fine08:10
pittijibel: so it's getting confused by line breaks somehow08:10
jibelindeed quoting is completely different: sh -ec $'exec 3>&1 >&2\nwhoami' for the 1rst case and sh -ec exec\ 3\>\&1\ \>\&2\;whoami for the second08:14
jibelI never noticed that before08:14
pittijibel: I'm ssh'ing into LXC, not sure if that makes any difference08:15
pittibut I had assumed that pretty much any test would need to run scripts08:16
pitti$ ./run-from-checkout -B ~/ubuntu/tmp/testpkg// --- ssh -s ssh-setup/adb08:16
jibelpitti, it is not related to lxc, because if you execute it directly it's the same errpr08:16
pittibut this stilll works fine08:16
jibel sh -c "sh -ec $'exec 3>&1 >&2\nwhoami'"08:16
jibelsh: 1: Syntax error: Bad fd number08:16
pittijibel: oh, the >3 bits are only done from build_source()08:18
jibelpitti, re wait_for_ssh, I'll add a retry argument to VirtSubproc.check_exec(), what do you think?08:19
pittijibel: ah, I would just do that loop in virt-ssh's setup, and call VirtSubproc.execute_timeout until it succeeds08:20
jibelpitti, ok08:21
jibelpitti, autopkgtest in a nova instance: ./run-from-checkout --setup-commands="apt-get update" -d libpng --- ssh -s ssh-setup/nova -d -l ubuntu -- -f 1 -k j-lallement -i 138cdd41-e72d-4f98-b394-db2b66ba24af09:24
jibel\o/09:24
pittiyay!09:24
pittijibel: still wondering how you can evade that quoting issue; maybe it behaves differently if you have sudo in between?09:25
pittijibel: but anyway, after wresting with lots of various shell trickeries, I resigned and changed adt-run to never give commands with newlines09:25
pittijibel: what's that magic -i number?09:33
* knome never knew "c" (etc) is a number09:34
jibelpitti, -f is the flavor (m1.tiny ...) -i the id of the image09:34
jibel-k the name of your key in the keypair you registered09:35
pittijibel: ah, of course09:35
jibelpitti, I tried in canonistack, it probably work in hpcloud but didn't try09:35
pittitest_no_script_no_root (__main__.SshRunner)09:36
pittino setup script, no root ... ok09:36
pittitest_password (__main__.SshRunner)09:36
pittino setup script, no root, password auth ... skipped 'ssh password auth is not implemented'09:36
pitti\o/09:36
pittijibel: ok, I committed two fixes to master (one of them the \n → ; change, to avoid the %q madness), and rebased the adt-virt-ssh branch09:38
pittijibel: does git pull just work for you, or does that complain?09:38
jibelpitti, it seees to be happy, just complained that I changed adt-virt-ssh too09:39
jibelseems09:39
pittijibel: ah, so "git stash save", "git pull", "git stash pop"09:39
jibelpitti, yup,09:40
jibelpitti, i'm adding a cleanup and will send you the nova setup script and my changes for review09:41
pittijibel: would you mind pulling again, and see how far this gets? ADT_TEST_LXC=adt-utopic tests/adt-run  SshRunner10:03
pittijibel: I have a suspicion it'll fail because your tests/home/.ssh/id_rsa is not 0600, but 0644 or so (then ssh complains); git doesn't seem to maintain permissions that way10:04
* pitti makes it robust against that anyway10:04
pittiah yes, even a simple checkout master / checkout adt-virt-ssh makes it fail10:04
pittijibel: so hold on10:05
pittijibel: ok, fixed; can you please give it a try?10:07
jibelpitti, ADT_TEST_LXC=adt-trusty-amd64 tests/adt-run10:28
jibelRan 95 tests in 517.676s10:28
jibelOK (skipped=32)10:28
pittijibel: splendid! You can run only the ssh ones with ADT_TEST_LXC=adt-trusty-amd64 tests/adt-run SshRunner10:29
jibel(amongst which sshrunner)10:29
jibelpitti, they all ran and passed10:29
jibelcorrection 1 skipped10:30
pittijibel: right, expected; I wrote a test case for "password but no ssh key", and then realized that this isn't implemented yet10:30
pitti(but we should at some point, by faking an SSH_ASKPASS)10:31
pittijibel: open and setup are really redundant, right? I'd consolidate this to use open only to correspond to the adt-virt protocol10:38
jibelpitti, agreed10:38
pittijibel: WDYT? http://paste.ubuntu.com/7710515/10:41
pittijibel: that's a ssh-setup/SKELETON file10:41
jibelpitti, LGTM10:42
pittijibel: pushed that and the setup/open unification10:43
jibelpitti, I'm nearly done with nova. I'll finish it after lunch10:43
pittijibel: so I suppose you need to adjust nova now10:44
=== roadmr is now known as roadmr_afk
jibelpitti, right, that's why I'm nearly done essentially :)10:44
pittijibel: ah, so for an external lxc setup script I'll also need the "state" string that open() can generate; you already did that, right?10:48
pittiok, running + lunch, bbl10:48
jibelpitti, yes, I added an 'extraopts' key that is passed back to the script10:48
jibelpitti, the form is extraopts="key1=val1 key2=val2 [...]"10:49
jibelpitti, then there is a function to return the value for a key10:49
pittijibel: ah, is that easier to handle than extraopts=-d /foo -i myid ?10:50
pittior just a string which is passed back verbatim as --state10:50
pittijibel: sure, works as well; that function needs to be in every setup script then, right?10:51
jibelpitti, right, your approach is more generic, I'll change that11:33
elopioping ubuntu-qa: can somebody review this please?12:50
elopiohttps://code.launchpad.net/~elopio/ubuntu-calendar-app/fix1332173-swipe_to_create_new_event/+merge/22473512:50
elopiola_juyis: I'm here for when you want to pair program.12:51
la_juyiselopio, great! I think I'll be ready in ~1hr12:51
=== _salem is now known as salem_
pittijibel: shockingly, writing tests for "with setup script" revealed another bug :) fixed/tests pushed13:05
pittijibel: (I created that bug, so I'm just proving myself wrong)13:06
jibelpitti, it's impossible, the bug must be in the test ;P13:06
=== fader_` is now known as fader
jibelpitti, http://paste.ubuntu.com/7711161/ setup script for nova + extraopts + small fixes13:30
jibelpitti, tested on canonistack, it should work the same on hpcloud, maybe the detection of the IP will be a bit different depending on the output of nova show13:31
pittijibel: landed click support in master now!13:49
* pitti tests virt-ssh with click then13:49
pittijibel: adt-virt-ssh branch rebased against master with click, so we can test the two together now13:52
jibelpitti, I filed bug 1335134 to not lose the diff for nova13:54
ubot5bug 1335134 in autopkgtest (Ubuntu) "add nova setup script for adt-virt-ssh" [Undecided,New] https://launchpad.net/bugs/133513413:54
* jibel updates master13:54
pittijibel: I have it in a tab, but thanks13:54
pittijibel: sorry, haven't looked yet, was busy with rebasing and fixing some conflicts13:54
jibelpitti, no problem, that's why I filed a report.13:55
jibelYay autopkgtest 3.0 \o/13:56
pittihehe13:56
pittiOne Runner to Rule Them All!13:56
jibelpitti, I'll teach the nova runner to create snapshot so it doesn't always have to create a new instance, and that'll open the revert capability13:58
pittijibel: nice13:58
pittijibel: also, I had the idea of speeding up virt-ssh by using ssh connection sharing; I'll file that as a bug too13:58
pittibug 133513613:59
ubot5bug 1335136 in autopkgtest (Ubuntu) "adt-virt-ssh: Use connection sharing for speedup" [Wishlist,Triaged] https://launchpad.net/bugs/133513613:59
jibelpitti, did you try click on the phone already?14:01
pittijibel: not yet, currently writing a test for click + ssh14:02
pittijibel: and BAM!, bug found; I hate test suites! :-)14:03
pittiyeah, passing --setup-commands through the ssh runner is again that quoting issue14:04
pittijibel: ok, this is still broken in some ways, that's something for next week I'm afraid14:05
pittijibel: I need to change the way --setup-commands works, to avoid running the commands through the auxverb :(14:06
pittior we need a proper fix for quoting of commands containing \n14:08
pittijibel: http://paste.ubuntu.com/7711353/14:14
pittijibel: !!14:14
pittinow, *drumroll*, putting it all together14:15
jibelpitti, !!!!14:15
jibel:)14:15
pittijibel: http://paste.ubuntu.com/7711366/14:16
pittijibel: we somehow need to export the phone user's environment to that runner14:16
pittijibel: i. e. in the setup script14:16
pittiso with "su" I get the env14:17
pittihm, also with ssh14:18
jibelpitti, isn't it because we do a sudo su and lose the env at some point?14:18
pittibut presumably not throgh sudo14:18
pittiphone, brb14:18
jibeltry with sudo -E14:18
pittijibel: it's probably not on that side, we need su -l or so14:38
pittiroot@ubuntu-phablet:~# su -c 'env|grep UPSTART' phablet14:39
pittiroot@ubuntu-phablet:~# su -l -c 'env|grep UPSTART' phablet14:39
pittiUPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/32011/131214:39
jibelpitti, ah it's the same -l that solved the cd . permission denied. it makes sense15:03
pittijibel: it just breaks other stuff :/15:03
balloonsubuntu-qa, can someone review these pep8 fixes. Should be really quick check; https://code.launchpad.net/~nskaggs/ubuntu-terminal-app/new-pep8-fixes/+merge/224856, https://code.launchpad.net/~nskaggs/ubuntu-rssreader-app/new-pep8-fixes/+merge/224855, https://code.launchpad.net/~nskaggs/ubuntu-clock-app/new-pep8-fixes/+merge/224853, https://code.launchpad.net/~nskaggs/dropping-letters/new-pep8-fixes/+merge/22485715:18
elopioballoons: me _o/ choose me!!!15:18
balloonselopio, :-) I think that's the rest of the core apps that needed it15:18
la_juyisballoons, i can do at least some15:18
* elopio cedes the job to la_juyis15:19
elopiogo and earn some nice karma.15:19
la_juyiselopio, :D15:20
elopioballoons: can you review this one? https://code.launchpad.net/~elopio/ubuntu-calendar-app/fix1332173-swipe_to_create_new_event/+merge/22473515:21
balloonselopio, oO.. is this what I think it is? ;-)15:23
elopioballoons: probably not. I went a little crazier on this one and it got big.15:25
* balloons sees an EventBubble class.. Leo went ham!15:27
jibelpitti, last but not least a man page http://paste.ubuntu.com/7711679/15:35
* tachyons_ is away: Away , ദൂരെ 16:07
balloonselopio, so you don't interact with the the time and date spinners16:22
balloonsI assume because of the AP date/time issues we encountered?16:22
balloonswe should link that bug.. let me find it16:23
elopioballoons: I didn't do it in this branch because the original test wasn't doing it.16:26
elopioI haven't even tried yet.16:27
balloonselopio, yea, that code must have been completely gutted. I had code to do it, I clearly didn't leave it as a comment I guess. It used the new helper16:27
elopioballoons: what's next after this branch should be to add an event for the future.16:29
elopioI'm not sure if I will be able to do it next week though.16:29
balloonselopio, https://bugs.launchpad.net/autopilot/+bug/132860016:29
ubot5Ubuntu bug 1328600 in Autopilot "test_new_event autopilot test fails on device (r315)" [High,Confirmed]16:29
elopioballoons: oh, right, that one.16:29
elopiowe need the autopilot guys to fix it first.16:30
balloonselopio, I would simply note the bug and give a small comment about setting times16:30
balloonselopio, yes, but that way we don't forget and try and add the time selection16:30
elopioballoons: in progress...16:30
elopioballoons: pushed.16:33
balloonselopio, shouldn't class DayView inherit the Page class?16:38
balloonsactually I suppose many pages might make sense to import from page.. I realize they don't use the methods atm... Also should clean up the imports, still using     emulators as toolkit_emulators16:42
elopioballoons: I think that page class should be removed.16:51
elopioyou shouldn't just drag a page up or down.16:51
elopioyou should drag it to make something visible, and I think it's clearer if you call that something.swipe_into_view()16:51
balloonselopio, that's also an option16:51
elopioso, the Page object will be eventually without methods, and then it makes no sense to add it to the class hierarchy.16:52
elopiowe do need a page helper. But I think it will have something like a reference to the previous page, and a go_back method that opens it.16:52
balloonsI'm happy with cutting it.. but if it stays you should use it16:53
elopioballoons: oh, I didn't notice it's not longer in use.16:53
elopioso if you are happy with what I said above, I'll remove it.16:54
balloonselopio, yes when you mentioned the methods I was thinking why they existed.16:54
balloonselopio, it's used in test_yearview I see at least16:55
elopioballoons: humph, I can't find where that self.page is defined16:57
elopioballoons: I think that means test_yearview will fail in 4 days.16:59
balloonselopio, :-)16:59
balloonswell we caught it in time16:59
elopioballoons: I'll report the bug. That can be done with swipe_into_view if the element is loaded, of with flickable.click_element if we have to scroll for it to be created.17:03
=== roadmr_afk is now known as roadmr
elopiohttps://bugs.launchpad.net/ubuntu-calendar-app/+bug/133524117:08
ubot5Ubuntu bug 1335241 in Ubuntu Calendar App "test_yearview will fail after june" [High,New]17:08
balloonshmm.. I set my month locally to a later date17:10
balloonsstill seems to be fine17:15
balloonsahh, broke it :-)17:16
elopioballoons: when you have time, remind me to talk about patching home and about reminders.17:19
balloonselopio, I haven't forgotten.17:19
balloonselopio, let's chat after lunch on it eh?17:20
balloonselopio, I think for the merge as-is, I would like to see Page removed. We can fix the scroll issue in another mp17:20
balloonsI'll approve17:21
balloonstop approved, thanks17:21
=== chihchun is now known as chihchun_afk
elopiothanks balloons17:46
=== rsalveti_ is now known as rsalveti
=== la_juyis` is now known as la_juyis
=== tachyons_ is now known as tachyons
=== salem_ is now known as _salem

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