[00:00] wgrant: heh, ubikey [00:00] once in a while bump the dippy thing [00:01] wgrant: Twitch. [00:01] % grep -c 'pdb.set_trace' lib/lp/bugs/mail/bugnotificationrecipients.py [00:01] 1 [00:02] StevenK: Bug #1024148 [00:02] <_mup_> Bug #1024148: Branch.transitionToInformationType breaks when making a subscriberless branch private < https://launchpad.net/bugs/1024148 > [00:03] StevenK: Oh wow, that's nice. [00:27] StevenK: got a sec? I think I blew up buildbot, but my ec2 test run passed so wonder if you can help me figure out what the difference is and what I can do to fix [00:29] my understanding is that this runs a make check so if I make clean_buildout and make check locally and it works I should have been ok? [00:39] rick_h_: make check will take ~ 5 hours [00:39] rick_h_: Right, the buildbot slaves don't have convoy [00:39] StevenK: right but what I mean is that the buildbot fail is about convoy, but it's in the download cache [00:40] ah bah that's right...I forgot it's packaged [00:40] Assuming convoy is available everywhere is a recipe for disaster [00:40] crap...ok...looking [00:41] +jsbuild: $(PY) combobuild jsbuild_widget_css $(JS_OUT) [00:41] jsbuild very deliberately didn't depend on combobuild before :) [00:41] right, but combo-rootdir drops the YUI code into the build dir now. Since it worked locally with make check I thought I was clear [00:41] I'll move the meta.js to make run and should fix it [00:42] rick_h_: Why did you need to move combo-rootdir? [00:42] rick_h_: So local has convoy, as does ec2. buildbot does not. [00:43] StevenK: right, gotcha. [00:43] wgrant: so with the policy of 'all things come from system packages or python packages' YUI is served from a python package now. I set the combo-rootdir to extract that out when it runs [00:44] and it needs to run before the launchpad.js generation now [00:44] That policy is not sensible for non-Python things like YUI [00:44] where before yui was put into place by buildout [00:44] Right [00:44] Which is probably correct. [00:44] lifeless: opinion pls [00:44] hi [00:44] 'sup ? [00:45] Repackaging yui tarballs as a launchpad-yui egg seems pretty insane. [00:45] my understanding in talking with sinzui deryck and company that this was the preferred path. [00:45] They might think they prefer it, but they don't. [00:45] that anything like the sourcedeps is to be deprecated and that all things much come from system or python packages [00:46] and since I need to be able to run multiple yui versions at once for testing, I setup a python package that dumps any contained YUI versions to the build dir [00:46] sorry, whats the full story? [00:46] Dumping multiple versions of yui into a custom tarball just to make it an egg is entirely crazy. [00:46] rick_h_: source*code* is deprecated, sourcedeps is not [00:46] lifeless: Yesterday we had a custom buildout rule which took a normal upstream YUI tarball and turned it into something Launchpadish [00:47] lifeless: Today we instead have a Launchpad-specific egg with two versions of YUI unpacked within it [00:47] Change utilities/sourcecode.conf == bad, change versions.cfg ==okay [00:47] I don't see this as an improvement. [00:47] Bah, I can't call BugNotificationRecipients.update() with a resultset. :-( [00:47] wgrant: the improvement is that this package has make commands to help auto extract only the build bits from the YUI download, etc [00:48] and then it dumps all versions it contains into the build dir without needing to update any list/config for them [00:48] Right, a helper like that is sensible [00:48] and the only thing that matters is that build/js/yui is symlinked to the version in versions.cfg [00:48] Embedding the YUI codebase is is not [00:49] well based on conversations in pre-impl it was sort of based on the lazr.js model and some other 3rd party modules I found [00:49] rick_h_: so, we want to reduce the number of dependency systems in use, that is correct. [00:49] http://pypi.python.org/pypi/launchpad_yui/0.1 [00:50] This doesn't reduce the number of dependency systems [00:50] It adds a new one: embedding large third-party codebases in a Launchpad-specific public egg [00:50] rick_h_: however, with current deployment logic and packaging tech, that means we'll end up with a) debian package for firefox, rabbit, pgsql etc; b) buildout versions.cfg entries for python packages and anything else that buildout can deliver. [00:50] It happens to sit behind something like looks like one of our other dependency systems [00:50] But it isn't. [00:51] right, well because JS doens't have a good dependency system in LP, so I shoe-horned my way into an existing one [00:51] Which is terrible [00:51] rick_h_: We've had some friction in the past using 'make YUI into an egg' approaches; can I ask what problem you were trying to solve ? [00:51] We already had it fairly cleanly shoehorned, didn't we? [00:51] I don't understand what was wrong with the old way. [00:51] StevenK: wgrant: Can you guys chillax a little so we can understand whats going on? [00:51] lifeless: so the problem was 'how to more easily maintain/manage multiple yui versions in LP' [00:55] rick_h_: can you expand on that a little? what was giving you grief, what do you want to be able to do (and how does this do it) [00:55] rick_h_: I realise you've probably discusse that with deryck & sinzui already, but I can't really give an opinion till I get a handle on all the friction :) [00:56] ok so it's a couple parts of me not getting it initially (I realize now) and wanting to make installing/testing newer versions of yui easier. [00:56] the idea was that we need to be able to drop several versions of YUI into the build/js dir and use the feature flag to switch which one you use [00:57] we kind of had that, there's some buildout stuff to install 3 versions that are in the download-cache of yui which I didn't quite get until today [00:57] we'll need that for production too [00:57] otherwise race conditions galore happen. [00:57] and in discussions the 'idea' seems to be that things must either be a python package or a system package going forward [00:58] that seems to have been taking the idea too far from what I'm hearing now though. download-cache is still ok with non-python packages [00:58] so the yui zips in there would have been ok [00:58] download-cache is just a holding place; the key thing is to get away from the 4! we have today. [00:59] so with the understanding that YUI has to come in via python package or system package, I thought a python package was easier to deliver multiple versions and setup http://pypi.python.org/pypi/launchpad_yui/0.1 [00:59] while we use buildout, and buildout can do more than just eggs, we're fine with zips in download-cache, yes. [00:59] today I landed changes to extract YUI from that package vs the buildout download cache, I did that in the current combo-rootdir bin script, and that needed to run now before launchpad.js is built for non-combo loader users [01:00] so I moved around the make deps so that jsbuild required combo biuld, which required convoy and the buildbot slaves don't have that, so I broke buildbot [01:00] That pypi project is probably a great place for scripts to do things like download the latest zip and put it in download-cache, to live. [01:01] rick_h_: thanks. [01:01] so heres what I think: shovelling one package into another as a transport mechanism is necessary sometimes but usually at best somewhat unpleassant [01:01] so I'm trying to see 1) what to do to unfubar buildbot and 2) if I should be rethinking the changes all together. [01:02] that strategy tends to run into several classes of headache: versioning is tricky if you want it to match at all; authentication of the transported thing is often hard or at the very least nontrivial [01:02] and lastly its usually surprising for everyone that encounters it. [01:03] rick_h_: do you have any ideas about how we manage syncing and using the gallery widgets going forward ? [01:03] (this may seem like a non sequitor, but its very related :)) [01:03] so that's a seperate issue at the moment. This is only for the base YUI library. I've started conversations with others on the syncing, but there's not currently an acceptable answer yet [01:04] honestly, my pitch to deryck was to run our own gallery.yui.com but js.canonical.com that could be https and shared modules for all teams. Since modules are versioned, they could be kept and updated in a single place so all could follow dev/what's available. [01:04] It seems like the same problem to me: we have code in a different *space (language/name/dependency - everything), that we want to consume easily and reliably and upgrade from time to time, and possibly fork from time to time. [01:04] however, that's a BIG undertaking [01:05] since it required infrastructure and someone to shepard/manage things [01:05] it also doesn't give any assistance towards offline development, offline testing and local forking [01:05] lifeless: you're right in that it is, but as I said, there's no 'great' answer yet so I admit that this python package setup was hackish, but kind of an the immediate means to the end [01:06] sure, I'm not critiquing it [yet] :P :) [01:06] lifeless: well, the way the yui gallery works is that it's a single repo, anyone can checkout and serve [01:06] much as you checkout yui itself, and put it into a combo loader server [01:07] by checkout, do you mean 'grab a tar' or 'git clone' ? [01:07] but yes, it's not perfectly worked through for sure. There's a balance on duplication of effort and visiblity of a central location vs the distribution of things to offline/individual running [01:07] git clone [01:07] ok [01:07] https://github.com/yui/yui3 you clone that and get it all [01:07] and updates are done by forking their repo, adding your new module, and requesting they merge it back [01:07] so, with all that in mind [01:08] do you think we should handle widgets the same as base YUI ? [01:09] ideally, it would be nice [01:09] are there any reasons to handle them differently ? [01:10] just beacuse the yui libary is not apt to change as often, and is a single part vs many modules [01:10] there's a manner of scale when you consider managing a couple of versions of one dep, vs couple of versions of many deps [01:10] and I don't have the same issues of making existing code visible to teams, updates sync'd, etc with YUI base as I do any modules [01:11] I don't follow those issues; sorry to keep doing this - but can you expand on them please? [01:12] sure, so let's agree that everyone is using YUI and knows where it is. If they need JS, they know what to get and where to go get it [01:12] and it's a pull only use [01:12] if a new version comes out, they pull it down [01:12] the base YUI ? [01:12] right [01:12] why is it pull only? Is it bug free? [01:13] well, sure there are bugs, and you go through their system, get them updated, pull the new release. I've not seen us keep a patch against YUI anywhere so far [01:13] not saying it's not possible, but not something experienced in work so far [01:14] so for the base YUI it's "usually" a pull only of maybe 2 or 3 versions (current running, next version to test with, keeping an eye on a future preview release) [01:15] while wigets/gallery code needs to be made visible to teams. "Is there a module for this?", they need to be able to update those, push changes without breaking backward compatiblity for other users, and there's many more as teams develop new JS modules [01:16] I don't get the difference [01:16] when you say visible to teams, is YUI base not visible to teams? [01:16] and then there's infrastructure, we don't test YUI downloads, but we'd have to test and document gallery items/etc [01:16] YUI base is because they all know where to look [01:16] how many canonical teams know of the various YUI modules other teams have written [01:17] ? [01:17] this is the main reason I hope to one day get together a centralized area for YUI modules done like the kitchen code on the -tech mailing list recently [01:18] landscape mentioned a nice mock tool they use in testing, but I've got no idea that exists to be able to share/reuse that [01:18] wallyworld: Could you find some time to review https://code.launchpad.net/~wgrant/launchpad/edit-stacked-information-type/+merge/114767? [01:18] sure [01:18] rick_h_: I don't understand why modules we'd handle ourselves but base we'd handle by collaborating closely with upstream [01:18] rick_h_: I'm sure there is a key thing I'm missing :( [01:19] I'd think it was purely that we're more hands on with modules, while 99% of the time hands off on YUI base [01:19] 99% of the time YUI base is r/o while modules we dev are very write heavy with docs/tests/sharing [01:20] so you're saying that we can block a project waiting for a fix to yui base, but we want to run a local fork for changes to a module (whether we created the module or not) [01:20] you'd use memcache all the time for very read heavy uses, but would you stick your writes in there? :) [01:20] rick_h_: thats called 'redis' :P [01:20] wgrant: Bah, I keep distracted by my QA [01:21] well, I think we'd look at a system to carry a temporarity patch or else build a module that patched it for us [01:21] gallery-patch-bug1234 and then use that until the next YUI version came out with the fix [01:21] and then all of our teams would gain access to that patch module while we worked with upstream [01:21] wgrant: can you add a screenshot to the mp? [01:22] rick_h_: so while I accept that it may happen *more often*, that seems like a reason to run the same system as yui base to me: so that there is no surprise for dealing with the time when yui base is the thing that needs fixing. [01:23] rick_h_: by run the same system I mean the dep/deploy/dev story around yui modules/yui base. [01:23] lifeless: right, and that's fine. However, from my conversations, the dream of a shared JS area is so far away, I'm working around that for the time being [01:23] and trying to work within the current dev environment to get LP caught up to the latest YUI, make it easier to test new versions, and keep the gallery modules we've subsumed where they are for the moment [01:24] sure [01:24] wallyworld: It looks like https://code.qastaging.launchpad.net/~canonical-launchpad-branches/lp-production-configs/lalala/+edit but with fewer information type choices [01:24] note that nothing you've said above speaks 'shared JS area' to me. [01:24] now, when we get to a good answer for the gallery code, I'm all for revisiting the YUI base story into that lifeless [01:24] wallyworld: The UI hasn't changed. Just the set of choices [01:24] so theres still at least some causal link you need to help me understand :) [01:25] wallyworld: In general the only private stacked-on branches will be Proprietary in Proprietary projects, so there'll only ever be one choice. [01:25] lifeless: sure, so I don't see a good way to manage and expose modules built by different teams than having a shred JS setup of some sort. Right now I'm told we're to try to push stuff up to the YUI gallery, but as we can't use that to pull/download from at the moment, it's a push only setup [01:25] wgrant: ah right thanks. i had just read the covering letter and didn't quite grok the change [01:25] rick_h_: why can't we use that to pull or download from ? [01:26] lifeless: well currently LP uses I think 2 gallery components, and we don't want to pull down all of hte gallery (size/complexity), and we need to be able to get whatever code into our download-cache, so it would be a pain to keep that up to date/in sync [01:27] how big is all of the gallery (size on disk, git clone time) [01:27] lifeless: we also only want the build files, not the src/docs/etc. [01:27] wallyworld: It both reduces the amount of code we have for this unlikely case, and allows users to fix conflicts if they arise (eg. because the stacked-on branch changes type) [01:27] lifeless: the git clone is approx 64MB [01:28] lifeless: the build directory of only production files is 21M [01:28] rick_h_: you proposed cloning it al for a shared area, but that will also require devs to have a full copy etc, so I don't understand why you'd say we *don't want to pull...* [01:28] wgrant: i think though we decided to disallow a stacked on branch changing type to private if a public branch was stacked on it? [01:28] lifeless: right, as I said, we've not come to a satisfactory answer yet on that front [01:29] wallyworld: Ah, yes, so that particular case probably can't happen. [01:29] lifeless: and while a dev can take a download hit, doing it for every build/etc seems something to avoid [01:29] sure, but why would we do it on every build/etc ? [01:29] we don't bzr pull on every build/etc. [01:29] lifeless: but agreed, there's work to be done on that front which is why I'm putting it off :) [01:29] I mean. [01:29] lifeless: true, I guess download-cache is updated, but not redownloaded [01:29] You'd have to *write code* to pull etc on every build. [01:30] lifeless: so we'd have to have something like that for the gallery/JS code [01:30] wgrant: with the hidden types code, will the order of the radio buttons be messed up ie the (un)embargoed security choices come at the end [01:30] here are the computed (vs root cause) constraints I know of that are imposed on us in this area: [01:31] wgrant: which would be inconsistent with elsewhere [01:31] - be able to build and deploy LP without internet access [01:31] - be able to do buildbot tests likewise [01:31] - be able to inspect all changes happening to code that we execute in trusted zones - e.g. js that runs in our browser windows, python on the sever etc. [01:31] wallyworld: getInformationTypesToShow returns a set of allowed. setUpWidgets then iterates through the vocab, picking out items that are in the allowed set. So order is retained. [01:32] I think pretty much everything else is up for grabs [01:32] wgrant: cool, thanks. just wanted to double check as i couldn't recall the exact implementation detail [01:32] lifeless: ok [01:32] That implementation detail only landed three hours ago, so you're forgiven :) [01:33] wgrant: and the diff didn't really show the full picture [01:33] wgrant: are we missing a test? [01:34] wallyworld: I think so. I couldn't find one for the checkbox override. [01:34] ec2 will tell me for sure [01:34] to check that security is allowed branches linked to security bugs [01:34] Oh [01:34] There's one for that [01:34] * wgrant hunts [01:34] rick_h_: how big is a tar of all of yui3 gallery (not base) ? [01:34] regardless of the stacked on type [01:34] lifeless: I'll pull together some notes on ideas and why don't we schedule a time to sit down and look it over. [01:34] def test_private_branch_with_security_bug(self): [01:34] # Branches on projects that allow private branches can use the [01:34] # Embargoed Security information type if they have a security [01:34] # bug linked. [01:34] lifeless: just the build or the whole thing? [01:35] rick_h_: something suitable for devs to have, buildbot to have, and prod to have. [01:35] wgrant: ok, thanks. r=me [01:36] wallyworld: Marvellous. Thanks. [01:36] rick_h_: and is there a programmatic interface to do releases of individual yui modules? (are they separately versioned etc) ? [01:37] lifeless: yes, they use an ant based build system and do weekly releases that are served [01:37] so you can specify "load the gallery from date 2012-07-12" [01:37] in your yui config [01:38] rick_h_: what granularity does that have ? [01:38] lifeless: only a weekly build [01:38] not frequency, granularity :) === Ursinha` is now known as Ursinha [01:38] is it all of gallery, or per-module ? [01:38] lifeless: it's all the repo [01:38] lifeless: all the gallery [01:38] lifeless: I'm not sure if you can specify it per module, you might be able to but not tried it === Ursinha is now known as Guest53271 [01:38] ok [01:39] so, here are some questions we might want to answer [01:39] rick_h_: oh, how big was that allofgallery thing ? Are you finding out ? [01:39] - how big is allofgallery [01:39] lifeless: ah sorry, got distracted [01:40] -> would e.g. daily snapshots into the download cache be a significant burden? [01:40] rick_h_: you said something earlier that each module has multiple versions, is that right? so you can ask for a specific one that is known to work ? [01:41] lifeless: so build tar/gz is 3.4M [01:41] lifeless: yes, when you write a module you specify a version string, but we've not used it so far [01:41] so the weekly snapshot includes an unversioned tip of the module + all the prior still supported releases? [01:42] (that yui host) [01:42] lifeless: so the weekly snapshot builds the tip of all modules, and serves it via a new url specific to that build date. Each build is a new url. [01:42] ok, so you *can't* stick to an arbitrary old version trivially ? [01:42] I know and have used that to go back in time for the whole gallery, but not seen how to use that on a per-module basis [01:43] righto. [01:43] lifeless: I don't know, will look into it [01:43] indeed thats a question too [01:43] I mean, if you only get snapshots-of-tip granularity, a shared JS area for all of Canonical would likely be not an improvement over working directly upstream [01:44] lifeless: true [01:44] because you'd still have folk sitting on a known-good, and then upgrading many bits at once and dealing with the fallout. [01:44] unless we engineer something special using introspection etc; but at that point we could do that upstream and then work upstream with less friction. [01:45] I don't think we have quite enough knowledge yet to progress this further [01:45] what other questions should we queue up [01:45] lifeless: right [01:45] - how do other YUI users deal with this? [01:46] well, the big questions are is this feasible? will teams work together and want to do so. How will it be managed, and how to get this setup for local dev. [01:46] - how often would we really be updating the gallery cop(ies) we have - assume we update to a) get bugfixes b) to work with a new YUI and c) to have newer versions of modules we're contributing to. [01:46] lifeless: honestly I'm not sure. While I know teams using it, I've not seen places doing a lot of cross-team work like we're looking at [01:46] rick_h_: I haven't seen any need for cross-team stuff yet, in all that you've discussed. [01:46] rick_h_: I've seen you propose it :) [01:47] rick_h_: cross team work is super hard [01:47] lifeless: well that's the point. Is that with all of this, we're worried about a single gallery build breaking a team using an older version that missed something that changed [01:47] which would mean another team submitted a fix/update for a module that caused it to change [01:48] * rick_h_ is missing how this isn't cross team [01:48] rick_h_: I think you have a hidden assumption somewhere. [01:48] :) [01:48] lifeless: more than likely [01:49] uhm, its not cross team because you can (naive, may need tuning): drop yui-gallery-XYZ.zip into download cache, pull that out like we were yui base-XYZ.zip, drop in additional single-module zips for things we fork (so they are visible) [01:49] setup and document how to do it a way for folk like e.g. sinzui or wgrant or $anyone to do a new snapshot as needed. [01:50] none of that implies shared cross team stuff; the place for collaboration is yui gallery upstream. [01:50] lifeless: sorry, but I really need to wrap up. It's late here and I'm hoping to unblock buildbot before bed [01:50] lifeless: ok, I see [01:50] Ok, short term suggestion: revert it back to what it was before. [01:50] A revert is the easiest. [01:51] lifeless: ok, I'm hoping to get the ok to push it with http://paste.mitechie.com/show/735/ as that moves the conflicting point out to where it really belongs [01:51] rick_h_: I'm happy to revert your revision out if you want to crash. [01:52] StevenK: ok, if that's easiest will do then thanks. I'll revisit the buildout setup and adjust from there then and see if I can come up with a place for the helper code to assist in getting updates going [01:52] s/will do/to do [01:52] ugh [01:53] rick_h_: From what I've heard so far the canonical specific shared area is entirely orthogonal to handling yui + gallery + odd forks of gallery modules effeciently for LP [01:53] thanks StevenK and wgrant for the help and lifeless for the discussion. I've got some tweaking to my long term vision to work on [01:54] lifeless: right, I'm just trying to start with the goal of updating YUI in LP and leaving the gallery/etc for a later date [01:54] rick_h_: if LP can do it efficiently with a direct relationship with upstream, that provides a template for other Canonical projects to also work with it efficiently and collaborate with upstream [01:54] lifeless: agreed, and we've started that process. We have our first module inthe gallery yesterday, and I've been working to facilitate discussion with the PES team and their modules and upstream [01:54] I think - I'm sure - that its easier to replicate a template of working with an established group that setting up a new group which would amongst other things have to broker with upstream. [01:55] lifeless: lifeless but as working with upstreeam doesn't help us at all in our deploy/serving area, I held out a vision of a single 'canonical-gallery' at some point in the future (loooong future) [01:55] rick_h_: (discussion) - anytime. sorry I had to ask so many questions :) [01:55] rick_h_: from the sounds of it though, a canonical gallery wouldn't help either. [01:56] lifeless: no it's good, it's going to focus me on thinking more of the tar/offline mode than I originally was [01:56] rick_h_: also note that anything on a new domain name will make first-view loads for LP slower. [01:56] lifeless: right, it has weak spots as well [01:56] rick_h_: about 3 seconds slower. [01:56] rick_h_: (well, 3-10, but definitely 3). [01:56] ok, you know better than I on that front [01:57] SSL :) [01:57] rick_h_: Revert is landing. [01:57] 3s for a SSL handshake to a second domain? [01:57] rick_h_: you can test - add a 300ms latency to your outbound packets, see the world the way the non-Europe folk do :) [01:57] StevenK: ty much sir [01:57] rick_h_: Easily. [01:57] ok, I'm spoiled from my network/location :) [01:57] rick_h_: http://wiki.bazaar.canonical.com/SmartPushAnalysis1.4#Network_connection [01:58] rick_h_: Move to Sydney/Melbourne/Christchurch and use LP. [01:58] ok, so as I said, I need to refocus the long term goal for sure, but it is a bit different from the current issue of 3.5 on LP and making sure we don't spend a year getting to 3.6 after it's out in a month/two [01:58] yah [01:58] totally. [01:59] BAH [01:59] * StevenK stabs PQM, and adds [testfix] [01:59] StevenK: heh, I asked deryck if anyone's complained on the combo loader and we decided if the aussies didn't raise a fuss it must be working out ok :) [01:59] FWIW I'd use the current approach which handled the 3.4->3.5 OK AIUI, and look at rearranging as part of doing the gallery. [01:59] lifeless: rgr [01:59] rick_h_: I haven't looked up your mail about combo loader stuff yet either, I've been sick this week [01:59] rick_h_: I think the combo-loader needs to actually cache the files [01:59] am only just on deck now. [02:00] lifeless: not a problem, I figure with it being Friday for me tomorrow I'd not turn on a FF then until next week anyway [02:00] cool, I'll look for it monday [02:00] rick_h_: is the combo loader oops enabled, and do we get perf information out of it ? [02:00] StevenK: oh, I thought webops copied over the way the apache cache/etc is setup from U1/Landscape. Not peeked at it tbh [02:01] rick_h_: Revert landed as r15619 [02:01] StevenK: ty [02:01] lifeless: no, convoy isn't oops enabled currently. I'd assume any perf info would be normal apache request/logging/etc [02:01] StevenK: It's pretty aggressively cached already, I believe [02:01] Yeah [02:01] Cache-Control: public,max-age=5184000 [02:01] wgrant: Oh? I thought the caching was non-existant. [02:02] the only issue is that each deploy breaks the cache [02:02] Like it should. [02:02] since the url changes for deploy purposes [02:02] StevenK: It's probably done by the Apache config, as rick_h_ suggests [02:02] right, just saying that might make it seen less cached with frequent deploys going on [02:02] s/seen/seem [02:02] btw [02:03] this is a reason to have things like yui not part of lp's build area at all [02:03] version them entirely independently [02:03] may require some assembly. [02:03] lifeless: agree, but definitely some assembly [02:04] but again, perfect is the enemy of good [02:04] step by step [02:04] wgrant: Join added. Now how to fix the other bug. [02:04] totally ;) [02:05] ok, night all, thanks again and sorry to fubar buildbot on you guys [02:05] man, this is ripe: http://arstechnica.com/tech-policy/2012/07/verizon-net-neutrality-violates-our-free-speech-rights/ [02:05] "Broadband networks are the modern-day microphone by which their owners [e.g. Verizon] engage in First Amendment speech" [02:06] * StevenK peers at buildbot [02:06] uhm, nothing that my ISPs have *ever* said to me has been even slightly protected speech. Or would have been had I lived in the US. [02:06] bzrlib.errors.InvalidHttpResponse: Invalid http response for https://xmlrpc.launchpad.net/bazaar/: Unable to handle http code 502: Bad Gateway [02:06] Hmmm, at least its not my fault. [02:07] lifeless: At least it isn't RIPE. [02:12] wgrant: I can't say Branch.id IS IN () without toys being depramed, so what was your thought there? [02:12] Branch.id.is_in(...) [02:14] lifeless: Obviously. You're missing some context. [02:33] StevenK: Hm, possibly just exclude the branch query entirely in that case, then. [02:34] wgrant: But wasn't the bug query written in such a way that it would deal with no bug ids being passed, or am I on crack? [02:35] StevenK: Yes. [02:35] StevenK: Because in the case that no bug IDs were passed, it was correct behaviour to just operate on every bug. [02:35] But that's not correct any more. [02:35] Since you pass in a list of artifacts that you want to operate on. [02:35] Not just a list of bugs. [02:36] So if I pass in only bugs, it should only work on those bugs. [02:36] If I pass in only branches, it should only work on those branches. [02:36] If I pass in a few of each, it should work on those bugs and those branches. [02:36] If I don't pass in a list of artifacts, it should work on all bugs and branches that satisfy the other filters. [02:39] wgrant: But run() had if self.bug_ids else: every other filter [02:40] StevenK: Yes. Is that odd? [02:40] Because it didn't support branches before this, the logic was: [02:41] If I pass in only bugs, it should only work on those bugs. [02:41] If I don't pass in a list of artifacts, it should work on all bugs that satisfy the other filters. [02:41] fin [02:46] wgrant: Then just the join is needed [02:46] StevenK: Howso? [02:47] StevenK: Currently if I pass in a list of bugs, it will work on those bugs and *every* branch. [02:47] Won't it? [02:53] wgrant: http://pastebin.ubuntu.com/1089151/ but it's a bit messy [02:54] StevenK: I'd invert those flags, but something like that, yeah [02:54] StevenK: Alternatively, start bug_filters and branch_filters off empty, rather than with the visibility filter [02:55] StevenK: Keep the branch_ids/bug_ids/else code the same. [02:55] StevenK: Then wrap the two queries at the end in an 'if bug_filters' and 'if branch_filters', and insert the visibility clause there [02:58] wgrant: http://pastebin.ubuntu.com/1089155/ [02:59] StevenK: You should probably put *_invisible_filter inside the conditional blocks, and maybe even inline them if they fit nicely. [04:12] wgrant: http://pastebin.ubuntu.com/1089206/ [04:13] StevenK: Looks reasonable. Does it work? [04:15] That's a seperate problem. [04:15] Heh [04:17] wgrant: Spot the glaring error in the branch query. [04:17] StevenK: Hah [04:17] Indeed [04:18] findspec is in the wrong place [04:18] And no .using() [04:18] Yeah, but all the important bits are there :) [04:18] Just not the syntax... [04:22] wgrant: As an added bonus, http://pastebin.ubuntu.com/1089218/ passes tests. [04:22] StevenK: Did you write new tests? [04:23] To catch the issues? [04:23] Nope [04:23] Well, not yet. [04:24] wgrant: A great deal of the tests just pass in bugs, so I'm not sure why they don't tickle what afflicted qas. [04:25] StevenK: Because they don't check that the branch subscriptions survive [04:25] Because they only care about bugs. [04:25] wgrant: But the query was running for *ages* [04:26] So why don't the bug tests show that ... [04:27] StevenK: Because sampledata doesn't have hundreds of thousands of branches and millions of subscriptions [04:27] So the query will take milliseconds. [04:27] Oh. Right. [04:28] wgrant: So we want to sprinkle in StormStatementRecorder or what do you want to do? [04:29] StevenK: We want a test that tries to remove subscriptions from a set of bug IDs, and checks that those subscriptions are gone but other bug and branch subscriptions remain. [04:29] And the same but for branch IDs. [04:29] There are probably existing tests to whichyou can add a couple of lines to do this. [04:40] wgrant: Right, http://pastebin.ubuntu.com/1089239/ [04:40] wgrant: I get two failures if I shelve the changes in sharingjob [04:41] Great [04:41] wgrant: Commit, push and force wallyworld to review it since we effectively wrote it together? [04:42] Plus he's OCR [04:43] % bzr log | head -n 8 | tail -n 2 [04:43] Fix RASJ to deal with branches correctly without spawning a query that will [04:43] take approximately three eons to complete. [04:43] (and do the wrong thing) [04:45] * StevenK stabs Firefox for crashing [04:46] StevenK: Crashing, or the DnD hang that sprung up in the last major release? [04:47] That looked like a crash, the window disappeared followed by the process [04:47] Ah [05:00] wallyworld: O HAI. https://code.launchpad.net/~stevenk/launchpad/fix-rasj-and-branches/+merge/114779 [05:08] wgrant: http://pastebin.ubuntu.com/1089253/ is that other thing I'm working on. [05:20] Ah, I;ve solved commercial subscription expiry too. [05:35] wgrant: Do you think I'm missing something from my branch? [05:37] StevenK: Which one? [05:39] wgrant: [15:08] < StevenK> wgrant: http://pastebin.ubuntu.com/1089253/ is that other thing I'm working on. [05:51] StevenK: Rather hard to say. Does it work? [05:51] wgrant: test_bugnotification works at least [05:53] StevenK: hi, just got back from school pickup [05:53] bad traffic today in the rain :-( [05:53] Bright, sunny and 23degC here today [05:55] StevenK: we will conflict. i also have removed those unused imports, but yours will land first since i'm just completing the covering letter for mine [05:55] Dreary, dismal and 12degC or so :) [05:55] wgrant: So normal Melbourne weather then. [05:55] Hey, from what I've heard SE QLD has been pretty similar for the last week... [05:56] Although I guess warmer :) [05:56] wgrant: Did the Victorian goverment write a stern letter asking for Melbourne's weather back? [05:57] StevenK: No, that wouldn't involve building more jails or decomissioning educational institutions :) [05:57] Haha [05:57] Maybe your government needs to turn the educational institutions into jails. [05:58] That approximates their current policy. [05:58] Haha [05:58] StevenK: looks nice, r=me [05:59] wallyworld: At least you weren't sobbing saying "RBSJ looked nice until you touched it inappropiately and renamed it." :-P [06:00] steven@undermined:~% uptime [06:00] 16:00:06 up 16:50, 4 users, load average: 3.71, 3.23, 2.15 [06:00] Sigh [06:00] StevenK: nah, all good. i started out with a generic job but at the time it was messy so just got bugs working. [06:01] test_sharingjob needs to good spring clean at some point [06:01] Everything we've touched does :) [06:01] A lot can be cleaned up once sharing is fully deployed [06:01] and some of the other sharing tests need XXXs removed and (likely) some branch tests added [06:01] Apparently, reading from USB is *hard* or something. [06:59] * cjwatson celebrates his 100th LP branch landing [06:59] :) [06:59] Pre-LP me has competition :( [07:00] Yeah. Little bit of a way to go yet. [07:01] dammit [07:02] wait [07:02] cjwatson gets on a different list. [07:02] wgrant: nah, you don't. [07:02] unless I boot up my vm and start contributing. [07:03] Heh [07:49] good morning [08:09] cjwatson: congratulations! [08:10] cjwatson: how are you celebrating? [08:23] jml: coffee [08:23] and more branches :) [08:24] cjwatson: coffee is fantastic, wonderful and slightly bitter. What better way to celebrate landing a hundred Launchpad branches? === adeuring changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: adeuring | Firefighting: - | Critical bugs: 4.0*10^2 [08:56] anyone have familiarity with buildout? I'm trying to do a bootstrap using python-2.7, and [08:56] it is telling me 'could not install pyinotify-0.9.3' but there is no other error, and I can see the .tar.gz available [08:56] ...the windows installers use it! [08:57] mgz: yes, and we are super happy about it there :) [08:57] * mgz doesn't have familiarity of it either :) [09:29] wgrant: have you ever seen an error message like this when a user tries to log in. https://answers.launchpad.net/launchpad/+question/203032 [09:31] czajkowski: I reassigned that to SSO a couple of minutes back. It usually means they refuse to accept cookies [09:31] bah that will teach me to open my work in tabs and come back to things [09:31] wgrant: cheers === almaisan-away is now known as al-maisan [10:41] hi all === al-maisan is now known as almaisan-away === almaisan-away is now known as al-maisan === al-maisan is now known as almaisan-away === bac changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: adeuring, bac | Firefighting: - | Critical bugs: 4.0*10^2 === almaisan-away is now known as al-maisan [13:43] jelmer: ping [13:44] jam: pong [13:54] jelmer: sorry for the delay, otp, but I'd like to have you pick up some of the 'get launchpad running on python-2.7 on Lucid' [13:55] jam: sure, which things in particular? [13:56] right now python-2.7 is segfaulting, and we probably need to bring in barry [13:58] jam: okay [14:00] jelmer: I guess the other option is doku, but I think barry has done more on that particular ppa [14:00] jam: still no idea on what's causing the segfault? [14:01] jelmer: 'import ctypes' seems to be a pretty common trigger [14:01] it is failing right now trying to build pyinotify [14:01] but I notice that there is a 'import ctypes' in there. [14:01] I'm pinging barry in #canonical [14:01] what do we use pyinotify for anyway? [14:01] also, jelmer, mgz, vila: You probably want to keep in touch with eachother while I'm gone. I imagine at least doing the standup. (I realize vila is gone next week) [14:02] jelmer: it doesn't really matter, ctypes gets imported at other times. [14:02] bzrlib probably improts it, etc. [14:04] jelmer: not sure if we have to have ctypes, but segfaulting regardless is bad :) [14:07] jam: does that mean that even "python -c 'import ctypes'" segfaults? [14:08] jelmer: yes [14:08] I did just try that directly [14:08] we can do a jelmer/mgz standup on tuesday [14:08] perhaps at 9pm [14:08] mgz: heh, whatever works for you :) [14:09] you guys work all day long anyway, right? [14:10] at least some days I stop at 6 :) [14:18] I have lp on lucid up and working and the ctypes crash from the ppa, [14:18] so should be able to continue from where you are. [14:21] is there a neat way of getting gdb to look in the right place for src? [14:21] given it has paths like the following for ppas: [14:21] /build/buildd/python2.7-2.7.2/Modules/_ctypes/libffi/src/closures.c [14:22] based on the similar python3.2 failure a while back I suspect it's a pretty easy build fix. [14:23] sure, I'm leaving that to barry, just following along at home :) [14:41] jelmer: can you please follow up on the RT I gave you yesterday when you get a chance being poked for an update on the ppa [15:00] czajkowski: ah, yes, sorry [15:00] * jelmer is having an unproductive day [15:10] :( [15:11] jelmer: need the link ? [15:12] czajkowski: no, I still have it open here; thanks though [15:12] * mgz sends jelmer some cuddles [15:20] thanks mgz === al-maisan is now known as almaisan-away === adeuring changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: bac | Firefighting: - | Critical bugs: 4.0*10^2 === salgado is now known as salgado-lunch [17:34] jcsackett: darn, someone beat me to it: https://launchpad.net/jujube === salgado-lunch is now known as salgado