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

jameshcjwatson: weird. That's one part of the snapcraft.yaml we haven't changed in years00:48
cjwatsonjamesh: hm, I can look harder tomorrow.  I guess it could also be the `base: bare` bit, but the `build-base` should win ...01:15
jameshcjwatson: I'll definitely give the architectures thing a try, so I can rule that out for your tomorrow01:16
cjwatsonjamesh: is it possible that you used to create builds using the snap.requestBuild API though?  That doesn't go through arch parsing01:17
cjwatsonjamesh: (but is deprecated for various reasons, e.g. it can't detect the base properly)01:17
jameshcjwatson: the recipe hasn't built automatically in response to the last push, or by using the manual "request builds" link on the website01:18
cjwatsonjamesh: so it could be that this never worked but that the way you were requesting builds dodged the problem01:18
jameshcjwatson: I'm pretty sure we had automatic builds working before01:19
cjwatsonjamesh: we might have refactored how those worked at some point, but I'd need to dig into git history01:19
jameshcjwatson: if updating that bit of the snapcraft.yaml fixes things, I'll be happy. Thanks for looking into it01:20
cjwatsonjamesh: broadly we've been moving more towards async build requesting that parses snapcraft.yaml properly, as it became clear that our initial approach wasn't sustainable01:21
jameshcjwatson: updating the architectures line does indeed seem to have got things unstuck. Thanks!02:10
jameshcristiangsp: Colin helped track down the build failure for my snap. I had "architectures: [all]" in the snapcraft.yaml, which used to work but now seems to result in no builds being spawned by the build request.07:26
cristiangspjamesh let me take a look again to the logs so see if now we can see the issue there07:46
cristiangspwhen did you request a build? 07:46
cristiangspoh I see it now07:48
cristiangspin the logs07:48
cristiangspactually I see builds being successful, so I think we are good and you were trying to update me. Thanks!07:52
jameshcristiangsp: yeah. I updated the snapcraft.yaml, and it started building again07:54
cristiangspjamesh: perfect!07:54
jameshcristiangsp: I hadn't actually touched this part of the snapcraft.yaml since the last builds in April, so I was mostly focusing on the aspects I had changed.07:55
krisivesIs there a way in a Launchpad recipe to pull from the latest tag, similar to how {latest-tag} is used in the deb version part?16:34
cjwatsonI don't believe so16:36
cjwatsonRecipes were built mainly for ongoing CI sorts of applications, really16:36
cjwatsonYou can always have a branch that exists just for the purpose of hanging a recipe off, and push the latest tag to that each time you want to bump it16:37
krisivesYeah that's kind of what I do now, but the problem is that I'm also packaging software other people make and I try not to impose on them much16:48
cjwatsonI'm afraid that's the best we can offer at the moment.  You can make the branch yourself in your own repository - it doesn't have to involve imposing on them17:22
krisivesDo you think a change to `git-build-recipe` that allowed `{latest-tag}` in the context of the git-ref would be accepted?18:08
cjwatsonkrisives: I don't think a change to git-build-recipe alone would be sufficient.  It would need changes in the dispatch logic in Launchpad (in fact that would be where most of the change would have to go), and the definition of "latest tag" is considerably more difficult than it is in the context of generating a version string - for a version string, what it means is the latest tag found in the ...18:24
cjwatson... direct ancestry of the branch that the recipe is based on, whereas for dispatch it's more like ... latest tag anywhere?  But what if the repository is one that makes tags for purposes other than releases?  It gets kind of complicated18:24
cjwatsonkrisives: In other words, I'm not sure this proposed solution is the right one.18:24
krisives{latest-tag} doesn't do version semantic style comparison to find the latest?18:25
cjwatsonkrisives: It might possibly be more sensible to define it as a flag on the recipe that causes LP to only dispatch builds when there's a tag, but still to follow a particular branch so that it doesn't e.g. get confused by a tag off on an old branch somewhere.18:25
krisiveseg. if I tag `0.0.2` and then tag as `0.0.1` is `0.0.1` the {latest-tag} ?18:26
cjwatson{latest-tag} is generated using the output of "git describe --tags --abbrev=0 <commit that's been checked out>"18:26
cjwatsonWhich is specifically to do with the ancestry of the commit that's been checked out - it's not a meaningful concept in isolation from that18:27
krisivesThanks18:27
cjwatsonBetter argument against "latest tag anywhere": let's say you have a recipe for something like Python (the interpreter itself).  There are relatively frequent releases, with corresponding tags, for 3.6.x, 3.7.x, 3.8.x, and 3.9.x.  The "latest tag" in purely time-based terms might be any one of those; the "latest tag" by version comparison (which is not a universally-agreed concept) would be ...18:30
cjwatson... something in the 3.9.x series.  But you might very well want to have separate recipes corresponding to the latest release of Python 3.6, 3.7, 3.8, and 3.9 (perhaps with slightly different build options etc.).  For that, you need to be thinking of the latest tag found along the history of a particular branch, rather than the latest tag in the repository.18:30
cjwatsonSo I think, if we were doing this, the patch would need to be mainly to Launchpad itself: the recipe would still be talking about the 3.6 branch of Python, but we'd want a flag that says "only dispatch a build when a commit on this branch is tagged" or similar.18:32
krisivesYeah, plus if someone goes back and does a tag to fix an older point release it will have problems18:32
cjwatsonAnd LP would need to dispatch the recipe modified in such a way that it points to that particular tag, I guess.  It's certainly possible that some kind of change to git-build-recipe might need to be involved18:33
krisivesWhat does the +Z and +i mode thing mean? or is that specific to me running a bouncer?20:01
tuxifreundkrisives: https://libera.chat/guides/usermodes :)20:23
tuxifreundnothing bouncer specific20:23

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