/srv/irclogs.ubuntu.com/2021/01/04/#launchpad.txt

enychrrm ... something funny happening with the function to "This bug affects 1 person. Does this bug affect you? "  mark as affects me too00:09
enycif opin in new tab and use window that way... get error:-00:09
enycTimeout error00:09
enycSorry, something just went wrong in Launchpad.00:09
enyc(Error ID: OOPS-83c7013fe3bbdb2b34e2c5afbc6d17df)00:09
ubot5https://oops.canonical.com/?oopsid=OOPS-83c7013fe3bbdb2b34e2c5afbc6d17df00:09
enycNo doubt that will help somebody figure out the problem(s) =)00:10
=== jamesh_ is now known as jamesh
=== pieq_ is now known as pieq
=== cpaelzer__ is now known as cpaelzer
=== pieq_ is now known as pieq
=== pieq_ is now known as pieq
=== cjwatson changed the topic of #launchpad to: Help contact: cjwatson (09:30-17:30 UTC Mon-Fri) | Launchpad is an open source project: https://dev.launchpad.net/ | This channel is logged: http://irclogs.ubuntu.com/ | User Guide: https://help.launchpad.net/ | Support and spam reporting: https://answers.launchpad.net/launchpad
rbasakcjwatson: o/ Happy New Year! I'd like to chat to you about git-ubuntu plans to automatically find uploaders' git commit on import please. Not urgent - I'd deferred looking at this until after the holiday period. We've discussed some different approaches IIRC, and I don't recall what we settled on. I'm ready to implement in git-ubuntu in the next couple of months.11:03
cjwatsonrbasak: I, uh, don't remember anything about this right now, so might need a reminder11:04
rbasakIt was a long time ago.11:05
rbasakThe user story is: an uploader does work based on a git-ubuntu branch (eg. ubuntu/devel), is ready to upload it, and wants to see the git-ubuntu branch update with their own commits, rather than a synthesized one.11:06
rbasakWhen git-ubuntu sees the Launchpad publication, it needs some way to locate a commit that the uploader will need to have left somewhere.11:06
cjwatsonAh, so the equivalent of the Dgit field in Debian .changes files?11:07
rbasakRight now we use this "upload tag" hack that I'd like replace with something nice11:07
rbasakYes11:07
rbasakOne thing we talked about was to put something in the changes file11:07
rbasakBut then we still need a mechanism to locate the repository to pull the commit from11:08
cjwatsonRight11:08
rbasakSo another bit of metadata in the changes file, or an API call in Launchpad to find a repository given a commit hash11:08
rbasakIIRC wgrant was there too, and mentioned something about it not being too difficult to implement such a call?11:08
rbasakI think there was some other approach proposed too, which didn't use the changes file11:08
cjwatsonI'd be surprised if wgrant had been happy with such a thing11:09
cjwatsonIt sounds scary11:09
cjwatsonAnd not obviously easy11:09
rbasakAnother thought (maybe related): git-ubuntu could look for suitable MPs that appear approved according to some criteria11:09
rbasakI could do that without changes in Launchpad right now maybe11:09
rbasakBut it would require uploaders to push an MP, which some uploaders won't want to bother with I expect11:10
rbasakIn git-ubuntu I now have a place where I can hook all of this very easily, including using multiple methods11:10
rbasakSince there's just a "here's a publication, add the rich history to the local repository and return a commit hash" function now.11:11
cjwatsonMy instinct is that this sort of thing fits well as metadata in .changes, though I agree it would need to be well-specified (e.g. the syntax should probably support non-LP repositories, even if the initial implementation doesn't)11:11
cjwatsonDo you have a good way to get the .changes for a given primary archive publication at the moment?11:12
rbasakI haven't thought it through11:13
rbasakI have a source_package_publishing_history reference11:13
rbasakAnd some snippets of code to follow that through pocket copies to get to a package_upload11:14
rbasakI think11:14
rbasakFor an initial implementation maybe pocket copies aren't important to implement.11:16
rbasakThere's always the fallback of synthesizing a commit11:16
rbasakSo in that case, I think I can get the changes file for a straightforward upload11:16
rbasakspph.package_upload.changes_file_url?11:16
cjwatsonSomething like that.  We could probably also ingest the relevant field and arrange for it to be published more directly on the API if needed.11:17
rbasakDoes Launchpad need adjusting to pass new changes file fields through?11:18
cjwatsonIt doesn't need adjusting to simply preserve them in changes_file_url.  It would need adjusting if we wanted it to parse them in any way.11:26
rbasakI don't think I need Launchpad to parse them.11:26
rbasakI'm imagining two fields (semantically at least, whether collapsed into one or not). URL to the git repository, and commit-ish11:27
rbasakAnd I think that's all I need, if everyone is happy with that.11:27
cjwatsonShould be an actual commit rather than a commit-ish.11:28
cjwatson*actual commit ID11:28
cjwatsonI'm OK with that, but wouldn't mind a sanity-check from wgrant.11:29
rbasakactual commit> Yes, on reflection, I agree. It should be locked in.11:29
cjwatsonYou'll presumably need to consider things like what happens if, by the time git-ubuntu gets to it, the repository in question doesn't exist or doesn't have the relevant commit or is private.11:30
rbasakInitially I could have git-ubuntu require the URL to match a regexp or something11:30
rbasakYes - in that case I'll fall back to a synthesized commit11:30
rbasakIt's a very optional thing, and I'm already accepting that the resulting importer output mutates if the availability of the rich history changes11:30
rbasak(in the upload tag hack we're using now)11:31
cjwatsonPerhaps ideally don't fall back if the error can be identified as temporary11:31
cjwatson5xx, say11:31
rbasakNot 4xx?11:31
cjwatson4xx -> you screwed up   5xx -> we screwed up11:32
rbasakOK11:32
rbasakI see11:32
rbasakCurrently I don't have a concept of a temporary failure.11:32
cjwatsonVery roughly :-)11:32
rbasakHowever, I can fail the import entirely11:32
rbasakAnd it's idempotent11:32
rbasakSo it will catch itself up11:32
cjwatsonYou may also be using launchpadlib, in which case it will back off and retry11:32
rbasakThat would do for now11:32
cjwatsonAt least for some errors11:32
rbasakDepends on the length of an outage I guess11:32
rbasakThere's a watchdog that kills an import attempt after a few hours11:33
rbasakSo it will catch itself up> when it picks up the subsequent publication, which admittedly may not happen. But we do watch the errored import "log"11:34
=== hellswor1 is now known as hellsworth
=== ijohnson is now known as ijohnson|lunch
=== ijohnson|lunch is now known as ijohnson

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