/srv/irclogs.ubuntu.com/2012/06/30/#launchpad-dev.txt

=== salgado is now known as salgado-afk
cjwatsonwgrant: Urgh, test failure on fix-check-copy-permissions in lp.registry.browser.tests.test_distroseries.TestDistroSeriesLocalDifferences.test_sync_error_no_perm_component, which turns out to be because my change fails to do a proper ancestry check so if you copy into updates it doesn't realise that it has to check against release.  (Well, actually, the test creates a publication in backports; I haven't decided yet whether ...10:50
cjwatson... I think the test needs to be changed, but regardless the code is clearly still wrong.)10:50
cjwatsonwgrant: So I need to do an ancestry check.  There are at least two copies of getSourceAncestry already, one in NascentUpload and one in PackageUploadSource, but I don't have the right context to be able to use either of them.  I'm loath to add yet another copy of essentially the same logic.10:51
cjwatsonwgrant: Do you think it might make sense to move PackageUploadSource.getSourceAncestry somewhere else (where?  maybe under lp.soyuz.adapters?), since it doesn't actually need the PUS directly, just archive/DS/pocket/name?10:53
cjwatsonActually, NascentUpload.getSourceAncestry is a closer match, looking at it, because it doesn't fall back to the primary archive.  Upload permissions to the primary archive shouldn't confer upload permissions to a PPA, and likewise for copying.  PUS.getSourceAncestry makes more sense for diff generation.10:55
wgrantcjwatson: Can they sensibly be merged and just take a sequence of archives instead?10:56
cjwatsonPossibly.  PUS.gSA has a puzzling thing where it falls back to any DS in the primary archive but not in the context archive.10:57
cjwatsonAnd NU.gSA still uses the old DS.getPublishedSources, which doesn't make things any less confusing.10:58
cjwatsonUh, and PUS.gSA takes the *last* of its sequence of lookups that it finds, not the first.10:59
cjwatsonOh, no, it doesn't, it's just confusingly written.10:59
cjwatson        for blah:10:59
cjwatson            try:10:59
cjwatson                ancestry = ancestries[0]10:59
cjwatson            except IndexError:10:59
cjwatson                continue10:59
cjwatson            break10:59
cjwatson        return ancestry10:59
cjwatsonHi, dear PUS.gSA, how about "return ancestries[0]", love Colin10:59
cjwatsonSo if you upload packages to a PPA for both precise and quantal, then the quantal PPA package will be diffed against whatever's in quantal in the primary archive and failing that whatever's newest in the primary archive, but never against the precise PPA package.11:02
wgrantYeah11:02
wgrantThat's a bit odd.11:02
cjwatsonI suppose that makes some kind of sense if the goal of PPA diffs is to work out what would happen if they landed in the primary archive.11:02
wgrantPotentially deliberate11:03
cjwatsonI'm not sure I feel confident about merging these two, but renaming PUS.gSA to getSourceAncestryForDiffs might be a plan.11:03
wgrantA good start, indeed11:04
cjwatsonBecause honestly argh.11:04
cjwatsonStill not sure I know a good place for NU.gSA.  Is adapters a sane place for stuff that doesn't really have a single context object?11:05
wgrantcjwatson: There, or maybe PublishingSet.11:06
cjwatsonAh, I hadn't thought of *Set.11:07
cjwatsonThat has a getNearestAncestor that is also not what I want.11:07
=== daker-cloud is now known as daker_
cjwatsonWait.  SPPH.overrideFromAncestry will look for ancestry in any pocket.11:09
cjwatsonSo, if I'm reading this right, if you only have universe component upload permissions, you can upload a package to backports that only exists in updates/main, but it will then be automatically overridden into backports/main.11:10
cjwatsonMaybe I need to go back to querying for publications in any pocket (which is what the previous code effectively did) just in order to get this permissions regression sorted out and unblock deployment, and leave an XXX comment to sort out the insanity separately.11:12
cjwatsonBecause I'm really not entirely convinced by any of the three different implementations of this logic.11:12
wgrantIndeed... :/11:13
cjwatsonwgrant: http://paste.ubuntu.com/1067513/ ?11:17
cjwatsonOh and I need to fix an interface there too.11:17
cjwatsonSo http://paste.ubuntu.com/1067517/11:19
* cjwatson should go and clean house instead of cleaning Launchpad ...11:20
=== daker_ is now known as daker
Bert_2can I ask questions here about issues I have with the launchpad code ?23:19
rick_h_Bert_2: yea, most people are afk during the weekend, but feel free to ask23:21
Bert_2yeah, I'll just ask ;)23:22
Bert_2I'm trying to run my own instance of launchpad23:22
Bert_2well, we, I'm working for a students developer group23:23
Bert_2anyway, we have launchpad running using the rocketfuel script and the make schema make LISTEN... install make run thing23:23
Bert_2but the information on the wiki only describes how to make it available to people who then have their dns changed so they can access it from launchpad.dev23:24
rick_h_right, you need some DNS to tell everywhere where it's at.23:24
Bert_2however, I want to use an actial domain for this instance of launchpad (something like launchpad.ulyssis.org)23:24
Bert_2yeah, that doesn't work :S23:24
rick_h_ok, so you'll need to adjust the apache conf file to be listening to that address23:24
Bert_2launchpad won't show :S23:24
Bert_2apache listens on it23:25
Bert_2but doesn't display launchpad, but the it-works page :S23:25
rick_h_for that name?23:25
rick_h_http://paste.mitechie.com/show/717/23:26
Bert_2yeah, it listens on the direct IP, I told it to, but it displays it works :S23:26
rick_h_all of those launchpad.dev need to be changed23:26
Bert_2or isn't an IP a good test ?23:26
rick_h_no, because apache is looking for names23:26
Bert_2yeah, I've read that23:26
rick_h_it's a named virtualhost for all of the various bits, launchpad, bazaar.launchpad, etc23:26
Bert_2I tried adding stuff, but that didn't work23:26
rick_h_so unless the name in the url matches the apache config it won't serve the request23:27
Bert_2zo I can actually just s/launchpad.dev/launchpad.ulyssis.org/ ?23:27
Bert_2*so23:27
rick_h_yea, that's what I'd start with23:27
rick_h_I've not actually run it on a different hostname, so not sure what else might break, but at least that part needs to happen23:27
Bert_2k, I was thinking about that but it seemed a little too simple because launchpad is so custom :S23:27
rick_h_well, only in ServerName and ServerAlias23:28
Bert_2I'll give it a try tomorrow and I'll probably be back later then23:28
Bert_2yeah, I know ;)23:28
rick_h_stuff like  <Directory /var/tmp/bazaar.launchpad.dev/mirrors/>23:28
Bert_2yeah, I know that ;)23:28
rick_h_might not like being changed23:28
Bert_2don't touch other stuff :p23:28
rick_h_ok cool23:28
Bert_2probably not, the process will be custom there23:28
Bert_2ulyssis runs a hosting service for student IT projects etc. over multiple servers with apache, ldap, nfs, etc., so we have quite some experience :p23:29
rick_h_cool, yea give it a shot and see if that gets your father along.23:29
Bert_2we just didn't want to fool around with launchpad too much ;)23:29
rick_h_heh, understand :)23:29
Bert_2yeah, I'll give it a go ;)23:29
Bert_2let's hope we'll get it sorted out, this'll be a great service to the students23:29
Bert_2also: is it normal that launchpad.dev by default contains some projects ?23:29
Bert_2(or at least displays some on the homepage)23:30
rick_h_yea, when you run make schema, if it's in dev mode, it'll load some sample data23:30
Bert_2how do I take it out of dev mode then ?23:30
rick_h_saves us a ton of time hacking on launchpad to have some default users, projects, etc23:30
Bert_2(I saw an error on)23:30
Bert_2*on make run23:30
rick_h_yea, it's part of the configs directory I believe23:31
rick_h_right, in dev mode you'll get more useful error messages/etc23:31
rick_h_which can be used against you by hackers in production, to tell your server directory layout, etc23:31
rick_h_so you're looking for the setting "devmode"23:32
rick_h_which is in the configs/development/launchpad.conf23:32
rick_h_so you'd want to setup a configs/production/launchpad.conf and get it started off of that once you've got things figured out23:32
Bert_2yeah, I did some searching but I couldn't find any useful docs on help.launchpad.net :S23:32
rick_h_https://dev.launchpad.net/WorkingWithProductionConfigs23:33
rick_h_might help some23:33
Bert_2fail23:33
Bert_2how did I miss that link XD23:33
Bert_2where was it ?N23:33
Bert_2where was it ?23:33
rick_h_I just searched the wiki for production and it came up23:34
rick_h_I think you'll want dev.launchpad.net more than help.23:34
Bert_2yeah, sorry, I mean dev.launchpad.net23:34
Bert_2I went around looking on the pages concerning building and running launchpad23:34
rick_h_anyway, off to pick up some dinner so good luck and it'll be a little quiet over the weekend so sorry if it takes some time to get answers, but there are people available to help.23:35
Bert_2the production config thing is nog linked there23:35
rick_h_yea, search ftw23:35
Bert_2can I change that myself, cause that seems like something that's missing23:35
Bert_2no problem man23:35
rick_h_hmm, probably not. but you might suggest a good edit and we can help on that23:35
Bert_2I'm used to longer delays on IRC ;)23:35
rick_h_only launchpad devs can edit23:35
Bert_2sure, I'll be in touch23:35
Bert_2see ya ;)23:36

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