text
stringlengths
15
499
[08:21] * wgrant
[08:22] <wgrant> Oops.
[08:26] <wgrant> noodles775: Any idea how I'm meant to run zeca/buildd-master? I've been running them manually with twistd for now - some other daemons are registered in canonical.launchpad.scripts.runlaunchpad, so are runnable with bin/run, but not those.
[08:26] <jml> noodles775, hi :)
[08:27] <jml> I just realized that by cunningly getting distracted in the middle of the day I'm in prime-time to get help from soyuz folks for this patch :)
[08:28] <noodles775> wgrant: we don't (at least, I haven't) run the build master et al locally... for local development we usually just depend on the testing infrastructure (see SoyuzTestPublisher), and then test on dogfood...
[08:28] <noodles775> wgrant: but cprov will undoubtedly know more.
[08:28] <noodles775> jml: hi! Which patch?
[08:29] <wgrant> noodles775: Hm, OK.
[08:29] <jml> noodles775, bug 345737
[08:29] <ubot3> Malone bug 345737 in launchpad-code "lp:ubuntu/package should resolve" [High,In progress] https://launchpad.net/bugs/345737
[08:29] <jml> noodles775, sorry, bug 347768
[08:29] <ubot3> Malone bug 347768 in launchpad-code "Allow anyone with upload rights to write to a package branch" [High,Triaged] https://launchpad.net/bugs/347768
[08:30] <noodles775> wgrant might want to look too...
[08:30] <noodles775> oh, you're already subscribed by default, so have probably already seen it ;)
[08:31] <gmb> Good morning ladies, gentlemen and variations thereupon.
[08:31] <jml> I'm not stuck yet. just poking around trying to find how to allow someone to upload to a package.
[08:31] <wgrant> jml: archivepermission is the magic thing.
[08:32] <wgrant> And they're manipulated on IArchive, at least through the webservice...
[08:32] * wgrant needs to poke around inside the code.
[08:33] <noodles775> jml: why do you want to allow someone to upload a package? don't you just need to check whether someone has permission to upload a package?
[08:34] <pkern> wgrant: Ah, thanks for poking there.
[08:34] <al-maisan> jml: there are 3 types of archive permissions: based on components, source package names and (new!) package sets.
[08:34] <wgrant> pkern: Where?
[08:34] <noodles775> ... and I was about to say, al-maisan is the person to speak to there (having just implemented the new package set permissions)
[08:34] <jml> excellent
[08:35] <jml> al-maisan, so, my mission is to make it such that if you can upload to a package, then you can write to any branch officially linked to that package.
[08:35] <noodles775> al-maisan: is it possible for us to abstract away the fact that there are currently 3 different ways? Or perhaps we already do?
[08:35] <jml> al-maisan, to do this, I need an API for checking to see whether a person can write to a package
[08:35] <jml> and a way of granting such permissions.
[08:35] <al-maisan> jml: that API already exists
[08:35] <jml> (the latter being for unit tests)
[08:35] <al-maisan> let me find it for you.
[08:35] <jml> al-maisan, thanks.
[08:36] <pkern> wgrant: Into the upload rights code. ;-)
[08:36] <wgrant> pkern: Ah.
[08:36] <wgrant> pkern: What did you end up doing with Soyuz?
[08:36] <jml> thumper, why is bug 243135 invalid?
[08:36] <ubot3> jml: Bug 243135 on http://launchpad.net/bugs/243135 is private
[08:38] <al-maisan> jml: IArchive.getPermissions() is the method you'd want to use.
[08:38] <wgrant> al-maisan: Why not IArchive.canUpload?
[08:39] <jml> or check_permissions(sourcepackage, 'launchpad.Edit') for that matter
[08:39] <jml> al-maisan, thanks, looking now.
[08:40] <al-maisan> wgrant: IIRC Archive.canUpload() only operates on components .. but let me look again.
[08:41] <wgrant> al-maisan: component_or_package, it takes.
[08:46] <al-maisan> wgrant: canUpload() eventually invokes getPermissions()
=== j^_ is now known as j^
[08:47] <jml> al-maisan, next question, why not check_permissions(sourcepackage, 'launchpad.Edit')?
[08:48] <al-maisan> jml: let me have a look.
[08:48] <jml> thanks.
[08:48] <wgrant> There's no ArchiveSourcePackage, is there?
[08:51] * gmb achieves inbox 4, is satisfied
[08:51] <maxb> Has anyone else struggled to make LP work on jaunty because of apt installing a broken python2.4 installation? It doesn't seem to have installed any of the python-support/central stuff for the new runtime, and the sys.path doesn't include any directories in /usr/lib !
[08:52] <wgrant> maxb: I haven't seen that - I installed it in a fresh Jaunty chroot last night, and it worked fine (except for the other issues)
[08:53] <maxb> hrm :-/
[08:53] <gmb> maxb: How far have you got with trying to run LP? The LP buildout process creates a bin/py executable with the right sys.path. It also builds all the eggs that you need inside the Launchpad tree rather than polluting your site-packages.
[08:53] <gmb> maxb: Try apt-get reinstall launchpad-developer-dependencies, see if that helps any.
[08:53] <maxb> No, I think it's actually my system install of python that's broken
[08:54] <maxb> python2.4 -c 'import sys; print sys.path' is missing lots of things which should be there
[08:54] <gmb> Hmm.
[08:54] <maxb> even after purging and reinstalling the package
[08:55] <wgrant> maxb: You even purged python2.4-minimal?
[08:55] <maxb> yup
[08:55] <wgrant> Huh.
[08:55] <maxb> my thought
[08:55] <maxb> meh
[08:55] <maxb> * my thoughts exactly :-)
[08:56] <al-maisan> jml: check_permission() uses checkPermission() zope.security.management .. how does one configure or hook into the latter?
[08:56] <jml> al-maisan, canonical.launchpad.security is scanned automagically
[08:56] <jml> hmm. and maybe there's some zcml
[08:57] * al-maisan looks at ./lib/canonical/launchpad/security.py
[08:57] <jml> there's IPackageUpload and IPackageUploadQueue in there
[08:58] <jml> and launchpad.Append on IArchive
[09:02] <al-maisan> jml: hmm .. it looks like the piece you'd like to have still needs to be added to lib/canonical/launchpad/security.py .. sorry
[09:02] <jml> al-maisan, no worries.
[09:04] <jml> al-maisan, I'd be happy to add it, but I'm not sure exactly what to make it do.
[09:04] <jml> bigjools, hello
[09:04] <bigjools> /away
[09:04] <bigjools> morning!
[09:04] <jml> bigjools, we're just talking about fixing bug 347768
[09:04] <ubot3> Malone bug 347768 in launchpad-code "Allow anyone with upload rights to write to a package branch" [High,In progress] https://launchpad.net/bugs/347768
[09:04] <bigjools> ok
[09:05] <al-maisan> morning bigjools
[09:05] <jml> trying to figure out the best way of asking whether a person has upload rights to a package, and how to grant them said rights (for testing)
[09:06] <bigjools> there's a few checks done in the upload processor
[09:07] <bigjools> unfortunately there's no single call that will give you a yes or a no
[09:07] <jml> bigjools, lp.soyuz.scripts.soyuz_process_upload being the starting point, right?
[09:07] * bigjools stabs Firefox and the xorg intel driver
[09:07] <jml> bigjools, karmic upgraded the intel driver today. :)
[09:08] <bigjools> jml: no, IArchive.canUpload()
[09:08] <bigjools> let me refresh my memory and then I can talk more sense
[09:08] <jml> bigjools, how do I get to that from an ISourcePackage?
[09:08] <bigjools> and possible reboot
[09:08] <jml> bigjools, cool, thanksn.
[09:09] <bigjools> jml: well you need to know which archive you're uploading to
[09:09] <bigjools> presumably it's based on a distro, do you can use IDistribution.main_archive
[09:09] <bigjools> but that obviously only covers the case where you want to upload to, well, the main archive :)
[09:10] <bigjools> argh, fscking FF and xorg both using over 1Gb resident
[09:10] <wgrant> bigjools: Karmic?
[09:10] <bigjools> jaunty