/srv/irclogs.ubuntu.com/2010/08/01/#launchpad-dev.txt

james_wCan't the metazcml lazy-instantiate things registered as utilities?00:01
wgrantOne would think so.00:03
wgrantIt might make things not take several ages to start.00:03
james_wIt's probably not a huge percentage of the zcml processing time, but not running all that code wouldn't hurt the time00:13
james_wwgrant: https://code.edge.launchpad.net/~james-w/launchpad/no-more-sampledata-0/+merge/31470 <- what do you think?00:17
wgrantjames_w: Looks good.00:29
wgrantIt even removes the factory's manual BPPH instantiation, which makes me happy (I have a branch removing the rest already).00:30
james_wwgrant: you have a branch to do it for SPPH too?00:31
wgrantAlthough you should probably do the same with SPPH too.00:31
wgrantjames_w: Yes. I got rid of everything except a couple of tests, STP and the factory.00:31
james_wah00:32
wgrantBecause the factory sets extra attributes, and I wasn't sure if rSP was really prettier.00:32
james_wI can do the same change for SPPH, I was just being lazy, and it's going to conflict anyway00:32
wgrantBut it seems it is.00:32
wgrantWhat's it going to conflict with?00:33
wgrantI didn't touch the factory, for the above reason.00:33
james_wsinzui has a branch to return a proxied SPPH00:33
wgrantAh.00:34
james_wusing the method I used in this branch00:34
james_wnot a big problem00:34
wgrantI wonder if 'make lint' should whinge about c.l.i and c.l.d imports.00:37
wgrantProbably.00:37
wgrantjames_w: I like the look of that ArchiveCollection branch, too.01:07
wgrantBut... 'isRequireVirtualized'?01:07
james_wyeah, it sucks01:32
james_wmaybe .requiresVirtualization()?01:32
wgrantjames_w: Sounds good.01:35
mtaylorit would be really nice if I could edit the target branch in a merge proposal02:44
james_wwgrant: would a tweak to score() to subtract some constant multiplied by the number of builds in the same archive in the last 24 hours do any good, or would it just be piling more on top of a shaky system?02:50
james_wmtaylor: there is some discussion in http://www.mail-archive.com/launchpad-dev@lists.launchpad.net/msg03646.html about that sort operation on merge proposals02:51
mtaylorjames_w: excellent02:55
wgrantjames_w: bigjools suggested that a couple of days ago.03:03
wgrantIt might work.03:03
wgrantBut it's definitely piling more on top of a shaky system.03:03
james_wthe difficultly with other schemes is not materialising lots of rows for each of a 1000 builds every time you want to find the next build to dispatch, or to score them all03:06
james_wa stored procedure to calculate scores might be an option03:06
james_wotherwise you are looking at caching scores, which brings you back to something like you have now03:06
wgrantjames_w: Yes, that's the trouble :(03:24
=== Ursinha-afk is now known as Ursinha
wgrantjames_w: Alternatively we could have a materialised queue somewhere other than an RDBMS.03:32
wgrantLike, something that models a queue.03:32
james_wwgrant: that's true03:32
james_wI'd be wary about behaviour if whatever that was went down and had to be repopulated from the DB03:33
wgrantYes...03:34
james_wwgrant: do you know of something that would work well there?03:35
james_wthe few things I know are very simplistic in that aspect, and don't work well with high contention03:36
wgrantI don't, no.03:36
lifelessuhm04:09
lifelessanything that requires O(queue length) is something I'd worry about04:09
lifelesswhy not simply reduce the score at upload time - I suggested that last week04:09
wgrantPossibly.04:11
wgrantI guess that's reasonably flexible.04:12
wgrantSimple reducing based on the number of pending builds for the archive is probably insufficient. But it might be a start.04:12
lifelessscore = current_score_calc - len(target_build_queue)04:12
lifelessright04:12
wgrantI think we should probably throw out everything we currently know about build scores, and work out what we actually want from then.04:13
wgrant2505 is a bit magical for my liking.04:13
lifelesswe should throw out build scores04:13
wgrantDidn't you just say we should reduce them?04:14
wgrantIsn't that inconsistent with throwing them out entirely?04:14
lifelessshort term vs long term04:15
wgrantHow do you propose to do away with them?04:15
lifelessthe problem with build scores is they try to create a single global static sort04:15
wgrantYep.04:15
lifelesswhat we actually have is multiple queues vying for a single resource04:15
lifelessmodelling that directly, whether in rabbitmq or in postgresql, will be much more successful at giving a good experience04:16
lifelesssee for instance the reams of work done on network packet queuing04:16
wgrantRight.04:16
james_wbug 612351 was a bit of a headscratcher21:16
_mup_Bug #612351: getPackagesetsForUploader uses Store.find, which doesn't return an SQLObjectResultSet <Soyuz:New> <https://launchpad.net/bugs/612351>21:16
jelmeryuck21:17
lifelessmorning21:24
james_wmorning lifeless21:37
lifeless james_w thanks for that wiki page21:50
lifelessjames_w: but perhaps you could re-read the first sentence :)21:51
lifelessor tow21:51
lifelessbah21:51
lifelessor two21:51
lifelessthanks!21:52
james_wfixed, thanks21:52
jelmer'morning lifeless, poolie, thumper22:34
thumperhi jelmer22:34
thumperhow goes the plugin updates?22:34
jelmerthumper: https://code.edge.launchpad.net/~jelmer/launchpad/update-bzr-foreign/+merge/3143822:34
jelmerthumper: Does that answer your question ? :-)22:34
thumpermaybe...22:35
wgrantjelmer: Do you have a moment to approve my latest changes to https://code.edge.launchpad.net/~wgrant/launchpad/refactor-nuf-creation/+merge/30851, or should I ask tomorrow?22:36
jelmerwgrant: Was that your file classification branch? If so, I can have a look now.22:37
wgrantjelmer: Yep, that's the one.22:37
jelmerwgrant: Great, happy to re-review now then (once loggerhead cooperates)22:39
wgrantjelmer: Yay Loggerhead.22:39
pooliehi jelmer, wgrant, thumper22:39
thumperjelmer: do we have a bzr-hg update?22:39
wgrantIt normally works after a refresh or two for launchpad branches.22:39
wgrantMorning poolie.22:39
jelmerthumper: No, none of the changes were really significant enough to warrant a round of QA and a release.22:40
thumperjelmer: ack22:41
thumperah crap22:41
thumperresolving conflicts between stable and db-devel22:42
thumperand there are significant changes in the source package recipe build code22:42
thumperon both devel and db-devel22:42
thumpertests are failing locally22:42
* thumper needs to choose what to delete22:42
thumper✁☹23:16
lifelessheh23:18
lifelesswe're working to eliminate this source of waste23:18
wgrantIf I'd already convinced lamont and bigjools of https://code.edge.launchpad.net/~wgrant/launchpad/multi-arch-builders, buildd admins could just flip most of the excess amd64 builders onto i386 :(23:18
jelmerwgrant: what's the argument against that? Predictability?23:19
wgrantjelmer: I don't know. I will ask about it again tonight.23:19
wgrantBecause it would be reallly handy.23:19
wgrantThere is the issue that you don't know if the builder can build amd64 or not.23:19
wgrantBut that will become a non-issue once LP gains support for dispatching multiple archs to the one builder.23:20
=== NC|Alaska is now known as NCommander
wgrantBut that means fixing the queue size estimation algorithms in a way that is not at all obvious.23:20
jelmerYeah, I can see how that would be an issue.23:21
jelmerThen again, if we'd process things quicker there's less need for proper time estimation...23:21
wgrantYes...23:21
wgrantWe might also be able to take shortcuts if all of the x86 builders are amd64-capable.23:21
wgrantIt's going to be very difficult if we can't.23:22
wgrantIt's a bit sad that the main barrier to shorter queues is calculating the length of those same queues.23:24
lifelessuhm23:24
lifelessthe estimating system is already terrible23:24
lifelessdon't worry about making it slightly less perfect if its an overall win23:25
wgrant'Slightly less perfect' meaning potentially a factor of three off.23:25
wgrantThe estimation system is fine, assuming buildd-manager efficiency is 100%.23:25
wgrantWhich it's about to get close to.23:25
lifelesswgrant: it requires many more assumptions than that23:28
wgrantThat builds take the same amount of time each time, which is somewhat reasonable.23:28
lifelesswgrant: firstly that all buildds are equivalent (false)23:28
wgrantTrue.23:28
wgrantAnd that there are no queue jumpers (false)23:28
lifelesswgrant: secondly that package builds don't vary much (mmmm, maybe true, maybe false - see perf issues with lucid etc)23:29
lifelessthat too23:29
lifelessand I'm sure there are other variables23:29
lifelessas for a factor of three, union the queues for all, add 1/3 of that to both i386 and amd64, and you should be tolerably bad23:30
* thumper pushing conflict testfix23:31
wgranti386 queue > 1000 :(23:45
lifelessjkakar: how would you guys feel about __nonzero__ on ResultSet ?23:46
thumperwgrant: really? WTF?23:46
wgrantSoyuz works around the lack of __nonzero__ in a couple of cases already.23:46
wgrantthumper: That's right.23:46
thumperwgrant: where do I see that?23:47
wgrantthumper: https://launchpad.net/builders23:47
wgrantThis means that no recipe will build for a few days at least.23:47
thumperwgrant: recipes now have the same score as PPAs :)23:49
thumperwgrant: so they no longer drop to the bottom23:49
wgrantthumper: Ah.23:49

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