/srv/irclogs.ubuntu.com/2013/10/18/#ubuntu-quality.txt

pittiGood morning03:27
pittithomi: hey, how are you?03:27
thomihi pitti, fine thanks03:27
pittithomi: is there an AP method for dumping type/properties of a widget and all of its children to stdout? If not, I'd like to write that03:29
pittithomi: I keep writing something like that for pretty much each new AP test that I'm writing03:29
pittithomi: as especially with QML, the widget tree in -vis looks 'orrible, and it's a pain to find the label or anything actually visible in the 25th sublayer behind nested QItems, panels, and other uninteresting stuff03:30
veeberspitti: in the past I've used this rough script to achieve 'vis' on the device: lp:~veebers/+junk/introspector but I agree that something nicer would be, well, nicer03:31
veeberspitti: I also use an interactive shell to do something similar, i.e. set a breakpoint in a skeleton test and interact and iterate the details I need03:31
thomipitti: there's nothing like that now. It would be nice if whatever you write also improved the vis tool at the same time :)03:32
pittiI'm using something like http://paste.ubuntu.com/6254780/ ATM03:32
pittiit should get nice formatting (proper nesting) and the like, but anythign greppable03:32
pittithomi: hm, not sure how a text dump would improve vis, but I'm open for ideas :) (unless you mean adding a button to vis to do just that for the whole tree -- but that might take loong)03:33
thomipitti: OK, was just a thought. I'll be interested to see what you come up with :)03:34
pittiack :)03:34
pittiseems like a perfect little hack for train time this afternoon (or next week, as I have some other autopkgtest etc. work planned, too)03:35
pittithomi, veebers: filed bug 1241323 for this with some rationale and details03:40
ubot5bug 1241323 in Autopilot "Add method for dumping widget and its children to stdout" [Wishlist,New] https://launchpad.net/bugs/124132303:40
pittifginther, jibel: ah, http://10.97.0.26:8080/job/autopilot-testrunner-otto-saucy/1259/console shows why our otto CI runner is busted: "ls: cannot access /sys/fs/cgroup/systemd/user/: No such file or directory"03:41
jibelGood morning pitti04:58
jibelpitti, that's what I suspected when you talked about logind. I use a special mount hook to do this and enable nested  containers05:04
jibelpitti, but the machine should be upgraded to saucy as the main point of otto is to do HW testing and the host and guest must share the same kernel to do so05:05
elopioping pitti: you know about mocking stuff. What would you think of a project that lets us record the messages between a client and a server, and then lets us replay the server response as a mock on a test?05:16
pittijibel: oh, so we weren't actually fully testing saucy on these machines05:34
pittijibel: I suspect the hosts is a rather small server install, so upgrading them shouldn't be too complicated?05:34
pittielopio: I think I've seen something like that already; indeed sounds useful, especially for your area (U1)05:34
jibelpitti, we are on the autolanding machines but apparently not on the CI ones. I don't know how they've been setup, I havent bee involved at all05:35
jibelpitti, upgrading is trivial05:35
jibelpitti, for the daily release, the machines are updated every day, when first T images are built, I'll upgrade them to T05:36
pittielopio: something like http://code.google.com/p/wireplay/ or http://tcpreplay.synfin.net/05:36
elopiopitti: this is the only one I've seen, but sounds a little hard to get all the files right: https://pypi.python.org/pypi/mock-server/05:36
pittielopio: oh, you mean for specific protocols05:37
pittielopio: python already has http, xmlrpc, and whatnot servers, and setting up a fake ftp/smb/ssh etc. server is also easy (all without root)05:37
elopiopitti: wireplay looks nice!05:37
elopiopitti: well, I'm just collecting ideas. Something that lets us mock a REST API easily would be nice.05:38
elopiobut just replaying TCP might even be easier.05:38
elopiothanks for the links.05:38
pittielopio: well, in general higher-level tools are more flexible, but it looks like mock-server doesn't have record&replay, just "manual" mock set up05:39
pittiOTOH record&replay isn't very flexible in variating for different corner cases05:39
elopiopitti: yes, I suppose I should start trying them. What I would like is that all our servers provide a mock implementation to test the integration of whatever clients want to communicate with it.05:40
pitti$ run-adt-test -s network-manager05:40
pittiubuntu-distro-info: Distribution data outdated.05:40
pittijibel: ^ I guess that hits our jenkins machines, too?05:40
pittielopio: that sounds nice indeed, as long as you constantly test your mocks with the real client tools (to make sure they don't get out of date)05:41
pittijibel: WDYT of http://paste.ubuntu.com/6255194/ ?05:43
elopiopitti: yes. We also need test clients that query all the API methods. We can run them against the mock and the real server :)05:43
elopiosome of the projects already have that level of testing.05:44
pittijibel: actually, scratch that; should use -s05:44
jibelpitti, ah thanks! this bug must be everywhere :/05:44
pittijibel: http://paste.ubuntu.com/6255197/05:44
jibelpitti, I'd redirect stderr of the call with -d to /dev/null05:46
jibelunless we want to show it for information05:46
pittijibel: I was hesitant to do that as it might actually fail for a different reason, but no strong opinion05:46
pittijibel: committed for now, feel free to adjust if you prefer supressing the error (but I'm not a big fan of that)05:47
jibelpitti, I find it always confusing to show an error message and falling bakc implicitly to another value without notifying the user05:48
jibelthat's a matter of taste I guess :)05:48
jibelpitti, +105:48
pittijibel: do you have a script to bzr pull on all four slaves, or do you usually do that manually?05:49
pittiI just did the latter in the past few times05:49
jibelpitti, hm, I have one for other systems but not for auto-package-testing. I'll update the one I use for daily-releas05:51
pittijibel: ah, ok; I can write one and stuff it into jenkins/ ?05:51
jibelpitti, don't bother, I've one ready, I just need to change the paths and hosts05:52
pittiah, good05:52
jibelah, it would have been too easy if all the servers were configured identically05:57
pittirbasak: wrt. your lxc branch, looks quite nice! I'm writing tests for it now07:29
pittirbasak: the main thing I don't like about it is the --ephemeral option07:29
pittirbasak: I mean, is there ever a reason *not* to use it?07:29
pittirbasak: if you forget it, doesn't that basically mean "mess up my container"?07:30
pittirbasak: oh I see, otherwise it uses lxc-clone first07:31
pittirbasak: so what's the practical difference between those?07:31
pittiralsina: nevermind, saw it in the manpage07:41
pittisorry, rbasak ^07:41
pittijibel: FYI, I landed the lxc runner in debian git now07:50
rbasakpitti: yeah some tests give me a ton of tar errors while files are transferred with --ephemeral. I think they can see a race in overlayfs.07:54
rbasakThanks for landing it!07:54
pittinow, if lxc-start-ephemeral only would do what it says on the tin and actually *use* a tmpfs07:55
jibelpitti, \o/07:55
jibelrbasak, what kind of tar errors?07:56
rbasakIt might do it without -k, I'm not sure07:56
pittirbasak: it doesn't, not even with -s tmpfs07:56
pittiI don't want this to touch my hard drive07:56
rbasakjibel: tar thinks that files/directories (can't remember which) have changed from underneath it while it unpacks, and compains then ends with an error exit07:56
rbasakpitti: with --eatmydata at least your hard drive won't slow it down :)07:57
pittistgraber: any idea about this? "sudo lxc-start-ephemeral -o adt" is supposed to use tmpfs, but it doesn't even with -s tmpfs07:57
rbasakIIRC the php5 test did this (tar errors). Let me try it now.07:57
pittistgraber: I don't see any new tmpfs mount anywhere, or it using /tmp/ for the overlay instead of /var/lib/lxc, and the container rootfs isn't a mountpoint07:57
phillwpitti: when ever you're ready; give me a poke and I'll try it out on a virgin server; you'll need a domain name, though :)08:02
pittiphillw: sorry, try what?08:02
rbasakdf -h08:05
jibelpitti, isn't it using a delta/ directory somewhere in var/lib/lxc/<container> for the overlay?08:11
pittijibel: maybe, but all these are empty, too08:11
jibelI read a blog post from hally a while ago about it08:11
pittiin fact, I'm not sure where exactly it stores teh delta08:11
jibelhallyn08:11
jibelpitti, with ephemeral pre-mount mounts delta0 as tmpfs in the ephemeral container then uses is overlay for rootfs from the original container08:24
jibel*uses as08:24
pittijibel: ah, so this is somehow not visible from the host08:26
jibelpitti, yes, and everything is mounted with -n08:27
pittiyes, but those should still appear in /proc/mounts usually, so I guess it's the cgroup magic which only makes them visible in the container08:31
jibelthat's the point I don't get. pre-mount is executed on the host, so everything mounted in pre-mount should be visible in /proc/mounts08:33
slickymastermorning all08:50
jibelrbasak, I cannot reproduce any tar issue with ephemeral. I'm on saucy with latest autopkgtest from git and ran09:08
jibelAUTOPKGTEST_BASE=$(pwd) runner/adt-run -d ../autopkgtest_2.3.7.dsc --- virt-subproc/adt-virt-lxc --ephemeral saucy-amd6409:08
jibelrbasak, would you have a specific example?09:08
rbasakjibel: I'm trying now. It did reproduce reliably on php5 for me - trying a build now.09:08
rbasakjibel: I think it needs a fairly big pile of data before it falls over09:09
jibelrbasak, okay, I'll try with the kernel :)09:09
jibelI tried with php but it fails with a "no test in this package" error :/09:14
rbasakOh09:14
jibelwhich is a lie are there are obviously tests in the package09:15
rbasakHmm09:15
rbasakLet's see what my test gives me. It's still buildling09:15
rbasakbulding09:15
rbasakbuilding09:15
* rbasak learns to type09:15
jibelah no, it is dsc0t-mod_php that exit with code 8 not adt-run09:16
=== vrruiz_ is now known as rvr
rbasakjibel: reproduced: http://paste.ubuntu.com/6256204/10:02
rbasak"adt-run --gain-root=sudo php5_5.5.3+dfsg-1ubuntu2.dsc --- adt-virt-lxc --ephemeral saucy 2>&1|tee ..." is all that is needed10:02
rbasakI'm on an OpenStack instance that may be a little contended for I/O10:02
rbasakIt seems to happen when a large built tree is fed in by adt-run using tar10:03
rbasakThe "tar x" on the "guest" side races overlayfs. If overlayfs is slow, then tar sees an intermediate step and bombs out.10:03
rbasakI think it only happens when the tar is large since otherwise the system can just hold it in cache and overlayfs is fast enough. It's when it has to hit the disk that it goes slow enough for the tar process to win the race.10:04
rbasakThat's my theory, anyway.10:04
rbasakI'm interested to know whether these steps cause it to reproduce as easily in other environments. In my environment, it always fails.10:05
jibelrbasak, thanks for the details, I'll try to reproduce in the lab.10:07
davmor2Morning all10:09
jibelpitti, I reported http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=726714 + a patch10:20
ubot5Debian bug 726714 in autopkgtest "adt-run fails when fakeroot not installed in testbed and build is needed" [Normal,Open]10:20
pittijibel: merci, je vais le regarder10:21
sonuNoticed there are no manual test cases for Release upgrade using:10:49
sonu1. sudo update-manager -d10:49
sonu2. sudo apt-get dist-upgrade10:49
sonuShould we add these?10:50
sonuif so, to the existing test case "1468_Install (upgrade)" or create a new one?10:50
elfysonu: have you seen testcase 1310 ? and dist-upgrade isn't for upgrading to a new release afaik10:56
sonuElfy, sorry, my mistake overlooked 131010:57
elfy:)10:57
sonuI am noting few usability problems after upgrading from 13.04 to 13.1010:58
sonuLike the windows are not being moved to work-spaces down with : Shift+Ctrl+Alt+ (Down Arrow)10:59
sonuwhile side arrows are working fine to move to work spaces11:00
sonuShift+Ctrl+Alt+ (Up Arrow) does not work as well11:00
elfyprobably better off in a support channel for that11:02
sonunoticed these had been changed automatically in keyboard shortcuts11:02
sonuthe ctrl is changed with the window11:02
sonuok, but I thought the standard keyboard shortcuts should not change on upgrade11:03
elfyas I said - try a support channel - I assume Ubuntu so #ubuntu11:03
=== _salem is now known as salem_
=== fader_ is now known as fader
Fawzibhello, im trying to install 13.10 (server) but is freezing (or keyboard stops working) at the 'Select a language' screen. Using USB keyboard13:15
stgraberpitti: I'd have to recheck the code but it's likely that everything happens in a seperate mount namespace making those mounts invisible from the host14:34
=== salem_ is now known as _salem
DanChapmanafternoon everyone14:50
elfyhi DanChapman14:50
=== _salem is now known as salem_
=== salem_ is now known as _salem
=== Effenberg0x0 is now known as EffenbergAway
=== _salem is now known as salem_
=== salem_ is now known as _salem
=== _salem is now known as salem_
=== salem_ is now known as _salem

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