[00:32] wgrant: storebuildinfo, really? [00:32] (bug 828017) [00:32] <_mup_> Bug #828017: UnparsableDependencies raised by retry-depwait script < https://launchpad.net/bugs/828017 > [00:32] wgrant: for my education, what makes this a dup?> [00:33] lifeless: Check the referenced builds. [00:33] lifeless: They don't have a builder, or datefinished, or... [00:33] wgrant: are you saying that if they did, it wouldn't raise that oops ? [00:34] It would not, since the information would be set. [00:34] lifeless: The error is raised when the dependencies are unparseable, which means either lp-buildd is buggy and returning bad data, or LP isn't handling it properly. [00:34] In this case, storeBuildInfo isn't being committed. [00:34] None of the metadata is stored. [00:34] ok, so they don't have crap in their headers, for instance. [00:34] No. [00:34] The data is just None. [00:40] OK, JS hackers, what's the Launchpad way of moving the JS in this template into its own file? http://bazaar.launchpad.net/~huwshimi/launchpad/tag-cloud-removal-709009/view/head:/lib/lp/bugs/templates/bugtarget-portlet-bugtags.pt [00:41] * wgrant nominates wallyworld_ [00:41] I assume I can just move it into a file in lib/lp/bugs/javascript [00:41] * wallyworld_ looks [00:41] but I want to make sure it gets namespaced properly and uses whatever global stuff we have [00:43] huwshimi: much of the js for the bugtask page lives in bugtask_index.js but you may want to use a new namespace for this [00:43] wallyworld_: What would you recommend? [00:43] huwshimi: simply have the on domready in the tales call the method you have moved to the new namespace [00:44] perhaps lp.bug.bugtask.tagcloud [00:44] but i'm not the best at making up names [00:45] it depends on if you think there may be more stuff to add which would warrant a new namespace [00:45] i think that lp.bugs.bugtask_index has too much stuff at the moment [00:46] might be good to have the tag cloud stuff separate [00:46] typo, should be lp.bugs.bugtask.tagcloud, or even lp.bugs.tagcloud [00:46] wallyworld_: Where abouts is that tales domready? [00:47] huwshimi: the existing js embedded in the tales have a domready call [00:47] just replace the js in there with a call to the new namespaced method [00:48] huwshimi: do you see what i mean? [00:49] wallyworld_: I know what you mean, I'm just not sure which file it is in [00:49] huwshimi: the one from your link [00:49] bugtarget-portlet-bugtasks.pt [00:51] wallyworld_: Ah right. [00:51] wallyworld_: Is there a way I can modify things so I can remove the javascript from that page completely? [00:52] huwshimi: the on domready callback has to go somewhere [00:52] there's an argument that it belongs with the template [00:53] but it could also go on the template for the index page which contains the tag cloud i guess [00:53] so if it is removed from the template for the tag cloud, it would need to be put separately wherever the tag cloud is used [00:54] i guess the tag cloud is only used in the one place? [00:54] on the bug task index page [00:56] wallyworld_: At some stage we will be moving to having no javascript in our templates [00:56] \o/ [00:56] wallyworld_: As I was editing this code already I thought I would try and move this out of the template now [00:56] huwshimi: so as far as i know, we don't yet have a well defined plan to deal with that [00:56] wallyworld_: I guess really it needs to happen with a proper js loader [00:57] yep [00:57] wallyworld_: maybe I'll leave this for now then [00:57] wallyworld_: Well actually I'll move it into its own file, but leave the call [00:57] huwshimi: the best you can do, afaik, is to just have the on domready stub in the template and the core business logic elsewhere [00:57] for now [00:58] wallyworld_: Yep, ok that will set it up for the future complete removal. Thanks :) [00:58] i've used this exact pattern where i need to be able to invoke the js in an xhr callback [00:58] as well as the page loaf [00:58] benji: still around? I'm going to guess not ... [00:58] huwshimi: np. good luck with it [00:58] wallyworld_: Thanks [01:17] wallyworld_: hi; did you see my ping earlier ? [01:18] thumper: number of possible reviews - performance or visualisation ? [01:18] lifeless: ah yes, thanks. i tested it and yes it does do the right thing [01:18] lifeless: yes [01:18] lifeless: both [01:18] thumper: so consider https://code.launchpad.net/launchpad-project/+activereviews [01:19] thumper: or ubuntu/+activereviews [01:19] thumper: for a developer in either project, thats going to be a large fraction - maybe 80 or 90 percent - of what we'd be showing on their ~/+activereviews, simply due to the activity of the projects [01:19] thumper: or do you think it would be a much smaller fraction ? [01:20] approved merges from mid 2009 is a bit sad [01:20] it is [01:20] lifeless: I have no metrics [01:20] so I can't make any real call on this [01:20] one way to get some is to implement it, flagged, and see [01:21] sure [01:21] at the time of development we didn't have feature flags [01:21] yeah, they make things easier :) [01:21] and I chose the solution that was less likely to explode with timeouts [01:21] but feel free to "fix" it [01:22] :) I might scratch at the itch [01:22] jml's request for -a- page is reasonable, the main thing I didn't understand is why that shouldn't be on the existing per user page [01:23] since the data volume is ~the same either way. [01:24] lifeless: And how do you determine a person is involved in the project? [01:24] StevenK: current heuristic of being a reviewer for the branch [01:24] StevenK: can iterate on that, obviously. [01:25] StevenK: As a dashboard for reviews, +activereviews is pretty good. The only issue at the moment, for a single dev, is having to visit one per project [01:25] Indeed. [01:26] consider that looking at 'requested reviews I can do' for all projects in LP is equivalent to just seeing those you are a reviewer for - because the list is empty when you aren't an oficial reviewer. [01:28] wallyworld_: Do you mind doing a quick once over of what I did? https://code.launchpad.net/~huwshimi/launchpad/tag-cloud-removal-709009/+merge/81689 [01:28] * wallyworld_ looks [01:33] huwshimi: for testability, you want to avoid Y.io [01:33] you want: lp_client = new Y.lp.client.Launchpad(); [01:34] lp_client.io_provider(xxx) [01:34] a bit pseudo ish [01:34] but the above allows a mock io provider to be used for tests [01:34] wallyworld_: Ah, I didn't do that part, but this is a good opportunity to fix it [01:34] see existing stuff in bugtask_index.js or elsewhere [01:35] wallyworld_: Thanks, I'll take a look [01:35] huwshimi: also, set('innerHTML') i think we are trying to avoid where possible, can't recall exactly, but setContext() may work [01:36] huwshimi: or new_node = Y.Node.create(xxxx); old_node.replace(new_node) [01:36] or something like that [01:36] wallyworld_: Sure, I'll fix that up too [01:37] i know that the server may generate only legit html and all that, but it is a potential security hole [01:37] other than that, looks ok [01:38] huwshimi: in case you don't notice it, the lp_client construction is usually inside a setup type function so the client is only constructed once [01:39] wallyworld_: Yeah ok thanks [01:39] good luck :-) there should be several examples to cargo cult. let me know if you are stuck [01:39] wallyworld_: No problems, will do [01:44] wallyworld_: I think it should be fine in the setup function I already have there. [01:45] the lp_client construction? yes, so long as setup is only called once which i guess it will be [01:46] you will want to make your setup function take a config dict as an argument so you can pass in the io_provider stub for tests [01:47] wallyworld_: Oh ok, in that case would it be easier to have its own function? [01:47] wallyworld_: Easier for testing that is [01:48] wallyworld_: I guess it would be [01:48] huwshimi: perhaps. getClient(config) or something [01:49] i think setup_lp_client(config) is also used, which assigns a module scoped lp_client variable [01:49] then the code can just use lp_client and assume it's been all set up [01:50] and the test would call setup_lp_client() with the correct config to pass in the io+provider [01:50] whereas the prod code would call with no confif [02:01] wallyworld_: Should that setup function check to see if a lp_client already exists and if so do nothing? [02:01] huwshimi: yes [02:01] wallyworld_: Ah good [02:02] so var lp_client = null; somewhere in the module, and then the setup function sets it [02:03] wallyworld_: Yup [02:04] wallyworld_: Well, "var client;" is enough right? [02:04] erm [02:04] var lp_client; [02:04] i prefer to be explicit, but your call [02:04] wallyworld_: I don't mind. I'd prefer to be consistent [02:05] sure. i'm not sure what our coding standard says for that to be honest [02:05] wallyworld_: let me check [02:05] wallyworld_: Most of these files seem to just declare the variable name [02:06] sounds good [02:08] wallyworld_: The docs don't seem to say though [02:08] as you say, just use what's gone before :-) [02:27] wallyworld_: Ok, here's where I'm at: https://code.launchpad.net/~huwshimi/launchpad/tag-cloud-removal-709009/+merge/81689 [02:28] * wallyworld_ looks [02:35] huwshimi: i have led you astray a bit i'm sorry. if all you are doing is making a straight Y.io call and don't need the lp_client extras, you just do: [02:35] var io_provider = Y.lp.client.get_configured_io_provider(config) [02:35] where config is what's passed into your setup [02:35] it is either undefined or a dict with an io_provider key [02:37] if you do need the full lp_client, you do lp_client = new Y.lp.client.Launchpad(config); [02:37] so in your current code, you are missing the config param for constructing the lp_client, but as per the above, you may not need that [02:38] \o/ no oopses on asuka since the 2nd (all via amqp) [02:38] lifeless: Oh, that config parameter did exist, I lost it at some point [02:38] lifeless: sorry that was meant of wallyworld_ [02:39] wallyworld_: Or maybe it only ever existed in the code in my brain [02:39] huwshimi: perhaps :-) [02:39] older for tellurium. [02:39] so if you want, you can just get yourself the io_provider [02:39] good news about the oopses [02:41] wallyworld_: So this is how it should look? http://paste.ubuntu.com/733801/ [02:46] * wallyworld_ looks [02:48] huwshimi: that looks ok to me. your test setup then just calls setup_io_provider(). if io_provider is only used the once in setup_taglist, you may consider ditching the separate setup [02:48] wallyworld_: yeah ok [02:49] so make setup_taglist take the config param [02:50] wallyworld_: ok sure [02:51] huwshimi: sorry about the false start before, i'm used to needed the whole lp_client object [02:51] wallyworld_: No, all good, I've learnt some things [02:51] excellent [02:51] the mock io provider we have is pretty good [02:52] lp.app.javascript.testing.mockio.js [02:54] wallyworld_: Should I still have a check for if a io_provider already exists? [02:54] wallyworld_: Or is that really only important for the lp_client [02:56] huwshimi: it doesn't really matter in this case because it's just grabbing a value from a dict [02:57] wallyworld_: ok sure [03:01] lifeless: bugsummary is pretty impossible to modify :/ [03:01] lifeless: There's like 5 patches, and they weren't flattened into trusted.sql. [03:01] And they aren't in order :*( [03:08] wallyworld_: Ok, hopefully this is what you meant :) https://code.launchpad.net/~huwshimi/launchpad/tag-cloud-removal-709009/+merge/81689 [03:08] wgrant: sorry :) - twitch. [03:08] hey, anyone know if there is a good 'touched recently' field on question ? [03:12] I guess we need a new baseline schema soon anyway. [03:13] lifeless: you probably have to take the max of all the date fields :/ [03:15] just query response I think will do [03:15] they seem to combine to cover it [03:16] They even cover answers? [03:16] last-response [03:16] last-response + last-query forms the rule for who needs to act next [03:17] Right, but what about a proposed answer? [03:17] arguably doesn't need to cover messages - they are scanned separately [03:17] Erm, what does it cover, then? [03:17] Is datecreated OK? [03:17] whiteboard, title description [03:17] Oh, whiteboard. [03:17] Blah. [03:17] so datecreated isn't enough [03:18] down to 5s query [03:18] big improvement [03:18] (for 1 week) [03:21] seq scanning question [03:27] huwshimi: i would reverse the config and io_config names, otherwise ok i think. the setup config can contain more than just io_provider. and io_config seems better suited for use in the io call [03:28] wallyworld_: Ok, no problems [03:30] 500ms with two simple indices [03:30] OTOH I could just limit those to their containing scope. [03:30] probably easier I think. [03:30] lifeless: For a full week? [03:31] yes [03:34] wallyworld_: OK, done, https://code.launchpad.net/~huwshimi/launchpad/tag-cloud-removal-709009/+merge/81689 [03:34] * wallyworld_ looks [03:36] jtv: For arch-parallel a-f, see shelf 21 on DF. [03:37] huwshimi: one more improvement - use start and end callbacks in to show/hide spinner [03:37] start and end callbacks in io_config [03:37] that way you don't need to call hide in success handler [03:37] and again in failure callback [03:38] use something like "end: Y.bind(namespace.hideSpinner, namespace)" [03:43] wallyworld_: What does the bind give me that just doing "end: namespace.hide_spinner" doesn't? [03:44] huwshimi: ah, sorry. i referenced an example where i had to pass a parameter to the hide api call, and i think bind is required then [03:44] wallyworld_: Ah right [03:44] np [03:44] the js tests will ensure that it all works in any case [03:46] I'd like to return count(archive.id) in a SELECT query, but only if it's > 1 [03:46] Oh, wait, they will not disappear. [03:46] StevenK: HAVING [03:46] So I need to filter on state [03:47] SELECT owner, COUNT(*) FROM archive WHERE status = 0 GROUP BY owner HAVING COUNT(*) > 1 [03:47] wgrant: Can I do select count(...) AS foo .... HAVING foo > 1 ? [03:48] Probably. [03:48] * StevenK tries [03:48] Probably not, that is. [03:49] ok [03:49] wgrant: what did you want me to look at ? [03:49] now I have my query for oops pruning sorted, I'll look at your thing [03:49] lifeless: Thanks. [03:50] lifeless: So, http://paste.ubuntu.com/732768/ is the suggested undenormalisation. [03:50] lifeless: It's only ~10% slower for Ubuntu. [03:50] But 2.5x slower for ubuntuone-servers, because this ends up doing a seqscan on apg. [03:50] Not sure why. [03:51] I guess I need to regen sample data [03:51] ah itsi nthe bin [03:51] The paste contains 4 queries at the end. [03:51] The third is fastest. [03:51] Sample data is in the bin? [03:51] It's ~600ms for Ubuntu, vs 1200-1500ms for the other three. [03:51] But it still does a seqscan. [03:52] And is 120msish for ubuntuone-servers, rather than the old denormed 30-40ms version. [03:52] the old version was slow on ubuntu ? [03:52] or is this just data that the oldver was better overall [03:52] ? [03:52] Your version was just under 600ms for Ubuntu on DF. [03:52] The new one is a little over. [03:53] whats changed in the schema ? [03:53] APG.{artifact,policy} are mutually exclusive, and APA.policy exists. [03:53] So each artifact's policy is stored on APA, instead of many times in APG. [03:54] ah yes [03:54] so this is a normalisation [03:54] not a denorm :P [03:54] undenorm, I said. [03:54] It's not normalising, it's reverting the denormalisation :) [03:54] double negative parsing fail [03:55] Heh [03:55] ok, which query sucks again ? [03:56] The four at the end all do the same thing. The third is fastest. [03:56] One CTE and a couple of subselects. [03:58] Try against product 9514 to see the greater slowness. [03:58] But the plans are the same. [03:58] Er, the plans for distro 1 and product 9514, that is. [04:08] wgrant: plan 3, product 9514 - 114ms [04:09] plan 4 65ms [04:09] Bah, really? [04:12] Indeed, 30% faster. [04:12] But slower for Ubuntu. [04:12] http://paste.ubuntu.com/733853/ [04:13] thats the plans you had [04:14] #3 there has a different context (ubuntuone-servers rather than ubuntu), but yes. [04:14] bah [04:14] wgrant: do you mean that parallel a-f has been sitting around as uncompleted work? That would be a serious waste. [04:14] wgrant: 410ms for #3 on ubuntu [04:14] jtv: Well, we don't really know how much of a win it is. [04:15] wgrant: do you want the plan ? [04:15] lifeless: That's 650ms on DF. #4 is 1.1s. So it is behaving somewhat differently to qastaging :/ [04:15] lifeless: Not really. [04:15] wgrant: try raising your stats [04:15] wgrant: thing is, it won't be at all hard to make the MF manage a sensibly-sized pool of processes. So if 2 parallel processes is a win but 5 aren't, we can do 2. [04:16] wallyworld_: I made the change to start/end and also changed the show show/hide to using classes instead of styles. As the show/hide are one liners do you think they should still be in separate functions? [04:16] wallyworld_: https://code.launchpad.net/~huwshimi/launchpad/tag-cloud-removal-709009/+merge/81689 [04:18] lifeless: Mmm, the slow bits of the plan aren't really different [04:19] wgrant: those were all hot btw [04:20] The plan for #3 on 9514 is identical, and performance is almost the same. But it still hsa the seq scan, which seems unfortunate. [04:20] But if it's only 410ms for Ubuntu then I guess that's not too bad... [04:21] wgrant: 123557 rows [04:21] wgrant: 16ms to seq scan [04:21] wgrant: (just to read the rows once through, no processing) [04:22] lifeless: How'd you measure that? SELECT *? [04:23] wgrant: yes [04:23] 59785 rows are ubuntu [04:23] wgrant: thats 50% - seqscan is always going to be fastest ;) [04:24] That takes 160ms on DF. [04:24] Hmm. [04:24] But that can't be right, so maybe not. [04:24] lifeless: Yeah. [04:24] http://paste.ubuntu.com/733866/ [04:24] But U1 and other products will be smaller. [04:24] sure [04:24] 9514 was the 'slow' one right ? [04:24] 100ms instead of 40ms, yes. [04:25] 10294 is LP, which may be interesting. [04:26] 4K grants for 10294 and 9514 each [04:26] sorry, 60K for ubuntu, not 600K [04:26] my eyes, me eyes, my eyes [04:29] wgrant: still 5% of a table with narrow rows will hit ~ all pages unless its clustered on the selector [04:30] True. [04:30] It's also only a 9MB table and should be nice and hot. [04:35] wgrant: you can defeat the seqscan by unioning [04:35] if you want [04:36] Yeah, but that's really slow for Ubuntu, at least on DF. [04:36] distroseries-edit-datereleased => devel [OK] (up for 4:39:27.158866) [04:36] Oh, come on, ec2. [04:36] 800ms here [04:38] wgrant: 180ms in [04:38] -> Index Scan using accesspolicygrant__artifact__person__key on accesspolicygrant (cost=0.00..7.14 rows=2 width=8) (actual time=0.005..0.006 rows=2 loops=33978) [04:38] Index Cond: (pg_temp_43.accesspolicygrant.artifact = accesspolicyartifact.id) [04:38] rm, something like that [04:38] # XXX cprov 2007-02-22 bug=87098: [04:38] # Since we only allow one PPA for each user, [04:38] Ha. Hahaha. Hahahahahahaahahahahahaha [04:39] hm [04:39] so the buildd package can be installed pretty easily as a dpkg on developer systems [04:39] lifeless: OK, 800ms is better than I get, but still 100% slower than #3 [04:39] at the moment it automatically starts a buildd [04:39] i suspect this is not very safe or desirable [04:40] poolie: It's a nice easy remote root vulnerability, right. [04:40] i'm inclined to handle it by splitting off an "actually run it" package [04:40] which can be installed on the real buildds [04:40] with that still called launchpad-buildd [04:40] and then eg launchpad-buildd-bin or python-lpbuildd [04:40] or maybe both [04:40] that has all the stuff that will be developer dependencies [04:41] Mmm. [04:41] I'd prefer not to have launchpad-buildd in any readily accessible apt repo. [04:41] :) [04:41] someone will run it [04:41] Yes. [04:41] well, i could take this course and just not upload it [04:41] Huh. [04:42] Speaking of remote root vulnerabilities. [04:42] lolpython [04:42] the other way these things tend to be handled is to have the daemon off by default and an 'are you really sure' in /etc/default/something [04:42] ? [04:42] yaml.load isn't safe. It loads pickles. [04:42] What a sensible default. [04:43] seriously? [04:43] Yeah. [04:43] You have to use yaml.safe_load for that. [04:43] as a kind of dwim if you feed it a pickle? [04:44] Not sure. I guess they define a way for YAML to contain pickles. [04:45] Say wgrant, how do I dput a package onto a PPA on dogfood? [04:45] wallyworld_: What happened to TPG? [04:45] ? [04:45] wgrant, not pickles as such as far as i can see [04:46] but you can call python objects from inside it [04:46] wallyworld_: "rev.aanet.com.au" [04:46] Yeah, not actual pickles. [04:46] Its own implementation. [04:46] But still. [04:46] it's similar to doing eval [04:46] Who could possibly think that was a reasonable idea. [04:46] StevenK: oh, i've relocated today to a different place, change of scenery [04:46] anyhow [04:46] > off by default and an 'are you really sure' in /etc/default/something [04:46] the main drawback is [04:47] jtv: [df] [04:47] method = ftp [04:47] fqdn = upload.dogfood.launchpad.net:21 [04:47] incoming = %(df)s [04:47] login = anonymous [04:47] losas need to turn it on i guess [04:47] jtv: dput df:ubuntu something_source.changes [04:47] and, some people will turn it on and get in to trouble [04:47] poolie: And it breaks the automated installation. [04:47] wgrant: plan three is 640ms [04:47] wgrant: That's to ubuntu, not a PPA [04:47] wgrant: so no mention of the PPA at all? [04:47] lifeless: How fast was your query? [04:47] wgrant: uhm, variable. just got a 450 [04:47] so... [04:47] jtv: Ah, for a PPA. Use a PPA path. [04:47] wgrant: lots of noise [04:48] lifeless: Er, your query from a couple of days ago, that is. [04:48] I can't remember. [04:48] Was 300ms or something. [04:48] oh right [04:48] but that was old schema wasn't it ? [04:48] It was. [04:48] wgrant: is a PPA path something like “ppa:user/ppa”, without changes for dogfood? [04:49] jtv: The FTP path is ~user/ppa/distribution [04:49] So df:~user/ppa/distribution [04:49] Oh [04:49] Thanks [04:52] lifeless: But I would like to get a real performance comparison between the two schemas. [04:52] lifeless: The queries in the denormed one are already slow. [04:54] StevenK: Erm. [04:54] wgrant: Hm? [04:55] Ah, I see. [04:56] Just somewhat bemused at the misspelt instance variables your rev added. [04:56] but there was actually a reason for it, and the misspelling wasn't yours. [04:56] Oh? [04:56] stub: any luck with Q/A for bug 826653? [04:56] <_mup_> Bug #826653: preflight check could report patches to be applied < https://launchpad.net/bugs/826653 > [04:57] Needed to wait for a staging update... lets have a look [04:57] StevenK: "derivative" is not spelt "derivitive", and it's sort of odd to set the instance variables in setUpFields. [04:57] Probably should avoid a rollout today since we are doing the slony upgrade btw. [04:58] Do we have a GSA scheduled to do the package swap? :) [05:01] stub: that's a shame—we could roll out all 14 available revisions once your Q/A on this is done. [05:01] qa-ok [05:01] wgrant: I thankfully don't have to juggle those details now ;) [05:02] stub: Oh? [05:02] thanks stub [05:02] Other people schedule the time [05:03] Well, as long as someone knew a GSA was required... [05:03] stub: What should I do with https://code.launchpad.net/~stevenk/launchpad/db-packageupload-archive-index/+merge/79903 ? [05:04] biab [05:06] lifeless: So, do you have a feeling as to which one is better? Your numbers are probably better than mine. Is the denorm worth it? [05:07] StevenK: Land it? [05:07] stub: Last time I spoke to you, you wanted me to hold off a few days. It's fine to land and have the indexes dropped? [05:07] st[a-z]+/i: Doesn't that drop the index, which we were going to do once we determined it was unused? [05:07] Hahaa [05:07] StevenK: I'll look [05:08] I recall now [05:08] wgrant: still fiddling [05:08] wgrant: the full is trivial - 4ms [05:08] lifeless: Ah, k [05:08] stub: And sorry for dropping the ball :-( [05:08] lifeless: Huh? [05:08] wgrant: seeing if I can get a better restricted result [05:08] Oh. [05:08] Right. [05:08] Yes, there aren't many full observers. [05:08] wgrant: so I'm fiddling without the full case [05:08] It's possibly beneficial to split the table, but let's see what you find. [05:10] wgrant: denorming the sort key onto apg might be good [05:10] if you want to make it fly [05:10] lifeless: It would be. [05:10] But, uh, let's not go there... [05:10] yet, at least. [05:12] So packageupload.signing_key is never used. But probably should leave that. [05:13] stub: The index? [05:13] Hmmm. [05:13] Odd. [05:13] It should be. [05:13] package_copy_job_idx is not used much [05:13] yes [05:13] package_copy_job_idx? [05:13] What's that? [05:14] It doesn't match our usual format, and I can't see it on packagecopyjob [05:14] id_distroseries_archive is good to drop - it is unused [05:14] Oh. [05:14] On PackageUpload. i see. [05:14] stub: There are not many PCJs floating around [05:14] wgrant and I have a plan to make more [05:14] distroseries_status_idx is still used, but I suspect those uses will switch to the other index if it is dropped [05:15] id_distroseries__archive seems like a completely bad idea. [05:16] wgrant: denorming the sort key onto grant is insufficient [05:16] wgrant: these are all under 1s [05:16] wgrant: and all doing full set ops, so sustainable [05:16] http://paste.ubuntu.com/733885/ is before, http://paste.ubuntu.com/733886/ is after if anyone wants to see the raw stats [05:16] wgrant: my recommendation is this: [05:16] Timeframe was around when I last discussed this with StevenK :-) [05:16] packageupload__signing_key__idx [05:16] - A) go with this normalised schema [05:16] That's totally unused, should we just drop it? [05:17] - B) if its too slow create a fact table from it (like bugsummary) that can answer in a few ms. [05:17] Sounds good. [05:17] Thanks. [05:17] StevenK: If inserts or updates are not too slow, leave the signingkey index. It is good to always have indexes on foreign key references to avoid surprises. [05:18] stub: Fair enough, if you're happy dropping the two indices, let's land it, then [05:20] If there are still queries looking for distroseries without an archive, are they broken? [05:20] Yes [05:20] Hmm. [05:20] Since they'll conflate PPAs and the primary archive [05:20] Except possibly Distribution:+ppas. [05:20] Let's see what queries that does. [05:22] stub: I thought we seperated columns by __ in indicies, so I'm surprised by id_distroseries... [05:22] We still got 70k queries hitting the distro__status index. If we drop it, the alternatives are the archive__distro__status index and the distro index. Neither would be good if there is a valid use for queriying all archives for a distro,status [05:22] StevenK: It's a typo. [05:22] StevenK: Old naming conventions [05:22] Ah [05:22] and that would be a typo anyway [05:22] Heh [05:23] Possibly that is there to support a foreign key reference? Or maybe a failed attempt to optimize a query. [05:23] c/is/was/ [05:23] Conjecture, hearsay ... :-) [05:24] But it looks like that index has been there for a long long while [05:24] No. [05:24] It's new. [05:24] IIRC lifeless added it. [05:25] To optimise DistroSeries:+queue for NEW/ACCEPTED. [05:25] I don't see how it could possibly work, though :) [05:25] Haha [05:25] which one? [05:25] "packageupload__id_distroseries__archive__idx" btree (id, distroseries, archive) WHERE status = ANY (ARRAY[0, 1]) [05:25] Primary key first in the index... not entirely useful. [05:26] I guess that packageupload(status) would do the same thing. [05:26] -- Partial index for queue processing view : the lopsided data makes this [05:26] -- necessary (millions of rows matching the archive, 100's of rows match the [05:26] made by me, landed by you [05:26] -- query). [05:27] Really? [05:27] No. [05:27] check annotate :P [05:27] But it's +queue, it's for a tiny amount of archives [05:27] committer: Robert Collins [05:27] Create a partial index to support queue processing queries more efficiently. [05:27] you put the db revno in it [05:27] committer: William Grant [05:27] branch nick: fix-patch-57 [05:27] Live-deployed patches need a non-zero patch number. Production is already fixed. [05:27] ah [05:27] ok [05:28] anyhow, if its not used, remove it; it would have been added based on the queries seen at the time [05:28] StevenK: Yeah, but as the comment says it's very lopsided. [05:28] lifeless: It probably is still useful. [05:28] But it's excessive. [05:28] note that a sort by id can trigger that index. [05:28] It hasn't been hit once in a few weeks. We don't need it. [05:29] stub: So, that's a +1 to toss that branch at db-devel? [05:29] I'm interested in if we really should drop the distroseries__status__idx index. [05:29] Distribution:+ppas uses SPPH, not PU. [05:30] It would be nice if we could find out what was using that index. [05:30] So it seems that if there are still queries not using archive as a filter on packageupload, they are broken? That would also explain why the id_distroseries index is never hit. [05:30] ignore that [05:31] So it seems that if there are still queries not using archive as a filter on packageupload, they are broken? [05:31] stub: Well, or the data is sufficiently skewed (archive 1 still has more than 50% of the table, probably) that the planner decides using archive is not useful. [05:32] It would still use the archive__distroseries__status index I think [05:32] what I've seen happen a couple of times is that transforming the query very slightly will cause indices not to be used [05:32] Very slightly :( [05:33] so it may just be a minor change during derived distros [05:33] stopped it being used [05:33] There have been no changes of that sort, really. [05:33] But maybe. [05:33] If inserts and updates are not causing us grief, I'm happy enough to leave the index in there. PG seems to still like using it for whatever reason. [05:34] Right, so just id_distroseries dies [05:35] Yup [05:57] stub: That's landed. r11140 on db-devel [06:01] so if i want to get /usr/share/launchpad-buildd onto the pythonpath when launchpad runs, what would be a clean way to do that....? [06:05] maybe just in the makefile [06:13] poolie: buildout [06:13] buildout.cfg [06:13] yeah got it [06:14] poolie: I'm curious why you say this isn't really python [06:14] it contains perl :-P [06:15] It's not a Python package. [06:15] and the package as a whole just seems oriented towards being a dpkg not an egg [06:15] It's an application. [06:15] Which happens to use an internal Python package. [06:15] obviously python things can contain arbitrary stuff [06:15] right [06:15] so, why do you want it on the python path then ? [06:16] i want the python stuff on the path [06:16] poolie: I would just put it in sourcecode/ for now. [06:16] Rather than disabling it by default and not mangling /etc/sudoers and etc. [06:16] i could split it into one part distributed as an egg and one part as a dpkg [06:16] wgrant, i think i'm going to go for two dpkgs [06:17] :/ [06:17] why? [06:17] lifeless semi-vetoed sourcecode [06:17] And I am mostly-vetoing dpkg. [06:17] why? [06:17] It's not a package that should be available to anyone. [06:18] It's terribly dangerous. It is badly behaved. [06:18] what should we use instead? [06:18] sourcecode. [06:18] I suspect. [06:18] Until we have a proper fake version. [06:19] are my changes making it any more dangerous? [06:19] people could run it today and get into trouble [06:19] You're proposing putting the package into a public archive and encouraging its installation. [06:20] i'm happy to keep the part that actually starts the daemon out of a public archive [06:20] How? [06:20] not uploading it? [06:21] uploading a poisoned highly-versioned package that does nothing? [06:21] Having the source package sometimes build the evil package and sometimes not sounds like a recipe for trouble. [06:21] This is presumably only a temporary measure. [06:22] LP shouldn't need the buildd tree. [06:22] perhaps we can detect if the package is running on a 'real' buildd and abort otherwise? [06:22] wgrant, i'm trying to make lp depend only on the parts it actually needs to test [06:22] which don't include anything running as root [06:23] i guess we could do a further split of the 'actually really run it as root' scripts into a separate source tree [06:23] lifeless: What is the policy on test fakes these days? [06:24] requires for new microservices [06:24] this is in a grey area [06:24] I would vastly prefer one [06:25] but split out without one is better than not split out [06:25] ... [06:25] and poolie has a record of continuing to tug on things [06:25] so, meaning what exactly? [06:25] launchpad tests do not need the actual buildd implementation at all? [06:25] ELOCAL, bbs [06:25] poolie: They shouldn't. [06:25] i would prefer that [06:25] poolie: Why would they? [06:26] They need something that looks like it. [06:26] They clearly don't need the actual thing, since it can only run as root. [06:26] there are a couple of answers [06:26] We care that it speaks the protocol correctly. [06:26] one is to reduce risk while splitting things i want to keep as much test coverage as i can at least during the transition [06:27] because there are no good automated overall integration tests [06:27] Right. [06:27] so... [06:27] i guess i could look at just redoing those tests now [06:27] I suggest that the cheapest thing to do right now, until we have a strategy to move forward, is to use sourcecode. I don't like it either, but I think it's the best thing for now. [06:28] your main concern being that people will blithely install the buildd package and kill themselves [06:28] And LP doesn't really like using packages for Pythonish deps. [06:29] And lp-buildd doesn't make sense as an egg. [06:29] And lp-buildd deployment is fragile and obscure enough that I'd really really not like to change it right now by splitting the packages up. [06:29] perhaps we should just look at the tests that do depend on it [06:29] and see if they can easily be changed right now [06:30] Possibly, but we'd probably need to rewrite significant volumes of tests on both sides. [06:30] Worth a try, though, [06:30] jtv's been in this area lately. [06:30] Hi jtv. [06:30] I deny everything. [06:30] so the connections are [06:31] BuilddSlaveTestSetup (a fixture) [06:31] jtv: You've been dealing with buildd integration and tests thereof lately, right? [06:31] some things in translations that use generate_translations_templates and also write to the lp db [06:31] One particular aspect. [06:31] and the codehost [06:32] the utility 'pottery-generate-intltool' [06:32] and that's about it [06:32] so the buildmaster things could perhaps be satisfied with a fake [06:33] the translations tests really look like integration tests to do with how code inside the buildd runs [06:33] Everything related to buildd looks like integration tests. :/ [06:33] i guess they need to be split into tests that cover the two respective sides of the handoff [06:34] The buildd infrastructure isn't easily split into “sides” of communication, unfortunately. [06:34] (Also, there are at least three sides) [06:34] jtv: Master and slave? [06:34] What's the third side? [06:34] Librarian. [06:34] and codehosting too i think [06:34] Mm, slightly. [06:34] ideally three sets - in-lp, in-buildd, and a smattering of end to end tests run on jenkins [note that we don't have these today, because we don't run the LP test suite as root... [06:35] But the librarian and codehosting deps from the buildd are very weak and easily fakeable. [06:35] the more network fakes we build the easier it gets [06:35] not to be trite [06:36] yeah [06:36] But we have same very nasty issues to deal with there, such as “what if interopation with another builder aborts changes done in the context of your builder while you wait for the librarian?” This is what I' trying to deal with at the moment. [06:36] i just don't want one ginormo commit/deploy, since it will be hard to debug [06:36] jtv: that doesn't depend on the builder implementation nor the librarian implementation in any way that a fake can't simply simulate [06:36] IMHO we need loads of unit test coverage built first, followed by a streamlining of the integration tests. [06:37] Another problem compounding the situation though is that the whole buildmaster architecture urgently needs to be cleaned up. [06:38] well [06:38] poolie: Right, I want small steps. [06:39] The easiest way to get the split done now is to use sourcecode. Then we can start severing connections, writing fakes, etc. And eventually drop the dep. [06:39] Rather than breaking deployments by reworking the package into a form that is usable in an ugly way until we have fakes. [06:40] can you explain why using a deb will be breaking deployments, ugly, etc [06:40] Well, nobody knows how lp-buildd deployments work now. [06:41] The package mangles sudoers itself in ways that interact unobviously with puppet. [06:41] etc. [06:41] I don't like our chances of changing the package without breaking deployments in various ways. [06:41] another sequence you could use [06:41] is to write fakes in-lace [06:42] get it all copacetic [06:42] then remove the code [06:42] fwiw i just now have lp passing its tests using the deb version of lpbuildd [06:42] that said, we have qastaging / staging to test deploys on [06:42] what is in-lace? [06:42] in-place [06:43] lifeless: Hahahaha [06:43] in which place? [06:43] so I'm not scared of undetected breakage hitting production [06:43] We saw how well staging testing worked last time... [06:43] poolie: In the LP tree. [06:43] wgrant: once we used it properly it seemed to work ok [06:43] wgrant: or did I miss something? [06:43] lifeless: Do we know what went wrong? [06:43] We broke prod last week. [06:43] Because staging QA didn't. [06:44] yes, AIUI we didn't actually end-to-end things the first time around [06:44] IMBW [06:44] We did. [06:44] But the builder was unbroken. [06:44] what was broken then ? [06:44] Quite how it was unbroken I don't think we know. [06:44] lifeless, so you're saying, keep lp's own copy of the code [06:44] and gradually rewrite the tests to not need a builder process? [06:44] we could [06:45] poolie: well, we want a builder process [06:45] poolie: but that should be a network fake rather than a live instance [06:45] poolie: https://dev.launchpad.net/ArchitectureGuide/ServicesRequirements#Test_fake [06:46] riht [06:47] hm [06:47] I'm saying that separating the trees (into lp and a live buildd with included test fake tree) could be the last step, rather than the first. [06:47] aside from the coupling to the deployment environment, i don't think testing against the actual buildd code is all that bad [06:47] right [06:48] however, i have actually done it in the other order [06:48] so i'd kind of rather not abandon it unless there's actually something unavoidably bad [06:49] it is meant to be a cleanup so i do want it to be something we're happy is at least incrementally cleaner [06:52] I'm fine with either order; I don't see a package in the LP PPA as terrible, particularly if you're going to keep poking at it - in fact, by getting closer to how we deploy (e.g. if we hint to lamont we want the same package and get his support), we may reduce friction [06:52] i hope so [06:52] poolie: I only offer up the other order for consideration [06:52] what do you mean by 'same package'? [06:52] same binary, without a cat rebuild? [06:53] same build process [06:53] cat would rebuild, always does [06:53] but no hidden magic [06:53] afaik that is what we did in the last deploy [06:53] or perhaps it's just sufficiently hidden magic :) [06:53] woo [06:54] everything likely to have broken now seems to be passing [07:01] so wgrant can i make you tolerably happy if i use the dpkg dependency but [07:01] - split off the 'kill me now' bits into a separate package which is not in ppa:launchpad [07:01] man, TestOopsPrune is a littttle braindead [07:02] - file bugs against the tests that depend on importing from it [07:02] - perhaps try to rig the init script so it will start without disruption on the buildds but not on anyone else's machine [07:03] Perhaps. [07:04] it writes the same oops into recent and old directories, and then tests that its only deleted from some. [07:04] win [07:04] . [07:05] Hah [07:11] wgrant, so just to be clear, the two things are [07:11] - it will be horrible if people start offering buildds on untrusted networks [07:11] - generally we don't like python in debs- [07:11] (but we maybe like sourcecode less, depending who you ask) [07:14] is that correct? [07:22] well, https://code.launchpad.net/~mbp/launchpad/800295-delete-buildd/+merge/81815 [07:27] wgrant: StevenK: jtv: whats a good mixin interface that product and distribution already inherit, to add a referenced_oopses(start, end) method to [07:27] 'There is None' is a valid if sad answer [07:30] ok i'd better go [07:30] may be back later [07:55] wgrant: we were talking about the API the other day [07:55] wgrant: what decorators will I need for findReferencedOOPS(start_date, end_date), do you think ? [07:56] wgrant: operation_parameters, export_read_operation, I presume [07:56] lifeless: Yep. [07:56] And operation_for_version [07:56] But that should be it. [07:56] Just leave the return type undeclared. [07:57] thanks [07:57] now, I'd like a sanity check on something [07:57] I plan to ignore security and scan everything, on a public anonymous API [07:57] but return *only* the OOPS strings themselves. [07:57] I'm assessing our regexps as tight enough to not disclose anything [07:57] Am I wrong? [07:58] Well. [07:59] That's a good question. [07:59] I don't currently like the way we permit whitespace. [07:59] But at most it can reveal one word. [08:01] do we actually linebreak OOPS-bar ? [08:01] perhaps we should make that not break, and tighten the refex [08:02] That's what I was thinking. [08:02] or [08:02] perhaps we should tighten the regex and file a low bug about linebreaking that [08:02] Even better. [08:03] if someone writes oops-tradesecrethere in a bug, we may disclose something; I think thats a fairly low risk [08:03] oops-i-did-it-again [08:03] will pick up'i' :P [08:08] Today Thailand celebrates Loy Kratong to pay respect to the spirit of the waters. [08:08] Heh [08:09] Irony right there. [08:09] stub: You're in a safe area I hope? [08:09] I'll be last to go [08:09] :) [08:13] jtv: where were you putting your 'object implements interface' tests ? [08:13] jtv: I'm adding a mixin interface to product and distribution; I went looking in lib/lp/registry/tests/test_product.py first [08:19] jtv: ah, I found it [08:20] jtv: I was searching for verifyObject :) [09:00] Hello [09:00] good morning [09:18] And AWS add a second US West region. [09:18] No, this isn't confusing AT ALL. [09:29] StevenK: Actually, there are 4 US locations :) [09:30] Virginia, Portland (new), California, and a Govt location which is only for US folks. [09:31] Morning bigjools! [09:31] ha [09:31] Hrm, did I scare him away? [09:31] :D [09:51] Good morning everyone. Who knows about PPPAs? [09:52] allenap: What's up? [09:53] wgrant: I can see a PPPA, and so can an esteemed colleague of mine, but get 401 when adding the suggested entries to sources.list. I noticed there's no user auth garbage in the URLs it suggests. [09:54] allenap: Those pages aren't meant to be used. [09:54] They were invisible until someone did something 18 months ago. [09:55] Use https://launchpad.net/~/+archivesubscriptions [09:55] instead [09:55] wgrant: Ah ha, okay. So the PPPA needs to be granted to the user. [09:55] The URLs will probably magically become sensible once you click the "View" link on +archivesubscriptions. [09:55] That generates your unique access token. [09:55] Hah [09:55] And the CSS is broken, so you can actually see which of the View links are normal, and which are magical. [09:57] wgrant: Thanks, that's great. [09:57] wgrant: Magical? [10:03] nigelb: JavaScript which requests an access token. [10:04] ah. [10:04] I don't see any of those. but then I only have one PPA listed there. [11:28] is it true that LP has instant oops availability? [11:28] jml: On staging and qastaging, but not on production yet. [11:28] We don't have the rabbitmq metrics completely done yet. [11:28] wgrant: ah right, thanks. [11:29] It all works fine, but we're not putting rabbit into production until we have good monitoring and such. [11:29] +1 [11:30] is there a live feed of oopses too? [11:30] Not as yet. [11:30] or do you have to know the code before you can get to them? [11:30] But oops-tools is hackable now, so I expect we'll see some nice stuff soon. [11:30] And it's all split out into non-LP-specific projects, so others can use it if they so desire. [11:30] lifeless has done amazing work to that end. [11:31] yeah, that's why I'm asking, as it happens. [11:33] there is an index on date I think [11:33] so we can do an API to get latest N [11:33] and expose that in LP itself [11:34] or add it to the oops-tools console [11:34] I've also just got the OK from jane to LGPL the plumbing [11:34] Ah, excellent. [11:34] That'll make things a bit more sensible. [11:37] jml: lp:python-oops-tools if you want to go looking [11:38] lifeless: thanks [11:39] I am considering adding an explicit oops-reference table to LP [11:39] to let us have references into the separate oops-tools service [11:39] this might make the crashdump project better [11:52] lifeless: Any reason to have the oops-reference table in lp rather than in a database controlled by the oops service? [11:58] allenap: are you doing reviews today? [12:00] stub: yes, because LP knows what things hold references [12:00] stub: both ends may want to know actually; e.g. oops-tools knows 'referenced by url, url, url, ...' and lp knows 'bug X references oops, oops, oop', question Y references oop, oops, oops etc [12:01] stub: this is a new thought still getting assembled though; ask me tomorrow I may have a totally different idea [12:04] adeuring: I am. === allenap changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: allenap | Critical bugtasks: 275 [12:04] adeuring: Though I probably have enough on my plate already :-/ [12:04] adeuring: I am out much of the afternoon, working late this evening instead. [12:05] allenap: ah, ok. If you have some spare time nevertheless, could you have a llook at this mp: https://code.launchpad.net/~adeuring/launchpad/banner-for-beta-features-2/+merge/81833 ? [12:05] adeuring: Sure :) [12:26] lifeless: LP doesn't really know, it holds a heap of information that needs to be scanned and processed. The way we do it at the moment is not scalable. If we picked up references at insert time we no longer need to scan. But where to store those references? Just as easy to send a message to rabbit as it is to store the reference in a db table. [12:26] lifeless: And that way the service that stores the OOPSes doesn't need to reach into the Launchpad database to determine what can stay or what can go. === jcsackett changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: allenap, jcsackett | Critical bugtasks: 275 [14:02] Could you guys tell me how to create a "mirrored" branch? I'd like to answer a question in #lp but I can't find how to change a branch type myself (https://help.launchpad.net/Code/MirroredBranches) [14:05] jcsackett: I'm pinging you since you've OCR ;). Do you have any idea? how to created a mirrored branch? (See my question above). The doc in https://help.launchpad.net/Code/MirroredBranches really seems outdated… [14:05] s/you've/you're/ [14:06] s/created/create/ [14:06] phew [14:06] rvba: on the code.launchpad.net/project page click on "Import a Branch" I think. [14:07] where project is whichever project it needs to be associated with. [14:07] nigelb: but what about if you want to have a branch in ~me/+junk/my_mirrored_branch ? [14:07] rvba: I think mirrors aer associated with project not +junk. *checks* [14:08] That's not what https://help.launchpad.net/Code/MirroredBranches says but this might be outdated… [14:08] Oh. Hrm. Interesting [14:09] Imported branches don't have a Mirrored status anyway. [14:10] I need a code specialist… abentley maybe? Would you know the answer to my question above? [14:11] rvba: I've never needed to, but... [14:12] abentley: I suppose the right way to do that is to properly create a project and have the branch mirrored in that project… [14:12] But that's not what https://help.launchpad.net/Code/MirroredBranches says. [14:12] rvba: It looks like you go to the pillar page and click "Import a branch". [14:14] abentley: I'm sorry but what is the pillar page (you have to know that I've been trapped inside Soyuz for a few months, I just escaped very recently). [14:15] rvba: https://code.launchpad.net/launchpad/ for example [14:15] Trapped inside soyuz. Oh dear. [14:15] abentley: ok, so no mirrored branch in /~me/+junk then? [14:15] rvba: And probably anywhere else branches are listed. [14:16] rvba: You might want to ask someone on the Bazaar team. They're the last ones who touched this functionality. [14:17] abentley: ok I'll do that, thanks for the help. [15:04] jcsackett, are you reviewing adeuring's js branch? [15:04] deryck: yeah, i was just looking through it. [15:04] jcsackett, ok, cool. Thanks. [15:04] was about to tell adeuring i had left some questions on it. [15:05] it seems a bit redundant now, but. adeuring, i left some comments on your MP. :-) [15:06] heh [15:15] jcsackett: I deleted the redundant stuff (and thanks for the review) [15:30] thanks, adeuring. r=me. [15:31] jcsackett: thanks! === matsubara is now known as matsubara-lunch === beuno is now known as beuno-lunch [16:21] danhg, We should aim to talk about bug 888596 before the end of the day; if not, tomorrow. [16:21] <_mup_> Bug #888596: Instructions for generating gpg keys are not provided for Unity < https://launchpad.net/bugs/888596 > [16:30] I'm looking over it now [16:43] allenap, jcsackett: could you please review https://code.launchpad.net/~abentley/launchpad/back-button-support/+merge/81875 ? === beuno-lunch is now known as beuno === matsubara-lunch is now known as matsubara [17:13] abentley: looking now. === deryck is now known as deryck[lunch] [17:21] abentley: r=me. looks fine. [17:21] jcsackett: thanks. === salgado is now known as salgado-lunch [17:52] jcsackett, do you have time to mumble? [17:59] Night all [18:00] deryck[lunch]: I'm up for our chat anytime. === deryck[lunch] is now known as deryck [18:02] abentley, ok, cool. Give me just a bit more and I'll ping you. [18:07] sinzui: sure. one moment. [18:16] abentley, I can chat now, if you're still free. [18:16] deryck: let's go! === salgado-lunch is now known as salgado [18:18] bac: r=me on your lplib MP. [18:23] just saw that, thanks jcsackett [18:34] sinzui: i have to run out for a few moments; i'll ping you to mumble when i return. [19:08] sinzui: i am again free to mumble whenever you are. [19:33] jcsackett, are you reviewing still? [19:33] deryck: i am. have a branch for me? [19:33] jcsackett, indeed! https://code.launchpad.net/~deryck/launchpad/toggle-bug-fields-config-widget/+merge/81900 [19:34] jcsackett, more of my widgets for new bug listings work. [19:34] deryck: looking at it now. [19:34] jcsackett, awesome, thanks! [20:06] deryck: r=me. looks like nice work. [20:06] and it just taught me how the getter/setter attr stuff in YUI works. :-P [20:06] jcsackett, awesome, thanks! [20:06] heh [20:06] good deal then. [20:06] indeed. :-) [20:07] it's pretty expressive when you get you're head around it. [20:07] yeah, it certainly seems pretty cool. [20:11] hi folks, there are broken links to the Twisted Coding Standard and CodingStyle for Zope 3 on https://dev.launchpad.net/PythonStyleGuide [20:11] I suspect the first should point to: http://twistedmatrix.com/trac/browser/trunk/doc/core/development/policy/coding-standard.xhtml?format=raw [20:11] and the second to: http://wiki.zope.org/zope3/CodingStyle [20:11] not knowing what the original links looked like, these are only googled guesses [20:14] sounds good to me [20:14] cr3: so, did you want to talk ? [20:16] lifeless: sure, I was mostly concerned about solving the problem of synchronizing user data not only internally but for community projects as well. do you think it would be reasonable to expose both a restful and xmlrpc interface, ie would this just cause more confusion? [20:17] I think thats premature generalisation then. [20:17] very easy to overbuild and underdeliver that way [20:17] lifeless: as you said, concentrating on technology at this point might be premature but I feel there's already a strong preference, maybe because of precedence, for xmlrpc rather than restful, maybe because of launchpadlib experience. [20:17] we only truely know our requirements => and we're wrong most of the time :) [20:18] lifeless: good argument, I'm already convinced :) [20:18] ok :) [20:18] so - a LEP soon ? [20:18] based on what *result tracker* needs [20:18] lifeless: onto the next concern then: I'm not sure when I can deliver a LEP so I hope nobody else might be depending on exposing such a microservice, ie I wouldn't want to block anyone or duplicate their effort [20:19] I will work with you to refine things and make tech choices once the needs are really understood [20:19] cr3: writing the LEP doesn't imply implementing [20:19] cr3: its a discussion point for decision making [20:19] cr3: And I promise you, if/when someone else needs something similar, I won't queue them up behind you [20:20] lifeless: ok, lets say for Monday then, any later would just be procrastination :) [20:20] cool [20:20] I shall be around :) [20:24] broken links in PythonStyleGuide fixed, enjoy! [20:24] * cr3 thinks that wikis should have a broken link crawler running periodically [20:27] I think they break enough on their own === matsubara is now known as matsubara-afk [20:47] deryck: could you please review https://code.launchpad.net/~abentley/launchpad/dynamic-listing-robustness/+merge/81904 ? [20:47] abentley, I can. I'm about to go offline to switch work locations, but can do it when I return. [20:47] deryck: Sure. [20:56] abentley: just looked at your most recently put up MP. it is r=me. [20:56] jcsackett: thanks. [20:57] allenap: would voice help ?> [20:57] allenap: we may be talking past each other [20:58] lifeless: Yeah, let's do that. [20:58] Skype okay? [20:58] allenap: now? Or next week? now is fine for me [20:58] skype is fine [20:59] huwshimi, danhg: for the meeting, mumble or just irc? [20:59] cr3: Hi, lets do voice if we can. [20:59] lifeless: Yeah, now is good. [20:59] danhg: Do you have mumble set up? [21:01] allenap: calling [21:01] lifeless: Skype has crashed :-/ [21:01] hah! win :( [21:02] huwshimi: worst case, I can probably try to conference both of you in by phone [21:03] cr3: Lets mumble for now and if that doesn't work for Dan we'll try something else. [21:04] huwshimi: http://results-tracker.ubuntu.com [21:09] huwshimi: http://results-tracker.ubuntu.com/ubuntu/oneiric/+testruns/2183 [21:38] abentley, hey, I see jcsackett beat me to the review. [21:38] deryck: yeah. He's feisty. [21:38] indeed [21:43] deryck, abentley: i just like keeping the queue clean. :-P [21:57] abentley: hi [21:57] abentley: why do you want to precache batches ? [21:58] lifeless: I want to make the user experience fluid. [21:58] abentley: I don't think its a good use of money to compute results that will only rarely be used. [21:59] lifeless: I don't follow. [22:00] abentley: there are what, 10 adjacent batches - first, last, next, prev, and 6 or so different sorts. [22:00] abentley: the user can only follow one of those, any results for the other 9 will be wasted. [22:00] deryck: Just running a bit late. 5 mins? [22:00] huwshimi, ok. abentley and possibly adeuring will join us. mumble ok? [22:00] deryck: Fine [22:00] lifeless: No, they are not wasted just because they are not used immediately. [22:01] lifeless: The various sorts are always the first batch, no matter what batch you're on. [22:02] lifeless: So they apply for the life of the page. [22:02] if the user doesn't change to all of those sorts, then the results do not benefit that user, right ? [22:02] lifeless: yes. [22:03] We are running short of server resources as it is; I think we need a strong justification for doing speculative calculations like this - particularly while we have timeouts doing bug search batches [22:03] there is also the complication that if you don't serialise the requests you can easily DOS our serers [22:03] and if you do serialise, then you need to make sure you're still responsive when the user clicks on a batch that you haven't received a result for yet. [22:04] huwshimi, abentley -- let's meet in Orange room. [22:04] lifeless: If money is an issue, exactly how much money are we talking about? We can't compute the tradeoff without knowing that. [22:04] deryck: No problems, I'll be a minute [22:06] lifeless: if 10 requests can DOS our servers, doesn't that indicate a problem with our infrastructure? [22:06] abentley: can I ask what is unfluid about the experience today ? [22:06] . [22:06] (sorry, my adsl is terrible at the moment) [22:06] . [22:06] tcp, please come back to me [22:07] lifeless: on a call. [22:07] . [22:07] . [22:08] abentley: we have 64 concurrent service points, which can support all our users today. If you make bug search - our single most common operation - use 10 times the resources, we'll have to expand the cluster. [22:08] abentley: how much? I don't know. [22:10] abentley: but server scaling isn't cheap, and we should strive for efficiency. I don't see calculating results speculatively as being very efficient; I'm sorry but I'm going to ask that this not land - as a similar thing in the bug subscription area was backed out. [22:17] http://people.canonical.com/~huwshimi/status_colours.png === jcsackett changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: - | Critical bugtasks: 275 [22:58] wallyworld_, wgrant, StevenK: http://www.youtube.com/results?search_query=most+interesting+man+in+the+world&aq=0&oq=most+inter [23:04] bbiabm, dropping lynne up the street === wallyworld_ changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: wallyworld | Critical bugtasks: 275