/srv/irclogs.ubuntu.com/2013/08/29/#launchpad-dev.txt

wgrantYeah, I knew it would be bad, and we've been down some IS staff here for the last couple of weeks, otherwise I would have done it myself.00:05
wgrantThanks :)00:05
wgrantStevenK: https://code.launchpad.net/~wgrant/launchpad/builderinteractor-updateBuild/+merge/18260000:12
StevenKwgrant: So there's no code changes, just moving it?00:44
wgrantStevenK: Apart from porting TTBB to override handleStatus instead, yeah.00:46
wgrantOtherwise it's basically just s/self._interactor/self/00:47
StevenKwgrant: r=me with a small niggle00:49
wgrantCommenting circular imports is pointless.00:50
wgrantI've never understood why we do it00:50
wgrantNeed to know whether an import is circular? If it's inside a function, it's circular.00:50
wgrantNeed to find all circular imports? bzr grep '^\s+import'00:51
StevenKTrue. But currently, we tend to comment on them.00:54
wgrantIt might become more reasonable if we have a sane code structure such that they don't appear in almost every file.00:54
StevenKThat would be nice.00:55
wgrantBut now you can barely read a notable function without seeing at least one, so commenting them is silly.00:55
StevenKRight.00:56
cjwatsonwgrant: How about http://paste.ubuntu.com/6038589/ as a refactoring of the Sources/Packages path handling in series-alias (untested, but general idea)?  It's more LOC than before, but perhaps that's worth it.  I'm on the fence.00:57
cjwatsonI thought about making it a method on the publisher config.  Not sure about that.00:57
wgrantcjwatson: I think that's clearer. I think having them as functions is fine.00:58
wgrantI like keeping the path joining and string formatting rules in one place00:59
* cjwatson sets the archivepublisher tests going and really goes to bed, then00:59
cjwatsonThanks00:59
wgrantThanks, and night00:59
jtvwgrant: excellent downtime announcement email BTW.  I saw one from Microsoft the other day and the difference is palpable.02:47
wgrantI think our announcements win simply by not quoting the times in some random timezone03:00
wgrantParticularly when someone quotes an outage time in PST when they actually mean PDT...03:00
jtvSeriously?03:00
jtvIt's a bit like that ad a friend spotted in late 1999...03:00
wgrantYeah, Americans don't do timezones, even their own.03:00
jtv"Even in the year 2000 we will be there for you 365 days."03:01
wgrantHeh03:01
jtvHe was itching to call them and ask: given that 2000 is a leap year, and surely you have dealt with Y2K bugs such as mistaking it for a non-leap year, which day will you be unavailable?"03:02
* jtv was sad to discover at a quiz that only one other contestant knew how to calculate leap years03:02
jtvDoubly sad: one, a room full of teachers was largely unaware; and two, there was the bare minimum of awareness to rob our team of that 1-point advantage.03:05
wgrantWell, everyone'll hopefully learn by 2100 :)03:07
jtvThey'd better!03:07
jtvLoved that Sun joke at the time...  "Y5K bug (or whatever the number was) discovered in Java.  A team at Sun is reportedly rushing to fix the problem."03:08
wgrantStevenK: https://code.launchpad.net/~wgrant/launchpad/builderinteractor-cookies/+merge/182813 https://code.launchpad.net/~wgrant/launchpad/axe-the-ibb/+merge/18281404:21
StevenKwgrant: r=me for both04:54
wgrantStevenK: Thanks.04:55
wgrantNearly disentangled.04:57
=== jam1 is now known as jam
StevenKwgrant: One more branch05:01
StevenK?05:01
wgrantI've got one more branch of cleanups, and then I think I can start pulling the DB dependencies up.05:02
wgrantThat mostly involves heavily caching a few builder attributes and the slave build cookie.05:03
wgrantand then a SlaveScanner should be able to handle most operations other than the start and end of a build without touching the DB.05:03
StevenKSo its another 3 or 4 branches, right05:03
wgrantAnd I will have succeeded in stopping the commits.05:03
wgrantSomething like that.05:03
StevenKwgrant: So why was there an IBB, that's what I can't understand05:07
wgrantStevenK: BuildFarmJobBehavior used to have updateBuild etc. on it05:08
wgrantIncluding updateBuild_IDLE05:08
wgrantEvery scan would go through to a BFJB.05:08
wgrantAnd the BFJB could do with the result whatever it wanted.05:09
wgrantBut nothing ever overrode anything except updateBuild_WAITING, and I don't want to have to create a BFJB from the DB for every scan.05:09
wgrantSo I moved those general methods up into the new BuilderInteractor.05:09
wgrantIn related news, https://code.launchpad.net/~wgrant/launchpad/direct-action/+merge/18281805:09
wgrantIt sorta made sense back in 2009 when it was designed, as not everything was going to have a BuildFarmJob.05:10
wgrantSo the original TTBJ implementation overrode a couple of the others.05:11
wgrantBut that's long fixed.05:11
wgrantStevenK: Do you vaguely see what I'm working towards here?05:13
wgrantBuilderInteractor will cache enough information to do normal scans without hitting the DB. A single new worker in buildd-manager will scan the DB every n seconds and update all the cached information on each SlaveScanner's BuilderInteractor, and another new worker will grab the logtail from each SlaveScanner and flush them all to the DB at once.05:15
StevenKwgrant: r=me05:31
wgrantThanks.05:31
cjwatsonwgrant: I don't suppose you fancy canonicalising the spelling of "behaviour" in your buildmaster rearrangements? :-)11:30
* cjwatson was just bitten by that again11:30
wgrantcjwatson: I think I've been consistent, but I will happily switch to the real spelling now that we've exterminated the Americans :)11:31
wgrantThough knowing my luck that will cause lots of extra lines to wrap, giving me a good excuse to rename current_build_behavior to something less silly too.11:32
wgrantcjwatson: That branch will fail with devel merged12:04
wgrantThe middle argument to handleStatus is gone.12:04
wgrant(it was an ILibrarianClient that hadn't been used in 3 years)12:04
cjwatsonI'd better merge devel into buildmaster-cancel-properly then12:08
wgrantIt won't conflict with that12:10
wgrantAs the new handleStatus was added in the branch you landed a couple of weeks ago.12:10
cjwatsonYeah.  Fixed now.12:12
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha

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