/srv/irclogs.ubuntu.com/2010/06/10/#launchpad-dev.txt

wgrantHm, I didn't know enough data was exposed to create such a thing.00:02
kb9vqfIs the PPA build system open sourced as well?00:04
wgrantYes.00:04
wgranthttps://dev.launchpad.net/Soyuz/HowToUseSoyuzLocally00:04
kb9vqfThanks!00:04
=== Ursinha is now known as Ursinha-afk
jmlwgrant, that's 100% through the API00:13
jmlwgrant, using anonymous access only.00:13
jmlwgrant, although the numbers are wrong, for some reason that yet eludes me00:13
wgrantjml: Oh, using date_confirmed and its kin?00:14
jmlyep00:14
wgrantkb9vqf: I've just tweaked that page a bit, trimming obsolete sections and that sort of thing.00:15
kb9vqfOK, thanks--I was still in the configuration section anyway ;-)00:15
kb9vqfwgrant: Any idea what might have caused this: http://pastebin.ubuntu.com/447456/00:18
kb9vqfAll other pages seem to work fine, but the home page doesn't00:18
kb9vqf(https://launchpad.dev/)00:18
wgrantkb9vqf: You're using an empty DB without sample data?00:19
kb9vqfI trimmed out a lot of the sample data00:19
kb9vqfGuess I trimmed something I shouldn't have ;-)00:19
wgrantTry cronscripts/update-stats.py00:19
wgrantThat may fix it, but it may not work unless you have at least one project.00:19
kb9vqfI was wondering if that would be the case00:19
kb9vqfThanks for the cron hint as well00:19
kb9vqfOne more thing...regarding changing all the instances of the word "Launchpad" to something else, would I be lucky enough for that to be controlled by a single file somewhere?00:22
kb9vqfOr will I have to resort to sed00:22
wgrantsed, probably.00:22
wgrantI use http://pastebin.ubuntu.com/447458/ and http://pastebin.ubuntu.com/447459/ on an empty DB (without any sample data at all).00:23
wgrantCreates most of the critical celebrities.00:23
wgrantUpdates the statistics, that sort of thing.00:23
wgrantAnd the second populates Ubuntu.00:24
* kb9vqf spent an entire day trying to get the celebrities in place00:24
kb9vqfI'll try the scripts as soon as Launchpad finishes rebuilding00:24
ajmitchwgrant: you have those scripts somewhere other than pastebin?00:29
ajmitchthey look useful00:29
wgrantajmitch: Not really.00:42
wgrantThey just sit around in ~/launchpad/utils and occasionally get unbroken when I get fed up with how terrible the sample data is.00:42
lifelessjml: wow00:47
lifelessjml: lovely visualisation; can you do the bazaar project group too ?00:47
jmllifeless, I want to. You might be able to figure out how to do it yourself if you branch lp:~jml/+junk/convergence00:48
lifelessjml: I'm sure I can :) . Uhm this seems like a lptools thing, if you want to make a home for it00:49
jmllifeless, I'm deferring the problem of figuring out how to have couch views that I can give a parameter to.00:49
jml(probably the answer is something horrible)00:49
lifelessjml: this is using offlinelaunchpadstuff ?00:50
jmllifeless, no.00:50
jmlI wanted to, and then I spent a bunch of time making the offlinelaunchpad stuff better in subtle, peripheral, important ways and then I got on with this.00:50
wgrantjml: Launchpad didn't collapse under the load of generating that graph?00:51
lifelessheh00:51
lifelesswgrant: no00:51
jmlwgrant, not as far as I can tell.00:51
lifelesswgrant: we generate more load internally than the API servers can cause ;P00:51
wgrantWhat was it that was causing the DB issues?00:52
lifelessmore load on master than desired, not enough on the slaves.00:54
lifelesswhich was due to replication lag being stale00:54
wgrantAh.00:54
lifelesswhich was due to the replication lag monitor not running.00:54
wgrantOops.00:55
lifelesswhich wasn't fixed immediately because its not, itself, monitored.00:55
lifelessWhich is because we don't have a 'must have monitoring on day 1' rule.00:55
lifelessor something like htat.00:55
lifeless(such a rule might be more trouble than its worth)00:56
jmlmeh01:02
lifelessjml: ? I'm saying not everything is important enough to monitor, in my suggestion that a hard rule might be trouble.01:02
jmlapart from the 162 bug tasks that are counted as "New" on that graph due to API exposure, I don't know why there are 500 bug tasks that have no "date_foo" field but are not actually "New"01:03
jmllifeless, the "meh" was in response to my internal angst :)01:03
lifelessah :)01:03
lifelessby all means, mehangst away01:03
wgrantjml: Incomplete?01:04
jmlwgrant, that's the 16201:04
wgrantAh.01:04
thumperjml: hi01:11
thumperjml: are you skypeable?01:11
jmlthumper, only for fun and social reasons :)01:11
thumperjml: I have something of strategic importance01:11
thumperheh01:11
thumperprobably neither fun nor social01:11
thumperjml: are you on leave?01:12
jmlthumper, yeah.01:12
thumperwhen are you back?01:12
jmlthumper, thus dicking about with desktopcouch and graphs01:12
jmlthumper, back Monday01:12
thumperok01:12
thumperremind me Monday01:12
jmlthumper, will do. look at the shiny. http://people.canonical.com/~jml/convergence/01:12
thumperI saw01:12
thumperlots of bugs01:12
thumperyou didn't graph won't fix :)01:13
jmlthumper, yeah I did!01:13
thumperreally?01:13
jmlthumper, it's the invisible bit at the bottom :)01:13
wgrantWhat about Opinion?01:13
jmlthumper, or rather, wontfix are considered done for the purpose of this graph01:13
wgrantOr is that not actually in production yet.01:13
thumperjml: your key only shows five statuses01:13
jmlthumper, it deliberately doesn't show non-open bugs.01:14
thumperIt'd be interesting to see our rate of fixing ...01:14
thumperhas it slowed down / sped up ...01:14
thumperjml: a first derivative graph of the bugs graph would also be interesting01:15
jmlthumper, well, you can kind of see that by the "Fix committed" line at the bottom.01:15
thumperjml: at what rate are bugs being filed01:15
jmlthumper, some of that stuff is on this (old) set of graphs: http://people.canonical.com/~jml/lp-bugs/01:15
jmlthumper, I guess now that I've figured out the relevant technologies and don't have to do staging database queries to get this information, I can add those.01:17
* thumper nods01:18
* thumper goes back to wrapping bugs01:18
jmlthumper, first derivative isn't useful with so many lines -- I think you only want "open" and "closed" then01:18
* thumper stabs ORMs in the face01:22
wgrantRidiculously inefficient SQL usage?01:22
thumperyes01:23
thumperand the hoop jumping to make it more efficient01:23
thumperpart of what I need to talk to jml about01:23
wgrantI wish I could tell it that I wanted it to precalculate various attributes.01:23
wgrantRather than having to do that manually, which makes everything about 10000000000x times uglier.01:23
thumperlike what?01:24
wgrantFor example, the publisher needs to retrieve lots of SourcePackagePublishingHistorys, their SourcePackageReleases, their SourcePackageReleaseFiles, and various other collections.01:25
wgrantIf I want to do that in less than hundreds of thousands queries (quite literally), I have to formulate a query manually and can't use the objects' normal attributes.01:26
lifelessyes01:26
lifelessorms are evil01:26
lifelessdb query interfaces - like storm /has/ - are very nice01:27
wgrantI should be able to tell Storm to precalculate SPPH.spr, SPR.files, and that sort of thing.01:27
lifelessbut magic attributes - very hard to get the right balance01:27
lifelesswgrant: you can01:27
wgrantThere is the prejoin implementation in the SQLObject wrapper.01:27
lifelesswgrant: there's a couple of hooks; not sure if the precise one you need is present01:27
wgrantBut it doesn't do collections.01:27
lifelesswgrant: theres a 'when getting this from the DB do xyz' hook01:27
lifelesswgrant: I'm pretty sure01:28
maxbheh, did someone give launchpad/ppa a biased buildscore? :-)01:32
lifelessdon't think so01:33
maxbI just uploaded stuff and it seems to have bypassed the entire queue :-)01:34
lifelessrotfl01:34
wgrantThat is a little suspicious.01:36
wgrantI suppose we can delete most of the PPA now.01:37
maxbs/suspicious/convenient/ :-)01:37
wgrantMm, although I guess we need to wait until 10.06 is out the door.01:37
lifelessis there a karma<->priority matchup ?01:38
wgrantlifeless: Only inasmuch as people with more karma are more likely to be able to hit up buildd admins :P01:40
maxb"Automatic retry of builds waiting on dependencies is disabled pending resolution of a performance problem" -- o rly?01:41
wgrantIt's back now.01:41
wgrantWas announced on launchpadstatus, I thought.01:41
maxbAlso, https://edge.launchpad.net/~lamont/+archive/psql8.3/+packages seems to have gone into an endless loop of depwait -> retry -> depwait -> retry ...01:42
maxbi.e. they're being erroneously retried01:42
wgrantIf you ever catch a build log or dependencies value from any of them, please keep a note of it.01:43
wgrantThere are some known bugs, but not any that should affect PPA builds.01:44
maxbthe lpia build there is building again now01:44
wgrantYeah.01:44
wgrantOh, if it depwaits I guess it will finish soon.01:44
wgrantForgot that detail.01:44
wgrantIf buildd-manager ever wakes up, that is.01:46
wgrantI must fix it one day.01:47
maxbIf there's a buildd-admin willing, can I get a rescore on at least one build in https://edge.launchpad.net/~maxb/+archive/launchpad/+packages ? I'd like to get a confirmed success before I sleep, so I can give them to stub tomorrow01:48
thumper✁☹01:50
thumper✁☹01:50
thumper✁☹01:50
thumper✁☹01:50
thumper✁☹01:50
wgrantAh, debhelper >=7.01:50
thumpergrrrrraaaaahhhhhhhhhhhh!!!!!!!!!!!!!01:50
wgrantSo it's probably the pocket-naïveté.01:50
wgrantthumper: What has Storm done now?01:51
* jelmer waves to thumper and wgrant 01:51
wgrantOr Soyuz?01:51
wgrantMorning jelmer.01:51
* jelmer ducks01:51
thumperI'm using lazr.delegate to wrap a bug so it doesn't hit the db for its tasks01:51
thumperbut getBugTask(self, target) uses self.bug_tasks01:52
thumperso in order to get that method to the cached tasks,01:52
thumperI either have to copy the implementation01:52
thumperor violate one of our rules for imports01:52
thumperand import Bug into code.browser01:52
thumperto go Bug.getBugTask(my_wrapped_bug, target)01:53
wgrantSo you're precalculating the collection?01:53
thumperyes01:53
wgrantWell.01:53
thumperin a single query to get the linked bugs and all their tasks01:53
wgrantOne easy way out is to abuse the fact that Storm doesn't notice when you assign a list.01:53
wgrantSo you clobber bug.bug_tasks with your precalculated list.01:54
wgrantEvil, yes.01:54
wgrantBut so are the other methods.01:54
thumpereh?01:54
thumperthat is evil01:54
spmmaxb: did you get that rescored? I'll do it now?01:54
maxbspm: yes please01:55
spmahh. slony. hell yes I'l rescore those.01:55
* thumper goes for the lesser of three evils01:56
maxb:-)01:56
spmmaxb: powa has been abused and used: https://edge.launchpad.net/~maxb/+archive/launchpad/+builds01:57
maxbneat, and they've been dispatched already :-)01:58
spmsee. I am useful for *some* things. ;-)01:58
maxbNow I just need to talk lamont into using my builds instead of redoing it02:00
wgrantDoesn't Hardy have 8.3 already?02:01
spmthe backport for hady-cat that we do? generally that's little more than trivial textual changes and getting a localised rebuild of same.02:02
maxbAn 8.3 what?02:08
maxbThese builds were about getting the most recent upstream of slony built for (hardy,lucid)*(8.3,8.4)02:09
wgrantAh, right, Slony.02:09
maxbwhich it now has :-)02:09
thumperqueries down from 294 to 93 using cached bug tasks02:56
thumper(for my test branch)02:56
ajmitchthumper: you managed to mangle it to use the right property?03:08
thumperno03:08
thumperwell kinda03:08
thumpertoo much special code IMO03:08
thumpernow I see most of the queries being in the menu link formatters :(03:09
thumperit should not be doing that :(03:09
thumperI thought that some old fix of salgado fixed that03:10
* thumper wishes sinzui was around to explain03:10
sinzuiYes it should not be doing that03:11
sinzuiI crafted a menu two weeks ago to avoid subscription checks. each menu call in the template was  a call to the db03:11
sinzuithumper, I think menus should be singletons or we use a utility that manages to menus for each object to ensure there is only for instance for each request03:13
thumpersinzui: ah, so it is known that it is somewhat fucked then?03:13
sinzuiYou and I know this03:14
thumperheh03:14
thumperok, how to fix this in my branch?03:14
thumperah03:14
thumperI know why it is screwed in this moment03:14
sinzuiI was very tempted to risk toppling all menus to fix the performance issues working with milestones on pages03:14
thumperthe context object is the unwrapped object03:15
thumperthe view.context is the decorated object03:15
thumperI bet the pages are using context/menu rather than view/context/menu...03:15
thumperI'm caching the queries needed by the menu03:15
thumperin my wrapped object03:15
* thumper checks the templates03:15
sinzuiI think each template fragment is creating the menu on demand or for it's chunk, but that same menu for the context may be instantiated 30 times03:16
thumperright03:17
sinzuiI think salgado had a hack to put the data in the request so that templates shared the menu, but I do not see evidence of that03:17
thumpersinzui: can I override the globs for the template?03:18
thumpersinzui: I want to set the context to be my wrapped context03:18
thumperrather than the unwrapped one03:18
thumpersinzui: do you know where the template render code is actually called?03:18
sinzuirender() for the fmt:link?03:19
thumperI mean the code that sets the 'context' for the page template render03:19
sinzuiah03:19
sinzuiThat would be sidnei's chameleon engine03:20
thumperare we using chameleon?03:20
sinzuiyes03:20
* sidnei raises an eyebrow03:20
thumperwhere is the code?03:20
sinzuiin an egg03:20
thumper:(03:20
* sinzui saw it while purging py2.5 eggs today03:21
thumpersurely we call it somewhere with a dictionary of locals right?03:21
thumperthat is what I want to override03:21
sidneisinzui, chameleon is not enabled, though the code is there03:21
sinzui:(03:21
* thumper hunts in webapp for calling pagetemplates03:21
thumpersidnei: unless you can tell me where to look03:21
sinzuithumper, are these LaunchpadView views?03:22
thumperyep03:22
sinzuiI believe we hacked __call__03:22
sidneithumper, i might if sinzui doesn't beat me to it03:22
thumper:(03:23
thumperthere seems to be much magic there03:23
sidneithere's a ton of magic involved yes. it left me scratching my had last time i looked at it.03:24
sidneis/had/head03:24
thumper__call__ calls render03:24
thumperrender calls self.template()03:24
thumpertemplate is a property that returns self.index03:24
thumperself.index seems opaque03:25
sinzuithumper, during traversal, the view is construct. adapters from zcml marry the named view to a template and create the final view call, and it monekypatches __facet__ because using ILayer would have been too easy03:25
sidneithumper, self.index is the template that gets registered by the zcml directive iirc03:25
thumpersinzui: do I have to read the entire publisher file?03:26
sinzuiNo, look for __facet__ I scream every time I see that monster03:26
thumperENOTFOUND03:27
* sinzui ponders03:27
thumper__launchpad_facet__03:28
sidneisorry for not being more helpful, it's almost midnight here and im trying to wrap up a large refactoring03:29
sinzuithumper, yes, in metazcml03:30
thumper✁☹03:32
ajmitchare there any tests around for scripts/ftpmaster-tools ?03:36
lifelesshah03:36
ajmitchI was afraid of that03:37
thumper return mapply(ob, request.getPositionalArguments(), request)03:38
thumperpublication.py line 43603:38
ajmitchon a related note, is launchpad.net running on lucid03:39
sinzuiyes03:39
sinzuias of today, dev is on 2.603:40
sinzuipython 2.603:40
ajmitchok, I just saw some duplicated code in sync-source.py to remove then, I'm just changing some of the version matching in there :)03:41
spmsinzui: it is? oh *dev* is. right. prod is still running on hardy.03:41
sinzuiall lpnet is hardy?03:42
lifelessajmitch: different questions03:42
lifelessajmitch: 'works on 2.6'03:42
lifelessajmitch: != 'deployed on 2.6'03:42
lifelessajmitch: we can't remove compat stuff until its deployed on 2.603:42
sinzuiWe this will be a very exciting rollout. I am glad I am not the release manager for 10.0603:42
spmsinzui: I hope so, or else it's been upgraded without me knowing about it; which'd be fun :-)03:42
ajmitchlifeless: in this case, it's code duplicated from python-debian that is in lucid03:42
ajmitchrather than anything python 2.6-specific03:42
lifelessajmitch: we're runniong on hardy03:43
ajmitchwhich is mostly what I was asking03:43
lifelessyeah, you asked the right question; but a little more clarity that it wasn't a proxy for python version would have helped ;)03:45
ajmitchI did clarify, just a little too late :)03:45
spm:-)03:45
ajmitchit was bug 520508, fwiw03:46
mupBug #520508: Duplicate copy of split_gpg_and_payload() <soyuz-upload> <tech-debt> <Soyuz:Triaged> <https://launchpad.net/bugs/520508>03:46
* thumper frowns03:49
thumperI can't find it!03:50
thumperdamn it03:51
thumperthe publication code calls request.getPositionalArgs03:51
thumperwhich defers to self._args of the request03:51
thumperwhich gets set with positional= kwarg03:51
* thumper is frustrated03:51
thumpergoing back to changing context/menu to view/context/menu03:52
thumperfor some reason my context is getting wrapped twice04:07
thumper\o/04:15
thumperdown to 63 queries04:15
* thumper looks for dupes04:15
lifelessnice04:22
thumperdown from almost 30004:24
thumperstill dupes though04:24
thumperand we have 20 queries before we even hit object traversal04:24
thumperI think with some effort we could drop that to under 1-04:24
thumper1004:24
wgrantthumper: Ew, what are the pre-traversal queries?04:36
wgrantThat's mildly insane.04:37
thumper:)04:37
thumperwant me to pastebin it?04:37
wgrantWell, I have an exam in 20 minutes, so it's probably best that I don't look at it :P04:38
thumperhttp://pastebin.ubuntu.com/447557/04:38
thumpersorry04:38
thumperthere goes the study04:38
wgrantHeh.04:38
thumperwhich exam?04:38
wgrantLogic Completeness and Incompleteness.04:38
ajmitchoh that sounds fun04:39
wgrantSELECT AccountPassword.account, AccountPassword.id, AccountPassword.password FROM AccountPassword WHERE AccountPassword.account = %s04:39
wgrantWhy would it being doing that? It's not meant to know that passwords exist.04:39
thumperwgrant: go to your exam04:46
thumperew04:53
thumperremoveSecurityProxy(db.branch).__class__.displayname.__get__(db)04:53
thumperI think that passes the wrapped object (db) into the property getter as self04:53
thumperit is pretty revolting04:54
stubHmm.... """sourcepackagerelease components "not null" site:bugs.launchpad.net """ in google finds me the bug I want on index pages, but not the bug itself.05:05
madscientist159wgrant: You still around?07:19
madscientist159wgrant: I tried to run your script to initialize the empty database, but all I got was this:07:20
madscientist159http://paste.ubuntu.com/447607/07:20
=== madscientist159 is now known as kb9vqf
kb9vqfAnyone have an idea why I am getting that permission error?  I've tried as root and as the postgresql user...07:24
kb9vqfwgrant: I managed to get around the problem by temporarily granting all access to the karmacategory table and sequence, so my above comments are just an FYI07:55
kb9vqfAlso FYI, the second script will notrun, complaining about "lp.registry.interfaces.distroseries" not existing07:57
kb9vqfIdeas for debugging this oops?08:07
kb9vqfv08:07
kb9vqfhttp://pastebin.ubuntu.com/447619/08:07
kb9vqfIt happens only when trying to go to a project page such as https://launchpad.dev/launchpad08:07
kb9vqfEverything else seems to work great08:08
adeuringgood morning08:18
kb9vqfwgrant: Here's a fixed version of the second script: http://pastebin.ubuntu.com/447622/08:20
=== almaisan-away is now known as al-maisan
=== thumper changed the topic of #launchpad-dev to: Launchpad Development Channel | Week 1 of 10.06 | PQM is open but ec2 land/-s is broken | https://dev.launchpad.net/ | Get the code: https://dev.launchpad.net/Getting | On-call review in irc://irc.freenode.net/#launchpad-reviews | Use http://paste.ubuntu.com/ for pastes
wgrantkb9vqf: Ah, yeah, sorry, forgot about the karmacategory perm fix.09:20
wgrantAnd DistroSeriesStatus was recently moved and renamed to SeriesStatus, and apparently that version of the script hasn't been fixed yet.09:20
wgrantAnd it looks like you need to run rmy second script now, or all projects explode.09:20
wgrantThat's pretty inconvenient.09:20
kb9vqfwgrant: Did you see my fixed version of the second script ;-)09:22
wgrantAha.09:23
kb9vqfI figured out the projects exploding...my local installation is actually working quite well ATM09:23
kb9vqfThanks to your scripts ;-)09:23
kb9vqfStill working on the PPA builders though09:23
* kb9vqf crosses fingers09:23
wgrantWhat's wrong with them?09:24
kb9vqfNothing yet09:24
kb9vqfJust don't have the software installed yet09:24
wgrantAh.09:24
kb9vqfI fumble-fingered a move command earlier and deleted the past 12 hours of work09:24
wgrantWell, beware, I wrote those instructions too, so...09:25
kb9vqf:-)09:25
wgrantI might throw the scripts into a branch and push it up.09:26
kb9vqfBe aware that there is an issue (syntax error) in one of the Launchpad python files the first script calls...something to do with the distribution IIRC09:27
kb9vqfSorry I don't have the filename handy, that was several hours ago09:27
kb9vqfThere was a colon in the function declaration when it was really supposed to be a comma09:27
wgrantHmm, odd. I guess I'll find out in a few minutes when I test the whole lot.09:28
noodles775kb9vqf: yes, a testfix branch was just landed. (The issue was the result of a bad-but-non-conflicting merge)09:28
wgrantHowever, I think the ubuntu.currentseries.displayname crash is a legitimate bug.09:28
wgrantLet's see...09:28
kb9vqfWell, it went away after the second script was modified and run09:28
wgrantYeah.09:29
wgrantBut I meant the second one to be optional; that's why it's separate.09:29
kb9vqfOh, OK09:29
wgrantAh, it's not a real bug that will show up in production :(09:30
kb9vqfHow does the blog widget on the Launchpad home page operate?  Can I redirect it to my blog?09:38
wgrantIt's... hardcoded.09:38
kb9vqfOh09:38
kb9vqfHow can I remove the entries that are there right now?09:38
wgrantgrep around and find the template that has them.09:39
kb9vqfIn the DB or in the files?09:39
wgrantThe files.09:39
wgrantThe entries themselves are hardcoded.09:39
kb9vqfOhhhh09:39
wgrantNot the blog feed that it pulls from.09:39
kb9vqfShall I say that seems rather...odd?09:40
kb9vqf;-)09:40
wgrantYes.09:40
kb9vqfIs there a list anywhere of how often each cron script should be run?09:53
* kb9vqf doesn't want to waste system resources by running every minute if its not needed09:53
wgrantThat's something they've not revealed.09:56
kb9vqfOK, trial and error it is then09:58
kb9vqfwgrant: Are there any instructions for setting up a build daemon on a remote machine?10:06
kb9vqfI have a rather large cluster here of identical machines I'd like to use10:06
wgrantkb9vqf: Just install launchpad-buildd on them and point LP at them.10:08
wgrantBut watch out. lp-buildd is unauthenticated.10:08
kb9vqfI have a dedicated private network, so that's not a problem ;-)10:08
kb9vqf(Physically secured too)10:08
kb9vqfSo I have to install the lp-branches/devel stuff on each build machine then?10:08
wgrantNo. Just grab the launchpad-buildd .deb that is created.10:09
kb9vqfWhat about the chroot image?10:09
kb9vqfOh..is that image system wide and uploaded to each builder on-demand?10:09
wgrantRight.10:10
wgrantThe chroot is sent out for each build.10:10
wgrant(although it's cached on the slave)10:10
kb9vqfThat makes a ton more sense10:10
kb9vqfThanks!10:10
wgranthttps://code.launchpad.net/~wgrant/launchpad/bootstrap-db-from-scratch contains all the changes and fixed scripts for bootstrapping.10:11
kb9vqfSubscribed myself so I won't lose it :-)10:11
kb9vqfHas anyone else actuallydeployed Launchpad other than Canonical?10:12
kb9vqfJust out of curiosity10:12
wgrantI don't believe so.10:12
kb9vqfSo I might be the first10:12
kb9vqf:-)10:12
wgrantAnyone who tried would have probably run into huge problems and asked here.10:12
wgrantEveryone who has asked here has given up.10:12
kb9vqfHmmm....Librarian10:19
kb9vqfIt doesn't seem to be started from "make run"10:19
wgrantnoodles775: Have the getBuildRecords timeouts been fixed? I've only had a few emails from cron today, rather than the usual several dozen.10:19
wgrantIt still times out sometimes, but not as much.10:19
wgrantkb9vqf: It probably only listens on localhost.10:19
kb9vqfYes; I'm getting this though10:20
kb9vqfLibrarian upload failed: [localhost:58090]: [Errno 111] Connection refused10:20
wgrantHm.10:20
wgrantIs that from manage-chroot?10:20
kb9vqfYup10:20
wgrantYou've not touched the config?10:20
kb9vqfNope10:20
wgrantmake run definitely normally starts it.10:20
kb9vqfThat's what I thought too; here's what is in the config file right now:10:21
kb9vqf[librarian]10:21
kb9vqfdownload_url: http://launchpad.dev:58080/10:21
wgrantHm, that's not the default, is it?10:21
kb9vqfYes it is10:22
wgrantMm, so it is.10:22
kb9vqfAt least that's what came from Bazaar10:22
kb9vqfShould it be localhost?10:22
wgrantWell, if you want to make really sure that it doesn't work from any of your other buildds :P10:22
kb9vqfNo thanks, I'll pass :-P10:23
kb9vqfIt doesn't seem to be running at all; there is nothing with "lib" in ps aux10:23
wgrantIt's a twistd with librarian.tac in argv.10:24
wgrantSo try killing and restarting make run.10:24
kb9vqfThat's what I'm doing now10:24
wgrantSo.10:24
* kb9vqf is reminded of Windows..."When acting strangely, simply reboot!"10:25
wgrantI guess you need to override upload_host, download_host, restricted_upload_host and restricted_download_host in the librarian section in your config file.10:25
wgrantAs well as making it somehow not listen on localhost only.10:25
wgrantOr stick a proxy in front of it.10:25
kb9vqfThe reboot fixed it10:26
kb9vqfAnd I was thinking of doing a proxy, it's three lines in Apache ;-)10:26
noodles775wgrant: no, well not specifically. There has been some changes since yesterday that reduce the db load, so that might be the reason you're seeing less timeouts.10:26
kb9vqfCan I run  i386 buildd on a 64-bit installation of Ubuntu?10:27
wgrantkb9vqf: Yes.10:27
kb9vqfGood10:27
wgrantYou'll need to tweak the arch in /etc/launchpad-buildd/default, though.10:27
wgrantIt defaults to the system arch.10:27
kb9vqfYeah, I noticed that10:27
kb9vqfWasn't sure if it was a read-only attribute so to speak10:27
wgrantYou can also drop additional config files alongside 'default' to run multiple lp-buildds on one host.10:28
wgrantHandy for handling multiple archs.10:28
wgrantThey cannot, however, share a filecache.10:28
kb9vqfCool10:29
kb9vqfNow I can put those 8 cores to good use10:29
kb9vqfThings not to do...try to run all of the cron scripts in parallel at once10:43
kb9vqf:-{10:43
wgrantUm, yeah, bad idea.10:48
kb9vqfwgrant: FYI, I got a "canonical.launchpad.utilities.celebrities.MissingCelebrityError: ubuntu-bugzilla" from one of those scripts10:52
kb9vqfYou might want to add it to the DB building script10:52
wgrantkb9vqf: Note that the DB bootstrap script has lots of comments in the celebrity list for stuff that isn't created yet.10:57
wgrantYou really don't want to be running scripts unless you know what they do.10:57
kb9vqfI glanced through it and verified the database; just didn't look real hard at which celebrities were being created10:58
kb9vqfSince that is a bit of a black box to me right now10:58
wgrantRight. But you should be working out what the cronscripts do before you run them.10:58
kb9vqfThat is true10:58
wgrantEwwwwwwwwwwwwwwwww.11:00
kb9vqfThe main problem was launching them all at once; I will probably have to create groups of them (e.g. the PPA updating scripts could run every minute, etc)11:00
wgrantI'd never dared to look at why ubuntu-bugzilla was a celebrity.11:00
wgrantI... regret discovering why.11:00
kb9vqfDo I want to know?11:01
wgrantWell, once upon a time, Ubuntu used Bugzilla. Then all the bugs were imported into LP, with bugwatches pointing at the old Bugzilla bugs.11:01
wgrantNow, normally bugwatches are updated every day or so.11:01
wgrantBut this doesn't make sense for Ubuntu Bugzilla, since it doesn't exist any more.11:02
wgrantSo.... there's a hack to skip updating bugwatches if their tracker's name is the same as the ubuntu-bugzilla celebrity's.11:02
kb9vqfEwwww11:02
ajmitchalmost as ewww as the old ubuntu bugzilla was11:04
wgrantIt wasn't *that* bad.11:07
kb9vqfIf /var/tmp/poppy does not exist, should I just create it?11:25
wgrantYes.11:25
wgrantI thought that was documented. Hmm.11:25
wgrantYeah, the first process-upload.py call in the "Upload a source to the PPA" section will create /var/tmp/poppy.11:26
wgrantOr should, at least.11:26
kb9vqfIt gave me an error until I created the directory manually11:27
wgrantHrmph.11:27
kb9vqfOne other question...how does Launchpad handle Email sending?  Can I just point it to my SMTP server?11:28
wgrantPretty much. But you'll need to make sure any email addresses in the code or DB are really what you want, and aren't going to spam people.11:30
kb9vqfOK.  And the configuration file for that is schema-lazr.conf or something else?11:30
wgrantYou shouldn't alter schema-lazr.conf itself.11:30
wgrantYou should probably create a new config, perhaps based on the development one.11:30
wgrantOverriding more things.11:30
kb9vqfAh, OK11:31
wgrantIf you look really hard you might be able to find the old production configs and use bits of them as examples ;)11:31
kb9vqfI need to catch some sleep...the build farm looks like it is active and cron jobs are partially set up...I'll do the actual build test tomorrow11:40
kb9vqfThanks for all your help so far!11:40
deryckwgrant, ping.  still around?11:50
wgrantderyck: Sure.11:53
wgrantHm, translation template jobs are on now?12:03
henningewgrant: you mean if they are working?12:07
wgrantI haven't seen dozens on the farm before.12:07
wgrantBut most of the i386 builders are doing them at the moment.12:07
henningewgrant: well, they are restricted to run only on i38612:09
wgrantWell, yes, but I hadn't seen any on production for weeks.12:09
wgrantAlso, are they restricted to only happen every $INTERVAL?12:10
wgrantOr will they run for every rev?12:10
henningeAFAIK they run on every rev.12:10
henningejtv might be surer about the details.12:10
wgranterm.12:10
jtvhi wgrant12:10
wgrantEvening jtv.12:11
* henninge goes to lunch12:11
jtvwgrant: we still need a lot more logging and tracking for these jobs.  :/  One thing we found some time ago was that there's been a change in gettext that makes our front-end vetting think a lot of pure-gettext branches are intltool-based.12:12
wgrantjtv: Yeah, well, we have the infrastructure to keep track of them after they're done now.12:13
wgrantOnce that's done, it probably becomes easier to impose quotas, too.12:13
wgrantSince you can't actually tell at the moment if an attempt has been made lately...12:14
jtvIt'd be nice to have some form of bundling.12:14
wgrantHm?12:14
jtvWhere we don't record separate jobs for every revision, but the need to re-process a given branch.12:14
wgrantAh.12:14
jtvIf you get a dozen revisions in quick succession, there shouldn't be a need to run a dozen jobs.12:15
wgrantRight.12:15
wgrantThat seems easy enough to do, even now.12:15
jtvPerhaps, yes.12:16
wgrantIs the porting of SPRBs and TTBJs to the new infrastructure going to happen in the foreseeable future?12:17
jtvFrankly, I don't know.  We're focused on something else at the moment.12:19
=== lifeless_ is now known as lifeless
bigjoolswgrant, jtv: I expect buildd admins will insist so that those jobs show up in the history13:00
=== matsubara-afk is now known as matsubara
jtvbigjools: it'd definitely make sense to do, yes.  And we want to do it... question is when.13:00
wgrantPlus it means we can delete a whole lot of code.13:01
wgrantAnd simplify a whole lot of other code.13:01
wgrantAnd make logging suck less.13:01
bigjoolswin win win13:07
bigjoolshenninge has a decision to make ;)13:08
henningebigjools: I would love to if I knew about what ...13:09
bigjoolshenninge: "porting of SPRBs and TTBJs to the new infrastructure"13:09
bigjoolsTTBJs in your case13:09
henningealso, I am currently listening to a Microsoft general manager talking about "Microsoft and Opennes" ...13:09
bigjoolsMicrosoft has always been open13:10
=== henninge is now known as henninge-linuxta
bigjools...to making more money13:10
=== Ursinha-afk is now known as Ursinha
UrsinhaChex, gary_poster, rockstar, bigjools, henning, sinzui, gmb: production meeting on #launchpad-meeting @ Freenode in 30 minutes16:32
ChexUrsinha: thanks for reminder16:32
rockstarUrsinha, correction: 28 minutes.16:32
gary_posterthanks16:32
rockstar:)16:33
Ursinharockstar, thanks for that :)16:33
gmbUrsinha, Thanks.16:36
UrsinhaChex, gary_poster, rockstar, bigjools, henning, sinzui, gmb: production meeting on #launchpad-meeting @ Freenode now17:00
=== beuno is now known as beuno-lunch
=== matsubara is now known as matsubara-lunch
=== beuno-lunch is now known as beuno
=== matsubara-lunch is now known as matsubara
kb9vqfAny idea why Launchpad won't accept my key import?19:27
kb9vqf"Launchpad could not import your OpenPGP key"19:27
=== al-maisan is now known as almaisan-away
kb9vqfAny idea why Launchpad won't accept my key import?19:44
kb9vqf"Launchpad could not import your OpenPGP key"19:44
kb9vqfThis is weird... "format '1.0' is not permitted in lucid."19:52
kb9vqfWhat does that mean?19:52
kb9vqfIt came from a PPA upload rejection notice19:52
=== Ursinha is now known as Ursinha-food
kb9vqfI have sucessfully uploaded a package to my PPA on my local Launchpad installation and it is marked as published, but for some reason it won't start building21:03
kb9vqfIt's stuck on "Needs building"21:03
kb9vqfAny thoughts?21:03
maxbHave you read wgrant's documentation on making a local soyuz work?21:12
kb9vqfYes, I followed it21:13
kb9vqfIt seems like is almost working, the build machines show up in /+builds as idle, I added both the i386 and amd64 chroot images21:13
kb9vqfBut the build itself does not fire off21:14
kb9vqfmaxb: is there anywhere I should look for logging info?21:14
maxbNot sure, sorry.21:15
kb9vqfmaxb: If I haven't signed the code of conduct could it do thise?21:15
kb9vqfthis?21:15
maxbhuh. I'd expect it to refuse the upload21:16
kb9vqfmaxb: I'd like to try signing it and see what happens, but I get "Launchpad could not import your OpenPGP key" when I try to add my key21:17
kb9vqfAny thoughts on that?21:17
maxbI'm sure wgrant documented how to sign the CoC21:17
=== Ursinha-food is now known as Ursinha
kb9vqfmaxb: Well I think I know why it accepted my upload; I ran the upload acceptor with absolutely-anything21:19
kb9vqfBut I don't know if the CoC is checked again afterwards before the package is built21:20
kb9vqfSo what piece of Launchpad actually dispatches the builds?21:26
marslifeless, ping, is there any chance you could approve https://code.edge.launchpad.net/~tseaver/subunit/add_distutils_support/+merge/26653 ?21:45
marslifeless, s/approve/review/21:45
lifelessyup its on my todo21:46
marslifeless, cool, thank you.21:46
lifelessis this work relasted for you? its currently in my personal pile21:49
lifelessmars: ^21:58
marslifeless, relasted?21:58
marsah, related21:59
lifelessrelated21:59
marslifeless, yes, it is blocking my landing of https://code.edge.launchpad.net/~mars/zope.testing/fix-subunit-utf8-traceback-reporting/+merge/2708621:59
lifelesshow so ?21:59
marsif you read Tres' comment, you'll see that he is waiting for PyPI subunit.22:00
marsWhen that is available, then zope.testing's setup.py and buildout.cfg can be updated with conditional subunit[test] dependencies22:00
marsAnd then my patch will be sane: you will need subunit to run the zope.testing test suite22:02
lifelessah22:02
lifelessthere is a test tools bug thats related22:03
marsas Tres put it, then we can "ensure that the [subunit] features don't bitrot"22:05
marsgary_poster, ec2 land did not eat my branch.  It just took an hour to deliver my change from ec2 to PQM :/22:06
marsIt fell through a timerift on the way over or something22:06
gary_postermars, well, time rifts are interesting, and a lock of eating the branch is a good thing :-)22:08
gary_posterlack22:08
kb9vqfSo what piece of Launchpad actually dispatches the builds?22:31
lifelesssidnei: around ?22:32
lifelesstres has said he is ok with https://code.edge.launchpad.net/~mars/zope.testing/fix-subunit-utf8-traceback-reporting/+merge/27086 landing as long as you or someone else with subunit tests it; mars has said it may break other builds right now as the additional tests he adds aren't conditional.22:33
lifelessmars: you're going to fix that right ?22:33
marslifeless, yes, I certainly will now22:33
=== matsubara is now known as matsubara-afk
sidneilifeless, im about to leave. i can land it in the morning.22:51
lifelesssidnei: cool22:52
lifelessthanks22:52
thumperrockstar: call now?23:09
rockstarthumper, sure.23:09
thumperrockstar: and I suppose we have to mumble?23:10
rockstarthumper, yes.... :(23:10
jmllifeless: fwiw, that thing I did to make a pretty graph has grown a script that makes similarly pretty graphs given a csv file like YYYY-MM-DD,number,number,number,...23:16
lifelessnice23:16
jmlI guess I should productize it, or something.23:17
lifelessmeh23:19
lifelesstweet it23:19
lifelessyour job is done23:19
jmlhah23:25
ajmitchyay for documentation about testing soyuz23:25
jmlat least now it has a README23:26
jmlgood bye23:26
lifelessfly well23:28
wgrantajmitch: What about it?23:51
ajmitchwgrant: that I'm glad it's there, it was helpful23:52
wgrantAh, you've actually tried it?23:53
ajmitchyes23:53
ajmitchat least the accepting source packages & publishing them, not the building23:53
ajmitchso that I could test out this change to sync-source.py:23:54
ajmitchhttp://bazaar.launchpad.net/~ajmitch/launchpad/fakesyncs/revision/1099223:54
wgrantAh, right.23:55

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