/srv/irclogs.ubuntu.com/2009/08/30/#launchpad-dev.txt

jamalta_hi, does anyone know how i can get a reference to the default db user?05:05
=== jamalta_ is now known as jamalta
wgrantjamalta: There isn't really a default user. What are you trying to do?05:06
jamaltawgrant: i'm writing a test that needs to create fake records to the karmacache table05:12
jamaltaso i have to switch db users to one that has write access to that tab le05:13
jamaltatable*05:13
jamaltaand i need to switch back to the regular user after i'm done05:13
jamaltabut i can't find how to get a reference to it05:13
jamaltawgrant: you can look at the diff here https://code.edge.launchpad.net/~jamalta/launchpad/bug-127489/+merge/10785 to see what i'm doing exactly05:13
wgrantjamalta: Ah, I see.05:14
wgrantLet me have a look...05:14
jamaltawgrant: Thank you :)05:14
jamaltaI got lost trying to find it05:14
wgrantjamalta: Have a look at lp.registry.tests.test_distributionsourcepackage05:15
wgrantswitchDbUser is the magic method.05:15
jamaltawgrant: Oh, ok.. that should work then, thanks :)05:17
jamaltaI am using config.karmacacheupdater.dbuser, so should I change it to match the way it is done in that test instead?05:17
wgrantjamalta: Probably. It probably doesn't really matter, but most tests seem to use a literal.05:18
jamaltawgrant: Thank you for your help, I will use that route then05:19
lifelesshmmm, I think that makes 5 bugs submitted today08:37
wgrantAh, excellent. It is fairly easy to get dev primary archives set up to overlay on top of a real primary archive. That makes testing muuuuch easier.08:42
wgrantlifeless: What's the best way to get lpnet7 kicked?08:49
lifelessspm: ^08:57
lifelesstry a sysadmint hat might be around08:57
lifelessfailing that I'll escalate08:57
lifelesshow long as it been down for?08:58
wgrantlifeless: Around 1.5 hours, I'd say08:58
wgrantCould be more.08:58
lifelessis it still in rotation?08:59
wgrantIt is.08:59
lifelessok08:59
wgrantSo 502s are more frequent than they should be.08:59
lifelesswe'll give spm 5-10 then I'll ring the SA's08:59
wgrantGreat.08:59
lifelessescalated09:10
lifelessthought I really have to wonder just how much you're using lp that you're noticing :P09:11
wgrantlifeless: 1/8 isn't small.09:13
lifelessanyhoo I escalated09:20
wgrantlifeless: Thanks.09:21
lifelessthe long suffering elmo is on the case09:21
wgrantmaxb: I still can't reproduce those failures on a clean Karmic installation.10:37
maxbhrm10:37
maxbMost puzzling10:37
maxbWhat about the "Unable to find mandatory field 'files' in the changes file." ones?10:38
wgrantI installed it by using plain rocketfuel-setup, then adding your PPA and installing launchpad-developer-dependencies.10:38
wgrantmaxb: Those work fine.10:38
maxbThis is quite confounding10:39
wgrantIncredibly so.10:39
wgrantYou say you can reproduce on two systems?10:39
maxbcertainly the DONE != ACCEPTED one10:40
wgrantI've run that test on two machines in three configurations (one was reinstalled as another arch yesterday).10:41
wgrantIt works fine.10:41
wgrantHow strange.10:41
maxbHm. I wonder if it's some bizarre interaction with something in my user account10:43
maxbMy entire homedir is under Subversion, so the different machines are somewhat similar10:44
wgrantAre things oddly shared?10:44
wgrantAhhh.10:44
wgrantThat is possibly relevant.10:44
wgrantadduser will tell.10:44
* maxb pondering what to chown, etc.10:49
maxbgary_poster: When you fix up the symlinks, don't forget to also fix up sourcecode/Makefile!11:24
maxbgahh, I hate shhh.py11:27
maxbwgrant: You didn't get bitten by Getting distribution for 'lazr.uri==1.0.1'.11:30
maxbInstalling lazr.uri 1.0.111:30
maxbCaused installation of a distribution:11:30
maxblazr.uri 1.011:30
maxbwith a different version.11:30
maxbWhen doing your clean karmic test11:30
maxbGot None.11:30
maxb ?11:30
wgrantmaxb: No -- I didn't have launchpadlib installed yet.11:30
wgrantI've since installed it (which brought along python-lazr-uri), and everything remains happy.11:31
maxbhuh11:45
maxbso now even if I purge python-lazr-uri, a clean make is now impossible11:45
maxbImportError: No module named uri11:45
* maxb has breakfast instead11:46
wgrantmaxb: Impressive.11:46
wgrantDo you have any other lazr.* installed?11:47
wgranteg. lazr.restfulclient?11:47
maxbwgrant: aha, that's it exactly12:06
maxbGah. So now I have to choose whether to attempt to debug buildout or attempt to debug launchpad.12:07
wgrantmaxb: buildout is scary. Run away.12:07
maxbHrm. I wish launchpad wasn't so messy in /var/tmp/12:10
wgrantIt's not too bad.12:13
wgrantYou can blow it all away and it will be happy.12:13
wgrantAnd at least it puts stuff only there.12:13
* mwhudson isn't completely sure about that12:16
mwhudsoni think some tests still scribble into /tmp12:17
maxbIdeally it would all go under /var/tmp/launchpad-$USER/12:17
mwhudson(they should be fixed though)12:17
maxbScribbling into /tmp/ isn't wrong, if it's genuinely temporary12:17
maxbWTF!?!?!? wgrant it works in my clean user12:17
mwhudsonmaxb: you are right about /var/tmp/launchpad-$USER/, but thinking about it makes me want to cry a little12:17
wgrantmaxb: Excellent!12:18
wgrantmaxb: Now, bonus points for working out what it was.12:18
wgrantmaxb: My first try would be copying over bashrc and the like.12:18
gary_postermaxb, wgrant: what's the problem?12:24
maxbgary_poster: Which problem would you like to talk about first? :-)12:24
wgrantThere are a few.12:24
gary_postermaxb: oh I dunno.  Just list em for me/12:25
maxbI have a couple of weird test failures that happen only for me, but on all my systems. We're now thinking that it's something in my common .bashrc or similar12:25
gary_posterhuh12:25
maxbAnd, it's currently impossible to bootstrap launchpad on karmic, if you have python-lazr-* system packages installed. buildout gets confused12:25
maxbAnd, when you fix up the zope-removal properly, don't forget to look at sourcecode/Makefile :-)12:29
gary_postergrr.  I spent a fair amount of time trying to make that kind of bootstrap problem go away.12:29
gary_posterand did so for all of the instances I knew about.12:29
gary_posterzope-removal: ack, I saw your ping.  thanks.12:29
gary_posterso maxb, those are the 3 problems: (1) something on your system causes test failures only for you.  (2) buildout's bootstrap is broken on karmic if you have lazr.* Installed.  (3) I missed some things in my zope branch removal.12:31
maxbyup12:32
wgrant(1) is more specifically something to do with a shared home directory12:33
maxbI think it's down to my .bashrc12:33
maxbI'm bisecting it now12:33
gary_postermaxb: I can dupe 2 and 3 on my own.  Fixing 3 should be relatively easy, and once I've seen 2 hopefully I'll know what's up.  1 is harder.  I see your clean user works fine.  oh, shared home directory...12:33
gary_posterok12:33
gary_postermaxb: could you pastebin me the traceback from (2)12:34
gary_posterwhen you get a chance12:34
maxbThere's two flavours of (2) - if you have python-lazr-uri installed, buildout goes to install lazr.uri==1.0.1, but ends up installing 1.0 instead, catches this mistake, and aborts12:35
maxbThen, if you purge python-lazr-uri but still have python-lazr-restfulclient, you get a horrendous traceback with the ImportError I mentioned12:35
maxbI'll get pastes for both, but it'll be 15mins or so12:37
gary_postermaxb: is this during the bootstrap or the buildout?  It sounds like buildout.12:38
maxbum, the bit where it populates eggs/ from download-cache/dist/ ?12:38
gary_posterbuildout, ok12:38
gary_postermaxb: I suspect this is new because we have things packaged for karmic that are not packaged in jaunty; and our lazr packages have had some build issues.  I think I've addressed all of them in branches as of this weekend--need to get some reviewed and landed.  I still had hoped that we would be isolated from things like this, but oh well, I'll try again.12:41
maxb:-) thanks12:42
gary_postermaxb: IRT the two flavors, the first flavor is more interesting to me.  The second one is kind of corollary of the first.  The first problem is "Gary thought we were protected from site-packages now (we are in Jaunty), but it is still leaking."  (Or lazr.uri packaging is more hosed than I thought--it's possible that it is packaged as 1.0.1 but then declares that it provides 1.0, which would explain the problem)12:44
maxb!info python-lazr-uri karmic12:45
gary_postermaxb: the second problem is: when you take out a dependency of a package, and you try to use that package, it breaks. :-)  the only way it is related to buildout/launchpad is that I had hoped we wouldn't see those packages12:46
gary_posterwe don't in jaunty :-/12:46
gary_posterat least for the examples I have seen12:46
maxbI don't really understand what you mean by "when you take out a dependency of a package, and you try to use that package"12:47
maxbAnd unrelated: wgrant: So the DONE != ACCEPTED failure is apparently caused by me changing my umask from 022 to 00212:48
gary_postermaxb: lazr.restful depends on lazr.uri.  you removed lazr.uri, and lazr.restful breaks.  It makes sense in isolation.12:48
maxboh.... but what stopped it from trying again to install lazr.uri first?12:48
gary_posterAh, yes, I vaguely recall having been burned by umask in the past12:48
gary_posterI'm sorry you were hit by it.  Would you send an email to the list about it?  Others will have more context on that than I12:49
* maxb afk 5mins12:49
gary_posterwhy didn't it try to install lazr.uri?  Yeah, good question.12:49
wgrantmaxb: I spent some hours this morning working out a lp-buildd umask issue...12:50
gary_posterI regard it (maybe incorrectly) as a corollary of the first one, like I said12:50
gary_posteranyway, I need to run go do family things, but maxb, these things (2 and 3, in particular; someone else may need to look at what seems to be the umask issue, maybe wgrant?) will be top billing for me.12:50
wgrantmaxb: Let's see if I can repro it.12:52
wgrantmaxb: That does the DONE != ACCEPTED one, but not the others :(12:56
maxbmhm, ok then13:01
maxbI wasn't actually running anything but that one test whilst searching for the problem, I'm trying the other two now13:03
wgrantmaxb: Ahaha.13:05
wgrantERROR: Queue item ignored: Bad umask; expected 022, got 00213:06
wgrantSo, not an entirely unexpected failure.13:06
maxbah... where did that vital piece of info disappear to?13:07
wgrantmaxb: The BufferLogger that the previous statement logs to.13:07
maxbSo did it actually end up anywhere useful in a test run, or did you have to run things manually?13:07
wgrantmaxb: Had to alter the code manually.13:08
wgrantmaxb: (print logger.buffer.read())13:09
maxbok, I'm on the trail of what's breaking the uploadprocessor tests for me13:11
wgrantGreat.13:12
maxbriiight13:21
maxbso the last two are due to my ~/.devscripts13:21
wgrantAha.13:25
wgrantSo.13:26
wgrantOn to 2.5!13:26
* wgrant shall try to set it up tonight.13:26
maxbDEBUILD_DPKG_BUILDPACKAGE_OPTS="-us -uc"   <-- upsets launchpad13:31
maxbso I guess I need to find the appropriate place to apply a --no-conf option in the testsuite13:32
wgrantmaxb: OK, test suite running fairly happily with 2.5. I'll poke at any real failures (eg. soyuz-set-of-uploads.txt, which looks unfortunate...) tomorrow.14:32
maxbnice :-)14:32
maxbNow if I can just figure out why bzr import-dsc is barfing, I'll try to get my launchpad-dependencies branches created.14:33
maxbAnd then progress to actually preparing submission branches for some of the stuff I've accumulated in ~maxb/launchpad/python2.514:33
wgrantmaxb: Did you turn of shhh.py in there?14:34
wgrantI noticed the build was fairly noisy.14:34
maxbyes14:34
maxbaccidently at first, but I didn't feel like reverting :-)14:35
wgrantAre you getting lots of "/home/wgrant/launchpad2.5/lp-sourcedeps/eggs/pytz-2009j-py2.5.egg/pytz/__init__.py:32: UserWarning: Module lazr was already imported from None, but /home/wgrant/launchpad2.5/lp-branches/python2.5/lib is being added to sys.path\n  from pkg_resources import resource_stream"?14:36
maxbyes, and that's recent14:43
maxbbut I think Gary's aware and has some thoughts on that one14:44
=== mpt_ is now known as mpt
lifelessmoin20:44
mwhudsongood mornign20:54
lifelessmwhudson: so, liking your current role?21:20
lifelessor going whoa, where to start?21:20
maxbGah. gah. gah. /me is constructing a branch for launchpad-dependencies, and has just discovered that it basically forked for dapper vs. feisty, with each branch using the same version numbers for entirely different packages21:25
mwhudsonlifeless: somewhere in between those two :)21:27
mwhudsoni'm glad i've got 4 weeks left, let's say21:27
* mwhudson breaks fast21:28
lifelessmwhudson: :P21:28
lifelessmaxb: whats the goal of this archaeology/21:28
thumpermorning21:29
maxbThere is very little point. I'm just being obsessive about producing an accurate branch representing past history, if I do so at all21:29
thumpermwhudson: still up for a call at 9?21:30
mwhudsonthumper: sure21:35
mwhudsonthumper: having said that, 9:10 or so would be better21:55
thumperok21:58
wgrantGr.22:12
wgrantTests that rely on set() ordering make me sad.22:13
mwhudsonwgrant: KILL22:13
mwhudsonthumper: call?22:13
wgrantmaxb: Dammit. I managed to run 'make check' in the same shell that I had my umask set to 002 from earlier.22:15
maxb:-)22:15
* thumper nods22:15
maxbah well, you know exactly what failure that causes, so no problem :-)22:16
mwhudsonthumper: skype desn't think you're online, is it wrong?22:16
thumpermwhudson: yes, I'm trying to get to you too22:16
wgrantmaxb: I'm hoping it won't cause any others.22:16
maxbit didn't for me22:16
wgrantmaxb: Not even on 2.5?22:17
maxbWell I admit I'm conjecturing a bit, but the chances of a test being disrupted by umask on 2.5 but not being disrupted by umask on 2.4 seem vanishingly small22:18
thumperhttps://answers.edge.launchpad.net/launchpad-code/+question/8138522:18
jmlhi23:00
spmhey jml23:04
jmlspm, hi :)23:04
lifelesshi jml23:05
jmllifeless, g'day23:05
jmllifeless, I had a look at your subunit filter patch last night. It looked like it deserved more concentration than I had though.23:05
* jml fires off 4 ec2test runs23:06
lifelessjml: thanks23:08
jmlthumper, hi23:17
thumperjml: morning23:17
jmlthumper, you available to talk today?23:17
thumperyes, at some stage23:18
jmlthumper, cool. when do you think?23:19
thumperjml: when did you want to talk?23:19
thumperI think all the time :)23:19
jmlthumper, soon-ish, so I can get on with other stuff23:19
thumperjml: ok, give me a few minutes to get a cuppa, then we can tal23:19
thumperk#23:19
jmlthumper, cool.23:19

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