/srv/irclogs.ubuntu.com/2015/03/20/#launchpad-dev.txt

sil2100Hello!09:23
sil2100Does anyone know if I could get a person's upload permissions through launchpad API somehow?09:24
sil2100Since I'm afraid it's not exported to LP in any way09:24
wgrantsil2100: Sure, though you can only get them on a per-archive basis. See for example the edit-acl tool in lp:ubuntu-archive-tools.09:25
sil2100wgrant: excellent news then, that's exactly what I would need09:25
sil2100Let me look it up09:25
wgrantBut if you just want to check whether someone can upload a package, use archive.checkUpload instead.09:25
sil2100Thanks!09:25
* sil2100 likes when things are so easy09:26
sil2100Yeah, checkUpload seems like the perfect thing, I can just use it when someone will perform an upload for all packages in a silo09:28
wgrantPlease don't try to reimplement the upload permission logic yourself. If checkUpload doesn't do exactly what you need, we should adapt it to avoid security issues.09:29
cjwatsonIndeed, archive.checkUpload is IIRC what I suggested in Malta when somebody asked in a CI Engine session about checking this externally.10:17
cjwatsonwgrant: What do you think of this layout?  http://people.canonical.com/~cjwatson/tmp/new-builders.png17:34
cjwatsonwgrant: My thinking is that, once scalingstack builders can dispatch both i386/amd64/armel/armhf/arm64 virt and i386/amd64 non-virt, the heading row above them can be two lines and read "Non-virtual: i386 amd64\nVirtual: i386 amd64 armel armhf arm64"17:36
cjwatsonwgrant: This sacrifices table sorting, but honestly that was mostly a footgun on that page anyway; "oh, I clicked somewhere random, oh god where did all the builders go, reload page"17:36
cjwatsonHm, might shuffle the names right a little bit and give the icons their own column back.  They don't have much mnemonic value, but I do find they help break things up visually a bit.18:01
cjwatsonAnd I hate that sampledata has "386".  But you get the general idea.18:04
cjwatsonIt's a bit non-semantic-web given that it's blatantly tables-for-layout, with the artificial rows.  But it's that or multiple tables, I think, and then we have to deal with keeping column widths the same.18:08
cjwatson<tr class="category"> seems to style a bit nicer for this.  Updated that image18:17
cjwatsonAlso have started on the Processor etc. changes needed18:46
cjwatsonBut EOW now, have a good weekend all18:46
wgrantcjwatson: I don't think they should be labeled as non-virtual at all.20:30
wgrantRather the x86 Processors have a flag that says they are never virtualised.20:31
wgrantEr, always.20:31
wgrant(but yes, that's roughly how I think the page should look. It may make sense to have filtering, but it's not critical and still much easier to scan)20:39
cjwatsonwgrant: to be clear, that screenshot's with the current model; I'm thinking of that as something we could do straight away, that's easier to adapt to the new model21:32
cjwatsonI was indeed planning to add Processor.always_build_virtualized - that seems the natural approach21:34
wgrantcjwatson: Right. I'm wondering how that interacts with DAS.supports_virtualized.21:35
wgrantIt probably doesn't change the semantics of Processor.restricted.21:35
cjwatsonWhy was that on DAS to begin with?21:40
wgrantcjwatson: Only some distributions support PPAs, and we used to not enable PPAs for new distroseries until they were usable.21:41
wgrantDistribution now has a flag that could be used to forbid PPA uploads, and new distroseries are less of an issue nowadays.21:42
cjwatsonMm.  This is about builder dispatch rather than whether it's a PPA, though.21:49
cjwatson(But yeah, those two used to be conflated.)21:49
cjwatsonBinaryPackageBuildSet._getAllowedArchitectures filters out cases where DAS.supports_virtualized and Archive.require_virtualized contradict, so perhaps it would be logically consistent to behave similarly here.21:52
cjwatsonThat is, if the build farm is set up so that we only do virtual builder dispatch for a processor, and DAS.supports_virtualized is false, you just don't get builds.21:52
cjwatsonOr they never get dispatched.21:52
cjwatsonThe _getAllowedArchitectures semantics would be that you don't get builds at all, I guess.21:53
wgrantThey still are conflated to some extent, so the flags are relevant for discussing how this changes things.21:54
wgrantIt may make sense to abolish supports_virtualized.21:55
wgrantThe unsupported distro filter could then use distribution.official_packages or distribution.supports_ppas.21:56
wgrantThe unsupported distro filter could then use distribution.official_packages or distribution.supports_ppas.21:57
wgrantEr, Processor needs supports_virtualized and only_virtualized, or supports_virtualized and supports_nonvirtualized.21:57
wgrantI think it makes sense to have a consistent virtualisation setting on the BuildQueues for a single Archive.21:58
wgrantThat is, the flag indicates whether virtualisation is *required*.21:58
wgrantBut for Processors with only_virtualized, virtual builders search for non-virtualised builds too.21:58

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