text stringlengths 15 499 |
|---|
[02:13] <lifeless> :P |
[02:13] <lifeless> letse play spot the troll |
[02:13] <jml> lifeless, `but I agree, it's probably possible to make an ec2test.py replacement with currently public code. |
[02:13] <lifeless> <- the troll |
[02:14] <wgrant> lifeless: The ec2test stuff is in lp-dev-utils, which is still in the proprietary realm. |
[02:14] <lifeless> ah |
[02:15] * mwhudson stares at buildbot's estimate for the end of this build |
[02:16] <wgrant> buildbot is also still private :( |
[02:17] <mwhudson> i don't know if there are any good reasons for that |
[02:18] * wgrant wonders what is so special about the tests in lp.bugs.browser.tests.special |
[02:18] <mwhudson> jml: i don't completely understand your email about soyuz permissions |
[02:18] <mwhudson> (surprise!) |
[02:19] <jml> mwhudson, me neither. |
[02:19] <jml> mwhudson, how /what can I clarify it? |
[02:19] <mwhudson> in particular i don't understand how latest_published helps get a sensible archive |
[02:20] <mwhudson> my understanding is that the archives are: primary, partner and a bunch of ppas |
[02:20] <mwhudson> (is an archive tied to a distro?) |
[02:20] <mwhudson> and primary has a bunch of components (main, universe, etc) |
[02:21] <mwhudson> (ppas sort of pretend everything is in main?) |
[02:21] <wgrant> PPAs override everything to main. |
[02:21] <wgrant> partner only has stuff in parter. |
[02:21] <wgrant> primary can have stuff in anything. |
[02:22] <mwhudson> wgrant: partner is a component as well as an archive? |
[02:22] <wgrant> mwhudson: Yes. It's very broken. |
[02:22] <mwhudson> man, the crack must have been good in 2004 |
[02:22] <jml> mwhudson, an Archive has a Distribution |
[02:22] <wgrant> Partner is a new thing. |
[02:22] <mwhudson> true |
[02:22] <mwhudson> well |
[02:22] <mwhudson> new, as in 3 years or so, right? |
[02:22] <wgrant> Two or three years, yes. |
[02:22] <jml> mwhudson, a Distribution also refers to a main_archive, so assume it's one Distribution to many Archives. |
[02:22] <Shane_Fagan> What version of postgres do you need? |
[02:23] <jml> Shane_Fagan, 8.3 |
[02:23] <jml> mwhudson, a publication has a component and an archive |
[02:23] <jml> mwhudson, whether the archive is sensible for these purposes is beyond my ability to judge. |
[02:23] <mwhudson> jml: if i ask something about pockets, will i regret it? |
[02:24] <wgrant> bigjools suggested last night that it wasn't sensible, IIRC. |
[02:24] <jml> mwhudson, oh crap, I knew I forgot something. |
[02:24] <mwhudson> jml: it seems to _me_ (and what do i know?) that for an official source package branch, the archive you care about is the primary archive |
[02:25] <jml> wgrant, I derived from: |
[02:25] <jml> <bigjools> add a new property to it, latest_published (trivial, just return self._getFirstPublishingHistory |
[02:25] <jml> then you have in your hands a component and an archive |
[02:25] <mwhudson> jml: and on the face of it, i don't see why latest_published might not refer to a ppa |
[02:26] <jml> mwhudson, in my relative ignorance, I'm inclined to agree with you. |
[02:26] <mwhudson> bug 347768 |
[02:26] <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 |
[02:26] <wgrant> mwhudson: Because they'll be excluded. |
[02:26] * jml has only had a chance so far to ask the question and type up the summary. |
[02:26] * mwhudson reads |
[02:26] <wgrant> It's already done in lots of places already. |
[02:28] <wgrant> ISourcePackage.latest_publishing would use ISourcePackage._getFirstPublishingHistory, which only gets it from the distro's official archives. No PPAs. |
[02:30] * mwhudson chases things around a big |
[02:30] <mwhudson> bit |
[02:32] <mwhudson> wgrant: i see you are right |
[02:33] <mwhudson> but ehhh |
[02:33] <wgrant> It's all a bit strange. |
[02:33] <jml> I really think that verify_acl should be turned into a function that takes a person ('signer'), an archive and a sourcepackage. |
[02:33] <wgrant> jml: Pocket! |
[02:33] <jml> wgrant, it doesn't use pocket right now. |
[02:34] <mwhudson> isn't there something about the release pocket being read only after, well, the release? |
[02:34] <mwhudson> or is that done at a different level? |
[02:35] <jml> UploadPolicy.checkUpload, apparently |
[02:39] <mwhudson> i wonder if there's a way to kick off a build of the bzr builder without waiting for 22.5 hours |
[03:05] <jml> cprov, hi |
[03:05] <cprov> jml: hi, give me one minute, I need coffee. |
[03:05] <jml> cprov, np |
[03:05] <jml> http://paste.ubuntu.com/225594/ -- diff against db-stable |
[03:06] <jml> but that's got a dependent branch |
[03:06] <jml> I'll split the diff up. |
[03:06] <wgrant> ICanHasLinkedBranch. Nicely done. |
[03:07] <cprov> jml: k |
[03:07] <jml> wgrant, :D |
[03:08] <mwhudson> wgrant: there is also IHasLinkedBranch, which is _entirely_ different |
[03:08] <jml> http://paste.ubuntu.com/225599/ -- that's the new branch, official |
[03:08] <jml> mwhudson, yeah, we need to fix that. |
[03:09] <cprov> jml: right, you already have 'suite_sourcepackage' which is SP (SPN + DS) + Pocket |
[03:09] <jml> http://paste.ubuntu.com/225601/ -- that's the ubuntu-packages branch, which makes lp:ubuntu/package work. |
[03:09] <jml> cprov, yes. |
[03:10] <jml> cprov, I want two things: |
[03:10] <cprov> jml: for upload ACL purposes we theoretically also need IArchive |
[03:10] <jml> a function from (suite_sourcepackage, person) -> boolean, "can this person upload" |
[03:10] <jml> and a way of granting a person upload permissions, to be used in the tests |
[03:11] <jml> I think the second is much more straightforward than the first |
[03:13] <jml> cprov, so where do we get the archive from? |
[03:13] <cprov> jml: okay, having a SomenthingMeaningful.canUpload(person) available is more valuable for testing and doesn't exclude the possibility of it bound to the lp.Append permission on the object later, for UI purposes. |
[03:13] <jml> +1 |
[03:15] <cprov> jml: as mwhudson pointed we can safely assume PRIMARY (distribution.main_archive) for all DSP not published in the 'partner' component. |
[03:15] <jml> ok. |
[03:15] <cprov> jml: it's never overridden. |
[03:16] <cprov> jml: I don't see this assumption making ppa-package-branches any harder to implement in the future. Do you ? |
[03:17] * jml has less than 20 minutes of battery life left |
[03:18] <jml> cprov, I don't. |
[03:19] <cprov> jml: once you have an suitable archive available (or assumed) you can figure out the current component (archive.getPublishedSources(spn, series)[0].component ... please make it elegant :)) |
[03:20] <jml> cprov, so, I'm really very strongly thinking of refactoring verify_acl into a function that takes archive, a person (signer), and a SuiteSourcePackage. |
[03:20] <jml> cprov, and raises exceptions instead of calling reject() |
[03:20] <jml> cprov, would this be appropriate to use (probably together with some checkUpload() equiv.) |
[03:20] <jml> for package branch permissions. |
[03:21] * jml has less than 10 minutes of battery life left |
[03:22] <cprov> jml: we can to that, but it's very likely that it will be something else than the current spread checks. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.