Thursday, 2023-03-09

@iwienand:matrix.orgcorvus: https://review.opendev.org/c/zuul/zuul-jobs/+/871539 is a role for checking out git submodules.  i'm just a bit unsure one this so would like some input.  on one hand, it's simple enough to run the submodule pull as this does, and it seems like this is safe from a gating POV as you're pulling the references in the zuul checkout, which should be reproducible.  on the other hand, the checkout from prepare-workspaces has the origin reset to /dev/null presumably to avoid pulling remotely in gate, etc.  so if your project uses relative submodules (gerrit) you can't find them.  00:43
@iwienand:matrix.orgMichael Kelly has provided notes on this as i requested in the README.  still something about it makes me hesitant on it, i feel like i'm missing something.  whenever free, could you take a look?00:44
@jim:acmegating.comianw: using submodules with zuul is very situation dependent.  often what people want to do is incompatible with zuul.  but there are some ways to use it for a vendored dependency that is not itself managed by zuul (in which case it behaves and breaks like any other dependency mechanism (lockfile, requirements, etc).  Michael Kelly's role should work for that.  there is also a way to use zuul with submodules that are themselves co-gated.  that relies on gerrit's submodule subscription system.  mordred and i set up gerrit's zuul for that.  i don't have any objection to a role that runs "git submodule init" as long as it doesn't suggest that that is a correct or necessary thing to do in all cases.  i do think that change should be updated not to reference the gerrit repos because it is definitely incorrect behavior for that specific submodule configuration.00:57
@iwienand:matrix.orgok, the gerrit thing i probably injected confusion into, because i asked for testing and the only thing we clone that i could really think of that had submodules was gerrit00:59
@jim:acmegating.comi think a synthetic test might be appropriate00:59
@iwienand:matrix.orgwhat happens in that test is pretty much what we do to build the gerrit docker image in opendev01:01
@iwienand:matrix.orgbut yeah, one issue i had with that was now we need to keep the submodule list in sync in zuul-jobs which seems not right at all01:02
@jim:acmegating.comianw: yep.  that's why i say situation dependent.  we're simply consumers of gerrit repos, and we're not gating any of the repos that either are or have submodules.  so it works in that case.  but it's not okay for gerrit itself.01:02
@jim:acmegating.comlike, i don't even know if i could write a succinct list of rules for when a certain kind of submodule strategy is okay or not.. :/01:03
@jim:acmegating.com1) do not use submodules01:03
@jim:acmegating.com2) ...?01:03
@iwienand:matrix.orgyeah, i guess that was my issue, i was probably thinking a bit too big with this trying to cover every angle.  just working for the simple case of non-relative submodules is probably enough01:07
@iwienand:matrix.orgthe other changes ontop of that are fairly similar for git-lfs, which is pretty much the same gist i guess01:08
-@gerrit:opendev.org- Tobias Henkel proposed: [zuul/nodepool] 876881: Process paused requests first https://review.opendev.org/c/zuul/nodepool/+/87688108:00
-@gerrit:opendev.org- Tobias Henkel proposed: [zuul/nodepool] 876881: Process paused requests first https://review.opendev.org/c/zuul/nodepool/+/87688108:05
-@gerrit:opendev.org- Simon Westphahl proposed: [zuul/nodepool] 876943: Respect timeout when only declining requests https://review.opendev.org/c/zuul/nodepool/+/87694308:10
-@gerrit:opendev.org- Simon Westphahl proposed: [zuul/nodepool] 876943: Respect timeout when not accepting requests https://review.opendev.org/c/zuul/nodepool/+/87694308:11
-@gerrit:opendev.org- Tobias Henkel proposed: [zuul/nodepool] 876881: Process paused requests first https://review.opendev.org/c/zuul/nodepool/+/87688109:14
-@gerrit:opendev.org- Simon Westphahl proposed: [zuul/nodepool] 876943: Respect timeout when not accepting requests https://review.opendev.org/c/zuul/nodepool/+/87694309:33
-@gerrit:opendev.org- Benjamin Schanzel proposed on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/nodepool] 872256: Offload openstack delete api calls to an executor https://review.opendev.org/c/zuul/nodepool/+/87225609:48
-@gerrit:opendev.org- Simon Westphahl proposed: [zuul/nodepool] 876943: Respect timeout when not accepting requests https://review.opendev.org/c/zuul/nodepool/+/87694311:36
-@gerrit:opendev.org- Simon Westphahl proposed on behalf of Tobias Henkel: [zuul/nodepool] 876881: Process paused requests first https://review.opendev.org/c/zuul/nodepool/+/87688111:36
@vlotorev:matrix.orgSpeaking of submodules: I wrote a tool that maps  zuul.projects canonical names to urls in .gitmodules and uses 'git submodule absorbgitdirs' if project canonical paths match.19:48
It is combined with gerrit super-project subscription.
(Someone might find the tool useful).
@jpew:matrix.orgvlotorev: I'd be interested to see that21:32
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed:21:34
- [zuul/nodepool] 877044: Don't update node request in assign handlers loop https://review.opendev.org/c/zuul/nodepool/+/877044
- [zuul/nodepool] 877045: Make assignHandlers a generator https://review.opendev.org/c/zuul/nodepool/+/877045
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed on behalf of Simon Westphahl: [zuul/nodepool] 876943: Respect timeout when not accepting requests https://review.opendev.org/c/zuul/nodepool/+/87694321:34
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed on behalf of Tobias Henkel: [zuul/nodepool] 876881: Process paused requests first https://review.opendev.org/c/zuul/nodepool/+/87688121:34
-@gerrit:opendev.org- Zuul merged on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/nodepool] 870430: Add a cache for image lists https://review.opendev.org/c/zuul/nodepool/+/87043023:11
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 877048: Allow duplicate queue definitions on same project branches https://review.opendev.org/c/zuul/zuul/+/87704823:30

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!