Friday, 2023-12-01

-@gerrit:opendev.org- Zuul merged on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/zuul] 902316: Fix repo state restore for zuul role tag override https://review.opendev.org/c/zuul/zuul/+/90231607:20
-@gerrit:opendev.org- Benjamin Schanzel proposed: [zuul/zuul] 902419: Don't let admin action dropdown move off screen https://review.opendev.org/c/zuul/zuul/+/90241914:27
-@gerrit:opendev.org- Benjamin Schanzel proposed: [zuul/zuul] 902426: Add more dark mode friedly sprites https://review.opendev.org/c/zuul/zuul/+/90242615:30
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/nodepool] 902428: Fix gpu parameter type in openshiftpods https://review.opendev.org/c/zuul/nodepool/+/90242816:05
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/nodepool] 902428: Fix gpu parameter type in openshiftpods https://review.opendev.org/c/zuul/nodepool/+/90242816:06
-@gerrit:opendev.org- Ahmon Dancy proposed: [zuul/zuul] 902433: Reduce file descriptor leaks during tests https://review.opendev.org/c/zuul/zuul/+/90243317:02
-@gerrit:opendev.org- Zuul merged on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com:17:21
- [zuul/zuul] 899213: Add tests for admin api token usage with access-rules https://review.opendev.org/c/zuul/zuul/+/899213
- [zuul/zuul-client] 899292: Use server supplied error strings https://review.opendev.org/c/zuul/zuul-client/+/899292
-@gerrit:opendev.org- Ahmon Dancy proposed: [zuul/zuul] 902433: Reduce file descriptor leaks during tests https://review.opendev.org/c/zuul/zuul/+/90243318:15
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/nodepool] 902437: Redact k8s connection info in node list https://review.opendev.org/c/zuul/nodepool/+/90243718:30
-@gerrit:opendev.org- Ahmon Dancy proposed: [zuul/zuul] 902433: Reduce file descriptor leaks during tests https://review.opendev.org/c/zuul/zuul/+/90243319:11
@melwitt:matrix.orghi, I have a .zuul.yaml where what I want is to set some vars for all jobs in my project, which I can do with project.vars. the problem I'm running into is that one of the ancestor jobs (outside my project) of my jobs set the same variable, so it overrides my project.vars setting. is there any way to set the variable as a default in my project such that it can only be overridden if I override it in a job in my project? so far it's looking like I will need to set the var for each job definition in my project. if anyone has any ideas, I would appreciate it19:58
@fungicide:matrix.orgcould the parent job be abstracted to a version without that variable set, and then your project use that?20:00
@fungicide:matrix.orgkinda ugly, admittedly20:01
@melwitt:matrix.orgI was thinking no bc the job that sets it is pretty far up/early in the ancestry chain and various jobs in the project inherit from it indirectly, if that makes sense20:02
-@gerrit:opendev.org- Zuul merged on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/zuul] 899291: Tidy some auth exceptions https://review.opendev.org/c/zuul/zuul/+/89929120:04
@fungicide:matrix.orghttps://zuul-ci.org/docs/zuul/latest/job-content.html#user-jobs-variable-inheritance tries to cover this, but doesn't make it clear what direction that list is in20:04
@fungicide:matrix.orgdo site-wide variables override everything else? or do parent job results?20:05
@jim:acmegating.com`Meaning that a site-wide variable with the same name as any other will override its value,`20:05
@jim:acmegating.comthat paragraph is an attempt to make the direction of inheritance clear. i am sorry i failed20:05
@fungicide:matrix.orgno, i think i failed at reading!20:05
@melwitt:matrix.orgyeah, it says "Meaning that a site-wide variable with the same name as any other will override its value, and similarly, secrets override job variables of the same name which override data returned from parent jobs" which I took to mean that jobs override projects, no matter where that job is located, project-wise20:06
@fungicide:matrix.orgso #1 takes precedence over everything after it20:06
@melwitt:matrix.orgright20:06
@fungicide:matrix.organd job variables take precedence over project vars, in this case20:06
@jim:acmegating.comand yes, jobs always override projects20:06
@melwitt:matrix.orgI need something like a "local" default, is probably the best way to describe it20:07
@fungicide:matrix.orgor (nonexistent) `project.extra-vars`20:08
@melwitt:matrix.orgyeah exactly. I actually looked for that after reading through the docs for awhile 😂 20:09
@melwitt:matrix.orgso close!20:09
@fungicide:matrix.orgtrying to think if there's a way to abuse a secret that way, but probably a bad idea even if it does end up working20:09
@melwitt:matrix.orgI began to think about that too and agreed probably a bad idea heh20:10
@fungicide:matrix.orgfor other, similar sorts of challenges, we've done entire parallel series of jobs descending from wherever we had to differentiate an ancestor's definition20:11
@fungicide:matrix.orgbut there's the obvious risk that they diverge unintentionally (always my concern with that sort of duplication)20:12
@melwitt:matrix.orgexactly my concern in this case too20:12
@fungicide:matrix.orgi'm tapped out, but maybe someone else in here has a better idea20:13
@melwitt:matrix.orgalso want it to be less confusing. bc if I copy paste it everywhere I'm guessing it will be more confusing20:13
@melwitt:matrix.orgthanks though, it helps to make sure I'm not missing a better way20:14
@jim:acmegating.comtwo things you might be able to build on: yaml anchors instead of copying; or the multiple inheritance trick20:14
@melwitt:matrix.orgoh yeah, anchors is a good point20:15
@melwitt:matrix.orgI also wondered about multiple inheritance but didn't look further into it20:15
@melwitt:matrix.orgone of those "what if that's worse and/or more obscure"20:16
@jim:acmegating.comas in any language, it only sometimes makes things easier20:16
@jim:acmegating.comexactly20:16

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