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

StevenKwallyworld_: Haha, did you miss buildbot on purpose?00:01
wallyworld_StevenK: yes. i didn't want to risk any failure00:02
wallyworld_you never know...00:02
StevenKHeh, fair enough00:03
* StevenK re-reads the feature flag destruction diff, trying to figure out how to QA it00:47
StevenKwgrant: Hm, neither https://qastaging.launchpad.net/ubuntu/+source/evolution/+sharing-details or https://qastaging.launchpad.net/ubuntu/precise/+source/evolution/+sharing-details works, and I'd expect them too01:11
wgrantStevenK: You fail at vhosts01:13
StevenKOh, bloody translations!01:13
StevenKwgrant: You need to land your branch to remove them all already01:13
wgrantHeh01:18
StevenKwgrant: I've done my QA, the deployment report is full green.01:22
wgrantStevenK: Great.01:27
wgrantStevenK: https://code.launchpad.net/~wgrant/launchpad/no-ibug-private-default/+merge/11866102:54
StevenKwgrant: r=me02:56
wgrantStevenK: Thanks02:59
cody-somervillewgrant, is that going to break PES scripts again? ;)03:02
StevenKIt is not.03:02
lifelesscody-somerville: you know we have 'break PES today!' printed out above our desks...03:03
wgrantIt's the proper fix to the quick fix that sinzui did this morning.03:03
wgrantIt doesn't delete the tests he added, fortunately.03:03
cody-somerville:-)03:03
cody-somervillelove you guys03:03
StevenKOh, you're just saying that.03:03
wgrantIn related news, Launchpad is not software; it's a minefield of fail-open, non-defensive, untested hacks. :)03:04
wgrantlib/lp/bugs/tests/test_bugtarget2.py03:15
wgrantwut03:15
wgranttest_bugtarget2?03:16
=== michaelh is now known as michaelh|away
wgrantStevenK: Mildly oversized (due to largely mechanical test changes) cleanup MP at https://code.launchpad.net/~wgrant/launchpad/createBugParams-target/+merge/118673, if you're still reviewing05:50
StevenKwgrant: Swap you, https://code.launchpad.net/~stevenk/launchpad/format-imports-once-more/+merge/11867405:51
wgrantAbout half of those are my fault05:52
wgrantBut I ran it...05:52
wgrantoh, not after I moved that last thing from model to interfaces05:52
wgrantr=me, anyway05:52
StevenKWTF, I see what you mean about test_bugtarget205:57
wgrantI might merge them later.05:59
StevenKI'm not really happy about IBugTarget.createBug(), but bloody heck, it's tons better than what was there.05:59
wgrantStevenK: Well, compare to the product/distribution/distributionsourcepackage implementations06:00
wgrantWhich all reduce to that in the new API06:00
StevenKYes, that's exactly what I mean.06:00
StevenKWhy not move IllegalTarget out to bugs.errors? Branch too large already?06:01
wgrantStevenK: The other similar bugtask edit errors are in interfaces.bugtask06:02
wgrantThey should probably all be moved eventually.06:02
wgrantBut not now.06:02
StevenKwgrant: Not fair that you keep finding problems with my branches, and I can't with yours. :-)  r=me06:03
wgrantHeh06:03
wgrantThanks.06:03
wgrantNext I'm going to fix the factory method that I mentioned (which has irked me for years -- makeBugTask takes target=, makeBug doesn't), and I hate to think how big the branch will be...06:04
StevenKwgrant: QA, and then we can deploy again.06:11
wgrantStevenK: Indeed.06:14
adeuringgood morning07:21
=== frankban changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: frankban* (rvba) | Firefighting: - | Critical bugs: 4.0*10^2
lifelesswhat are the exact cross-domain limits on JS based POSTs?10:48
lifeless(for error reporting via JS) - doing massive gets is unappealing.10:48
* lifeless goes - will look for replies in morning10:48
rick_h_lifeless: proxy on the server in the end: http://stackoverflow.com/questions/6812331/cross-domain-ajax-post-call has most of the details but browser support for the headers are limited11:05
rick_h_jcsackett: ping morning, got questions for you when you get a sec11:58
jcsackettrick_h_: Pong. PM, or G+?13:46
rick_h_jcsackett: I'll G+ you in a sec, trying to get these rollbacks going13:47
jcsackettOk.13:47
rick_h_meh, diffs taking forever to update, should be quick.13:47
rick_h_jcsackett: invite sent13:51
=== abentley changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: frankban* (rvba), abentley | Firefighting: - | Critical bugs: 4.0*10^2
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
=== frankban changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: abentley | Firefighting: - | Critical bugs: 4.0*10^2
rick_h_sinzui: ping17:28
sinzuihi rick_h_17:32
sinzuihi rick_h_17:32
rick_h_sinzui: hey, PM17:33
sinzuiI have no meeting tomorrow so PM is fine17:34
rick_h_sinzui: ok cool thanks17:34
rick_h_sinzui: deryck is afk so can't verify, but told him to expect to set aside some time so should be good17:35
lifelessrick_h_: thanks18:35
rick_h_lifeless: np, something I've battled and just a pita :/18:36
rick_h_wish we were a true middleware shop and could just build a wsgi middleware to include that could catch/handle all JS error/debug requests and do the proxy for you18:36
lifelessrick_h_: well, we can trivially18:38
lifelessrick_h_: but I'd like to offer a single instance forall canonical sites by preference18:38
rick_h_yea, looked at building something like that at my last job using a wsgi middleware on a pylons stack that required a js library and wsgi middleware hookup to function18:39
Ergo^rick_h_, sounds a bit like errormator i need to work on JS client though ;-)18:41
rick_h_Ergo^: yea, to an extent18:41
rick_h_http://www.olark.com/spw/2012/03/dont-break-the-internet-with-your-javascript/ is an interesting read along the lines18:42
lifelessrick_h_: this is for lp:js-oopsd btw, considering tweaks + we need the JS side of it18:49
rick_h_lifeless: cool, assumed it was oops related. Will peek at the project18:50
jamabentley: quick question about the branch scanner (the new celery based code19:26
jamare they long-lived processes?19:26
abentleyjam: all ears.19:26
abentleyjam: Not generally.  Sometimes branch scans are long, but otherwise no.19:27
abentleyjam: Well, actually, the worker threads and daemon are long lived.19:28
abentleyjam: But they're managed by celeryd and we can control how often they expire.19:28
jamabentley: https://pastebin.canonical.com/71417/19:30
jamI'm confused by the '-idle-'19:30
jamI was trying to figure out some of the recent 'things are swapping' issues. It claimed to be swapping at 1GB, but it seems ilke it 'idles' at 500MB19:31
abentleyjam: I'm confused that they're running at all.19:31
jamthose might be celeryd processes vs branch scanner processes?19:32
abentleyjam: I talked to a webops like a week ago and said we should kill them until we are ready to do branch scanning via celeryd19:32
abentleyjam: It looks like a worker process that hasn't done anything yet.19:32
jamabentley: so we aren't actually doing branch scanner in celery, we just have a celeryd worker group that is sort of sitting around?19:40
jamI guess running: CeleryRunJobIgnoreResult19:40
abentleyjam: That's right.19:40
abentleyjam: Yeah, I suppose that dates from the last time we tried enabling it.19:41
abentleyjam: Actually, the Feature Flag still shows branch scan jobs enabled.  I don't understand why.  (jobs.celery.enabled_classes)19:43
abentleyjcsackett: ping20:09
lifelessrick_h_: wow, the w3c have really forgotten how to write specs.20:16
lifelesshttp://www.w3.org/TR/cors/#preflight-request is giving me a headache20:16
Ergo^lifeless, yeah cors is PITA and doesnt work in every browser as advertised ;-)20:17
=== mbarnett` is now known as mbarnett
lifelessErgo^: its the green and blue presentation that is breaking me20:22
lifelessand clauses like "If the field name of each header in author request headers is not an ASCII case-insensitive match for one of the header field names in headers and the header is not a simple header, apply the cache and network error steps."20:22
lifelessWould be much better done as:20:22
lifeless* header field names are compared insensitively between CORS supplied references and actual HTTP headers.20:23
lifeless* If a complex header is named in the author request headers but not supplied in the response, apply cache and network error handling.20:24
lifelessor something20:24
lifeless'if not A and not B =>' <==> 'not (A OR B)'20:25
lifelessI shouldn't need to do boolean rearrangements to their rules to make them understandable! :)20:25
sinzuijcsackett: about out branch in review. the issue is not about read-only20:40
sinzuijcsackett: as a driver of a project, I can see who the project shares with, but I cannot edit20:41
=== abentley changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: - | Firefighting: - | Critical bugs: 4.0*10^2
=== michaelh|away is now known as michaelh
jcsackettsinzui: the "clickable_content" on +sharing is the little tag thing that shows the information.21:04
jcsackettwith this change, it doesn't look editable, which it shouldn't, per the reported bug.21:04
jcsackettclickable_content is how our flag works, which is why i mentioned writable in the MP.21:05
sinzuijcsackett: yep, and I see that is what the sharing table used. I think we have another bug. drivers should be seeing that page and they cannot edit. I suspect our code does not know what to do with drivers at all21:18
jcsackettsinzui: they can't edit on production, or at all?21:25
sinzuiqastaging21:25
sinzuipermission denied getting to the page.21:25
sinzuiI see lots of things wrong with drivers that our squad needs to discuss. We will also discuss going to maintenance instead of working on disclosure21:26
jcsackettsinzui: dig. so we actually have new issues, not an issue with this branch.21:33
wgrantUm22:03
wgrantwhat22:03
wgrantjam: To clarify, we've been running branch scan jobs through celery on production for at least several weeks.22:03
wgrantjam: The processes are meant to be long-running.22:03
wgrantThey're daemons.22:03
wallyworld_sinzui: wgrant: jcsackett:     @enabled_with_permission('launchpad.Driver')22:27
wallyworld_    def sharing(self):22:27
wallyworld_        text = 'Sharing'22:27
wallyworld_        enabled_readonly_flag = 'disclosure.enhanced_sharing.enabled'22:27
wallyworld_        enabled_writable_flag = 'disclosure.enhanced_sharing.writable'22:27
wallyworld_        enabled = (bool(getFeatureFlag(enabled_readonly_flag))22:27
wallyworld_            or bool(getFeatureFlag(enabled_writable_flag)))22:27
wallyworld_        return Link('+sharing', text, icon='edit', enabled=enabled)22:27
jamlifeless: ^^ see wgrant's comments. So should we a) change them from long-lived because they waste the memory, or b) just shove more RAM into the box?22:35
jamthe long-livedness means as time => infinity, we're likely to see all the processes get pretty darn big22:36
jam(if we still have the ulimit set, I guess that kills them off eventually)22:36
* jam sleeps22:36
wgrantjam, lifeless: Killing the processes is probably stupid; we need a few spare workers to avoid paying the startup time for every scan. But they shouldn't grow infinitely, and it should probably only keep a few around.22:37
wgrantBut I believe it handles that automatically.22:37
wgrant(I'll talk to Aaron and Abel tonight about this, since they were the ones that set it up on prod, but seem to not know that it's set up on prod)22:40
cgoldberghello.  I am trying to run the tests for pageperformancereport.  looks like I need to run buildout first?  all I've done so far is an initial checkout/branch.. any tips on how to run buildout/bootstrap so I can run `bin/test`?22:40
cjwatson'make' should do it, if you've used rocketfuel-get or an equivalent.22:42
wgrantcgoldberg: If you haven't used rocketfuel-setup, you'll need to 'bzr branch lp:lp-source-dependencies download-cache', utilities/update-sourcecode, make compile22:43
cgoldbergwgrant, thanks.. will give that a try..22:44
cgoldbergwgrant, cjwatson, what's rocketfuel-* ?22:44
wgrantcgoldberg: The LP dev setup script that most people use22:45
wgrantAs described on https://dev.launchpad.net/Running22:45
cgoldbergwgrant, should i go that route, or just branch and compile?22:45
cgoldbergwgrant, thanks.. *thats* the page i was looking for22:46
wgrantAs the page says, it's recommended to run LP in a Lucid LXC container on a Precise system, using rocketfuel-setup.22:46
cgoldbergi'm just working with pageperformance reports.  it's a utility, so not sure I need a running LP.  thanks though.22:48
lifelesscgoldberg: btw this is why I said to move it to lp-dev-utils first :)22:49
lifelesscgoldberg: gets you out of the heinous LP environment22:49
cgoldberglifeless... what does bin/test do?  how can I port the tests so it works in lp-dev-utils?  what kinda test runner will I need?22:50
lifelesslp-dev-utils should have a test runner already22:50
lifelessbut if it doesn't, just use python -m testtools.run22:50
cgoldberglifeless, ah perfect.. I'm gonna go that route (move to lp-dev-utils)22:51
lifelesscgoldberg: if you have trouble, I can do the initial move for you if you want.22:51
cgoldberglifeless, doubt I'll have trouble.. but that would certainly be helpful, as I'm not quite sure where you want them22:51
lifelesscgoldberg: ok, I'll do it later today22:52
cgoldberglifeless.. sweet.. thanks much22:52

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