[00:12] can you use with_ on a storm select? [00:13] yes [00:13] yup [00:14] hmm... I'm wondering how though [00:15] well, maybe you mean something different than I do [00:15] I suggest starting with my use of it [00:15] lifeless: I have it working on the general store.find [00:15] but now I need a subselect for blueprint exclusion [00:15] I've got the underlying sql tested on staging [00:16] so I know that the syntax I want is allowed [00:16] just trying to get it into storm [00:25] wgrant: you mean stevenk's patch ? [00:25] lifeless: Yes. [00:26] thumper: I'm not sure what you're talking about here [00:26] lifeless: that's ok [00:26] thumper: but I wrote something to gary that /might/ be relevant so I'm going to forward it to you [00:26] ok [00:27] thumper: if it doesn't seem relevant, perhaps you can pastebin me some details about what you're trying to glue together [00:28] lifeless: I'm chatting with jamesh on #storm [00:38] now we're getting somehwere https://lp-oops.canonical.com/oops.py/?oopsid=OOPS-1899E29#repeatedstatements [00:46] lifeless: if I have problems, I'll poke you [00:46] thumper: I hope the reformulation of the subselect is useful to you [00:46] lifeless: it is actually [00:47] thumper: it will run faster because it doesn't need to look at specification [00:47] lifeless: yep, got that [00:47] cool [00:48] wgrant: were you going to tackle NBT this week ? wondering if I should ignore oopses on it [00:56] hmm [00:56] need to test [r=lifeless][bug=732481] [bug=732496] oops_middleware should call start_response for success, even if there is no body. [00:57] Isn't that a fix for the haproxy call? [00:57] n [00:57] no [00:57] its a fix for head [00:58] ... which haproxy calls? :-) [00:58] not at the moment [01:07] wgrant: Er, yes it is. [01:08] StevenK: Aren't the DSD scripts not running yet? [01:08] wgrant: DSD.new() calls update(), which calls _updateVersionsAndStatus(), which calls _updateBaseVersion()? [01:09] Ah, well, that is likely true [01:09] lifeless: I will probably get around to deleting it this week. [01:09] I was going to QA that on mawson, after I find a good victum [01:14] anyone know of a place in the code where we do "like" queries with storm? [01:21] thumper: registry.model.distribution.Distribution.searchSourcePackageCaches [01:26] OMG, this vocab was so... broken [01:26] which vocab? [01:26] note that we should not do like queries [01:26] they are slow [01:26] fti or exact matches only [01:28] lifeless: how do I find what text is indexed for blueprints? [01:28] look in database/schema/fti.py [01:28] name, title, summary, whiteboard [01:30] lifeless: how do we do a fti query in storm? [01:30] SQL(...) or use the fti helpers [01:31] lifeless: also, is the fti case insensitive? [01:31] I think it is [01:32] in which case the like queries that were used, were useless [01:32] as they were covered by the fti anyway [01:32] not surprising [01:34] yay lp.blueprints! [01:34] lifeless: in order to say "id not in (...)" we use Not(Table.Column.is_in(...)) ? [01:36] * thumper tries to remember left joins in storm [01:37] thumper: if you're looking at SpecificationDepCandidatesVocabulary, those LIKEs look completely pointless [01:37] mwhudson: yes, I've figured that out [01:37] for at least two reasons :) [01:37] wow [01:38] thought they might be so pointless that the query planner can turn them into = [01:39] thumper: I've not needed to say 'id not in' using storm syntax [01:39] thumper: and tbh, storm syntax vs literal sql is rarely an improvement IMO [01:40] thumper: other than the object deserialisation, I don't find writing the expressions using storm to be generally beneficial [01:40] thumper: I guess I mean: write it in the simplest way possible [01:41] * thumper doesn't need the left joins [01:41] d'uh [01:42] WTF do we have an __iter__ on our IHugeVocabulary? [01:42] that's just stupid [01:42] I know that we "technically" need it [01:42] we have __iter__ on Distribution [01:43] and thats equally bogus [01:43] but having to provide an implementation is fucked up [01:43] lifeless: I agree that __iter__ on any model class is bogus [01:43] it helps accidentally OOM the appservers? [01:43] thumper: we shouldn't have __iter__ on things that we don't expect actual complete iteration of [01:43] thumper: but removing it may be problematic [01:44] thumper: __iter__ on model classes is fine, *if* the model is a container [01:44] * mwhudson remembers a bug to do with materializing a list containing all Persons [01:44] lifeless: the reason we need it there is because IVocabulary defines an __iter__ [01:44] Distribution isn't obviously a container of any one specific thing [01:44] I'm pretty sure we don't use it though [01:44] thumper: yes, I know - IVocabulary is buggy [01:44] * thumper will raise not implemented [01:44] I thought HugeVocabulary existed mostly to avoid having __iter__ :./ [01:44] wgrant: yes, but we didn't fix zopes assumptions [02:32] anyone want to eyeball https://code.launchpad.net/~lifeless/launchpad/bug-711104/+merge/53188 before I land it ? [02:33] what's the magic command to run yui tests? [02:33] * wallyworld_ goes to look on the wiki [02:36] ah, it's manual - load it up in a browser [02:53] :( [02:53] * thumper skips fixing that design problem [03:23] part one: https://code.launchpad.net/~thumper/launchpad/blueprint-dependencies/+merge/53191 [03:23] thumper: Thanks [03:23] np [03:23] * lifeless gambles on lp-land [03:24] lifeless: Re facebook, PICTURES! [03:25] thumper: so my refactored clause was slightly wrong ? [03:25] thumper: ( I don't see why you need specification s there at all [03:25] lifeless: it is needed in the next bit :) [03:26] lifeless: https://code.launchpad.net/~thumper/launchpad/blueprint-dependency-vocabulary/+merge/53192 [03:26] * thumper afk for shopping and kids ice-skating [03:26] back later [03:27] thumper: still don't see it [03:27] lifeless: leave a comment, I'll get back to you [03:27] * thumper needs to go now [03:27] kk [03:27] lifeless: The last few days I've really noticed a speedup on Launchpad. Did you do something significant or am I only just noticing? [03:28] huwshimi: we've brought some more appserver instances online, and moved to an active-passive haproxy config, and we landed a bunch more fixes late last week [03:30] The latency on top of generation time and RTT is normally <100ms now, which is nice. [03:31] lifeless: It's awesome, I'm finding I'm waiting for pages now instead of clicking on links and going elsewhere while they load. [03:31] wgrant: That's great. That was like 2.5 seconds before right? [03:31] I frequently saw it up to 2s, yeah. [03:32] we still have queues [03:32] but its a lot better [03:32] it will be up to 2 weeks before we get the next stage of fixing this done [03:32] lifeless: It's been 5 years. [03:33] 2 weekse isn't that bad. [03:33] I feel like we might actually get there with our speed :) [03:34] lifeless and wgrant beat you with feeling that. [03:34] well [03:34] Eeh, 6 months ago I knew it was hopeless. [03:34] Now I'm not so sure. [03:35] here's a slightly interesting thing: [03:35] wgrant: we're a great team, as long as we give ourselves the space to do things, we can move mountains [03:35] google search results contain the url https://code.launchpad.net/bugs/490148 [03:35] <_mup_> Bug #490148: License details for "Other" are displayed even if not selected < https://launchpad.net/bugs/490148 > [03:35] hi wgrant, huwshimi, lifeless [03:35] poolie: That's a bit interesting. [03:35] poolie: Hi! Are you back from holidays? [03:36] poolie: Hey mate [03:36] i am back [03:36] it was good [03:36] searching for {launchpad licence field} fwiw [03:37] poolie: hi [03:38] wgrant: Given DSD.base_source_pub() only searches the child for the SPPH, do you think there is value in having it also search the parent? [03:38] StevenK: It should search both archives. [03:38] It will normally only be in the parent. [03:39] Rarely the child. [03:39] Right, so I'll change it to search the parent first, and fall back to the child. [03:39] poolie: That's strange. It appears you can replace that subdomain with others and it still works (although I tried with blueprints.lp and it didn't load the subscribers list). [03:39] As it is today, I thought it was a little naive. [03:40] huwshimi, i would guess that we send a "moved temporarily" from that url to the real location [03:40] poolie: I think they must be indexing on the wrong url. For code.lp it redirects to bugs.lp (blueprints.lp didn't) [03:40] and google therefore caches the orginila [03:40] poolie: Yeah that was my guess [03:40] strange [03:40] huwshimi: most things are published in all domains [03:40] i wonder where they first found a link to that thing [03:40] huwshimi: only a few things aren't (and that results in bug reports) [03:40] perhaps someone made up that url by hand and google decided it was more important [03:41] lifeless: Which makes me think our subdomains are even more redundant :) [03:42] huwshimi: right [03:42] huwshimi: as I said, for me at least, its mainly a technical exercise for removing if/when jml wants us to [03:42] we'd certainly save on redundant ssl handshakes and js overhead [03:45] lifeless: Is this something we should start putting a LEP together for? [03:46] wgrant: Can haz help crafting a query? [03:46] huwshimi: only if we want to do it [03:46] StevenK: I'm not here, but OK. [03:47] lifeless: So do we need to talk to jml about it then? [03:47] huwshimi: I think there are three aspects to it [03:47] wgrant: I'd like to find all SPPHs that are in both Ubuntu and Debian that have changelogs set, 'AND spph.status IN (1, 2)' and have the same SPN. [03:47] 1) Kill them. [03:47] 2) Kill them. [03:47] 3) Kill them. [03:47] there is a political aspect: in the past mark was very pro this layout [03:47] Those are the three aspects. [03:48] StevenK: So you can find good things to test with? [03:48] there is a technical aspect: what exact actions are needed to /permit/ consolidation [03:48] and there is a design aspect: how should things that are currently different in the same relpath on different domains look [03:48] wgrant: Right. [03:49] lastly, there is the scheduling thing: how important is this : when should we do it [03:49] huwshimi: so, last I spoke to jml its not at the top of the roster - and I don't think its a one-man task (but I may be wrong) [03:50] huwshimi: I don't think putting a lot of effort into things that aren't schedule-next priority is sensible [03:50] if the schedulability of it is related to the size of the task, then investing long enough to figure out the size is worth doing [03:51] lifeless: Is this topic on a list of things that need to happen then? [03:52] huwshimi: we practice a LEAN approach of not queuing things up if we can avoid it [03:52] StevenK: SELECT spn.name FROM sourcepackagename spn JOIN sourcepackagerelease sprd ON sprd.name = spn.id JOIN sourcepackagepublishinghistory spphd ON spphd.sourcepackagerelease = sprd.id JOIN sourcepackagerelease spru ON spru.name = spn.id JOIN sourcepackagepublishinghistory spphu ON spphu.spr = spru.id WHERE spru.changelog IS NOT NULL AND sprd.changelog IS NOT NULL AND spphu.status IN (1, 2) AND spphd.status IN (1, 2); [03:53] s/spphu.spr/spphu.sourcepackagerelease/ [03:53] lifeless: OK, as long as we remember to talk about it :) [03:53] And you want to actually constrain the archives too. [03:53] wgrant: *and* I have to run it through sed? :-( [03:53] huwshimi: so no - its not on any list : because we're trying not to have such lists :) - I'm aware of the discussion, and jml /may/ have a list somewhere with it on it [03:53] AND spphu.archive = 1 AND spphd.archive = 3 [03:53] huwshimi: there may well be a bug saying 'this makes things slower' [03:54] huwshimi: (and if there isn't such a bug, such a bug would be reasonable to have) [03:55] ERROR: operator does not exist: name = integer [03:55] LINE 2: ... sourcepackagerelease sprd ON sprd.name = spn.id J... [03:55] grr testfix [03:55] wgrant: ^ [03:55] StevenK: nameID [03:55] StevenK: sourcepackagename, not name. [03:55] or yeah [03:56] I strongly encourage not using reference columns in queries. [03:56] this will help us when we start to detangle the layers [03:56] lifeless: This is SQL. [03:56] oh [03:56] :) [03:57] Failure in test /srv/buildbot/slaves/launchpad/lucid-devel/build/lib/canonical/lazr/tests/../doc/pidfile.txt [03:57] Traceback (most recent call last): [03:57] File "/usr/lib/python2.6/unittest.py", line 279, in run [03:57] testMethod() [03:57] File "/usr/lib/python2.6/doctest.py", line 2152, in runTest [03:57] raise self.failureException(self.format_failure(new.getvalue())) [03:57] AssertionError: Failed doctest test for pidfile.txt [03:57] File "/srv/buildbot/slaves/launchpad/lucid-devel/build/lib/canonical/lazr/tests/../doc/pidfile.txt", line 0 [03:57] wgrant: Ah, right. [03:58] anyone seen that before? [03:58] It could have said "This column doesn't exist, you berk." [03:58] StevenK: did you have 'name' or 'spr.name' ? [03:58] lifeless: I can't find a bug like that. I can report one, but you would be able to write a much better description of the problem if you want to and have the time. [03:59] huwshimi: sure, I can do that [03:59] lifeless: Thanks mate [03:59] lifeless: sprd.name, so it should be sprd.sourcepackagename, as wgrant pointed out. [04:00] StevenK: was wondering about the context the sql parser had [04:01] ... 14,000 rows. I don't believe you, SQL [04:01] huwshimi: its covered in https://bugs.launchpad.net/launchpad/+bug/703134 [04:01] <_mup_> Bug #703134: Launchpads SSL performance is substandard < https://launchpad.net/bugs/703134 > [04:03] I think we should edit the bug number to be 10 or something :-P [04:04] bug 10 ? [04:04] <_mup_> Bug #10: It says "displaying matching bugs 1 to 8 of 8", but there is 9 < https://launchpad.net/bugs/10 > [04:04] hah. 'are' [04:05] in the isf call on thursday we talked about the ssl cache sharing component - its a prerequisite for LVS, and LVS is up second on (IIRC) spads' queue [04:06] How is that a prereq? [04:07] Mm, I guess. [04:07] wgrant: browsers don't switch ip per-request with round-robin setups [04:07] Anyway, /me vanishes. [04:07] so its [relatively] rare to do ssl renegotiates [04:07] lvs would make it a common event unless we did source ip pinning (but you don't want to do that because of the impact of nat'd conferences) [04:22] huwshimi: I like that you've been writing up a bunch of docs [04:25] lifeless: Starting to. It's mostly just stubs and a collection of links to other places... but I have to start somewhere. [04:25] lifeless: I'm trying to add things as I think about them [04:28] huwshimi: one thing I'd like to suggest [04:28] huwshimi: more things to remember makes development harder [04:28] huwshimi: if possible, finding ways to make things automatic would be better than proscribing how things should be [04:28] huwshimi: e.g. if all popup forms automatically set their first entry widget as focus, that would be a no brainer win [04:31] lifeless: Yes, that was exactly my thought [04:31] lifeless: I do want to list the rules for the way things should behave though [04:34] huwshimi: it may be nitpicking, but its probably worth rephrasing from 'rule' to 'sane default which solve problem X' [04:35] huwshimi: this future proofs discussions: if problem X goes away, the default to solve it is clearly not relevant, whereas rules tend to age less gracefully IME [04:36] lifeless: Nitpick away :) [04:37] lifeless: So I want to have documentation with those guidelines about how to solve or how they are already solved within Launchpad [04:37] huwshimi: I basically think we're rule heavy: we /still/ have way to many nonfunctional review rules, and I'm jumping the gun trying to avoid the same problem in a different guise [04:41] sigh [04:41] lifeless: That makes sense, I wonder how we can make sure we have a consistent interface if we don't have a bunch of guidelines that should be followed though. [04:41] 10/33 POFile:+translate [04:42] lifeless: Or am I misunderstanding something [04:42] huwshimi: less code, more reuse [04:42] huwshimi: additionally, i don't think following guidelines results in a high quality interface: I find it extremely weird that consistency is axiomatic with ease of use and high quality [04:43] huwshimi: ease of use is directly measurable as is quality : clarity, performance, uptake of information are all measurable [04:44] huwshimi: time to perform task, time to learn task etc [04:47] huwshimi: as a for-instance on less-code,more-reuse: one of the genius things gnome's desktop stack did years ago was to ditch pixel positioning for widgets: instead it uses packing horizontally and vertically: the /default/ for a developer using the toolkit will be to be consistent with most other gnome apps [04:49] lifeless: What I'm trying to solve is that we don't really have enough docs on what we do or why we do them (for UI stuff). For example, I've been reviewing a form that rvba is working on. He would have know exactly how to create the form without a fair bit of back and forward over the last week if there was a doc he could have looked at that said "when creating a form don't use tables, use classes instead of inline [04:49] styles and here's where to look for appropriate styles". [04:51] huwshimi: so I think this breaks into a few issues [04:51] huwshimi: firstly, we're way to manual in our forms :( - long term issue [04:51] huwshimi: secondly, there isn't really a 'right place' to cargo cult from. [04:52] by which I mean its massively easier to take a good form from elsewhere and adjust than to start from scratch, but there isn't a 'known good' form that is fully ajaxified, uses all the right styles etc etc [04:52] there *are such forms*, but nothing guiding folk to them [04:52] I would have expected bigjools to guide rvba to the right place though [04:53] huwshimi: using classes seems like standard html-since-2005 to me though, rather than something we need to formally write down :) [04:54] lifeless: Actually this is just a small filter form, of which we have a few, but this one had an extra option which none of the others do, so this was a special case that ended up being quite a bit more complex. [04:55] lifeless: except that we do have a lot of inline styles. So when he wanted to know what to do he looked at our existing code and noticed a lot of inline styles and assumed that was ok [04:55] huwshimi: this correlates with what I am saying [04:55] huwshimi: its *easier* to copy existing stuff than to follow procedures about what we *should* do [04:56] huwshimi: so to get new contributions to be as we want them, its most effective to fix our existing stuff [04:56] huwshimi: cheat sheets can still be useful, but I guarantee the first step isn't read-the-cheat-sheet [04:57] lifeless: I totally agree with all that, I just think it is helpful to also have some docs to refer to. Maybe though I need think about having them very general rather than specific cases [04:58] huwshimi: lets say you retain 10% of stuff you read once [04:58] huwshimi: think about how much stuff you read when you started [04:58] huwshimi: and how much of the details you remember now :) [04:58] huwshimi: I'm not saying 'do not write docs' : I started saying I'm glad you are writing docs up [04:59] huwshimi: I am saying: rules that must be followed become a process burden, so we should demand *real value* from any rules we add. [04:59] huwshimi: *and* [05:00] huwshimi: making a few /really good/ forms and offering them up as 'copy this' examples (e.g. via the list, in your docs etc) would be a really good way to help your improvements propogate [05:00] lifeless: Alright that sounds good. [05:01] huwshimi: I've done something similar with my query scaling tests: I took a single example that was in the code base from a while back, generalised and reused it, and wrote it up on the mailing list - other folk are writing such tests now [05:01] huwshimi: and the infrastructure has incrementally improved to make writing them easier. [05:02] huwshimi: I simultaneously tried some rule-based improvements, which have had approximately zero impact on the code base: the communication, examples, and continual focus on the one thing have however had a massive impact. [05:06] lifeless: I guess really most people don't refer to docs unless they get stuck with something. [05:07] lifeless: Or they really don't know where to begin [05:09] Didn't Julian add a boolean that we can use to check if something returned any rows? I can't recall what it is called. [05:16] huwshimi: exactly [05:16] StevenK: its __nonzero__ and only on sqlobjecresultset : don't use it. [05:17] StevenK: storm result sets have .empty() [05:17] StevenK: but note that this is a query: *if* you are going to ask for any rows, just ask, don't check for emptiness [05:22] here stubby stubby stubby [05:23] StevenK: can you run a query on df for me [05:23] Certainly [05:23] I'd like an explain analyze of [05:23] https://bugs.launchpad.net/launchpad/+bug/734642/comments/3 [05:23] <_mup_> Bug #734642: POFile:+translate timeouts < https://launchpad.net/bugs/734642 > [05:23] I'm looking for cold cache performance [05:24] Can't get much colder than DF [05:24] right [05:24] it is about 30 times faster than the current hot performance [05:24] but if its not hotter cold, the win isn't very important [05:25] s/hotter/faster/ [05:26] lifeless: 1345.664 ms, do you want the output? [05:27] please [05:27] I wonder if we just need a tonne of ram [05:27] Let me apologise in advance, I didn't turn off the pager, so it's going to look like crap, and re-running it won't give the same values [05:28] thats fine [05:28] pastebomb away [05:28] http://pastebin.ubuntu.com/580007/ [05:29] thanks [05:29] so, no worse [05:29] but not substantially better [05:31] lifeless: I'd welcome your comments on https://code.launchpad.net/~stevenk/launchpad/dsd-base_source_pub-search-parent/+merge/53194 . Mostly interested in your thoughts re lines 27-51 of the diff [06:00] StevenK: commented [06:00] StevenK: not pubs.empty() would be better than using count() btw [06:01] StevenK: only use count() if you need a count and won't be querying all the rows. [06:07] lifeless: Thanks, I've taken your suggestion with a little tweak. === StevenK changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | firefighting: - | On call reviewer: - | https://code.launchpad.net/launchpad-project/+activereviews === jtv is now known as jtv-eat === almaisan-away is now known as al-maisan === jtv-eat is now known as jtv [07:36] jtv: you might like the new plan in bug 734642 [07:36] <_mup_> Bug #734642: POFile:+translate timeouts < https://launchpad.net/bugs/734642 > [08:21] stub: Hi Stuart. I've just done my first db changing branch and I'd like you to review it when you get a chance. [08:21] It's been approved by sinzui and the change is really not controversial but since I'm fairly new to the code (joined Canonical 2 weeks ago) please don't hesitate to give me any recommandation. [08:21] https://code.launchpad.net/~rvb/launchpad/db-add-distro-registrant/+merge/53001 [08:21] yup. [08:22] yer - this one looked trivial [08:22] stub: it is yes. [08:22] lifeless: Took me a while to decypher what you pasted there… do you think it's the WITH that does it? Or is it mostly that the "potmsgset <> $INT" check moved from the TM part to the POTMsgSet part? I'm pretty sure we had it in the POTMsgSet part at one point. [08:22] jtv: its the with [08:23] Just acting as an optimization barrier? [08:23] jtv: comment 2 is the first iteration of the with, and when I then move the potmsgset I cap the upper estimate too [08:23] rvba: So people decided to keep both owner and registrant, or will owner be dropped in the future? [08:23] Frankly I don't even see much reason to have the potmsgset <> $INT check… because we query the ones with potmsgset = $INT separately anyway. [08:23] with alone is 350->690 or whatever, with + move potmsgset is 350..350 [08:24] lifeless: are those numbers estimated costs? [08:25] jtv: yeah [08:25] stub: Owner will stay and be the field still used for perm checking (owner = maintainer for distributions). Registrant is just a historical record of who created the object. [08:25] https://code.launchpad.net/~thumper/launchpad/blueprint-dependency-vocabulary/+merge/53192 anyone? [08:25] jtv: actual execution with the with is ~ 30 times faster than the existing query [08:25] That's great. It's too hard to read so I'll just take your word for it. [08:25] jtv: :> [08:25] jtv: with seems to be a very useful thing, was the main point [08:25] So… any takes on implementing it? [08:26] jtv: I figured you'd be interested with your joint rosetta + postgresql interests [08:26] Of course I am! But I'm on feature rotation. :( [08:26] jtv: Its about 15 minutes to code up, I'll do it tomorrow morning if noone beats me to it [08:26] Great, thanks! [08:27] Can I take it the "with" mainly serves as a way to force the planner to materialize that subquery? [08:28] it creates a temporary table [08:28] so yes, in this context I think that that is what its doing [08:30] rvba: Is 'registry' actually a good default registrant of the existing Distributions? We might want to be more selective if it gives any genuine power. [08:30] the registrant is just to make our db work a bit harder rendering the thing [08:32] meep yesterday was busy [08:32] non-opstats pages: 7574479 [08:32] stub: AFAIK the whole idea (sinzui is the one driving this) was to separate clearly who registered the object (and this should not give real power) and who the maintainer is. The only use of the registrant field is to display inside the 'Registered by' slot. [08:32] Sounds fine. [08:33] this might sound silly (and only made to have an extra query) but I think it makes sense because the same thing will have to be done for distroseries. [08:33] Approved. Some things to change listed in the review. [08:35] here is sinzui's opinion on this (for distroseries): [08:35] sinzui "Since distros series do not have a direct owner, it seemed okay in the past to reuse the field for registrant. but owner is intended to be mutable. It is not possible BTW to change a series owner. We removed the field from edit forms" [08:35] It sounds silly if we will only ever have Distributions registered by the registry team (which is silliness we have done for years unfortunately). If random users can register distributions, fine. [08:36] heh, i just tried to use 'y' to archive this channel :P [08:39] I'm not sure it's very frequent for random users to register distributions... but AFAIK the whole thing is to cleanup the owner field for distro, distroseries (and also productseries and productrelease) which has been 'reused' in the past to store other things (sometimes the registrant) than what it should store. [08:44] lifeless: you're right when you say that the current displayed registrant for a distro is the owner. And if we want the changes to be without effect on existing distro we should use the owner instead of ~registry. But I think sinzui's point was that in order to normalise the registrant of objects we should set it to ~registry in the migration script. [08:49] rvba: why normalise it? [08:49] rvba: surely the existing data is more accurate than ~registry [08:50] lifeless: since this is a read-only field I guess it's really not a problem to set the registrant to user instead of ~registry. [08:50] and it might be more informative .... [08:50] lifeless: I think sinzui's argument of cleaning things up really makes sense. But as you can imagine, being still fairly new to the code, I can't say that I have a personal opinion on this. [08:50] lifeless: but I really understand your point [08:51] rvba: setting it to registry would discard what data we have [08:51] I think its wrong. [08:51] lifeless: right [08:51] if we want it to be registry it would be a lot easier to just hardcode that in the templates :) [08:51] lifeless: it wont be registry for newly created objects [08:52] henninge: Hi! Are you good to be OCR today? [08:52] good morning [08:52] rvba: I know, but if we don't want it to be registry for new ones, we don't need it to be registry for old ones :) [08:52] lifeless: again, I really understand your point. [08:52] StevenK: I am. === henninge changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | firefighting: - | On call reviewer: henninge | https://code.launchpad.net/launchpad-project/+activereviews [08:53] henninge: Are you up for reviewing https://code.launchpad.net/~stevenk/launchpad/dsd-base_source_pub-search-parent/+merge/53194 ? [08:53] StevenK: sure ;) [08:54] rvba: where does that leave us? [08:54] lifeless: I'll just make sure with sinzui (he's really the one driving this) that there is no secret reason why he wanted to set the registrant to ~registry :-) [08:54] lifeless: but I think you're right [08:55] lifeless: where's that page that shows the revisions blocking the rollout? [08:55] lifeless: is that ok with you? [08:55] https://devpad.canonical.com/~lpqateam/qa_reports/deployment-stable.html [08:55] rvba: sounds great [08:55] ta [08:55] rvba: I suggest optimistically changing it now to get stubs ack on the update script change [08:56] lifeless: ok [08:56] lifeless: when is the next rollout? [08:56] I'm actually doing it right now. [08:56] thumper: I have one up on LPS [09:00] thumper: but we have no losa until US come on [09:01] StevenK: Sounds to me like there is a "not" missing somewhere in this comment: [09:01] 98 + # Passing in a base version to makeDistroSeriesDifference() creates [09:01] 99 + # it in both distroseries, so we need to do it ourselves. [09:02] henninge: the test is testing the case where one side is missing the base [09:02] henninge: so the statement is correct [09:02] :( [09:03] thumper: I enquired about gsa vg doing it, but they felt uncomfortable [09:03] hm, then I don't understand it [09:03] fair enough [09:03] henninge: Would you prefer I re-word it? [09:03] lifeless: wht is "do it" referring to? [09:04] StevenK: I don't think I understand the comment yet [09:04] henninge: "do it" in that context refers to creating the publication. [09:06] thumper: what rev do you want live ? [09:06] 12571 [09:08] The deployment is for 12582, so that's okay [09:08] I want 12569 deployed, so I've also been looking. [09:13] StevenK: I am sorry, I may be missing some understanding about DSDs here and the implication of that comment. [09:14] which kind of tells me I might not be understanding what this branch is all about in the first place ... [09:14] henninge: Okay, so makeDistroSeriesDifference() can take a 'base' version in the versions dict. That will create a publication in both the parent and the child distroseries. I don't want it to do that, so I need to create the publication myself in only the child. [09:15] henninge: The reason for the change is that it is much more likely for the parent distroseries to contain the base publication than for the child too -- hence the change to look in the parent first. [09:16] "than for the child to" even [09:16] thumper: are both your bp branches ready for review? [09:16] thumper: if so I can eyeball your second one for you [09:16] StevenK: but you are doing that *after* the call to make DistroSeriesDifference, so does that change its behavior? [09:17] henninge: Not at all, but it is why I have to call ds_diff.update() after doing so. [09:17] ah! [09:18] Doh, forgot to triage [09:19] StevenK: so "update" will remove the base version from the parent? [09:19] henninge: update tells the DSD "stuff has changed, please look again and update your internals as necessary" [09:19] I understand that bit. [09:20] henninge: I think you're close -- do you want a have a quick chat on Mumble to close the gap? [09:20] StevenK: that would be helpful, I think [09:21] let me set that up real quick [09:21] wgrant: hello. Did you see OOPS-1897PPA11 ? [09:22] bigjools: It's a public holiday in VIC today [09:22] bigjools: As StevenK said, I'm not here today. [09:22] But let me look. [09:22] those lazy victorians [09:22] Haha. Sarah said exactly the same thing. [09:22] :) [09:23] bigjools: Isn't that just the usual unsigned changes file? [09:23] wgrant: hard to tell from that oops [09:23] also OOPS-1898PPA5 [09:23] Missing Files section usually is. [09:23] bigjools: That was a manually constructed changes file. [09:23] Had only a dsc and a deb. [09:23] 1st one is "InvalidEmailAddress: master@ussr.htv4" [09:23] I presume that's relevant. [09:24] Oh, got them mixed up. [09:24] Right, I was looking at 1897PPA5 instead of 1897PPA11 [09:24] both look like bugs either way, we should respond to the uploader [09:24] someone is causing Archive:+delete to time out as well :/ [09:25] lifeless filed a bug on Archive:+delete earlier. [09:25] cool [09:25] Both are bugs, yes. [09:25] some guy tried to delete packages [09:25] that timed out [09:25] stub: lifeless just pushed the corrections (https://code.launchpad.net/~rvb/launchpad/db-add-distro-registrant/+merge/53001) [09:25] so he tried to delete his ppa with 435 active publications [09:26] 9 seconds in one update statement [09:27] bigjools: I've got a patch up for oops-tools that will get rid of the 'top 10' limit on exceptions [09:27] Oo [09:27] bigjools: once thats live I plan to get rid of the dedicated soyuz report, because we'll see them easily in the main report. [09:27] sounds sensible :) [09:28] lifeless: as long as they stick out like very sore thumb, that's ok [09:29] bigjools: well, how about we get the patch live, wait a day, and I'll see how it looks to you [09:29] bigjools: AFAICT you're the only person wanting a broken out soyuz report now [09:30] bigjools: if it looks clear enough in the main report, we can then close off the dedicated report. If its not clear enough, we can revisit in another few weeks. [09:31] lifeless: so there's a few OOPSes that should not be oopses and there's bugs filed about that. When they are fixed, *any* oops after that is genuine and critical. As long as they are obvious in the report I have no issues. [09:31] lifeless: that's a good plan [09:43] Project windmill build #47: STILL FAILING in 1 hr 15 min: https://hudson.wedontsleep.org/job/windmill/47/ [09:50] henninge: Thank you for the review. :-) [10:03] StevenK: you are welcome ;) === henninge_ is now known as henninge [10:05] mpt: oh hai [10:05] lifeless, hi ho [10:05] mpt: how did that paperwork go? [10:05] lifeless, excellent, thank you, I have a shiny new passport [10:06] Good morning Launchpadders [10:06] mpt: cool [10:06] jml: hai [10:06] mpt: how is lp coming along, from your disinterested perspective ;) [10:07] * bigjools waves at jml [10:07] lifeless, more speed is good. I haven't noticed any other changes recently. [10:08] Oh, except that heading color changed for some reason. [10:08] mpt: are you noticing speed changes? [10:08] rvba: The repush is fine too. I think you are good to send it off to ec2 to land. [10:09] stub: great, just need a few words with sinzui about this (he's driving this) and I'll land it. [10:09] hmm [10:09] isd branch mangler probably doesn't do what they want >< [10:09] lifeless, no, more like I'm no longer noticing slowness. I guess the bane of performance work is that if you do it right, people end up not noticing. === jam1 is now known as jam [10:10] mpt: thats excellent new [10:10] s [10:10] mpt: theres another step to get to 'snappy' [10:10] yes [10:10] mpt: but eliminating the negative feeling is still a big step forward [10:11] I still notice that takes a while [10:12] mpt: sometimes that bane comes to UX work too [10:12] oh, sure [10:12] (incidentally, what is the proper verb for 'bane'?) [10:12] I hope there isn't one [10:13] mpt: thats https://bugs.launchpad.net/launchpad/+bug/618406 [10:13] <_mup_> Bug #618406: Distribution:+bugs-index time outs < https://launchpad.net/bugs/618406 > [10:13] Launchpad's default font size is tiny now [10:14] mpt: we're going to drop the bugtask.id secondary sort, which makes the query 2000 times cheaper [10:14] I always have to Ctrl + after arriving [10:15] yeah [10:15] sinzui has a Plan [10:31] lifeless: is there something I'm supposed to be subscribed to so that I get notification when I can QA a given fix? [10:31] I don't want to be holding up the pipeline, but it often just seems like guesswork to me [10:34] jam: the bug [10:34] lifeless: so when it changes to "qa-needstesting" it is supposed to be readi? [10:34] ready [10:34] https://bugs.launchpad.net/launchpad/+bug/732481/comments/6 [10:34] <_mup_> Bug #732481: internal error trying to serve HEAD < https://launchpad.net/bugs/732481 > [10:35] thats done by a bot that watches what is deployed to qastaging and staging [10:35] when it comments, the fix is on qastaging and testable - and needs testing [10:35] allenap: speaking of qa === al-maisan is now known as almaisan-away [10:41] lifeless: The js thing? I'm doing that now, as much as I can, and I'll be sending out an email shortly to request some help. [10:44] gah, we really need to fix bug change conflicts [11:04] * bigjools identifies a 4-digit bug that will need to be fixed for derived distros [11:04] Morning, all. [11:05] allenap: The changes to the way that lp.js is built don't have anything to do with the error that I'm seeing on https://launchpad.net/launchpad, do they? [11:05] Uncaught TypeError: Cannot read property 'pillar' of undefined [11:06] gmb: no [11:06] gmb: allenap's changes deployd have not been [11:06] Ah, right. [11:06] Bugger, that means danilos and I have to Do Work. [11:06] What he said :) [11:06] Thanks anyway. [11:16] jml: lp:~tseaver/subunit/py3-hacks may interest you [11:17] lifeless: yeah, it deos. [11:17] henninge: Hi, I'd appreciate a review of https://code.launchpad.net/~rvb/launchpad/fix-missing-addseries-link/+merge/53219 [11:18] henninge: really trivial refactoring of a few tests. [11:26] rvba: I am happy to do that [11:26] henninge: thx [11:33] Does anyone have any thought on how useful it is to have a Subscribers portlet on a bug page? [11:35] allenap: I see a lot more stuff in my JS console today on lp.dev. Is that something to do with your changes? [11:36] gmb: Can you paste? In what environment? [11:37] bigjools: You want to ditch it? [11:37] allenap: Firebug or WebKit. Paste coming up... [11:37] bigjools: I think the direct subscriber list is handy... the structural subscribers not so much. [11:37] allenap: This kind of stuff: http://pastebin.ubuntu.com/580089/ [11:37] I agree with wgrant [11:37] it takes up loads of space and it's fairly useless [11:37] I'm with wgrant on that, though it might be interesting to know if someone has a structural subscription when adding them as a direct subscriber. [11:37] I want to be able to see the strucsub list. [11:38] But not always. [11:38] There should be a button or something. [11:38] gmb: Is this in dev? [11:38] allenap: Yes [11:39] gmb: That's probably because it uses the debug builds of YUI by default. That's a bit too noisy isn't it? That's readily fixable. If it's a problem I'll file a bug. [11:40] allenap: That would be great, thanks. Can you tell me how to make it STFU for the sake of the debugging I'm doing now? [11:41] gmb: No idea :) [11:41] gmb: Let me see... [11:42] allenap: I'm happy to prod at stuff until it shuts up, I just thought that you might know. Unless "readily fixable" is Norfolk-speak for "Eh, I dunno." [11:49] gmb: Can you try the following as a workaround? make clean_js; make JS_BUILD=min jsbuild_lazr; make JS_BUILD= -W jsbuild_lazr jsbuild [11:49] Sure. [11:50] allenap: That worked. Thanks. [11:50] gmb: Woohoo :) [11:50] gmb: I'll reply to my message to the list to let others know. [11:51] allenap: Thankee kindly. [11:56] gmb: Btw, if you s/min/raw/ then it'll unminify lazr.js too. [11:56] allenap: Cool, ta [12:03] rvba: Approved but with a few formatting issues that I'd like you to fix, please. [12:04] henninge: will do, thx. === henninge is now known as henninge-lunch === benji changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | firefighting: - | On call reviewer: henninge, benji | https://code.launchpad.net/launchpad-project/+activereviews === matsubara-afk is now known as matsubara [12:24] benji, are you up for a review? https://code.launchpad.net/~jtv/launchpad/bug-733245/+merge/53230 [12:25] jtv: sure [12:25] great [12:33] bigjools: I guess I'll need help from someone privileged to Q/A the creation of DSDs during package publication. [12:46] jtv: What sort of performance penalty does that entail? [12:57] wgrant: whatever it takes to compute base_version, basically, plus change [12:58] jtv: Erm. [12:58] Can't do that while creating the publication. [12:58] Oh sorry, right, I create jobs, not DSDs. [12:58] Right. How expensive is that? [12:58] My head was still in a different branch. :) [12:59] Shouldn't be very expensive… just create a tiny little record holding the distribution, distroseries, and a little bit of json that holds the sourcepackagename id. [12:59] Oh, and check for duplicates first. [12:59] Does it query for existing ones? [12:59] Right. [12:59] Yes [12:59] Hopefully that's cheap. [13:00] jtv: I'm done with https://code.launchpad.net/~jtv/launchpad/bug-733245/+merge/53230 [13:00] It's something we can add an index for. [13:00] thanks benji! [13:00] * jtv reloads [13:00] np [13:00] anyway knows anything about how LP loads JS and specifically, when/how does LP.links.me and LP.cache gets preloaded? (I see links['me'] is defined in lib/canonical/launchpad/rest/me.py through some event magic, but that doesn't really tell me how that gets assembled into JS) [13:00] henninge-lunch, adeuring -- is standup time now for you guys? Or in an hour? [13:01] * deryck suspects DST fail [13:01] deryck, Europe's got another two weeks of non-DST time, yay :) [13:01] ah, fun calendaring ahead then [13:02] :-) [13:04] deryck: I assumed the standup starts in 56 minutes [13:05] adeuring: ok, cool. Since abentley and I can't have it without you guys, we'll do it then. ;) :) [13:05] adeuring: we're okay to keep it at this time, until you and henninge-lunch join DST in a couple weeks. [13:05] deryck: well, I wouldn't mind to do it right now, but i think henning has lunvch right now [13:06] adeuring: no worries. Probably easier to keep it the same for you guys. [13:15] I'm on my way to bed, would someone mind forcing db-devel and mailing the list -- it failed to checkout source code. [13:15] deryck, hi, do you know if there is a special event that is triggered when LP data is populated in JS? (i.e. LP.links.me, LP.cache) [13:15] deryck, or, how can one ensure that his code runs only after that happens? (asking you because you have touched some JS lately, I understand that this may be inappropriate :) [13:18] deryck: is there a way to run a launchpad.dev instance using the un-minified javascript? [13:22] abentley: get latest devel and run `make JS_BUILD=raw clean_js jsbuild` [13:22] and thank allenap for that :-) [13:23] abentley: if you want more log output you can do "debug" instead of "raw." I think it does debug by default right now. [13:23] deryck: Cool. I just saw that too. [13:24] danilos: I don't think there is any event when the cache is setup. thumper added a bunch of event stuff for in page updates a couple weeks back, but I haven't looked at it yet. So don't know for sure. [13:25] deryck, right, so what I have is basically some page setup code that wants has a conditional on whether user is logged in (using LP.clients.me === undefined as the check); got any better suggestions for that? [13:26] danilos: I would have done it that way, too. [13:26] deryck, except that it doesn't work because it is undefined all the time, and gets populated later (or so it seems) :( [13:26] anyway, thanks, won't bother you any longer about this, I guess it's all the same for all of us :) [13:26] hmmm [13:27] danilos: ah, right. It's probably not populated until domready itself. So you're in a race with it. [13:28] danilos: if thumper's work didn't add and event for that. it would be pretty easy to add one to the client code and hook into it. [13:28] deryck, yeah, so what I want to do is have that code fire something like "lp-event" and than use that, but I don't even know where that code is :) [13:28] right [13:28] it's in lib/lp/app/javascript/client.js I think [13:29] danilos: yeah, that's it: lib/lp/app/javascript/client.js [13:30] deryck, yep, found it now, I was looking for clients.me stuff, when it's all about the "cache" [13:30] right [13:36] danilos: so it looks like this is setup manually in lib/lp/app/templates/base-layout-macros.pt. I would think a sniff for it would work. Did you check it as: LP.links.me === undefined ? [13:37] deryck, yes [13:38] danilos: after domready? [13:38] deryck, well, it works just fine if you are not inside domready event handler (i.e. after it really loads :) [13:39] danilos: ok, that was going to be my next question, if doing it after load mattered? if it works after load, then I'd do that. [13:40] deryck, right, that's what I want to do but just need to figure how to best do it [13:42] deryck, so, do you think it would be outrageous to fire something like "lp-ready" even in base-layout-macros.pt when all LP elements are loaded? [13:42] s/even/event/ [13:45] danilos: I think that would be fine. The problem you might have, though, is that the links and cache objects are constructed outside of YUI. So I'm not sure of the timing if you add a YUI block after them. Seems like it should work, though. [13:46] deryck, right, I'll try it out and see if it seems stable [13:46] danilos: ok, cool. good luck with it! [13:47] thanks :) [13:52] Project windmill build #48: STILL FAILING in 1 hr 9 min: https://hudson.wedontsleep.org/job/windmill/48/ [14:00] deryck, actually, domready was not the problem! we forgot to make the event handler for domready a closure, so it was run right after it was passed [14:01] deryck, I figured that out when I noticed that even with my event I was getting undefined === henninge-lunch is now known as henninge [14:08] danilos: ah, good catch. So that makes it simpler for you now, too! :-) [14:10] deryck, yeah, ta [14:17] I'm working on Windmill today. See if I can get it stable enough to re-enable. [14:17] Just FYI, for anyone watching the Jenkins builds and concerned. [14:19] bac: ping. [14:19] hi jcsackett [14:19] hi, bac. so, about that lp.registry.pillar. [14:20] once upon a time, that was using a separate "activate_collapsible_div" function defined in a file called pillar.js [14:20] but it was later realized that activate_collapsible could just be refactored to allow a more general case. [14:21] that refactor done, i appear to have then forgotten to kill that call in the template, and didn't see an error b/c the functionality i was looking at still worked. [14:21] so, you should be able to totally whack that in what you're looking at and see no ill effect, bac. [14:21] jcsackett: understandable. [14:21] jcsackett: ok. [14:21] i'm landing a branch today so i'll include the whackage [14:21] awesome. [14:22] and sorry for the confusion on this part; i just had to look 40 revisions deep in a really confused branch of mine to figure it out. :-) [14:25] bac: i replied to the email thread so the rest of your team is up to date. [14:26] thanks again [14:26] no worries. my mess in the first place, sorry you stepped in it. :-) [14:26] adeuring: I am here, btw. [14:26] ;) === james_w` is now known as james_w [14:29] adeuring: nu aba [14:47] adeuring: so this model method you want. I think it could be a method on TranslationMergeJob that accepted a Packaging and returned the JobStatus of the next pending or running job. It would return None if there was no matching job. How does that sound? [14:49] abentley: right, that would work. But we start from a package context, so we would also need a package method "list pending translation merge jobs" [14:49] well, ok, that coudl also be done in browser code... [14:50] adeuring: Why do you want a list? [14:50] adeuring: I meant that it would be a classmethod on TranslationMergeJob. [14:50] abentley: I just thought that we basically do a SQL query, and that returns a sequence [14:51] and right, a classmethod for TMJob would be fine. [14:51] rvba: I replied to your emails. I hope I helped. [14:52] We would do an sql query, and that would return a sequence, but you don't want a sequence, so why are you asking for a method that returns a sequence? [14:52] sinzui: I'm reading them right now [14:53] sinzui: do you want to talk to Rob about the ~registry thing? (the branch is really to land but I really can wait for the final thought on this ;-)) [14:53] No [14:53] sinzui: ok then === matsubara is now known as matsubara-lunch [15:27] sinzui: (question unrelated to the whole registrant thing): is there a reason why "make lint" does not use format-imports to warn about imports needing to be formatted? [15:27] rvba: no reason. [15:28] rvba: I certainly could. and do the copyright update too [15:28] s/I/It/ [15:28] sinzui: I'll do it then, and thus take this opportunity to lean a little bit more about the build system [15:29] sinzui: copyright update? you mean automatically warn about the date in the header? [15:30] rvba: utilities/update-copyright will update all the dates in the changed files if they need it [15:30] I like the idea of "make lint" not doing anything by itself but warning, and maybe giving commands to be executed to do the actual stuff ... [15:31] sinzui: should the format be done automatically or just warn (like make lint already does with the sample data files)? [15:33] benji: can you review https://code.launchpad.net/~bac/launchpad/accordion-style/+merge/53259? [15:33] bac: sure [15:33] benji: great, thanks. i'm going to have to be gone a bit but can answer questions when i return [15:34] rvba: It would be lovely if it could do it automatically. I think that would be surprising though. The the scripts behave differently when there are uncommitted files in the tree. I think lint should warn when when everything is committed. [15:34] k [15:36] sinzui, hi, fwiw, I think the sharing stuff you CCed jtv and me about is best known by henninge and/or deryck (it seems to be the new stuff they worked on) [15:36] sinzui: sounds strange to break existing habits though ... why not create a "make format" that would do this, then if new tools are added to the tool set, they could be added here. [15:37] danilos: okay, i will do that now. Thank you. [15:37] rvba: +1 `make format` that does code cleaning [15:37] sinzui: ok [15:38] rvba: our linter uses pocket-lint which also has code cleanup features like fixing whitespace, line endings, doctests, css etc... [15:39] sinzui: I saw that you are the driver for the project yes, that's why I was asking you [15:44] sinzui: do you want to have a call today? [15:45] I have nothing to bring today. Maybe next week? [15:45] sinzui: sure. [15:47] rvba: okay. pull tip. I landed a fix for py 2.7 recently. I have not packaged it. I thought I wold do it over the weekend, but I needed to not hack for a could days to collect my mind. [15:49] sinzui: you mean in pocket-lint? [15:55] rvba: yes. Lp is using an older version. [15:56] latest revision was on 2011-03-03 [15:58] rvba: yes [15:59] jcsackett: do you have a few minutes to discuss my branch to enable the person merge job: http://pastebin.ubuntu.com/580164/ [16:01] sinzui: ten minutes, then sure. [16:01] okay thanks [16:02] hey deryck, can you by chance point me to some JS somewhere that I can decipher that manipulates something that is exported as a CollectionField, or in some other way point me to figuring out the preferred way to delete something from a CollectionField in js? [16:02] heh, sorry for the convoluted sentence [16:02] heh, np. thinking.... [16:02] didn't sleep well last night :-/ [16:07] Looks like maybe we don't do that now, and we need to add a method on Collection in client.js to do it "right"? [16:09] gary_poster: was just about to reply with that same statement. I don't see that we do it anywhere. We mostly fetch objects directly and mess with them. [16:11] ok deryck, thank you! [16:11] np! [16:13] sinzui: i am on mumble. === deryck is now known as deryck[lunch] === matsubara-lunch is now known as matsubara === m4n1sh_ is now known as m4n1sh === deryck[lunch] is now known as deryck [17:43] An indirect member of a team that owns a private branch can't access the private branch. Shouldn't the user be allowed? Is there a restriction for indirect members? [17:44] deryck: I've gotten though the display side of doing the checklist, about to move onto the webservice part. I sent you an email with some screenshots. Just wanted to get your take on it. [17:44] abentley: yes, just about to respond.... looked at the screenshots and they looked great. Just wanted to peak at the code before I responded. [17:44] deryck: cool. [17:50] abentley: yeah, I think this is good. Any specific questions? [17:50] deryck: how do I test the controller, especially once I wire it up to do AJAX? [17:52] deryck: Is there a better way to set/unset the "unseen" class? [17:54] abentley: ok, so re: testing with AJAX, look at Y.Mock. http://developer.yahoo.com/yui/3/test/#mockobjects And lib/lp/soyuz/javascript/tests/lp_dynamic_dom_updater.js is an example. [17:55] abentley: and as for the unseen stuff, I think that's fine what you have. I think I would call it toggle_unseen, or something like that, just to be clear what it does. But it's a fine approach to do it that way. [17:55] we always use add/removeClass [17:56] deryck: I wouldn't call it toggle_unseen, because "toggle" to me means that it changes the state to the opposite every time you call it. This one sets the state. [17:57] abentley: ok, but it is unsetting unseen, i.e. making the thing seen if needed, yes? [17:57] deryck: Yes. The state is the presence or absence of the "unseen" class on the element. [17:59] abentley: so that you can use one function to turn the class on or off, right? set_unseen, to me, implies we're only ever making the thing unseen. Maybe toggle isn't the right word, but I think the name could be clearer. [17:59] abentley: but this is a minor thing, obviously. [18:00] deryck: I'd like to make the name clearer, but it's hard to express what it does succinctly. [18:00] abentley: fair enough [18:01] set_or_remove_class_unseen_depending_on_state ;) [18:01] but since it's js, we can call it -- sorcudos [18:01] deryck: he he. [18:03] deryck: I could invert the logic and call it set_visibility. [18:04] indeed. that would work. [18:05] so much nicer than my name. [18:12] deryck: done. [18:12] What about mocking the DOM for those Y.one calls? [18:12] deryck: ^ [18:13] abentley: on call now, sorry [18:13] deryck: ack. [18:28] abentley: so mocking the DOM.... do you mean using Y.Mock, or just having some similar HTML in the test html file to interact with? [18:29] deryck: Oh, I see. I should be able to just plunk the same code in the test html file, and then interrogate the test file's DOM. [18:30] abentley: yes, exactly. That's how we usually do it. [18:30] deryck: Great. [18:31] deryck: btw, there's already a function to add/remove arbitrary classes on Y.Node: toggleClass. [18:31] abentley: ah, nice. I didn't even know that. so much there. [18:32] deryck: By default, it changes the state to the opposite, but you can specify True or False. [18:32] cool [18:32] moin moin [18:35] allenap: hey [18:35] allenap: is 12584 ok now? [18:36] allenap: if not, how long are you proposing we wait to be confident ? [18:36] deryck: are you able to qa rev 12586 ? [18:37] lifeless: yes, going to get it before I EOD today. starting in about 10 minutes on it. [18:40] deryck: :) [18:42] I'm not sure if it was mentioned by number, but I'm hoping to resolve bug #734995 soonish for a project this week. [18:42] <_mup_> Bug #734995: access denied for group branches (canonical-isd-hackers/oops-tools/isd-oops) < https://launchpad.net/bugs/734995 > === matsubara is now known as matsubara-afk [19:51] deryck, danilos: I really wanted to get to add a "lp:user:loggedin" event [19:52] with the idea that we had a single check point [19:52] and the rest of the code just used that event [19:52] yeah, that would be cool [19:52] then, if we ever got around to it [19:52] we could have an ajax login [19:52] and have the page morph [19:54] Let's change login to sign in first so that the link matches the words on the SSO pages [19:58] * thumper goes to make a mega-coffee [20:04] sinzui: I haven't had a chance to review that email you sent. Long queues today of reviews, questions, etc. I'll look tonight or early AM tomorrow. [20:04] deryck: thanks. rvba is looking for confirmation that my suggestion is sane. [20:04] ah [20:04] sinzui, thanks so much for chasing down those test failures. i'm looking at the code now [20:06] later on, everyone! [20:07] leonardr: I think I should have sent my changes to ec2. I hope I did not break anything in the so-called fix [20:07] sinzui: ec2 land? [20:08] those test failures don't look related to the bug that was filed. i'll try to reproduce [20:19] leonardr: `utilities/ec2 test launchpad=devel` will test and send you the report. [20:20] sinzui: the remaining error is a problem in the way the test is written [20:20] you are explicitly passing in None for the 'version' argument [20:22] \o/ I suck [20:24] sinzui: http://pastebin.ubuntu.com/580280/ [20:24] want me to review the rest of your changes? [20:24] leonardr: I should have known to pass the version...I told users on #launchpad to do that last week [20:25] leonardr: sure [20:25] sinzui: well, you fixed a ton of bugs i never would have been able to fix, so don't feel bad [20:26] leonardr: I *think* I fixed an oopse, but I could not find an example. The change I made to the bug nomination view implies if there is ever a validation error on the view, it will oops instead of showing the user how to fix the data. [20:27] I should look again before you land the branch [20:29] matsubara-afk: ping (oops-tools) [20:32] sinzui: problem #1. it looks like we both added the same lines to security.cfg? [20:33] oops [20:33] i put mine in a block at the bottom because it seemed really specific to the one task [20:33] and you intermixed yours with all the others [20:33] i could go either way but we need to pick one [20:35] flacoste: 7574479 [20:35] flacoste: https://devpad.canonical.com/~lpqateam/ppr/lpnet/latest-daily-categories.html [20:36] mwhudson: ping [20:38] sinzui: why did you remove the entirety of bugtask-target-link-titles? is it redundant with another test? [20:38] ah, you wrote unit tests instead [20:38] ok [20:38] thumper: pong [20:39] mwhudson: want to review a blueprint branch for me? [20:39] thumper: how complicated is it? [20:39] pretty simple, https://code.launchpad.net/~thumper/launchpad/blueprint-dependency-vocabulary/+merge/53192 [20:39] lifeless: I think it's okay. I've heard nothing all day, and I've been around various bits of qastaging. I'll mark it qa-ok. [20:41] thumper: yeah alright i'll take a look [20:41] mwhudson: thanks [20:41] my lp tree is a bit out of date and i want to look at it in meld, so i'll be a few minutes [20:41] mwhudson: for some reason, no-one likes blueprints [20:41] prod me if i seem to have forgotten :) [20:41] sinzui: what does changing the layer from LaunchpadFunctionalLayer to DatabaseFunctionalLayer accomplish? is it just cleanup? [20:42] thumper: i can't possibly imagine why, the code quality is so amazing! [20:42] mwhudson: what? not even hacking on LP for fun? [20:42] leonardr: yes, I had to disamantle the test to discover which conditions were not valid with sane sample data and factory. [20:42] leonardr: the tests run faster when they do not setup, clean, and teardown the librarian [20:43] allenap: thanks [20:44] leonardr: also that doctest I removed was also being run twice because it was implicitly loaded by test_doc, and explicitly loaded in the module I added the replacement test. Everything ran much faster once I test exactly what the view did [20:44] yeah, i noticed that duplication [20:45] sinzui: why did you remove the "Handling IntegrityError" doctest? [20:45] leonardr: doctests do not test error condition. That is the domain of an implementation test... [20:46] leonardr: we cannot get to that DB integrity error when the view ensures valid data..We do not permit integrity errors, so there should not have been a test to demonstrate the view was unfinishd [21:02] huh, my launchpad repo just hit 100k revs i think [21:02] the repack is taking a while... [21:03] sinzui: we had a doctest checking the view was unfinished? /me facepalms [21:04] lifeless: yes, it was quite a surprise. leonardr's branch that validates data before we apply revealed a lot os badness [21:05] sinzui: on closer inspection of the diff, i think there are only 2 duplicate entries in security.cfg: binarypackagebuild and binarypackagename for [processmail] [21:05] hmm [21:05] I wish I could close popup diffs :) [21:06] leonardr: just remove my additions. Sorry about the confusion [21:06] np === benji changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | firefighting: - | On call reviewer: - | https://code.launchpad.net/launchpad-project/+activereviews [21:11] I wonder if any one actually uses the +deptree view [21:11] leonardr: mumble? [21:12] sinzui: ok, i think this is ready: lp:~leonardr/launchpad/sinzui-106338 [21:12] thumper: yes [21:16] lifeless: can you tell me if anyone ever goes to a blueprint +deptree page? [21:17] sinzui: take a look, and i'll try landing again? (it can wait until tomorrow if you want your test to finish first) [21:17] leonardr: I am looking now [21:17] great [21:18] thumper: ppr over a month should be a decent indicator [21:18] thumper: https://devpad.canonical.com/~lpqateam/ppr/lpnet/latest-monthly-pageids.html [21:30] leonardr: r=me with these trivial changes: http://pastebin.ubuntu.com/580310/ [21:32] Morning [21:33] hi huwshimi [21:33] hi flacoste? [21:34] hi poolie [21:34] poolie: call time? [21:34] jml: Good evening [21:35] huwshimi: hi [21:35] huwshimi: I'll just grab some yoghurt & will be right with you. [21:35] jml: Sure [21:43] flacoste, yes, hi [21:44] poolie: i'm on skype [21:45] hm [21:46] sinzui: still around? === lifeless changed the topic of #launchpad-dev to: Performance Tuesday | 10:55 -!- Topic for #launchpad-dev: https://dev.launchpad.net/ | firefighting: - | On call reviewer: - | https://code.launchpad.net/launchpad-project/+activereviews === lifeless changed the topic of #launchpad-dev to: Performance Tuesday | https://dev.launchpad.net/ | firefighting: - | On call reviewer: - | https://code.launchpad.net/launchpad-project/+activereviews/ [22:01] :( We are turning into Java. [22:01] wgrant: we are? [22:02] wgrant: my irc client decided to disconnect so i missed the lead up to your java comment - why do you say we are turning into java? [22:02] lifeless: We now have external projects included in our source tree with Launchpad-specific changes. [22:02] wgrant: which project? [22:02] why is that java-esque? [22:02] lib/lp/contrib/javascript/yui3-gallery/gallery-accordion/ [22:03] wallyworld: Java projects are notorious for including all their dependencies in their trees. [22:03] move it to lazr-js ? [22:03] wgrant: so are c++, C, python, ruby projects IME [22:03] wgrant: not the ones i've worked on :-) [22:03] lifeless: btw, did the multiple versions of python packages discussion go anywhere? [22:04] bac: hi brad, are you able to +1 the recent mp you looked at for me now that i have done the requested changes? [22:04] wallyworld: thanks for the reminder. i'll look now. [22:04] thanks [22:04] jelmer: no, I didn't manage to get the thought leaders to step out of their worldview [22:04] lifeless: :( [22:04] jelmer: feel free to jump in on debian-python [22:05] wallyworld: done. [22:05] bac: thank you! [22:05] I've shelved it for now, will probably come back to it, or perhaps we should migrate more massively and just avoid the issue entirely [22:09] lifeless: The big problems for Ubuntu are Java projects. And Chromium. [22:35] hi wgrant, lifeless [22:35] hi poolie [22:36] did i understand you correctly in my last message on bug 716174? [22:36] <_mup_> Bug #716174: api error messages should be machine-readable < https://launchpad.net/bugs/716174 > [22:37] hi huwshimi do you want o mumble today? [22:38] Morning poolie. [22:42] poolie: oh bah, I was reading mail and just closed it again [22:42] poolie: hadn't seen your irc comment [22:42] poolie: we may be talking past each other; voice? [22:45] james_w: ping [22:46] lifeless, sure! [22:47] pots or skype or mumble? [22:48] skype is easiest [22:49] mwhudson: can you think of any current blueprints that have linked bugs? [22:49] thumper: not off the top of my head, no [22:49] hmm... ok [22:49] mwhudson: did you take a look at the vocab branch? [22:49] thumper: yes, bzr is distracting me [22:49] thumper: i'll have a review in a few minutes [22:51] sinzui: Sorry I completely missed your message [22:51] mwhudson: ok, thanks [22:52] sinzui: Have you already finished? [23:00] thumper: how can _is_valid_candidate be called with something that isn't a spec? [23:01] mwhudson: shitty url traversal? [23:01] mwhudson: it handled the None case well [23:01] probably never [23:01] thumper: did you look at how _spec_from_url works? [23:01] (it's horrible, yes, but it will only return a spec) [23:01] only briefly cause it looked shitty [23:02] probably paranoia on my part [23:02] ok [23:02] can you remove that please? :) [23:02] I originally had just the none check [23:02] sure [23:04] i'm getting a 'please try again' page talking to lp [23:04] in fact https://bugs.launchpad.net/bzr/+bugs?field.searchtext=winsshd&orderby=-importance&search=Search&field.status%3Alist=NEW&field.status%3Alist=INCOMPLETE_WITH_RESPONSE&field.status%3Alist=INCOMPLETE_WITHOUT_RESPONSE&field.status%3Alist=CONFIRMED&field.status%3Alist=TRIAGED&field.status%3Alist=INPROGRESS&field.status%3Alist=FIXCOMMITTED&field.assignee=&field.bug_reporter=&field.omit_dupes=on&field.has_patch=&field.has_no_package= is per [23:04] sistently timing out [23:06] poolie: Timing out, or "please try again"ing? [23:06] It's working for me. [23:06] (although it's slow... 9s) [23:07] We are mid-rollout, but it shouldn't happening that much... [23:12] thumper: revewied [23:12] mwhudson: thanks [23:13] thumper: usual nit-picking :) [23:13] :) [23:19] wgrant, both oopsing and giving the proxy error page [23:19] huwshimi, just a thought on the private bug thing [23:20] which is that the stackoverflow ribbons are point-in-time notifications, and after you've read them it's reasonable to dismiss them [23:20] whereas if something's a static property of a bug [23:20] and potentially coming up on every bug page you look at all day [23:20] poolie: back [23:20] it may get annoying [23:21] lifeless, let me just finish this post [23:23] wgrant, timed out again [23:23] https://lp-oops.canonical.com/oops.py/?oopsid=OOPS-1899K1764 [23:23] Thanks. [23:23] Confirmed. [23:25] * wgrant is waiting for it to sync. [23:30] lifeless, curl -v https://code.staging.launchpad.net/~maria-captains/bzr/diffoptions/+merge/52325 [23:32] cOOPS-1899STAGING65 [23:32] OOPS-1899STAGING65 [23:40] lifeless: I think your FTI changes have made bug searches significantly slower. See poolie's OOPS (it's finally synced) [23:41] poolie: 'X-Lazr-OopsId [23:41] wgrant: that would be win, wouldn't it [23:42] wgrant: Time: 3684.797 ms (staging) [23:43] lifeless: The cost estimate with Bug.fti is 10x the one with BugTask.fti. [23:45] I guess it has to load a lot more Bugs. [23:45] wgrant: which is freaking odd as it was an || before [23:45] wgrant: 2606.15..2606.16 [23:46] (I'm looking at the count(*) to start with [23:46] I am too. [23:46] Index Scan using bug_fti on bug (cost=0.00..2306.35 rows=42 width=12) (actual time=134.970..469.008 rows=2 loops=1) [23:46] Index Cond: ((fti)::tsvector @@ '''winsshd'''::tsquery) [23:47] Oh, it's doing that first? [23:47] On mawson it does bugtask first, and both are <400ms once the cache is hot. [23:48] yes, it does bug_fti first [23:50] -> Index Scan using bug_pkey on bug (cost=0.00..54.26 rows=1 width=12) (actual time=0.015..0.015 rows=0 loops=2709) [23:50] Index Cond: (bug.id = public.bugtask.bug) [23:50] Filter: ((bug.duplicateof IS NULL) AND ((bug.fti)::tsvector @@ '''winsshd'''::tsquery) AND ((NOT bug.private) OR (SubPlan 1))) [23:52] -> Index Scan using bugtask__product__bug__key on bugtask (cost=0.00..6.24 rows=1 width=16) (actual time=0.033..0.034 rows=1 loops=2) [23:52] Index Cond: ((public.bugtask.product = 1186) AND (public.bugtask.bug = bug.id)) [23:52] Filter: ((public.bugtask.status = 10) OR ((public.bugtask.date_incomplete IS NOT NULL) AND (public.bugtask.status = 15)) OR (public.bugtask.status = 15) OR (public.bugtask.status = 20) OR (public.bugtask.status = 21) OR (public.bugtask.status = 22) OR (public.bugtask.status = 25)) [23:52] wgrant: \d bug [23:52] wgrant: \di+ bug_fti [23:52] lifeless: "bug_fti" gist (fti) [23:53] No similar index on bugtask_fti, though... [23:53] Schema | Name | Type | Owner | Table | Size | Description [23:53] --------+---------+-------+----------+-------+--------+------------- [23:53] public | bug_fti | index | postgres | bug | 575 MB | [23:53] wgrant: indeed, it was missing on prod a few months back [23:53] wgrant: one of the first hints that fti was whack [23:54] wgrant: the query doesn't use bugtask_fti now, does it ? [23:55] lifeless: I doubt it. [23:55] Well, the new query couldn't use it. [23:55] The old one could have. I don't know if it did.