/srv/irclogs.ubuntu.com/2010/05/19/#launchpad-dev.txt

mtaylorthumper: see, so you talk about me, and then you run away00:11
thumpermtaylor: sorry forgot about you :)00:11
mtaylorthumper: it happens00:11
=== mup_ is now known as mup
* mtaylor wants a tool that will connect to launchpad, grab all the users in a team and their ssh keys and make local users for each of them00:30
wgrantI think my script for that is gone.00:30
wgrantI had one a couple of years ago, though. But there is now a tool floating around to create a user with keys from an LP username, so it'd be easy to script up.00:31
wgrantPlus... the API makes it nice and easy.00:31
wgrantNo more screenscraping.00:31
lifelessmtaylor: why not pam_launchpad ?00:40
lifelessstatic is so 1970's00:40
mtaylorlifeless: speed?00:40
lifelesspremature optimisation:)00:41
mtaylorlifeless: ha!00:41
mtaylorlifeless: I was also thinking of a hudson security module which would delegate to launchpad ... but seeing as how I'm two plugins behind, I think perhaps adding another one is also premature00:42
wgrantmtaylor: OpenID?00:42
mtaylorwgrant: yeah, that would be part of it00:42
mtaylorwgrant: but I was thinking similar to above- if in hudson I said "hey, deal with launchpad project X"00:42
mtaylorwgrant: and it knew how to do tarmac stuff with that project, but also would use launchpad user/team info to grant people hudson access to build related stuff for that project...00:43
mtaylorsee, I think entirely too large00:43
lifelessyou'll want to see my stalled openid patch, in that case.00:49
=== Ursinha is now known as Ursinha-afk
=== vila_ is now known as vila
adeuringgood morning08:21
=== mrevell__ is now known as mrevell
jmlgood morning Launchpadders09:17
bigjoolsb'jour09:17
noodles775BjornT or otherwise: to run launchpad with postgresql8.4, do I just install it, update the ports so 8.4 is running on 5432, stop 8.3 and run launchpad-database-setup?10:28
deryckMorning, all.11:03
thumperjelmer: ping11:23
jelmerthumper: otp11:27
thumperjelmer: ack11:27
jelmerthumper: hi11:36
thumperjelmer: got any idea why dulwich is leaving behing uncollectable garbage in the test suite?11:37
jelmerthumper: no11:37
jelmerthumper: which files?11:37
thumperjelmer: see BjornT's email about the import tests11:37
* thumper looks11:37
thumper[<dulwich.pack.PackData object at 0x9e06e50>] (referenced from [(<dulwich.pack.PackData object at 0x9e06e50>,), [<dulwich.pack.PackData object at 0x9e06e50>], {'_basename': '/tmp/tmpFhvH-A/.git/objects/pack/pack-120fc662d24725ba18915fe0c17eea6644adc3fe', '_data': <dulwich.pack.PackData object at 0x9e06e50>, '_idx_path': '/tmp/tmpFhvH-A/.git/objects/pack/pack-120fc662d24725ba18915fe0c17eea6644adc3fe.idx', '_idx': <dulwich.pack.PackIndex111:38
thumper object at 0x9e06e90>, '_data_path': '/tmp/tmpFhvH-A/.git/objects/pack/pack-120fc662d24725ba18915fe0c17eea6644adc3fe.pack'}])11:38
BjornTnoodles775: yes, more or less. following the manual step (replacing 8.3 with 8.4) in https://dev.launchpad.net/DatabaseSetup works. haven't tried launchpad-database-setup, but please let me know whether it works12:27
wgrantI've done it by purging 8.3 and installing 8.4. But dropping the 8.3 cluster and installing 8.4 should be just as effective12:28
wgrantThen launchpad-database-setup works fine.12:28
noodles775BjornT, wgrant: yes, it worked fine... I just modified the config so 8.3 isn't started. I had to install some extra 8.4 packages, but other than that launchpad-database-setup worked fine.12:32
wgrantLaunchpad should really fix the Referer thing.12:39
james_wit's to prevent XSRF?12:42
wgrantYes.12:42
james_wyeah, not ideal12:42
wgrantI suggested it, since i knew the real fix wouldn't be scheduled for a decade, unless there were enough complaints about the Referer check.12:42
wgrantSince one me complaining about security holes is probably easier to ignore.12:42
james_wI'm frequently surprised by how few frameworks come with built-in XSRF protection.12:42
james_wor at least convenience methods for doing it12:43
wgrantIndeed.12:43
wgrantIt shouldn't be terribly difficult for LP, since all/most JS requests go through the JS API wrapper12:44
james_wnot the easiest thing to apply to every form from a framework, but at least suggesting that people use it wouldn't be hard12:44
wgrantRight.12:44
wgrantJS-less Django apps can use middleware.12:45
wgrant(see c-i-p)12:45
james_wit could even be just thrown in memcached I guess?12:45
wgrantPossibly.12:45
wgrantBut there is no good way to fix XSRFs :12:45
wgrant(12:45
wgrantAll of them are broken in various ways.12:45
noodles775http://docs.djangoproject.com/en/dev/releases/1.2/#improved-csrf-protection12:45
james_wreally?12:45
james_w\o/ for django12:46
wgrantReferer checking is broken, as we've seen.12:46
wgrantAnd throwing a token into every form means that distributing or caching that HTML is dangerous.12:47
james_wah, I see, I thought you meant that it was consistently possible to beat the probabilities12:48
wgrant(plus forms probably have to time out)12:48
=== matsubara-afk is now known as matsubara
=== Ursinha-afk is now known as Ursinha
g4tsuHi13:52
g4tsuI've installed my own launchpad and I want to know how to include my .deb packages13:53
g4tsuBecause the documentation says that we have to use dput with .dsc .changes .orig.tar.gz etc and we haven't this type of file13:54
g4tsuHello mars, it's ghostoyo13:55
gary_posterthank you lifeless14:01
deryckadeuring or intellectronica -- could I get a review from one of you?  Should be very easy.14:02
adeuringderyck: yure14:02
deryckadeuring, thanks!  https://code.edge.launchpad.net/~deryck/launchpad/subscribe-to-bug-mail-twice-577768/+merge/2553214:02
g4tsunobody can help me ?14:08
adeuringderyck: r=me14:10
deryckadeuring, thanks!14:10
maxbg4tsu: It seems to me that if you're uncertain of how to use dput, then attempting to set up your own Launchpad instance is a matter of attempting to run before you can walk14:16
=== henninge_ is now known as henninge
bacreviewers meeting starting now.15:01
marssinzui, please let me know if you see another ec2 suite hang.15:39
sinzuiokay15:39
marssinzui, otherwise, the situation was well-covered by Gary and the mail I sent the list yesterday.  It should NOT hang now.15:39
marsg4tsu, I think maxb's advice is wise.  Best to understand how packaging works before you attempt to set up your own private LP-hosted repository.15:41
marsg4tsu, to my knowledge, you would also be best off talking to maxb and wgrant about running a private LP repository that way.  They know worlds more about it than I do.15:42
maxbg4tsu: Also, I have to ask... you're aware about the bit of the Launchpad licence which demands you replace all the images and icons if you create a private installation of any kind?15:43
=== matsubara is now known as matsubara-lunch
adiroibanany idea what is causing and how can I fix this make link warning16:28
adiroibanwarning: Not importing directory '/usr/share/pyshared/lazr': missing __init__.py16:28
adiroibans/link/lint/16:28
g4tsumaxb> yep I'm aware of that16:47
=== beuno is now known as beuno-lunch
=== salgado is now known as salgado-lunch
marsmaxb, allenap, your investigation yesterday makes perfect sense: the killem() function was killing the wrong process group.  Here is a healthy process tree before killem gets to it (note the PGIDs): http://pastebin.ubuntu.com/436221/17:24
allenapmars: Woohoo :)17:29
adiroibandanilos, henninge: is there a XPI template in the testing/demo LP database?17:33
danilosadiroiban, it's constructed from a bunch of files for testing17:33
danilosadiroiban, see lib/lp/translations/utilities/tests/xpi_helpers.py17:34
adiroibandanilos: so the sample database does not contain such a file?17:34
danilosadiroiban, no, and you shouldn't use it for tests either :) anyway, you should probably not worry about exporting source_file property right now17:34
adiroibandanilos: it is easy to export17:35
danilosadiroiban, (you shouldn't use sampledata for tests is what I mean)17:35
adiroibanbut it looks like all POTemplates17:35
adiroibandon't have an associated source_file17:35
danilosadiroiban, sure, but the branch grows and you slow down the review for something that is not critical for what you set out to do (i.e. you are widening the scope without really needing to)17:35
danilosadiroiban, right, we don't extend sampledata at all anymore17:37
adiroibandanilos: ok. I was just curious about the usage of the source_file attribute. I will not export it in this branch :)17:39
danilosadiroiban, oh, it's also only used for XPI files so far17:39
adiroibandanilos: in the sample data, all source_file attributes for potemplates are null17:40
danilosadiroiban, there are no imported XPI files in the sample data :)17:40
adiroibandanilos: I see, and I was wondering why it is not used for other templates17:40
=== matsubara-lunch is now known as matsubara
danilosadiroiban, it would take up space in the librarian (they could not be deleted after import), and we don't need them; we need en-US.xpi files to be able to re-construct translated XPI files (though we never got far enough with implementing that)17:41
danilosanyway, I'm leaving now17:41
adiroibandanilos: thanks. have a nice evening :)17:41
danilosadiroiban, cheers :)17:42
=== deryck is now known as deryck[lunch]
mrevellNight all17:59
=== beuno-lunch is now known as beuno
=== salgado-lunch is now known as salgado
=== deryck[lunch] is now known as deryck
=== gary_poster is now known as gary-afk
DarkpsyIs it best to go through the launchpad setup procedure as root or non-root?  I tried it both ways and Apache is throwing errors.  One error states it can't find /var/tmp/archive20:41
adiroibanDarkpsy: just create that folder ... but rocketfuel-setup should take care of everyhing20:43
Darkpsyadiroiban:  in that case, what folder should hold the main part of launchpad?20:44
adiroibandevel branch20:44
Darkpsyok20:45
DarkpsyI'm now getting this error: http://paste.ubuntu.com/436367/21:02
adiroibanDarkpsy: have you uploaded your ssh key on LP ?21:06
adiroibancan you use bzr with LP ?21:07
Darkpsyi have uploaded my ssh key to LP, this is the first time i've used bzr with LP since I didn't need to before21:08
Darkpsyi think i found the problem.  one sec21:09
Darkpsygot it working now.  turns out I imported the wrong key21:12
=== gary-afk is now known as gary_posrer
=== gary_posrer is now known as gary_poster
mwhudsonmars: so i guess i should make my backtrace thingy a project really21:49
marsmwhudson, well, a setup.py would be a great start :)  I thought of writing one, but didn't need it.21:53
marsmwhudson, if it was a project with a setup.py, then we could roll it into the Launchpad distribution.  I might do that anyway.21:57
marsmwhudson, the other problem is detecting if debug symbols are available.  Without them I get a GdbError - maybe there is some way to gracefully detect if things are wrong.21:57
marsahead of time21:58
mwhudsonmars: those both sound like good ideas, they should be bugs ... which means setting up a project :)21:58
marsheh21:59
=== matsubara is now known as matsubara-afk
=== salgado is now known as salgado-afk
wgrantUm.22:39
wgrantWhat's the memcached work that landed this morning?22:39
wgrantIt seems far, far, far too aggressive.22:39
wgrantTo the point of making at least the milestone view almost useless.22:39
wgrantsinzui: Was it insufficient to cache each bugtask row?22:43
wgrantEven that is too aggressive for that view, but it's not quite so bad.22:43
wgrantI imagined that memcached would be used for caching links and non-critical "Latest [blah]" sort of things.22:44
wgrantNot for major sources of time-critical data like milestone listings.22:44
sinzuiwgrant, it speed up the listing of milestone pages on staging. It was very impressive.22:45
wgrantsinzui: Yes, but it also makes them much more confusing and less useful.22:45
sinzuiwgrant, the milestone view is one the top timeouts and the cause is the bug privacy and the number of bugs22:45
wgrantOf course it's going to make them much faster.22:45
wgrantI want my milestone view to not lie to me.22:46
wgrantI use it frequently.22:46
sinzuiwgrant, yes, that is why I landed it eary in the cycle22:46
lifelessdo we still use SQLOS in any way?22:46
sinzuiwgrant, cool can you fix it for me then? you will be the 4th developer to wortk on this22:46
wgrantWhen my team is triaging a milestone, we refresh frequently and need to see each other's changes immediately.22:46
wgrantI am thinking about how best to do it.22:46
wgrantIs the query for finding visible bugs really that bad?22:47
* wgrant must have a look at some point.22:47
sinzuiwe can adjust the cache time.22:47
sinzuiwgrant, I too refresh often. We do not have tools to invalidate cache. I would have used them if they existed22:48
wgrantI think until we can invalidate, we can't safely cache that sort of thing. Top contributors, latest bugs, latest uploads, sure.22:50
sinzuiwgrant, on cache rule is to only cache anonymous. We can switch to that and make bots happy. For users, they will still get timeouts22:50
wgrantAspects of the bug rows on that page (tags, for example, that caused problems when they were temporarily switched on a while ago), maybe.22:50
wgrantBut entire bug task rows won't work sanely yet.22:50
sinzuiwgrant, I have considered everything you have mentioned. You are correct, but I have timeouts I am responsible for ending. I will adjust the rules as best I can, and will add and removed them as needed.22:53
mwhudsonmars: https://code.edge.launchpad.net/~pygdb-hackers/pygdb/trunk23:23
mwhudsonmars: it's based on a bzr-svn import of the pygdb upstream, so you'll need to recreate your branches i'm afraid23:23
mwhudsonmars: rebased the branch again i'm afraid23:47
mwhudson(i'll stop this now)23:47

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