/srv/irclogs.ubuntu.com/2010/04/22/#launchpad-dev.txt

thumperno00:18
* thumper is pretending to be buys00:18
thumperbusy even00:18
abentleywgrant, SourcePackageRecipeBuildJob seems like it could be eliminated by putting a "job" column on "SourcePackageRecipeBuild"00:20
wgrantabentley: SPRBJ is gone in the new model: http://people.ubuntu.com/~wgrant/launchpad/buildfarm/new-build-model-again.png00:21
abentleywgrant, Where is Job?00:22
wgrantabentley: No longer involved in the build farm.00:22
abentleywgrant: please unify builds and jobs00:23
wgrantabentley: The current model is reasonably close to that...00:25
abentleyBy "current", you mean "without the changes shown in the diagram"?00:26
wgrantRight, the one that was implemented in Wellington.00:26
wgranthttp://people.ubuntu.com/~wgrant/launchpad/buildfarm/current-build-model.png00:26
wgrantWhy do you want Job involved?00:26
wgrantIt's not awfully useful.00:26
abentleywgrant, I want common data to be represented in a common place in a consistent way, so that I can view it and address it by Job.id.00:28
wgrantI guess we could fairly simply replace some of BFJ's columns with delegations to Job.00:31
wgrantAt least the other classes no longer have to care.00:31
wgrantHm, so most of the columns in the job table aren't in IJob. Does that mean that they're not used anywhere, so Job looks less suitable than it actually is?00:33
wgrantabentley: What is a Job's lifetime?00:35
wgrantDoes it persist after it completes?00:35
abentleywgrant, yes.00:36
wgrantHrm hrm.00:37
abentleywgrant, what are the columns whose lack of exposure makes Job seem less suitable?00:37
wgrantSounds like you need to argue with Soyuz.00:37
wgrantabentley: All that stuff like reason, next_report_due, scheduled_start, lease_expires, progress, attempt_count, max_retries...00:38
abentleywgrant, some of the columns you mention are exposed.  Others haven't been exposed yet due to YAGNI.00:40
abentleywgrant, if there's now a need, we could expose them.00:40
wgrantabentley: No, no, my point was that it makes it look more specific than it actually is.00:41
wgrantTheir existence in the schema, that is.00:41
abentleywgrant, I see.00:42
abentleywgrant, So, reason, next_report_due, progress, attempt_count and max_retries are currently unused to my knowledge.00:45
wgrantabentley: attempt_count is actually used, but only internally.00:45
abentleywgrant, we record it, but I don't think we ever read it.00:45
wgrantabentley: Right.00:45
abentleyscheduled_start is optional; if NULL, we attempt it as soon as we can.00:46
thumperwgrant: yeah, I agree with abentley that BuildFarmJob should defer many columns to Job02:25
thumperwgrant: and it should be a job type02:25
thumperalso02:27
thumperit may well make sense to have a json_data blob on the BuildFarmJob table too for extra meta-data that is never queried against like the BranchJobs02:27
thumperit may make TranslationTemplateJob and SourcePackageRecipeJob as unnecessary02:28
wgrantthumper: Sounds like you need to talk to noodles/bigjools about this.02:31
wgrantNone of that has been implemented yet, so it can be easily changed.02:31
* thumper sighs02:31
thumperwgrant: how to we make the builders add ppa:dailydebs-team/bzr-builder to its sources?03:02
thumperwgrant: the second thing we'd need to do is to get an updated bzr-builder in that ppa03:02
mwhudsonoh yay03:49
mwhudsonec2 test is completely broken03:49
wgrantthumper: Wellington discussion suggested that we would add an attribute to IDistribution specifying an extra archive to include for recipe builds.04:38
wgrantBut it hasn't been discussed in three months.04:38
wgrantIf so, that's really really easy to do -- we just need to make a decision.04:38
thumperwgrant: oh kay...04:40
thumperwgrant: feel free to reply to the email to remind everyone04:40
wgrantthumper: Replied.04:44
wgrantthumper: Did the copy of the email that went directly to you have more than just the list CC'd? I replied to all, and the other addresses were in the email that left my laptop... I'm wondering whether it was mailman or a braindead uni SMTP server that stripped the extra CC addresses.05:07
thumperwgrant: yes it did05:08
wgrantWhy, then, does the copy on the list not... grr.05:09
thumperwgrant: because the list copy tries to determine if the people you sent it to are on the list05:10
thumperwgrant: it is a feature:)05:11
wgrantthumper: Ah, like the "feature" where it doesn't send me a copy through the list if I'm addressed directly?05:12
thumpersomething like hat05:13
thumpers/hat/that/05:13
cody-somervilleSoyuz is acting up.05:48
wgrantcody-somerville: What's it doing?05:48
wgrantOr not doing?05:48
mwhudsoncody-somerville: best to say "losa" when you say that?05:48
mwhudsonor wgrant05:48
cody-somervillebuilds for multiple packages are getting rejected because it can't find the source package05:49
spmlogs?05:49
cody-somervilleoh wait, maybe the packages did get superseded but the error messages are very ugly.05:50
wgrantThat error message is ugly, yes.05:51
wgrantBut normal.05:51
cody-somervilleah, false alarm.05:51
cody-somervilleGot jumpy because I got so many emails about it05:52
spmwe did just have a glitch on apache/ppa due to a new cronjob that was ... um.... *badly* behaved. so possibly cause and effect there.05:52
cody-somervilleLooks like just a sloppy engineer in this case05:53
spmheh05:53
wgrantspm: My new cronjob? :/05:54
wgrantDid it eat all of germanium's RAM for lunch, or something else?05:55
spmwgrant: if it's called parse-ppa-apache-access-logs.py ? yes.05:57
spmit was at 2.5Gb RSS when I had to kill it as it had caused apache to be swapped out05:58
wgrantArgh.05:59
wgrantAnyway, /me -> exam.05:59
spmanyone who says ram is cheap at this point, will get a smacked bottom. :-P05:59
spmgood luck!05:59
mwhudsonspm: is it cheaper than disk? :)06:04
StevenKspm: RAM *is* cheap ... to allocate06:05
thumperspm: I think RAM is cheap06:16
thumperspm: how much to you need?06:16
spmthumper: I think RAM is cheap, therefor I am RAM?06:17
thumperspm: WFM06:17
=== almaisan-away is now known as al-maisan
adeuringgood morning08:14
jtvhi adeuring08:21
adeuringhi jtv!08:21
=== henninge_ is now known as henninge
mrevellHello09:15
bigjoolswgrant: hello09:19
bigjoolsdunno if you spoke to spm but FYI, the log parsing script gobbled >2.5GB RSS so had to be stopped.09:19
=== ctrlsoft is now known as jelmer
wgrantbigjools: I saw that, yeah. I suppose the librarian one would do that too if it had a huge volume of logs too.09:35
wgrantNot sure what to do, unless we convince it to stop after some millions of lines.09:38
wgrantThe comment in the librarian parser suggests store._cache.clear().09:40
wgrantBut I doubt that's the problem here.09:40
jmlgood morning Launchpadders?09:40
bigjoolswgrant: salgado said he'd fixed the issue so you might want to catch up with him09:52
bigjoolswgrant: or you could copy the publisher process_in_batches stuff09:52
wgrantbigjools: It's either the dict getting fricking huge, or StupidCache being really stupid. I don't know which.09:55
bigjoolsyes09:55
wgrantbigjools: Do we have a traceback, or was it killed harder than that?09:57
bigjoolswgrant: dunno, I didn't see one, I think they just killed it when it got big as apache was dying09:59
wgrantbigjools: Do you know how big the logs tend to be? I really have no idea what sort of size we're talking about here.10:00
jmljames_w: which one of you should I be talking to?10:00
bigjoolswgrant: otp right now, will check in a bit10:03
jmljames_w``: hello?10:03
wgrantbigjools: OK, thanks.10:03
=== james_w`` is now known as james_w
james_whi jml10:08
=== mrevell changed the topic of #launchpad-dev to: Launchpad Development Channel | Week 2 of 10.04 | PQM is open | https://dev.launchpad.net/ | Get the code: https://dev.launchpad.net/Getting | On-call review in irc://irc.freenode.net/#launchpad-reviews | Use http://paste.ubuntu.com/ for pastes
mrevellintellectronica, Hi, got five minutes?10:23
intellectronicamrevell: sure10:23
mrevellThanks intellectronica. I wanted to ask you about adding a pop-up help link to the bug heat flames, wherever they're displayed.10:24
mrevellintellectronica, I can dive in and take a look at the templates first, if you prefer.10:24
intellectronicamrevell: i thought we already discussed it yesterday? any difficulties?10:25
intellectronicai'm also happy to add the link myself if you prefer that10:25
mrevellintellectronica, Sorry, yeah, you directed me to the right place. If I make the change, could you take a look at my diff, please? It's my first change of this kind.10:27
intellectronicamrevell: of course10:28
mrevellThanks intellectronica -- http://pastebin.ubuntu.com/420319/10:29
intellectronicamrevell: the code looks fine. does the result look ok?10:30
mrevellintellectronica, Thanks. An apt-get autoremove seems to have just wiped out launchpad-developer-dependencies; not sure why. Just reinstalling everything I need to make run :)10:31
intellectronicamrevell: whoops10:32
jtvwgrant: are the slave build cookies now _only_ checked when rescuing a lost builder?10:50
wgrantjtv: I believe so.10:55
jtvwgrant: any idea how we'd simulate verification for Q/A?10:56
wgrantjtv: You could get two builds running on dogfood, then swap the BQ.builder values in the DB.10:58
jtvwgrant: nasty10:58
wgrantOr you could possibly use a fake builder.10:58
jtvwgrant: sorry for the long silences; some big distractions going on.11:03
deryckintellectronica, hi.  The board suggests bug 567375 has been merged, but the MP doesn't.  Has it merged?13:03
mupBug #567375: Degrade bug heat daily <story-bug-heat> <Launchpad Bugs:In Progress by intellectronica> <https://launchpad.net/bugs/567375>13:03
intellectronicaderyck: i think it has. at least, i've got a success email, let me check.13:05
intellectronicaderyck: damn, looks like it didn't, so something must have happened between EC2 and the submission. will merge now.13:07
deryckintellectronica, ok, cool.  Thanks13:09
deryckintellectronica, and then the bugs remaining would be the activity points idea and then garbo-daily to garbo-hourly, right?13:09
intellectronicaderyck: yes, i've just submitted the last branch for review.13:10
deryckintellectronica, ah, nice!  Can you add cards to the board for these two?  Are am I just missing where they are?13:10
intellectronicaderyck: sorry, no, i need to create them. let me just get that review going and that branch merged and i'll add them13:11
=== al-maisan is now known as almaisan-away
deryckintellectronica, ok, great thanks.  Sorry to throw so many at you.  Just house cleaning before being on leave tomorrow. :-)13:13
intellectronicano worries. should have really done that when creating the bugs. old dog etc'...13:14
=== almaisan-away is now known as al-maisan
marsmrevell, should the underline problem be visible on launchpad.dev Bug #1?14:20
mupBug #1: Microsoft has a majority market share <iso-testing> <ubuntu> <Clubdistro:Invalid> <Computer Science Ubuntu:Invalid by compscibuntu-bugs> <EasyPeasy Overview:Invalid by ramvi> <Ichthux:Invalid by raphink> <JAK LINUX:Invalid> <OpenOffice:Invalid by lh-maviya> <Tabuntu:Invalid by tinarussell> <Tivion:Invalid by shakaran> <Tv-Player:New> <Ubuntu:Incomplete by sabdfl> <ubuntu-express (Ubuntu):Invalid by jahyire2006> <Ubuntu Jaunty:In Progress14:21
marsargh14:21
mrevellmars, No. The underline shouldn't appear on any of the bug flame images.14:21
marsmrevell, ok, what page should I view to see the problem?14:22
mrevellmars, I'm sorry. I misunderstood. Yes, if you visit bug one on launchpad.dev you'll see the dotted underline on the flame icon.14:23
wgrantsalgado: Did you have python-tdb installed when running the test suite?14:25
wgrantsalgado: That causes those import errors.14:25
wgrant'#14:25
wgrantDo not have python-tdb installed, which otherwise causes bzr-hg and bzr-git to behave in ways the tests do not expect. '14:25
salgadowgrant, all I have is libtdb114:26
wgrantsalgado: Your sourcecode bzr-git is up to date?14:27
salgadocrap, I missed that (and a few others) because I ran my hack to update sourcecode/ branches under lib/14:30
salgadowgrant, thanks for catching that; I'll update the wikipage14:30
wgrantAFAIK everything is now fixed apart from the valid_absolute_url thing.14:31
wgrantAlthough I didn't see the fix for the bugtracker failure.14:31
wgrantAh, there.14:33
wgrantSo, yes, apart from the valid_absolute_url issue it all looks good.14:33
wgrantYay.14:33
marsmrevell, I do not see the underline on this branch.14:34
marsmrevell, just in my team standup call, and I have something high priority I need to switch to.  Perhaps someone else can help squish it?  sinzui and noodles775 are also good with CSS.14:36
mrevellThanks for looking mars14:37
mrevellDo you have a moment noodles775?14:37
marsno problem, sorry I can't help more14:38
noodles775mrevell: sure, I'm just finishing off a CP-review. Say in 2 mins?14:38
mrevellnoodles775, top of the hour okay for you? That's after my stand-up.14:38
noodles775mrevell: sure.14:40
mrevellthanks noodles775 :)14:41
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
noodles775mrevell: I'm guessing you've got uncommitted changes locally in your branch? I've merged it from LP, but it just adds the help file without linking the bug heat to it, afaics?15:05
mrevellnoodles775, Oh, odd. I thought it had pushed, lemme check15:09
mrevellnoodles775, I've just pushed a new version up15:11
noodles775Great, looking now...15:11
noodles775mrevell: and you want it just without the underline, is that right?15:13
noodles775(well, the dotted bottom border from a.help)15:13
mrevellnoodles775, Yeah, no underline at all.15:14
mrevellnoodles775, I tried playing with a style="text-decoration: none" on the <a> and the <img> but to no avail.15:14
noodles775mrevell: yeah, inspecting it (using the chromium debugger) shows that a.help is actually adding a bottom-border: 1px dotted...15:15
noodles775So you might have more luck with style="bottom-border..."15:15
* noodles775 tries.15:15
mrevellAhhh15:15
noodles775er, border-bottom ;)15:17
noodles775mrevell: yep, that works...http://pastebin.ubuntu.com/420447/15:20
mrevellnoodles775, Thanks, just got it up here on my local instance too :) Cheers!15:21
noodles775Great.15:21
mrevellnoodles775, Is that acceptable, adding an inline stlye like that?15:21
noodles775mrevell: From my point of view, if it is a complete exception for a help link to not have the normal style, then I would rather it here than in the stylesheet (sinzui might differ?). On the other hand, something general like a .no-border class could be reusable?15:24
* noodles775 checks to see if something like that exists already.15:24
sinzuiI think exceptional rules do no belong in a global stylesheet. I also question why we need exceptions since the user has no context for what the presentation meens15:26
sinzuimeans15:26
mrevellsinzui, I'm not sure what you mean by the user having no context for what the presentation means.15:28
sinzuimrevell, We know a green link is a js-action because it is used consistently in launchpad. If I have never seen a presentation style, I do not know what to expect.15:30
noodles775mrevell: why do you want the exception here? Is it just because the bug heat icon looks ugly with the underline? Or would images in general look ugly with an underline, in which case http://pastebin.ubuntu.com/420455/ would also work.15:31
noodles775s/images in general/images within a help text link in general/15:32
mrevellnoodles775, When Deryck and I were discussing the implementation we were concerned that the underline would be overly distracting; the link is of secondary importance and not directly related to the purpose of the flames, so we felt too much attention shouldn't be drawn to their being a link.15:33
sinzuimrevell, , noodles775, right. No image should be underlined and we have rules for it. are the rules in the css bad, or is the markup bad15:33
* mrevell looks at the pastebin15:33
noodles775sinzui is right in that you can't tell it's a help link without the underline until you then hover over it, but as you said, that's ok here.15:33
noodles775sinzui: it's a border-bottom that is used by a.help (see the previous paste).15:34
mrevellnoodles775, Your suggestion in the pastebin would work very well, actually, as I wouldn't want the dotted underline on any pop-up help image.15:34
noodles775Great.15:34
mrevellnoodles775, The only other time I can imagine using a help link on an image, and wanting people to be absolutely sure it was a help link, would be with a help icon, so that'd be fine without the underline as I think it's self-explanatory.15:35
noodles775Yep.15:35
mrevellThanks noodles775, I'll apply that icing change and then pop it in for review.15:37
noodles775k.15:37
noodles775oh, mrevell, while you're at it, could you move those help links from style.css into style-3-0.css.in?15:54
noodles775s/help links/help styles/15:54
=== matsubara is now known as matsubara-lunch
mrevellnoodles775, sure15:56
jmlleonardr: hi. I'll be with you in a bit.16:00
leonardrhi jml16:00
jmlleonardr: which voice medium best suits you16:03
leonardrjml: i can do mumble or skype16:03
=== salgado is now known as salgado-lunch
henningedanilos: hey, still around?16:34
henningeI have an approved branch that is a CP candidate.16:38
daniloshenninge, yes16:38
daniloshenninge, have you gotten approval from flacoste as well?16:39
henningeI did branch it off production-stable but now I don't know were to put it.16:39
henningedanilos: that's what I was wondering.16:39
henningedanilos: does it go directly into production-devel?16:39
henningethinking about it ... yes, obviously16:39
daniloshenninge, yeah, you should land it on production-devel once it's approved16:40
daniloshenninge, have you ran the full test suite?16:40
flacostehenninge: and have you QA-ed it yet?16:40
henningedanilos: no, I was going to ec2 land it16:40
daniloshenninge, if there was no full test run, it's not going to be ready for CP before 2200 UTC16:41
henningedanilos: I was not going to CP it yet, I was just asking for the procedure.16:42
henningeflacoste: so, to QA it I need to land it on (db-)devel first?16:42
daniloshenninge, right, it might not make much sense to CP it if we can't make it in time for the language pack generation16:43
flacostehenninge: yes16:43
daniloshenninge, there's always cowboying into staging16:43
henningedanilos: right, when does that start?16:43
flacostethat also16:43
daniloshenninge, that starts at 2200 UTC, so I don't think we can make it in time (two full test runs will take ~8h, and CP to loganberry will take some time as well)16:44
henningedanilos: oh, I kind of forgot about that ... sorry16:45
daniloshenninge, I'd suggest you land it in the regular way and I'll let dpm know about it so he can let Lithuanian translators know; he'll tell us when they plan to do next language pack update16:45
daniloshenninge, we might not need to CP it anymore16:45
henningedanilos: could we not short-cut it if it's only loganberry?16:47
daniloshenninge, how would we cut it short?16:48
henningeonce it's passed ec2 and QA'ed on staging, cowboy it onto loganberry?16:48
daniloshenninge, (in general, "no", but I am interested in your idea :)16:48
henningedanilos: just to save one ec2 run16:48
daniloshenninge, huh, it's not that critical an issue16:48
henningedanilos: ok, then I am not that worried ... ;)16:48
daniloshenninge, that would be possible if all hell was breaking loose and things are falling apart; otherwise, let's not even think about doing something like that :)16:49
=== deryck is now known as deryck[lunch]
=== matsubara-lunch is now known as matsubara
henningeis it possible that ec2 is not working on a production branch atm?17:18
henningeI always get this on "ec2 test", right after the instance has started:17:19
henningeSFTPError: Garbage packet received17:19
henningeinstance shutting-down17:19
james_wyou'll get that if you are using an ec2 script from before the ec2test -> ubuntu user transition, but that's not necessarily the reason17:21
henningejames_w: possible, as I said, I have a branch based on production-stable.17:22
henningebut actually, tha is not necessary anymoew, might as well merge devel.17:22
henningeright, danilos? ^17:22
* henninge gives up for today17:26
=== gary_poster is now known as gary-lunch
=== leonardr is now known as leonardr-afk
=== salgado-lunch is now known as salgado
=== leonardr-afk is now known as leonardr
=== deryck[lunch] is now known as deryck
mrevellmake run is complaining about something annoying, so I'm taking that as a hint to give in for now. See you tomorrow.18:03
=== al-maisan is now known as almaisan-away
bacadiroiban: finally(!) your branch has landed18:20
adiroibanbac: thanks :)18:21
bacadiroiban: np.  sorry it took so long.18:21
adiroibanbac: don't worry... from my point of view it was fast , and it was not a critical branch18:24
maxbsalgado: hi, w.r.t. your valid_absolute_url change on the python2.6 branch - wgrant and I were leaving that unfixed as a reminder that the database constraint needed thought18:28
maxbWhat are your thoughts on this?18:28
maxbI think it is pretty horrible that "valid_absolute_url" includes some implicit filtering on schemes18:29
salgadomaxb, what filtering?18:30
maxbThe py2.5 behaviour of valid_absolute_url was to only succeed for registered netloc schemes18:30
salgadoright, and the new one follows the rfc18:31
maxbI believe this may have been being (ab)used to constrain file:/// urls to not be entered in the DB18:31
maxbor something like that18:31
salgadomaxb, I think we have more restrictive field validators to take care of that.  we *should* be doing that, at least18:35
salgadoin the case of DistributionMirror.http_base_url & co, for instance, I'm sure we do18:36
maxbannouncement.url branch.home_page_url branch.url builder.url distributionmirror.*_base_url productseries.releasefileglob specification.specurl codeimport.url18:38
maxb^ fields using this validator18:38
maxberm, constraint18:38
salgadoright, I know which ones use that, but my point is that these fields should have the more restrictive validators that may not be trivial to write as DB constraints18:40
salgadothey should not rely on DB constraints doing their work.  if they do, they're broken18:41
NCommanderanyone around who can help me figure out how to talk to the LP database properly? I'm having issues writing a converter script for changelogs, and I'm scratching my head on why I'm getting None as a result18:50
salgadomaxb, I just realized it may not be clear what I meant above.  I was talking about field validators like what you get by using URIField18:54
salgadovalid_absolute_url is just a safety net; we can't rely on DB constraints for our input validation18:55
=== gary-lunch is now known as gary_poster
=== EdwinGrubbs is now known as Edwin-lunch
salgadosinzui, is it known that on https://edge.launchpad.net/udd the page scrolls down to the bottom right after loading?21:05
sinzuisalgado, I have observed that. It is because of the Packages in Ubuntu portlet21:05
salgadoyep21:06
salgadosinzui, want a bug for it or is there one already?21:06
salgadoor c) none of the above? ;)21:06
sinzuiNo, I suspect javascript may be in play21:06
sinzuisalgado, I usually fix the issue by selecting a package. I am waiting for a db review to land the option that lets users say the project is not packaged,21:07
salgadosinzui, oh, ok, cool21:09
sinzuisalgado, while this is annoying behaviour, it has encouraged me to link more that 50 packages in the last month21:09
salgadosinzui, yeah, I see the value in it too.  I'd do the same if this project were packaged21:10
sinzuiyes. my projects are not in ubuntu. I really want to land my fix21:11
sinzuisalgado, I think the portlet problem is cause by the setFocusByName() call. I think we can disable that. did you report a bug?21:27
salgadosinzui, nope.  want me to?21:28
sinzuisalgado, I'll do it now21:28
sinzuibac: do you want me to restart the lp builder that lost the slave21:28
wgrantflacoste: Regarding the bzr-builder thing: the builders are virtualized and we run arbitrary user code on them.22:10
wgrantDoes the IS-controlled archive restricton still apply?22:11
flacostewgrant: it seems so, i've asked IS22:11
wgrantWell, we can't just install it on the builder.22:12
wgrantWe need an archive somewhere.22:12
wgrantI guess we could have an IS-controlled PPA.22:12
wgrantBut it seems utterly pointless.22:12
flacostewgrant: we do have non virtualized builders btw22:13
wgrantflacoste: Not for recipe builds.22:13
wgrantThey explicitly run only on virtual builders.22:14
flacostefor the time being22:14
flacosteand i don't know how much of the buildd infrastructure is shared between virtualised and non-virtualised build22:14
flacosteand the point still stand: we do run arbitrary user code on all of the builders22:14
flacostevirtualised or not22:14
wgrantExcept that the non-virt ones are only used by Canonicalers, but yes.22:15
flacostehmm, as far as i know, universe bulds will also use the non-virtualised ones22:15
flacostewhich mean that MOTUs builds aren't virtualised22:16
flacosteat lest on some architectures22:16
wgrantWell, yes, Canonical and trusted Ubuntu people.22:16
wgrantBut not randoms.22:16
persiaNote that there are plenty of core-devs that aren't Canonical, and plenty of Canonical folks who aren't core-dev.  main/universe is not useful in this context.22:20
=== salgado is now known as salgado-afk
=== mwhudson_ is now known as mwhudson
mwhudsongary_poster: hey22:55
gary_posterhey mwhudson22:55
mwhudsongary_poster: is there a way to say "don't security proxy instances of this class" ?22:55
mwhudsongary_poster: for context22:55
gary_postermwhudson, yes22:56
mwhudsongary_poster: awesome, you can probably guess my next question22:56
gary_postermwhudson, look at bottom of zope/security/checkers.py...will see if I see the pertinent bits quickly22:56
mwhudsoni'm adding IBranch['getBzrBranch'] and don't want the bzrlib.branch.Branch to get wrapped22:56
gary_postermwhudson: ...ever?  Usually the mechanism is for things that can't be mutated by naughty code22:57
gary_posterlike strings22:57
mwhudsongary_poster: well22:57
mwhudsonprobably yes22:57
gary_posterok :-)22:58
mwhudson'real' mutations to branches are disk operations and they are defended against by other mechanisms22:58
gary_posterah, I see22:58
mwhudsonbasically, i don't want to write zcml for all the eleventy million bzr classes and their attributes22:59
gary_postermwhudson, not sure it is what you want, but BasicTypes?  See _basic_types, beneath it.  You could use zope.security.BasicTypes.update with a dict of {your_class_here: zope.security.NoProxy}23:02
gary_posteryou could do that in lp_sitecustomize.py23:02
mwhudsongary_poster: ok, let me try that23:02
gary_posterok23:02
mwhudsongary_poster: doesn't seem to have had an effect23:07
mwhudsongary_poster: here's what i tried http://pastebin.ubuntu.com/420696/23:07
gary_postermwhudson: hm. a bit surprising and disappointing.  Is that the entire diff--that is, if I apply the patch I should be able to dupe?23:09
mwhudsongary_poster: um, this is on the end of a very long pipe :)23:10
gary_posterI thought it might be :-)23:10
gary_posterum23:10
mwhudsongary_poster: i should be able to cook up a diff you can apply23:10
gary_postermwhudson: ok cool.  I have to go really soon, but I'll try to hang on23:12
mwhudsongary_poster: http://en.wikipedia.org/wiki/Bunny_hopping23:13
mwhudsonhaha23:13
mwhudsongary_poster: http://pastebin.ubuntu.com/420699/ <- this one :)23:13
mwhudsonstupid firefox23:13
gary_posterlol23:13
mwhudsongary_poster: i think i want zope.security.defineChecker ?23:15
gary_posterthat does sound more familiar.  This part of the machinery is just a bit rusty in my mind...23:15
mwhudsonthat also doesn't work :(23:16
gary_postermwhudson: sanity checking and optimism: http://pastebin.ubuntu.com/420702/23:18
mwhudsongary_poster: hmm, is it possible the checkers get reset in tests or something?23:18
gary_postermwhudson, they definitely do--see the bottom of checker.py23:19
mwhudsongary_poster: i don't think my lp_sitecustomize is being executed :/23:19
gary_posteroh! hm.23:19
gary_posteruh, ever?23:19
mwhudsonat least not for bin/py23:19
* gary_poster thought he had tests for that23:20
gary_postermwhudson, some print statements are working for me in site-customize23:21
gary_postermwhudson: younger son is imploding and it is my EoD, need to save wife23:21
mwhudsongary_poster: ok, i'll fight a bit with this23:22
mwhudsongary_poster: have a nice evening23:22
gary_postermwhudson, will check back later.  this should work, and the various component parts of it are for me.  Sorry to run23:23
mwhudsonsomehow it seems not to work for Branch ??23:23
mwhudsongary_poster: run23:23
mwhudsongary_poster: ok i know part of the problem, and have a different question (when you're back)23:28
mwhudsongary_poster: is there a way of saying don't wrap _subclasses_ of a given class?23:28
mwhudsongary_poster: also, i think import errors from lp_sitecustomize are suppressed somehow23:35
mwhudsonyes, definitely23:38
mwhudsoni think the answer to my subclass question is "no"23:50
bdmurraynot qa-needstesting but qa-done right?23:53
mwhudsonbdmurray: qa-ok23:54
rockstarsinzui, ping23:55
sinzuihi rockstar23:56
rockstarsinzui, so, do you know much about how Launchpad does breadcrumbs?23:56
sinzuiI think I do23:56
rockstarsinzui, so, with source package recipes, our current breadcrumb says "User >> Branches >> recipe-name"23:56
rockstarI'd like to modify it to be "User >> Recipes >> recipe-name"23:57
rockstarSo I've modified hierarchy so that I can optionally remove the "Branches" part, but inserting another item in there is proving to be difficult.23:57
sinzuirockstar, You want to create a BreadCrumb adapter for IRecipe.23:57
* sinzui looks for small example of implementation and test23:58
rockstarsinzui, well, for ISourcePackageRecipe itself, I'm using the adapter for NameBreadcrumb.23:58
rockstarAnd I tried to create a SourcePackageRecipeHierarchy with which I'm (hackily) trying to get another object in the list of things that need breadcrumbs.23:59

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