/srv/irclogs.ubuntu.com/2012/01/19/#launchpad-dev.txt

wallyworld_StevenK: also, any reason why you didn't go with the symlink? i really think we should have each yui version explicitly untarred into a dir reflecting the version so it's obvious what's what00:03
huwshimiwgrant: Hmm... actually it looks like it is branching just not running the make or something so I should be able to just fix the makefile and I'll be fine00:03
StevenKwallyworld_: *Land*?00:04
wallyworld_StevenK: yes, without the ff, the original launchpad.js will stil lbe used. did you see deryck's email?00:05
wgranthuwshimi: bzr branch devel some-branch00:05
wgrantcd some-branch00:05
StevenKwallyworld_: Not yet00:05
wgrantutilities/link-external-sourcecode ../devel00:05
wgrantmake00:05
wallyworld_StevenK: ok. will let you have a read00:06
wgrantThat's basically all rf-branch does00:06
wgrantI've never used rf-branch00:06
huwshimiwgrant: Great, thanks00:06
StevenKwallyworld_: The apache config is set in my use-convoy branch -- that's why you had to 'sudo make copy-apache-config'00:10
wallyworld_StevenK: yeah, that's cool, all sorted yesterday. i think the email was just a summary for everyone else to being them up to speed00:11
wallyworld_StevenK: so for testing, my plan is to unpack all the yui tarballs to build/js/yui and symlink by default to the prod version. the html files will be updated and tests run by default against prod version00:12
wallyworld_but we can easily run yuitests locally against another yui version by changing the symlink00:13
wallyworld_with the combo loader, we can do the same thing, use a symlink for now or just put the yui version in the path in the base-layout-macros tal00:14
StevenKI don't like hacking the base-layout-macros template00:16
huwshimiwgrant: OK, hopefully my final issue, but any idea what's up with make run? http://paste.ubuntu.com/809206/00:16
wallyworld_it would be hacking - we use a ${yui-version} string substitution00:16
wallyworld_wouldn't00:16
StevenKYou want to edit the template during buildout?00:17
wallyworld_no, it's done at runtime00:17
wallyworld_based on the yui version feature flag00:17
wgranthuwshimi: Looks like memcached is not installed00:17
huwshimiwgrant: Oh, a few things did get removed with the upgrade00:17
wgranthuwshimi: Try to reinstall launchpad-developer-dependencies00:18
wgrantYou may need to reenable ppa:launchpad00:18
wgrantThe upgrade probably disabled it.00:18
StevenKwallyworld_: Right00:18
huwshimiwgrant: launchpad-developer-dependencies : Depends: launchpad-messagequeue-dependencies (= 0.103~precise1) but it is not going to be installed00:18
huwshimiwgrant: I did re-enable the ppa but it 404s00:19
huwshimiwgrant: I guess I need to use the oneiric ppa for now?00:19
wgranthuwshimi: Hm, everything should be in precise. What's the 404?00:19
wgrantI fixed it up for wallyworld last week.00:19
wallyworld_StevenK: so originally we were going to just use a "yui" dir for the prod version, but i do want to use versioned dir names00:19
huwshimiwgrant: Oh, nevermind that was for bzr and a couple of other things00:21
wallyworld_i think that will be much better00:21
StevenKwallyworld_: Right.00:21
wallyworld_StevenK: so, you could use your "cp -a" and my symlink stuff in rootdir script00:21
huwshimiwgrant: So when I try to install the dependencies it gives me the previous error and also says "E: Unable to correct problems, you have held broken packages."00:22
wgranthuwshimi: sudo apt-get -f install00:22
StevenKwallyworld_: Right00:22
wallyworld_StevenK: so, once your stuff lands, i'll hook off that and update the yui test stuff as proposed above. sound like a plan?00:23
huwshimiwgrant: Didn't help00:24
wgranthuwshimi: sudo apt-get install launchpad-messagequeue-dependencies00:24
huwshimiwgrant: Oh, that fails because it requires "rabbitmq-management" which doesn't exist00:25
wallyworld_StevenK: and then another next step would be to update rocketfuel to do the apache config mod, and we can also just disceminate how to do it manually also00:25
wgranthuwshimi: Ahh, of course. Give me a moment.00:26
pooliehi all00:27
wallyworld_hellooooo00:28
StevenKwallyworld_: Like I keep saying, we don't need to.00:28
StevenKwallyworld_: I've updated the config -- rf-setup will just pick that up, but people with a development environment already set up will need to do the sudo make I mentioned.00:28
wallyworld_ok00:28
wallyworld_ok00:29
rick_hhey wallyworld_ and StevenK how goes?00:29
* StevenK is Ubuflu'd00:30
wallyworld_rick_h: hi. goes good. we are just discussing landing the use-convoy branch00:30
StevenKThinking about complex problems is making me feel worse00:30
rick_hwallyworld_: cool!00:30
rick_hwallyworld_: StevenK did the email summary from deryck make sense?00:31
wallyworld_StevenK: hopefully no more thinking required :-) just one more tweak to combo-rootdir and the tal00:31
wallyworld_rick_h: yes00:31
wallyworld_it reflects my understanding of where we are at00:31
rick_hwallyworld_: ok cool00:32
StevenKI am concerned that our LPS -> YUI change has impacted launchpad.js00:32
wgranthuwshimi: That should be fixed if you apt-get update in about 5 minutes00:32
rick_hStevenK: very good point00:32
huwshimiwgrant: Sweet. Thanks a lot00:33
rick_hStevenK: so what the LPS thing did was set the config variables, and carry that on to everyong using LPS()00:33
StevenKWe've been so focused on the combo loader that we haven't checked if it's safe to land00:33
rick_hStevenK: so now that we set YUI_config and all LPS. are changed to YUI().00:33
wallyworld_StevenK: rick_h: we attempted to make out YUI replacement functionally equivalent to LPS, no?00:33
rick_hStevenK: we shold be ok00:33
StevenKwallyworld_: So, what do I need to do?00:33
rick_hStevenK: we should be good where we are at currently. As long as the YUI_config is set with the old optoins passed into the LPS() call, we're ok00:34
wallyworld_StevenK: i can do the work locally, push up to my branch, and you can just merge if you like00:34
rick_hStevenK: which the feature flag switch does00:34
StevenKrick_h: Right, which we did.00:34
rick_hStevenK: if you turn off the feature flag and try out the site it should work just peachy still as is with the YUI()00:34
wallyworld_StevenK: i also need to merge in trunk and update those new cases of LPS usage00:34
StevenKwallyworld_: So I'm waiting for you?00:35
rick_hRight, LPS just goes away00:35
rick_hfor both launchpad.js and the combo loader00:35
wallyworld_StevenK: yes. i'll do it now and ping you when done00:35
wallyworld_rick_h: and hopefully by SOD for you it will be merged00:36
rick_hwallyworld_: excellent, so reading the traceback the apache stuff is in place?00:36
rick_hwallyworld_: can you note that step in the email exchange for deryck and I?00:36
StevenKIt has been since last week00:36
rick_hthat was the only thinking keeping me from getting it running today00:36
wallyworld_well, packaging deps need to be done too etc00:36
rick_hwallyworld_: right00:37
StevenKwallyworld_, rick_h: We need to get it reviewed too?00:37
wallyworld_yes00:37
rick_hStevenK: did you see the branch of convoy I've got with the directory parsing stuff?00:37
rick_hI chatted with rockstar about it and either he or another guy will review it soon hopefully00:37
StevenKrick_h: I saw that it existed, I've not looked at it00:37
wallyworld_StevenK: i can review if you do the mp if you want00:37
rick_hStevenK: yea, I think I'd like to get a final run of it locally and run it through some paces as review before we pushed00:37
wallyworld_rick_h: part of my review would also have been to test locally00:38
rick_hand I'm sure there must be a test or two somewhere that will blow up00:38
rick_hwallyworld_: gotcha, ok cool00:38
rick_hgetting nervous myself now :)00:38
wallyworld_rick_h: tests won't use combo loader to start with00:38
rick_hwallyworld_: right, but I'm assuming something goes boom. Maybe we get lucky :)00:39
wallyworld_rick_h: hope so. we'll find out soon enough when we do the final pre-land testing00:40
wallyworld_rick_h: worst case, we hand off something to you because we find issues today00:40
wallyworld_and you/deryck can land tomorrow00:41
rick_hok awesome00:41
* rick_h crosses fingers for you guys00:41
wallyworld_or if we get nervous and wimp out, we wil lhand off also :-)00:41
* wallyworld_ goes to set up in a cooler room. it's hot here today00:42
StevenK24 here00:42
wallyworld_coolish here but *humid*00:42
StevenKBut due to Ubuflu, I feel like I'm burning up00:43
wallyworld_StevenK: i'll try not to bother you anymore. you should go away from keyboard and lie down00:43
* StevenK is sorely tempted00:44
StevenKI could also walk to the doctors, but that may require too much effort00:45
wallyworld_go do that. i'll do everything from here and put up the mp. and it can be review by the us guys tomorrow00:45
wallyworld_bah. plugged laptop into dock and mouse all fucked up. can't click anywhere00:46
wallyworld_rick_h: i'll email where we get to today00:47
wallyworld_StevenK:00:48
rick_hwallyworld_: ok, sounds like a plan. I'm hacking with some guys on other stuff tonight for the next couple of hours. Ping me if you need anything00:48
wallyworld_rick_h: will do. having trouble typing now. need to reboot :-(00:48
wallyworld_random windows getting focus00:49
* StevenK kicks wallyworld_ for top-posting00:57
wallyworld_StevenK: sorry, my keyboard and mouse got all stuffed up00:57
wallyworld_and the wrong window captured by Enter keypress00:58
StevenKwallyworld_: https://code.launchpad.net/~stevenk/meta-lp-deps/use-convoy/+merge/89174 but the diff isn't generating00:58
* wallyworld_ looks if ff would start without consuming 100% cpu00:59
wallyworld_love the description00:59
huwshimiwgrant: Awesome. Dependencies installed and make run is working. Thanks for you help :)01:00
wallyworld_StevenK: so that looks ok to me. should we land it now?01:02
StevenKmeta-lp-deps? No01:03
cjwatsonHmm.  importfascist still has database_root = 'canonical.launchpad.database', and is thus presumably ineffectual01:04
StevenKI think utilities/migrater can die too01:07
sinzuiStevenK, I started on that. I am porting rename_module because it provides refactoring goodness01:12
StevenKHeh. I just put up a branch and MP that removes it01:13
wallyworld_StevenK: you are supposed to be sick remember01:13
sinzuicjwatson, importfascist does not know about model or the many security checkers. It needs an overhaul01:14
StevenKwallyworld_: Silence.01:14
* wallyworld_ happy that there were only 2 conflicts merging trunk into use-combo branch01:17
StevenKsinzui: Oh, right, your tool is seperate. I shall land it then01:24
sinzuiyes.01:24
wallyworld_bazaar.lp.net seems to be having several timeouts atm01:24
sinzuiI used my own tool, <not a euphanism> to refactor my plugins over the weekend, then thought, I should incorporate it into the plugins when I am sure it works01:25
wgranthuwshimi: Great.01:50
wgrantStevenK: rename-module is important. Must keep that01:51
wgrantcjwatson: Yeah, most of the fascist is useless nowadays.01:51
wgrantcjwatson: There were rumours a couple of years back that we were going to steal landscape's import guardian.01:51
wgrantStevenK: Are you arranging for someone to apply the index live today?02:26
StevenKwgrant: I was going to talk to stub about it now that the patch has landed.03:04
wgrantOK. It need to be today or tomorrow morning.03:04
StevenKTo not impact on FDT?03:06
lifelesswgrant: combining those three into one is fine; as long as we land; qa; etc one patch, I don't really care how big it is (textually that is :P)03:07
wgrantStevenK: Yes03:08
wgrantAlthough I may end up doing ppa/ftpmaster tomorrow night instead, depending on what happens.03:08
StevenKwgrant: No, you should destroy EmailAddress.account harder03:42
wgrantStevenK: Need a ppa/ftpmaster deployment first.03:48
StevenKPity.03:49
StevenKBAH, using Link doesn't work.03:49
StevenKWhy is this bug so hard? It should be easy. :-(03:49
wgrantWhich?03:49
wgrantTags?03:49
StevenKYup03:52
StevenK<span id="tag-list">\n              &lt;lp.services.webapp.menu.LinkData object at 0x113c1850&gt;\n03:53
wgrantWhy are you trying to use Links?03:54
wgrantThey're for menus.03:54
StevenKI should build the entire <a href=... in the view property?03:54
wgrantOr just the URL.03:55
StevenKOh, a dict of tag: url?03:55
wgrantPossibly, yes.03:55
StevenKwgrant: I can't say tal:repeat="tag url view/official_tags" for a dict?04:01
wgrantRecall that iterating over a dict gives the keys.04:02
StevenKRight, what I'm unsure about is how to get out the value in the tal04:02
wgrantYou may have to use python:04:04
wgrantUnless you can unpack the tuple from .items() in TAL04:05
StevenKMaybe we just make a list of 2-tuples04:10
wgrantThat provides no benefit over .items04:11
* StevenK tries .items()04:13
StevenKzope.tal.taldefs.TALError: Invalid variable name "official_tags.items()" in expression u\'url view/official_tags.items()04:16
wgrantDo you mean view/official_tags/items?04:16
wgrantThis is TALES, not Python.04:16
StevenKEverytime I learn something about TALES, my brain rejects it as pure crack.04:17
StevenKzope.tal.taldefs.TALError: Invalid variable name "items" in expression u\'url view/official_tags/items\'04:18
StevenKwgrant: tal:repeat="tag view/official_tags/items" throws a KeyError of items04:31
wgrantStevenK: Is it a dict?04:32
StevenKview/official_tags is, yes04:33
wgrantIn devel it's not.04:34
StevenKIt is in this branch I'm hacking on04:35
wgrantCan you pastebin the diff or push the branch?04:37
StevenKwgrant: http://pastebin.ubuntu.com/809335/04:40
wgrantStevenK: Oh, of course.04:45
wgrantStevenK: It's a dict, so it tries to look up the 'items' key rather than looking up an attribute.04:45
StevenKHah04:47
StevenKtal:repeat="tag url view/..." didn't work either. I guess tal only wants one item04:49
wgrantZPT doesn't do tuple unpacking, no.04:50
wgrantBut we can't even get to that stage, since we can't call items()04:50
wgrantSo, iterate of the keys and then do lookups.04:51
wgrants/of/over/04:51
StevenKI'm unclear how to do the lockups04:51
StevenK*lookups, sigh04:51
wgrantview/official_tags/?key04:51
wgrant? uses the rest of the path segment as a variable name.04:52
StevenKwallyworld_: Can haz review? https://code.launchpad.net/~stevenk/launchpad/link-bug-tags-correctly/+merge/8918705:33
wallyworld_StevenK: one sec otp.05:34
wgrantsinzui: Do you mean [ `lsb_release -c -s` = "precise" ] ? :)05:38
wallyworld_StevenK: canonical_url you can pass +bugs as the view_name05:43
wallyworld_StevenK: does "view/unofficial_tags/?tag" do a dict lookup?05:47
StevenKwallyworld_: Fixed locally. And yes, it does.05:47
StevenKBecause TAL is just fucked.05:48
wallyworld_cool. i didn't know that05:48
StevenKwallyworld_: [15:17] < StevenK> Everytime I learn something about TALES, my brain rejects it as pure crack.05:48
wallyworld_lol05:48
wallyworld_StevenK: i'll go in and +1 it05:49
wallyworld_StevenK: i've found and fixed a number of things with the use-combo branch, just a couple more to go05:49
StevenKwallyworld_: Excellent. I shall commit and push the view_name change.05:50
StevenKrick_h: WRT to your convoy MP, I was expecting we'd have /+combo/r14335/ and then something like /+combo/r14436/ ?06:01
StevenKwallyworld_: I've tossed that branch at ec2. Thanks for +1.06:03
StevenKwallyworld_: I've also tossed a Lucid package of convoy at my PPA.06:03
wallyworld_StevenK: np. excellent. it's all coming together :-)06:04
pooliewallyworld_, is it now the case that private bugs can have only one task?06:04
wallyworld_poolie: yes, unless you are in oem or whatever the team is we have excluded form that06:04
wallyworld_from06:04
pooliek06:04
wallyworld_poolie: is that ok? do you have a case where it's not?06:05
StevenKwallyworld_: I thought sinzui said the footgun was no longer required?06:05
poolieit's fine06:05
pooliei have a thing affecting a private project that will also affect another06:05
pooliebut it's fine to create a second bug06:05
pooliein fact better06:05
wallyworld_StevenK: the current implementation still has the restriction06:05
wallyworld_poolie: when "we" do bug linking, a lot of the reasons for any bugs to have more than one bug task should hopefully be a lot less06:06
poolieyep06:06
wallyworld_poolie: did you see that translation question in #bzr06:06
StevenKwallyworld_: What sort of issues have you seen, by the way?06:07
wallyworld_StevenK: calendars were broken. there was a case where a conflict resolution cut out a bunch of tal. milestone timelines were broken. some legacy js issues resulting in yui load errors with the rejigging in the tal06:08
wallyworld_that sort of stuff06:08
StevenKwallyworld_: With the FF disabled or enabled?06:09
wallyworld_there's now just a build issue wrt a symlink and all those cannot load sam-asset messages06:09
wallyworld_StevenK: disabled06:09
StevenKwallyworld_: I misunderstood your use of the symlink, so feel free to make that change.06:09
StevenKwallyworld_: Although I don't like the idea of putting the yui versions in buildout.cfg06:10
wallyworld_StevenK: i think its a different issue06:10
pooliecan a superuser please change the maintainer of /awsproxy from ~jelmer to ~awsproxy-core?06:10
wallyworld_StevenK: we can iterate on that06:10
wallyworld_StevenK: i've best testing with ff off so we can deploy asap. most of the issues found would also have been there with ff on06:13
wallyworld_s/deploy/land06:13
StevenKRight06:14
* wallyworld_ needs to go and buy more coffee06:21
wgrantHi stub.06:35
stubyp06:36
stubyo even06:36
wgrantCan you live-apply that new index some time today?06:36
wgrantIt has landed.06:36
stubok06:37
* StevenK stabs the messaging indicator07:19
jtvmorning folks07:58
jtvwgrant: I see that TTBJ.updateBuild_WAITING lacks read-write transaction policy.07:58
wgrantjtv: Quite possibly.07:59
wgrantBut I thought there was a bug on that.07:59
cjwatsonAnyone mind if I upgrade dogfood?08:51
wgrantcjwatson: Go ahead08:56
adeuringgood morning09:01
mrevellHi09:09
=== almaisan-away is now known as al-maisan
jtvWhy is the oops-tools project deactivated in Launchpad?09:55
wgrantjtv: Because it was replaced by python-oops-tools09:55
jtvAh09:55
jtvthanks09:55
wgrant(which is a continuation of the same codebase, but without the proprietary history)09:55
=== al-maisan is now known as almaisan-away
nigelbOMG.10:01
nigelbThe new oops page is *AMAZING*10:01
wgrantIt's the DB outage page. Sadly the OOPS page hasn't been upgraded to be pretty yet.10:05
wgrantAll huwshimi's work.10:05
nigelb:)10:06
nigelbI should find him and give him a hug.10:06
nigelbIf that's the baseline for how launchpad will be in the near future, I'm going to be very happy :)10:06
Laneythe sad face page?10:07
nigelbYeah.10:07
Laneyyeah, that's cute10:07
nigelbIts got a fresher UI than *cough* most of Launchpad10:07
nigelbwgrant: did we ever switch LP monospace fonts to ubuntu font?10:08
wgrantnigelb: Yeah, because we have bugs about how small it is :)10:08
wgrantBut I don't think we use webfonts for them.10:08
nigelbWebfonts is what I meant.10:09
* nigelb contemplates doing that after finshing existing branches10:09
wgrantLaney: Your DB patch is deployed.10:10
wgrantAnd now in devel.10:10
Laneycool10:10
Laneywhat is next? Trying to land the other one?10:10
wgrantThe code that uses the patch? Yep?10:10
wgrants/?$/./10:10
nigelbLaney: https://dev.launchpad.net/Contributions \m/10:10
nigelb(look at 16)10:11
Laneyheh10:11
nigelbEventually, someone will beat wgrant :P10:15
wgrantI hope so :)10:16
nigelbIf only I had more free time.10:16
jmlhey, did I hear that longpoll was done?10:16
wgrantIt works, but it has one remaining major bug.10:17
wgrantWhich is pretty easily fixable.10:17
wgrant(client-side per-host connection limits suck)10:17
wgrantSo if you open a few MPs, all Launchpad requests hang.10:17
wgrantBecause the browser tries to avoid DoSing.10:17
nigelbdammit.10:17
nigelbThat's counterproductive :)10:18
jmlwgrant: heh, so it's a matter of fixing the bug and then flicking a switch for MPs?10:18
wgrantjml: Yup10:18
wgrantjml: Well, more of a gradual dial.10:18
jmlwgrant: heh :)10:18
jmlwgrant: that's cool.10:19
wgrantWe have little idea how this will scale.10:19
=== almaisan-away is now known as al-maisan
jmlyeah, fair enough.10:21
rick_hmorning folks11:14
wgrantMorning rick_h.11:15
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
nigelbMorning rick_h!11:52
rick_hhowdy nigelb11:52
wallyworld_rick_h: i sent you a big email, let me know if there's anything needed clarification11:54
rick_hwallyworld_: yea looking. I was curious if the not loading messages were due to http://yuilibrary.com/projects/yui3/ticket/253098311:55
rick_hbut that's for 3.4 so guess not11:55
rick_hwallyworld_: did you see if the modules were missing from the combo'd file?11:55
cjwatsonsigh, this QA is going to involve comparing three getPublishedSources calls on dogfood11:55
* cjwatson snoozes11:55
bigjoolscjwatson: why not qastaging?11:55
wallyworld_rick_h: i'm almost sure they were there. but that ticket looks suspiciously familair to others i saw. i think the warnings in our case are bogus11:56
cjwatsonhmm, I suppose Archive.copyPackages mght work on qas?11:56
rick_hwallyworld_: I'm hesitant to go with the LP_YUI change because it's not what's going on in U1 and I've not seen that as a regular pattern. So I'm wondering if there's something else that's the root in there11:56
rick_hwallyworld_: right, that's what I'm wondering if the warnings are more a YUI bug than our bug11:57
wallyworld_rick_h: i don't understand why we would want to incur the cost and overhead of instantiating multiple yui instances, plus the not loaded warnings/errors are a direct result of doing that11:57
rick_hwallyworld_: I guess I'd be curious if we upgraded to 3.4 and ran to see if they still occurred11:57
rick_hwallyworld_: right, but there's potential for one LP_YUI instance to change a config/setting that blows up down the road11:57
wallyworld_in our usage, i don't think that's an issue11:58
rick_hwallyworld_: so it's the old cost of keeping the blocks independant other than the global config, or running into potential issues chasing bugs in one .pt files that's caused by something somewhere else entirely11:58
wallyworld_moving forward, we would want to consolidate all those little snippets anyway11:58
rick_hwallyworld_: and we're not hitting any performance issues atm anyway11:58
rick_hwallyworld_: true11:59
wallyworld_rick_h: remember that till now, we've always operated on asingle YUI instance11:59
rick_hwallyworld_: ok, I'll peek at it. Thanks for the hard work and the summary.11:59
wallyworld_so we are just sticking with our current modus operendi11:59
rick_hwallyworld_: right, I'm just trying to "do the right thing" if we're heading down this path anyway11:59
wallyworld_np11:59
rick_hwhile we're blowing up the world, blow it up all the way :)12:00
wallyworld_agreed, we do need to start adopting best practice12:00
rick_hI'll peek at what I can find. It might be the best thing to do, just saying my initial reaction is "ugh, that doesn't seem right"12:00
wallyworld_but  i don't follow how creating all these yui objects is best practice12:00
rick_hlike I was saying, each YUI() sets up it's own wrapped JS world that12:01
rick_hno other YUI() should be able to interfere with another12:01
rick_hso you're safe to defined your own requires, your own settings, etc. No global leakage, etc.12:01
rick_hit's not a ton since really there's 3-6 of those a page12:01
rick_hso 3-6 new JS objects per page isn't going to cause any issues12:02
wallyworld_agreed. but in our case, all these little snippets really belong together i nthe one sandboc12:02
rick_hyea, eventually we'd want to have some sort of system for injecting JS/requires into a single YUI()... block on each page12:02
wallyworld_it would be ok ig yui didn't pollute the console with all these bloody errors12:02
wallyworld_hard t know if they're really genuine :-(12:02
rick_hwallyworld_: right. thanks for the heads up. We'll get it worked out.12:06
wallyworld_ok :-)12:06
StevenKI wonder if there is a way to get the template name in a global tal macro12:14
StevenKAnd then include <template name>.js or something12:14
StevenKProbably complete crack12:15
rick_hStevenK: that's close to the idea I'm heading towards long term. That there's an bugs.app.js that includes the code for the bugs pages that need to run12:15
rick_hand you'd setup "views" in there that get init/run on page load12:15
rick_hand all JS goes into that view12:15
rick_hthat way you get one single combo loaded JS file for all bugs pages12:16
rick_hand it's easier to see/reuse code across there12:16
rick_hand no more chasing JS in .pt files :)12:16
StevenKrick_h: Well, if you want to make our JS story not be crack cut with draino, more power to you12:16
rick_hbut that's long way from here12:16
rick_hStevenK: we've got to do something. I mentioned to my coding group last night that our fancy JS paging buglisting code was going to go live soon and the first thing someone thought was "like that cool github code tree thing?" which I had to say..."um, not quite"12:18
rick_hwe need the pretty JS12:18
adeuringmorning rick_h, fancy a review? https://code.launchpad.net/~adeuring/launchpad/bug-904461/+merge/8923012:23
rick_hoh right, sure thing adeuring12:23
adeuringrick_h: thanks!12:23
rick_hwallyworld_: it looks like that our code is requiring modules that don't exist12:23
rick_hwallyworld_: there is no such thing as widget-position-ext that I can find in the yui3.3 src12:24
rick_hTopic for #launchpad-dev: https://dev.launchpad.net/ | On call reviewer: rick_h* | Firefighting: - | Critical bugtasks: 3*10^212:24
wallyworld_rick_h: widget-position-ext is in the loggerhead src. so i suspect it's leftover from an older version of yui12:40
wallyworld_and we just didn't migrate properly or something12:40
rick_hok, I'll make sure to check through our src. thanks12:40
wallyworld_rick_h: lib/loggerhead/static/javascript/yui12:41
rick_hwallyworld_: right, so that wouldn't be part of our combo loader12:41
rick_hwallyworld_: since we don't copy that dir into our build dir12:42
wallyworld_that's not where the errors in lp would be from i don't think, but merely evidence that we may have left over crap in places12:42
rick_hwallyworld_: right, I've got more poking to do. I'm on reviews for my first time today so might be slow going through it12:42
wallyworld_ok. have fun. hopefully you won't get too many :-) so we can get this sorted :-)12:43
cjwatsonDoes qastaging process PackageCopyJobs created on it?12:49
bigjoolsyes12:49
cjwatsonI'm beginning to empirically conclude it doesn't12:49
cjwatsonhmm12:49
bigjoolseasy to check12:50
cjwatsonoh, unapproved queue, not new12:50
cjwatsonI *was* checking, I was just looking in the wrong place :-)12:50
bigjools:)12:50
=== jtv is now known as jtv-afk
Laneyhttps://code.launchpad.net/~laney/launchpad/add-sponsor-field-to-spph/+merge/87930 needs review, if anyone feels like it. Be aware that this is my first (real) LP branch so gremlins may lurk.13:16
rick_hadeuring: ok, posted comments on the review. Let me know what you think. I've requested the follow up review from jcsackett before final ok13:20
adeuringrick_h: ok, thanks13:21
rick_hlet me know if anything's not right so I can learn for my next review. Speaking of...13:21
rick_hLaney: ok, will take a peek. Between your first branch and my first day of reviews, we'll make a fun day out of this yet13:21
Laney:-)13:21
adeuringrick_h: well spotted issues. I'll fix them13:23
=== jcsackett changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: rick_h*, jcsackett | Firefighting: - | Critical bugtasks: 3*10^2
rick_hLaney: ok, only comment is that test. jcsackett will make sure I didn't miss anything else.14:02
LaneyOK. I wondered that, but didn't know if there was only supposed to be one assert per test14:02
Laneythanks14:03
bachi bigjools, do you have access to kde on natty?14:06
deryckMorning, all.14:07
abentleyderyck: morning14:08
bigjoolsbac: I don't, I'm all upgraded to almost new14:11
bacbigjools: poo.14:17
bigjoolssorry old bean14:18
rick_hbac: what do you need? I might know a kde using friend in our loco on natty14:21
bacrick_h: thanks, i may take you up.  just some testing for an SRU.  i don't think it'll be required but i'll keep it in mind.14:22
rick_hbac, ah ok14:23
=== jtv-afk is now known as jtv
=== matsubara is now known as matsubara-lunch
jcsackettlaney: i've reviewed your MP--i would really like the test duplication resolved. you can mash the tests together, but i have an alternate, somewhat preferable (to me at least) approach in my comment on your MP.15:17
Laneyjcsackett: absolutely. Thanks for that. It'll have to wait until I get home but that sounds reasonable to me.15:18
jcsackettlaney: cool. if i'm still on when you make the change, ping me then and i can approve.15:19
Laney3-4 hours time15:19
jcsackettLaney: then i'll be here. :-)15:30
Laneyawesome15:30
=== al-maisan is now known as almaisan-away
adeuringrick_h: i pushed new revision of the branch15:41
adeuringcare to take a look?15:42
rick_hadeuring: sure thing, will check it out in a sec. Thanks15:42
adeuringthanks!15:43
rick_hmwhudson: ping, question for you on https://code.launchpad.net/~mwhudson/loggerhead/bug-321325/+merge/87881, why was file_id param removed?15:44
rick_hdoh, always check location first.15:45
* jcsackett wonders why he gets gnomekeyring errors when using ec land in tmux ...15:47
rick_hjcsackett: haven't seen that myself15:48
jcsackettit just started happening recently, but i can't remember any updates that would be relevant.15:48
adeuringjcsackett: thanks for your review!15:49
jcsackettadeuring: you're welcome. sorry i forgot to ping you when i was done. :-P15:49
rick_hadeuring: awesome, thanks. Sorry on the docstring, I didn't think to check the interface. r=me16:00
adeuringrick_h: thanks!16:00
=== matsubara-lunch is now known as matsubara
ayani'm new to python and the launchpad api.16:36
ayani'm having trouble extracting the next item in a series given a series name.16:36
ayanso if i have:16:37
ayanubuntu = lp.distributions['ubuntu']16:37
ayanand i want the series after 'maveric'.16:37
ayanhow can i use ubuntu.series to extract 'natty'?16:38
bigjoolsayan: you can just do ubuntu['natty']16:39
bigjoolsIIRC16:39
ayanbigjools: i don't know the series after maveric.16:39
ayanwell -- *I* do, but I'd like to determine the next series programaticly.16:39
bigjoolsayan: you need to iterate then16:40
ayani can iterate over ubuntu.series but i was wondering if there was a simpler way.16:40
ayanright.16:40
bigjoolsthere's no better way really16:40
cjwatson>>> [series for series in ubuntu.series if series.parent_series is not None and series.parent_series.name == 'maverick'][0]16:49
cjwatson<distro_series at https://api.launchpad.net/1.0/ubuntu/natty>16:49
cjwatsonor a less densely packed version if you prefer :)16:49
cjwatsonbut indeed the API only links it in that direction not the other way round16:51
rick_hcjwatson: ? re https://code.launchpad.net/~cjwatson/launchpad/split-ftpmaster/+merge/8919317:06
rick_hcjwatson: on the  warned_database_imports. I'm not 100% what that's for, but you removed ftpmaster, but none of the new modules qualified to take its place?17:06
cjwatsonrick_h: possibly true; it's hard to say because the importfascist is broken anyway so I can't quite tell what it's supposed to warn about17:22
rick_hcjwatson: ok17:22
cjwatsonrick_h: I guess maybe obsolete_distroseries?17:23
cjwatsonrick_h: I've added that - I suppose it can do no harm17:24
rick_hcjwatson: ok, sorry I'm not helpful. Trying to figure out what this is intended to do17:24
cjwatsonhttps://bugs.launchpad.net/launchpad/+bug/70612917:25
_mup_Bug #706129: import fascist is now ineffective and should be either reenabled or deleted <easy> <tech-debt> <Launchpad itself:Triaged> < https://launchpad.net/bugs/706129 >17:25
rick_hah, that makes sense17:25
cjwatsonIt's probably my duty not to make it any worse when doing something not essentially related17:26
rick_hcjwatson: so I'd expect to see something touching the database to be in the warnings there, but I'm not seeing any of the code doing a query/etc?17:31
rick_hcjwatson: I guess it's more for other code importing ftpmaster though, so nvm.17:32
salgadoI'm getting "You attempted to reach launchpad.dev, but the certificate that the server presented has been revoked by its issuer." on chrome 17.0.963.33 beta when accessing launchpad.dev and the only option I'm given is to go back.  does anybody know if there's a way to tell chrome to ignore it or at least give me another option to proceed regardless?17:33
salgadoI used to be given the option to proceed regardless, so maybe this is a new chrome feature?17:34
salgadothe " Check for server certificate revocation" checkbox doesn't seem to change anything17:36
salgadofirefox doesn't seem to think the certificate is revoked -- only that it is self-signed.  maybe chrome's change in behaviour is because it thinks the certificate is revoked?17:40
salgadohm, nevermind, seems to be working now17:45
cjwatsonrick_h: I think it's any imports, so the UTC_NOW that ended up in obsolete_distroseries.ppy [D[D[Dwould have triggered it at one point17:50
cjwatsongah, ignore lag-induced junk there17:51
Laneyjcsackett: Just implementing your changes now (actually there are rather more opportunities to pull that code out of). Shall I implement rick_h's suggestions too (merging the new tests into existing ones)?18:47
jcsackettlaney: i think these are legitimately new tests, so the tests themselves should remain separate. just pull out the repetitive boilerplate.18:47
Laneyack, I thought the same18:47
jcsackettcjwatson: i have finished reviewing rick_h's review. all looks good, given you addressed his one issue.19:25
jcsacketti am guessing you need landing assistance? :-)19:25
=== jcsackett changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: jcsackett | Firefighting: - | Critical bugtasks: 3*10^2
Laneyjcsackett: pushed. I'm sure there's more that can be done, but this is at least better.19:46
jcsackettLaney: i see several places where you've now deleted the line where a change_log_entry is set, but the _setup_copy function doesn't set that. have you verified these changes all pass without that line?19:54
Laneyjcsackett: yes, I reran that entire file19:55
jcsackettderyck: the mp you've claimed may be the largest i have seen during my review times. certainly it is the largest i can remember.19:56
Laneyseemed to be c+p19:56
deryckjcsackett, yeah, biggest I've done too.19:57
jcsackettLaney: awesome. r=me.19:57
jcsackettLaney: i assume you need/want landing assistance on this?19:58
Laneyjcsackett: yes please. I can't do it myself.19:59
=== deryck is now known as deryck[lunch]
jcsackettoops, Laney, sorry if i got your hopes up. i see it's dependent on another branch hitting production, which hasn't happened yet.20:01
jcsackettwhen that does, we can get this branch out to land.20:02
Laneyjcsackett: the db branch? AFAIK it rolled out in FDT today (or at least that's what wgrant told me)20:02
jcsackettLaney: according to the deployment report, it's clear to be deployed, but i don't think it has been yet.20:03
Laney19/01 10:10:07 <wgrant> Laney: Your DB patch is deployed.20:03
Laney19/01 10:10:13 <wgrant> And now in devel.20:03
jcsackettLaney: hrm. lemme go run this down.20:04
jcsackettLaney: yup, i see that the FDT through 11307 happened. alright, out this one goes.20:06
Laneyawesome20:06
=== matsubara is now known as matsubara-afk
sinzuiThat replacement private team debacle has set me on edge. I cannot write an announcement about privacy/disclosure terminology.20:38
* sinzui looks for a trivial bug to feel productive20:38
=== deryck[lunch] is now known as deryck
deryckah, sorry, sinzui20:55
sinzuideryck, no need to apologise. I lead the commercial admin team and I have not been very good at documenting how to extract users from Lp privacy morass20:58
deryckyeah, I just hate you lost your day to it.20:59
sinzuiyes. I am disappointed. Still one of the bugs I reported is definitely a social-private-teams defect that must be fixed in the next two weeks. I think we chose the wrong vocab to get the list of teams you can transfer a branch to21:00
sinzuideryck, You can set aside your guilt My trivial fix to allow changing a branch owner to a private team also fixes other bugs.21:36
derycksinzui, ah, nice!21:36
derycksomething good from the day then!21:36
wallyworld_deryck: hi. thanks for the review! just to confirm - should we prefer YUI.use or YUI.add?21:43
deryckwallyworld_, hey man.21:43
wallyworld_g'day21:43
wallyworld_we seem to use YUI.add in our js, and YUI.use in the tal21:44
wallyworld_more or less21:44
deryckwallyworld_, sorry, I wasn't clear... if it's a use block, it should be "YUI().use" -- if it's add, it should be "YUI.add"21:44
wallyworld_np. i sort of read the review comment in email and didn;t look back at code - i wanted to try and quickly catch you before youi eod21:44
wallyworld_so it was probably a stupid question based on lack of info21:45
deryckyeah, the spots we use then look right to me.  it's just YUI.use should become YUI().add and if there are any YUI().add they should be YUI.add.  if that makes sense. ;)21:45
wallyworld_ah right. yes it does. thanks. should be easy to fix. we have our standup soon and i'll do it asap after that. can't wait to land this21:46
wallyworld_that console noise suck though21:46
wallyworld_deryck: also, sinzui said in email that we used a single LPS instance previously to resolve some browser issues. are we sure there won't be an issue using YUI() all over?21:47
deryckI'm sure.21:48
sinzuiwallyworld_, deryck. I recall the issue was between solid sandboxing and page rendering times. We (and landscape) chose the later21:48
derycksort of.21:49
deryckit was browser issues, it was the only way to set a global config, before the global config option we have now....21:49
deryckso we passed in those 4 or 5 issues to prevent trying to connect to Yahoo's CDN, which helped performance.21:49
deryckthat was "wasn't" browser, not was.21:49
wallyworld_ah, ok. and rendering times should be better now with the combo loader :-)21:50
deryckindeed.21:50
wallyworld_also, i justed emailed you guys directly rather than the list - we can do an email to the list once this lands21:50
deryckand we have all the global config options we need now too.21:50
deryckGlobalConfig didn't exist back when we did LPS.  That's what I was trying to say.21:51
wallyworld_deryck: so, if you are able to check back in say 90 minutes or so, hopefully i'll have made the changes. depends on how long our standup goes. then we can send to ec2 today \o/21:51
deryckwallyworld_, yay!21:51
wallyworld_thanks :-)21:51
deryckwallyworld_, I'll will check back in between 1.5-2 hours from now.21:51
derycknp!21:51
deryckso before raid night. ;)21:51
wallyworld_ok. i know it's a large mp. but i expected one of us to review and we were all across the implementation21:52
wallyworld_yep :-)21:52
deryckyeah, I wasn't worried about the size.21:52
deryckit's really a clean diff anyway.  2000 lines are the global LPS replace stuff.21:52
wallyworld_deryck: i'll raise a bug also so we have a qa trigger. is there one already that you can recall?21:52
wallyworld_i was just commenting on the concern expressed in the mp :-)21:53
sinzuideryck, thank you for your keen memory. BTW, why are you here? Have you run away from home21:53
deryckwallyworld_, no, there's not.  just make a "we should use a combo loader" bug.  and I think this in incr fix.21:53
deryckwallyworld_, we can finally close the bug when we switch it live.21:53
derycksinzui, I start later and stay later now.21:54
deryckmy EOD is in 5 minutes.21:54
wallyworld_deryck: sounds good. i just want to make sure we do all the due diligence we can :-)21:54
deryckindeed :)21:54
wallyworld_i really hope qa goes ok. i dpon't want to rollback :-/21:54
rick_hwallyworld_: do we need to get the path business on convoy setup before this lands?21:54
rick_hwallyworld_: since we'll need to be able to do upgrades and such with webops going forward?21:55
wallyworld_rick_h: no. lets just get this in as is, we won't switch on the combo loader till we are ready21:55
wallyworld_we will iterate21:55
rick_hok, just wamted to be sure21:55
wallyworld_rick_h: see above discussion for YUI() vs LP_YUI and reasons for originally using LPS21:55
wallyworld_we will be going with YUI() as you wanted21:56
* wallyworld_ fires up mumble and hopes it works this time21:58
cjwatsonjcsackett: landing> yes please, thanks22:25
StevenKsinzui, wgrant: http://pastebin.ubuntu.com/810147/ :-(22:34
=== jcsackett changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: - | Firefighting: - | Critical bugtasks: 3*10^2
jcsackettcjwatson: your branch is off to land. :-)22:36
wgrantStevenK: Ah, because it's a str, not an int. You may have to use python: after all :(22:36
cjwatsonjcsackett: cool, thanks22:37
deryckNight all.22:46
sinzuiwgrant, https://bugs.launchpad.net/launchpad/+bug/55668022:53
_mup_Bug #556680: attempting to create a new account with an existing team email address at login.ubuntu.com oopses <isd-logging-sprint> <lp-foundations> <openid> <Canonical SSO provider:Incomplete by stuartmetcalfe> <Canonical ISD QA:New> <Launchpad itself:Triaged> < https://launchpad.net/bugs/556680 >22:53
* sinzui adding the missing openid tag22:53
StevenKsinzui: https://code.launchpad.net/~stevenk/launchpad/kill-bugtask-launchbag-with-fire/+merge/89357 but no diff yet22:56
StevenKThat was quick.22:56
StevenKSomething must be broken.22:56
wgrantsinzui: Ah22:59
wgrantsinzui: As I thought, the email address gets stolen from the team.22:59
wgrantIn the old code.22:59
sinzuiI raised the bug to critical, you can mark it as a dupe. Now we have a really TB to look at.23:00
sinzuiwgrant, you can fix this if you think you have the opportunity23:00
wgrantHm23:04
wgrantI think that same thing would actually have taken a person's last email address in some situations.23:04
sinzuiwgrant, in the case of a team, the last email address could be an Lp hosted list. That would be very strange. I think there is an assumption in Lp code somewhere that lists.launchpad.net is a team23:08
StevenKsinzui: Thanks for the review, I'll toss it at ec2 after breakfast.23:14
wallyworld_rick_h: you there?23:32
rick_hwallyworld_: here, what's up?23:41
wallyworld_my reading of the yui3 docs is that there's no config option to allow setting the logLevel in the GlobalConfig object :-(23:41
wallyworld_you can go YUI({logLevel: 'info'}) but that's not a global setting23:42
rick_hwallyworld_: ok, I'll take a peek23:42
wallyworld_thanks, i may have simply missed the option23:42
wallyworld_i did try it in GlobalConfig despite the docs saying it wasn't an option and of course it didn;t work23:43
rick_hyea, not sure. I've not tried it23:43
wallyworld_we may just have to have a noisy console23:43
rick_hright, I think it won't take long to clean up23:43
rick_hI fixed the one locally on the widget-position-ext23:43
rick_hso I can merge that once this is landed right away and then it's just a matter of fixing the css ones23:44
rick_hand it's only for people behind the feature flag until I find the rest23:44
rick_hI didn't have much time to look into it today with reviews23:44
wallyworld_yeah, plus the lp.xxxxxx naming inconsistencies etc23:44
rick_hI'm a bit slow on them atm23:44
rick_hright, that was my fault. I thought the lp.xxx module name had to match the directory structure23:44
rick_hso I changed the one module deryck pointed out23:44
wallyworld_rick_h: the noisy console is with or without the ff23:44
wallyworld_it's due to us moving to YUI() all over instead of a sinlge instance23:45
rick_hwallyworld_: ah, that's right sorry23:45
rick_hbut I can fix it, just need to find the issues and correct them one at a time23:46
wallyworld_rick_h: np. plus, the work last week introduced a critical regression bug 91890123:46
_mup_Bug #918901: bug page html is unparseable by XMLHttpRequest <Launchpad itself:New> < https://launchpad.net/bugs/918901 >23:46
rick_hand they show up as warnings, both chrome/FF have a filter on the debug tools to choose the level absoulte worst case23:46
wallyworld_this was part of the general cleanup stuff from lp.js was moved into tal23:47
wallyworld_i'm onto that bug next23:47
rick_hoh hmm, ok. well should be able to through the page html at a validator and see what it hates on23:47
wallyworld_it hates the unquoted & and < etc23:47
wallyworld_shit happens23:48
wallyworld_i didn't realise we were doing anything naughty23:48
rick_hwhere is the unquoted &/< ?23:48
wgrantSearch for ' < ' on any LP app page.23:49
wallyworld_not sure - haven't looked yet tbh. wgrant raised the issue on today's standup23:49
wgrantCry23:49
rick_hah ok23:49
wallyworld_apparently it's all @$%@!$%! the fault if IE23:49
wallyworld_s/if/of23:49
wgrantYup23:49
wgrantIf IE didn't exist we could just use XHTML :/23:49
rick_hhmm, the only one I see is in JS code on a sample bug page23:49
wgrantrick_h: RIght23:49
wgrantrick_h: That's the problem.23:50
wgrantLP pages have traditionally been both HTML and XHTML.23:50
rick_horly? having the           for (i = 0; i < nodes.length; i++) {23:50
rick_hin a JS tag is bad?23:50
wgrantThey're no longer valid XHTML.23:50
wgrantYes.23:50
wgrantIt's invalid XML.23:50
rick_hok, well worst case we can go back to the plan of pulling out the plain JS methods back out of the template. I figured putting them there just made it obvious since they were a bit hidden before23:51
wgrantAnd you can't escape using &gt;, because that doesn't work in HTML4.23:51
rick_hright, that's not valid JS at that point and it'd fail I'd expect23:51
wgrantNo.23:51
rick_hreally? you can use &gt; in JS and it'll parse/execute?23:51
wgrantYou're not using &gt; in JS.23:51
rick_hthat's where I see it at23:52
wgrantYou're using &gt; in XML or SGML23:52
wgrantWhich happens to have JS encoded in it.23:52
rick_hah, gotcha23:52
wgrantThe problem is that HTML4's subset of SGML is stupid.23:52
wgranteg. if I have JS with a string containing '</script>', I can't represent that in HTML4.23:52
wgrantBecause I can't encode it to &gt;/script&lt;, because HTML4 browsers won't decode it.23:53
rick_hlovely, well have to love that this little project is a demonstation of how many ways to break something :)23:53
wgrantIt's similar to the problem of including ]]> in an explicit CDATA section.23:54
wgrantExcept that XML is sensible, so you can just end the section, write ]]> literally, then restart it.23:55
wgrantIt will still be the same text node.23:55
wgrantBut for script tags in HTML4 we have no such luxury.23:55
wallyworld_so if we land the use-convoy branch, it will rebreak any fixes to trunk. i'm tempted just to fix in use-convoy since we are landing that today23:55
StevenKwgrant: <tal:official_tags tal:content="structure/view/official_tags" /> seems to not work23:55
wgrantStevenK: 'structure ', not 'structure/'23:56
StevenKAh23:56
wgrantJust do a list of tuples, though.23:56
wgrantMuch safer.23:56
StevenKWe couldn't -- remember?23:56
wgrantpython: isn't the end of the world.23:57
wgrantIt's close, but not quite.23:57
wgrantrick_h: Ideally you should remove the JS from the page, but otherwise you can wrap it in commented CDATA tags23:57
wgrantTo make XML parsers happy.23:58
StevenKI have it working with the tags in the view. I'm happy with it.23:58
wgrantYou've said 'structure'23:58
wgrantThe most that can make you is "awkwardly compromising"23:58
StevenKThat's what sinzui suggested.23:58
wgrantBy no means can that make a reasonable person in any way happy.23:58

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