Thursday, 2020-12-03

*** noonedeadpunk has quit IRC00:08
*** noonedeadpunk has joined #zuul00:10
*** hamalq_ has joined #zuul00:15
*** tosky has quit IRC00:18
*** hamalq has quit IRC00:19
*** hamalq_ has quit IRC00:21
*** hamalq has joined #zuul00:25
*** rfolco has joined #zuul00:43
*** rfolco has quit IRC00:47
*** sanjayu_ has joined #zuul02:09
*** hamalq has quit IRC02:32
*** sanjayu_ has quit IRC02:49
*** bhavikdbavishi has joined #zuul03:09
*** bhavikdbavishi1 has joined #zuul03:12
*** bhavikdbavishi has quit IRC03:13
*** bhavikdbavishi1 is now known as bhavikdbavishi03:13
*** manoj_kumar_kata has quit IRC04:23
*** manoj_kumar_kata has joined #zuul04:31
*** zenkuro has quit IRC04:38
*** rishabhhpe has joined #zuul04:45
*** rishabhhpe has quit IRC04:46
*** rishabhhpe has joined #zuul04:49
*** bhavikdbavishi has quit IRC05:02
*** ianw is now known as ianw_pto05:24
*** bhavikdbavishi has joined #zuul05:31
*** evrardjp has quit IRC05:33
*** evrardjp has joined #zuul05:33
*** zenkuro has joined #zuul05:34
*** bhavikdbavishi has quit IRC05:35
*** bhavikdbavishi has joined #zuul05:36
*** jfoufas1 has joined #zuul05:47
*** saneax has joined #zuul05:57
*** reiterative has quit IRC06:01
*** reiterative has joined #zuul06:01
*** ajitha has joined #zuul06:29
*** bhavikdbavishi has quit IRC06:41
*** bhavikdbavishi has joined #zuul06:42
*** bhavikdbavishi has quit IRC06:48
*** mach1na has joined #zuul07:09
*** bhavikdbavishi has joined #zuul07:21
*** bhavikdbavishi1 has joined #zuul07:26
*** rpittau|afk is now known as rpittau07:27
*** bhavikdbavishi has quit IRC07:28
*** bhavikdbavishi1 is now known as bhavikdbavishi07:28
*** mach1na has quit IRC07:28
*** mach1na has joined #zuul07:30
openstackgerritSimon Westphahl proposed zuul/zuul master: Use logical timestamp to detect outdated changes  https://review.opendev.org/c/zuul/zuul/+/76375507:34
*** jcapitao has joined #zuul07:48
*** jpena|off is now known as jpena07:52
*** sugaar has joined #zuul08:14
*** rishabhhpe has quit IRC08:31
*** tosky has joined #zuul08:34
*** rishabhhpe has joined #zuul08:43
*** vishalmanchanda has joined #zuul08:47
*** hashar has joined #zuul08:54
*** mach1na has quit IRC08:57
*** msuszko has joined #zuul09:07
*** piotrowskim has joined #zuul09:20
*** sshnaidm|afk is now known as sshnaidm|ruck09:22
*** nils has joined #zuul09:30
openstackgerritTobias Henkel proposed zuul/zuul master: Required SQL reporters  https://review.opendev.org/c/zuul/zuul/+/63047209:34
*** rishabhhpe has quit IRC09:34
*** manoj_kumar_kata has quit IRC09:41
*** holser_ has quit IRC09:45
*** holser has joined #zuul09:47
*** rishabhhpe has joined #zuul09:56
*** rishabhhpe has quit IRC09:59
msuszkotobiash: Asynchronous reporting solved my trigger queuing issues. Thank you!10:00
tobiashmsuszko: cool :)10:00
tobiashmsuszko: did you also import the reporter metrics patch?10:01
tobiashin some cases this could indicate an actual problem with the services zuul is reporting to10:01
*** mach1na has joined #zuul10:02
msuszkothere is merge conflict in zuul/manager/__init__.py, and I haven't spent time to find where to measure since reporter.report(item) is gone10:06
tobiashah ok10:07
msuszkoprofilinh zuul-scheduler reveavle chardet using 38% time, so I monkey-patched requests to use cchardet instead10:08
msuszkos/profilinh/profiling/10:08
tobiashdid that help?10:08
msuszkoit helped, but there is obviously something else. Now zuul-scheduler uses few % of CPU time tops, while before it was CPU bound10:11
msuszkochardet suggests extensive requests usage, is could be gerrit driver10:15
*** mach1na has quit IRC10:25
*** rishabhhpe has joined #zuul10:27
*** mach1na has joined #zuul10:29
tobiashmsuszko: the git-upload-pack call done as part of reporting can get huge on large repos with gerrit which could explain both the high usage of chardet and slow reporting to gerrit10:46
*** rfolco has joined #zuul10:59
openstackgerritMatthieu Huin proposed zuul/zuul-client master: encrypt: add --public-key argument  https://review.opendev.org/c/zuul/zuul-client/+/76531311:15
avasswould it be possible to extend jobs.requires/jobs.provides to also work for the same change?11:33
*** sanjayu_ has joined #zuul11:41
openstackgerritMerged zuul/zuul-client master: encrypt: fix bad indentation  https://review.opendev.org/c/zuul/zuul-client/+/76511211:43
zbravass: what do you mean by that?11:43
*** saneax has quit IRC11:43
*** rishabhhpe has quit IRC11:50
openstackgerritMatthieu Huin proposed zuul/zuul master: tools: Remove encrypt_secret.py, document zuul-client encrypt  https://review.opendev.org/c/zuul/zuul/+/76531611:53
*** jcapitao has quit IRC11:54
mhutobiash, can we get W+1 on the zuul-client encrypt tests as well: https://review.opendev.org/c/zuul/zuul/+/75410311:54
*** mach1na has quit IRC11:58
avasszbr: have jobs depend of eachother and pass artifacts between them without using job.depdencies and be able to run B without it being depdend on A running12:03
avasssay it should wait for A if it runs but otherwise run without the dependency12:03
avassand pass zuul.artifacts between jobs in the same change, I believe it only works for cross change/project dependencies12:04
zbrlike triggering the same job for two reasons, a change, or another job that finished, but not both.12:05
avassyeah I guess so but it would be the same job the only thing that differs if it should wait for a dependency or not12:06
avassand if the dependency isn't run for the current change it would still pick up artifacts for change ahead of queue12:06
avassbut it might be better to just rebuild for the current change at that point12:07
avassI think I need to write this down so I don't get idea mixed up :)12:09
avassideas*12:09
avasswhat I want however is that same change dependencies between jobs should be able to use the same logic as cross change dependencies12:10
avasssomething like this if that makes sense https://etherpad.opendev.org/p/GiqDGxULdN8G0FwCah6J12:20
avassif zuul-cache also reports artifacts to zuul and allows configurable metadata you can easily gate all depdencies without rebuilding everything all the time12:24
tobiashavass: you can use soft dependencies to wait if the parent runs12:28
avasstobiash: yeah but that's extra syntax :)12:28
openstackgerritPaul Belanger proposed zuul/zuul-jobs master: ensure-podman: Use official podman repos for ubuntu  https://review.opendev.org/c/zuul/zuul-jobs/+/76517712:29
avasstobiash: also the docs says queue items ahead of the current change for requires: https://zuul-ci.org/docs/zuul/reference/job_def.html#attr-job.requires12:30
*** bhavikdbavishi has quit IRC12:30
avassso that's extra logic for handling same change dependencies12:30
avassI think the dependency passing between jobs could be simplified a lot that way12:32
tobiashprovides/requires is not designed to model dependencies within a buildset12:32
avassI take it as it won't be trivial to allow for that behaviour then12:34
*** jpena is now known as jpena|lunch12:35
tobiashavass: is a missing ssh key a condition that mandates a warning? (re https://review.opendev.org/c/zuul/zuul/+/764584/3/zuul/executor/server.py)12:43
zbri would have used .debug level instead12:44
avasstobiash: executor default ssh_key config always points to a path and I expect most zuuls to use ssh so that's why I put it there12:44
tobiashah so that's for a k8s only executor12:45
avassyeah12:45
tobiashI wonder if it makes more sense to check for that in the initialization of the executor (you can emit a warning there I guess) and set self.private_key_file to None if the file doesn't exist and then don't add the key in AnsibleJob.execute?12:46
avassmakes sense to me12:47
avassthough technically that can change during runtime12:47
tobiashfor that use case it feels a bit wrong to me to catch that in the ssh agent layer12:47
tobiashhm12:47
avassbut I guess it's fine to do it during startup12:47
tobiashat least we should avoid printing warnings for every job in e legit use case12:48
avassyup12:48
avassand I don't expect people to move around ssh-keys in a deployed system12:48
openstackgerritPaul Belanger proposed zuul/zuul-jobs master: ensure-podman: Use official podman repos for ubuntu  https://review.opendev.org/c/zuul/zuul-jobs/+/76517712:52
openstackgerritAlbin Vass proposed zuul/zuul master: Throw a warning if the executors ssh-key can't be loaded  https://review.opendev.org/c/zuul/zuul/+/76458412:54
avassI'm gonna make sure that works as well12:54
*** rlandy has joined #zuul12:59
*** mach1na has joined #zuul13:00
openstackgerritPaul Belanger proposed zuul/zuul-jobs master: ensure-podman: Use official podman repos for ubuntu  https://review.opendev.org/c/zuul/zuul-jobs/+/76517713:00
*** wuchunyang has joined #zuul13:07
*** wuchunyang has quit IRC13:12
openstackgerritPaul Belanger proposed zuul/zuul-jobs master: ensure-podman: Use official podman repos for ubuntu  https://review.opendev.org/c/zuul/zuul-jobs/+/76517713:13
openstackgerritPaul Belanger proposed zuul/zuul-jobs master: ensure-podman: Use official podman repos for ubuntu  https://review.opendev.org/c/zuul/zuul-jobs/+/76517713:17
*** msuszko has quit IRC13:23
*** mugsie has quit IRC13:32
*** jpena|lunch is now known as jpena13:32
openstackgerritMerged zuul/zuul master: Test zuul-client encrypt subcommand  https://review.opendev.org/c/zuul/zuul/+/75410313:37
openstackgerritPaul Belanger proposed zuul/zuul-jobs master: ensure-podman: Use official podman repos for ubuntu  https://review.opendev.org/c/zuul/zuul-jobs/+/76517713:44
openstackgerritPaul Belanger proposed zuul/zuul-jobs master: ensure-podman: Use official podman repos for ubuntu  https://review.opendev.org/c/zuul/zuul-jobs/+/76517713:49
openstackgerritPaul Belanger proposed zuul/zuul-jobs master: ensure-podman: Use official podman repos for ubuntu  https://review.opendev.org/c/zuul/zuul-jobs/+/76517713:59
openstackgerritPaul Belanger proposed zuul/zuul-jobs master: ensure-podman: Use official podman repos for ubuntu  https://review.opendev.org/c/zuul/zuul-jobs/+/76517714:14
*** sshnaidm|ruck is now known as sshnaidm|afk14:17
*** Goneri has joined #zuul14:20
pabelangerman, that took way too long14:20
avasspabelanger: oh I've seen worse ;)14:25
mordredpabelanger: good call - I remember us updating that repo somewhere else - possibly in system-config14:28
mordredpabelanger: https://github.com/containers/podman/issues/5764 mwahahaha seems to have hit the error in your latest failure before14:31
avassmordred: I thought you were laughing at first hah14:32
openstackgerritAlbin Vass proposed zuul/zuul master: Throw a warning if the executors ssh-key can't be loaded  https://review.opendev.org/c/zuul/zuul/+/76458414:48
avassthat should work14:48
mordredavass: it's a great name isn't it?14:58
avassmordred: haha yeah I like it15:02
mordredstill doesn't beat mmmpork - which is my favorite nick15:03
fungii miss mmmpork15:03
*** jfoufas1 has quit IRC15:07
pabelangernew issue, v1 / v2 syntax for podman in use-buildset-registry15:10
openstackgerritPaul Belanger proposed zuul/zuul-jobs master: ensure-podman: Use official podman repos for ubuntu  https://review.opendev.org/c/zuul/zuul-jobs/+/76517715:10
*** sanjayu_ has quit IRC15:19
*** hashar is now known as hasharAway15:22
*** sshnaidm|afk is now known as sshnaidm|ruck15:27
openstackgerritPaul Belanger proposed zuul/zuul-jobs master: ensure-podman: Use official podman repos for ubuntu  https://review.opendev.org/c/zuul/zuul-jobs/+/76517715:29
corvustobiash, bolg: comments on https://review.opendev.org/63047215:45
tobiashlooking15:45
corvusftr, i have deleted the stable/3.x branch (again) since the releasenotes changes merged15:46
tobiashcorvus: ++ for the config change suggestion15:47
tobiashshould we add that to this change or a follow-up?15:47
corvustobiash: either way -- i do think we should do the addition (but not removal) as 4.0.  i don't think it will be too big, probably just a few lines (and maybe one more config file syntax test case)15:48
tobiashI agree15:48
tobiashI'll take care of that tomorrow15:48
corvustobiash: i don't really anticipate folks wanting >1 sql connection for a zuul instance, but if someone did, sql-connection-per-tenant would certainly be feasible; should we ask around and see if folks have that need?15:49
corvusmordred: you may have thoughts on that (eg, sharding per tenant?) first comment in https://review.opendev.org/63047215:50
corvustobiash: maybe i should send a -discuss email?15:50
tobiashcorvus: good question, I guess a mail to the list won't harm15:50
corvustobiash: okay, i'll do that now15:51
tobiashthanks!15:51
avasscorvus, tobiash: I think having an sql-connection-per-tenant as an option would be a good idea15:51
corvusavass: great, why?15:51
avassnot sure if it's entirely needed but as an extra secury measurement since zuul-web has access to sql right?15:52
pabelangerdo we have docs on how to run zuul-jobs role libraries locally?15:52
mordredcolooking15:52
pabelangereg: test_golangci_lint_parse_output.py15:52
corvuspabelanger: "tox"15:53
avassso a white labeled tenant could use a separate database to make sure data doesn't get leaked15:53
avassI've been wondering if that's really needed though since I think we're gonna need to set up a white labeled tenant in the future15:53
tristanCpabelanger: there is also a spec to run zuul-jobs locally here: https://review.opendev.org/c/zuul/zuul/+/68127715:54
corvusavass: hrm.  i feel like if zuul supports tenant separation (it does!) then it shouldn't need to recommend that level of paranoia to users.  however, i'll never argue against users who want that level of paranoia, but i might suggest that if that's the level of paranoia they're comfortable with, then perhaps a completely separate zuul is more appropriate?15:55
avasshmm that could be15:55
pabelangercorvus: tristanC: thanks, I should have figured tox was the answer15:55
mordredyeah. otoh - sharding per tenant for scale might be a thing? but also maybe that's a case for multi-zuul instead too15:55
avassthat would be a very large zuul though? :)15:56
tobiashI think the paranoia use case should be separate deployments since there are other theoretical cross tenant attac vectors as well15:56
corvustobiash: let's say, for now, "don't implement the [database]" change as a new patchset.  if we do it, let's do it as a followup, but let's see what people think tomorrow. :)15:56
tobiashk15:56
tobiashI think the scalability argument is more compelling since we've already seen db bottlenecks15:57
corvustobiash: oh do tell15:58
tobiashbtw, we needed to add an additional index because our db broke down without it: https://review.opendev.org/c/zuul/zuul/+/75857915:58
corvus(we have done very little db optimization, so i'm sure we can make improvements)15:58
corvusyep like that :)15:58
tobiashso atm it looks ok, but our db queries generally feel slower than needed so I can imagine that there is more optimization work to be done in the future15:59
corvusmy gut says that if we actually start paying attention to db efficiency, we won't need to shard by tenant15:59
tobiashprobably not15:59
mordredagree. but - sharding by tenant would be a clean place to do it if we did decide that was useful15:59
tobiashalso I think we might need db retention mechanisms (e.g. as a ops tool) to keep the db smaller and faster16:01
corvusi will admit i'm very torn on this.  i like the [database] idea for cleanliness, but i do worry just a little bit about backing ourselves into a corner in the future in case sharding becomes desirable16:01
corvustobiash: well, i think a simple "max-age" for builds in the .conf file would let zuul do that automatically (ie, i don't think we need a new cli tool or command or anything)16:01
corvusi do agree we need to delete builds :)16:02
tobiashthat's also an option16:02
corvusor at least have the option to delete builds16:02
mordredcorvus: you don't want to roll old builds into a historical data warehouse?16:04
*** rishabhhpe has joined #zuul16:05
openstackgerritTobias Henkel proposed zuul/zuul master: Required SQL reporters  https://review.opendev.org/c/zuul/zuul/+/63047216:06
*** bhavikdbavishi has joined #zuul16:07
avasstristanC, pabelanger: I've also had a crazy idea of a minizuul (like minikube) but I haven't made that a reality yet :)16:09
avassthough if the zuul-runner works good enough it shouldn't be needed16:10
*** hasharAway is now known as hashar16:11
*** bhavikdbavishi1 has joined #zuul16:12
avassoooh or something like KIND but ZINC (zuul in containers) !16:12
*** bhavikdbavishi has quit IRC16:13
*** bhavikdbavishi1 is now known as bhavikdbavishi16:13
fungiopendev already runs zuul in containers16:13
fungias does our quickstart demo16:14
fungiunless i'm misunderstanding the deployment model you're attempting to describe16:14
mordredyeah - docker-compose up ftw16:15
avassI think just want a dumb acronym for it16:16
corvusnever underestimate the power of a name16:16
fungiindeed!16:16
avassthough the docker-compose up doesn give you a binary to easily start multiple zuul environments locally :)16:16
*** piotrowskim has quit IRC16:19
avassand the idea was more of 'please run this job for me. here is a config file with all the repos you need'16:23
avassin a real zuul environment16:23
fungifrom what we've seen, working out which are "all the repos you need" is the hard part, without another running zuul to consult16:26
avasswell there's already the tenant config file16:27
avassand 'hard' isn't the same as 'impossible'16:28
fungisure, just noting that the tenant config can be huge and the subset of actual repos you need to run a given job might be very small by comparison16:28
*** mach1na has quit IRC16:29
*** rpittau is now known as rpittau|afk16:49
*** jpena is now known as jpena|off16:54
*** zenkuro has quit IRC16:56
*** zenkuro has joined #zuul16:57
tristanCavass: zuul-runner seems to address your use-case, the initial implementation already took care of cloning all the repos and setting up the ansible environment17:02
corvustobiash: ml message sent; i also added another thought to 630472; i don't think it's actionable until we agree on [database] or not17:09
avasstristanC: yeah at this point I'm pretty much doing it for the challenge of it17:09
tristanCavass: another solution we are considering is converting the zuul-operator resources to a simpler ansible playbook to deploy the service on a podman pod locally17:10
tristanCby converting i mean a function that goes from zuul-crd -> ansible-tasks17:11
tristanClike that would get the zuul-registry or zuul-preview service if needed17:11
erbarrclarkb, hi I applied the change to openstack-ironic-ci and restarted zuul but now when I ran the zuul enqueue the jobs pop up on zuul web but then go away very quickly, any pointers as to how to find what's going on?17:12
avassthat woiuld be nice17:12
avassthough we already have kind + helm charts17:12
corvustristanC: i'm about to send out a 'last call for review' for the zuul-runner spec, sound good?17:13
tristanCcorvus: yes please, and i would like to know where to rebase the changes too17:13
corvustristanC: maybe set dec 11 as a deadline?17:13
tristanCavass: but does kind works on podman?17:13
clarkberbarr: can you be more specific about which change you applied and to whcih zuul version?17:13
corvuserbarr: in general you may be able to find more information in the scheduler log17:14
avasstristanC: I think it's supposed to17:14
avasstristanC: at least it had expiremental support in 0.7 or something17:15
erbarrhttp://paste.openstack.org/show/c1QUUjrT2AX90PiP33Rm/ to zuul 2.6.1.dev117:15
erbarrclarkb ^17:15
*** rishabhhpe has quit IRC17:16
*** rishabhhpe has joined #zuul17:17
avasstristanC: according to the roadmap podman is supposed to be supported: https://kind.sigs.k8s.io/docs/contributing/1.0-roadmap17:17
clarkberbarr: as mentioend in my email I have no way of testing it and that was a best effort fix for those running old zuul. The other Dell CI systems report it is working for them. I wonder if this is specific to enqueue17:17
erbarrclarkb, ok, let me do a recheck17:17
tristanCavass: i remember reading about cgroupv2 issues or something, i'm not familiar with the tool and it might be easier to simply run podman command17:18
tristanCavass: the trick with such solution is to convert the config-map to ansible copy task17:18
tristanCcorvus: thanks!17:19
erbarrclarkb, same thing, let me dig around logs, thanks!17:20
pabelangerokay, struggling a little. Do we have an unit test example of comparing OrderedDict() ? assertEqual fails, due to sort order17:22
mordredpabelanger: assertDictEquals I think17:23
pabelangerHmm17:29
openstackgerritPaul Belanger proposed zuul/zuul-jobs master: Add unit test for modify_registries_conf  https://review.opendev.org/c/zuul/zuul-jobs/+/76535217:29
pabelangerokay, will need to take a breat17:29
pabelangerbreak*17:29
pabelangerbut ^ is racy17:29
*** tosky has quit IRC17:29
avasstristanC: i don't know about podman but with it's very easy to use as a locak k8s cluster with docker at least17:30
tristanCavass: yep, but if it's possible to translate the zuul-operator to ansible task, for example using podman generate systemd service and config-map in /etc, then it might be a better fit for non k8s user17:32
avasstristanC: yeah absolutely17:42
*** rishabhhpe has quit IRC17:45
*** sean-k-mooney has joined #zuul17:57
sean-k-mooneyo/ just thinking out loud here how hard woudl it be to add a link to the build page for the current job in the inital comment set by zuul17:58
sean-k-mooneybasically we can leave a comment sayign we are starting the job like this https://github.com/SeanMooney/ci-sean-mooney/blob/main/zuul.d/pipelines.yaml#L27-L2917:59
sean-k-mooneythere is proably a start-message i can override17:59
sean-k-mooneybut im wondering if we coud dynamically generate the build url and provide that so that third party CIs coudl better integrate with gerrit18:00
sean-k-mooneyor other providers18:00
sean-k-mooneyyoctozepto: basically im thinink that woudl provide something for you sript to read18:01
tristanCsean-k-mooney: it may be possible to post the link, but the build is only reported once completed, thus the page will returns 40418:01
sean-k-mooneyhum ok18:02
sean-k-mooneyyou can see the jobs on the status page18:02
corvustristanC, sean-k-mooney: in fact zuul doesn't know if the buildset at start will be the buildset at finish, so we can't report the buildset url18:02
sean-k-mooneyhow is that workign so18:02
openstackgerritPaul Belanger proposed zuul/zuul-jobs master: Add unit test for modify_registries_conf  https://review.opendev.org/c/zuul/zuul-jobs/+/76535218:03
corvussean-k-mooney: what is possible is the change status link, eg: https://zuul.opendev.org/t/openstack/status/change/763718,118:03
sean-k-mooneyoh yes that is what i was really looking for i guess18:03
sean-k-mooneyor rather the api behind it18:03
corvusthe last time someone tried that on opendev's zuul, it killed zuul, so i'd really appreciate it if people didn't put that in greasemonkey scripts.18:03
corvuslet's please leave stuff like that to something that is controlled server-side, ie, a polygerrit plugin18:04
sean-k-mooneybasically i was wondering if there was a way to tell gerrit a third part ci is running on this18:04
sean-k-mooneycorvus: well ya i dont really want to do anything client side18:04
sean-k-mooneyour side of the check api or continueing to parse the comment i was ondering if there was a simple midell ground18:05
openstackgerritMerged zuul/zuul-operator master: Update to dhall lang v17  https://review.opendev.org/c/zuul/zuul-operator/+/73976718:05
corvusi think there's a lot that can be done with a polygerrit plugin18:05
sean-k-mooneywhat i was really think was a pending or running badge/box with a link to the third party system that you could click on18:06
sean-k-mooneynot something rendered on the page and updated18:06
sean-k-mooneyperferably form either an api call by the ci to gerrrit or a coment which is more or less the same thing but less clean18:07
fungithat's also what the zuul-status plugin for gerrit theoretically does, right?18:07
sean-k-mooneyin theoy i think so18:07
sean-k-mooneyi saw that in teh plugin list and ment to ask18:07
sean-k-mooneyare either of those plugins associated with upstream zuul18:08
sean-k-mooneyor are they independt things people made18:08
*** bhavikdbavishi has quit IRC18:08
fungithe main problems we ran into were cumulative over time, seemed related to folks leaving lots of gerrit changes open in browser tabs, with every one of those periodically querying the api18:08
fungiif you have a few hundreds reviewers with 10 open tabs each, that's a lot of additional api traffic18:09
sean-k-mooneyyep18:09
sean-k-mooneyreally you want this to be semi staic18:09
sean-k-mooneye.g. rednered once on page load and not upsated unless you refersh18:10
sean-k-mooneythere are 2 zuul plugins for gerrit https://gerrit.googlesource.com/plugins/zuul and https://gerrit.googlesource.com/plugins/zuul-status/18:10
tristanCfungi: i think zuul-web ui detects if the tab is visible before refreshing the status18:10
*** bhavikdbavishi has joined #zuul18:10
fungigranted, if memory serves at the time the rest api handler was not separated into its own daemon so was creating additional thread contention for the scheduler daemon. it may not be as bad as it was before, but we (opendev) sysadmins are going to want to perform some controlled testing to make sure it doesn't introduce problems18:11
sean-k-mooneytristanC: maybe but it did not always18:11
clarkbalso it was hacky js on old gerrit18:11
corvustristanC: right, i think fungi is recalling the time when we hade hideci querying the status api and putting that on the gerrit page18:11
fungisean-k-mooney: we weren't using that plugin before18:11
fungicorvus: yes exactly18:11
sean-k-mooneyfungi: we were not using either we had our own script right18:12
sean-k-mooneyim just wondering if either of those actully work and or are usfeful18:12
fungiit was part of the javascript overlay we added to our gerrit webui before18:12
sean-k-mooneyunfortuetly they dont seam to have docs or iamges of the plugsin in action18:12
sean-k-mooneyapparently it looks like this https://gerrit.wikimedia.org/r/plugins/zuul/Documentation/index.html18:14
sean-k-mooneybut i think they are both java based18:15
sean-k-mooneytristanC: ok ill go back to ingnoring this for now. long term the check plugin is proably what we shoudl just do18:16
corvussean-k-mooney: i'm not sure the check plugin is a long-term answer18:16
corvusgiven that it's unclear if it will continue to be developed18:16
corvuser, 'checks' plugin18:16
sean-k-mooneyoh i tought it was well maintianed18:16
sean-k-mooneyexperimental but maintianed18:17
sean-k-mooneyya that woudl be an issue18:17
corvusthe proposal on the table is to replace it with a completely different system and google would not maintain checks (community might, but community contribs to checks plugin are thin)18:17
*** bhavikdbavishi has quit IRC18:17
corvusso it's possible, but i'm not comfortable pinning hopes on it18:18
sean-k-mooneyok so google are working on a replacment?18:18
corvussean-k-mooney: yes, a replacement that would be completely unsuitable for the third-party ci use case18:18
sean-k-mooneyeven if the third party ci was to call the new api18:18
corvussean-k-mooney: (the replacement proposal requires a publically accessible api server; zuul could implement it, but i wouldn't expect more than 10% of opendev's third-party ci systems to be able to meet that bar)18:19
sean-k-mooneyfor gerrit to call back too?18:19
corvussean-k-mooney: yes or user's browser; it's unclear to me which18:20
corvussean-k-mooney: but key thing is gerrit is not a data store.  unless we want to implement another plugin to make gerrit a data store.18:20
corvussean-k-mooney: but that would be up to us18:20
sean-k-mooneyyou might be able to run a shim application that parsed the comment and pressent the right api18:20
sean-k-mooneyah right18:20
corvussean-k-mooney: better to just implement the polygerrit plugin we keep suggesting18:20
sean-k-mooneyyep18:20
sean-k-mooneytristanC: i havent looked at your since you fix the darkmode and third party ci parsing18:21
sean-k-mooneyare you still working on that18:21
corvussean-k-mooney: it may well be that a long-term solution might be to use checks plugin for 3pci (if checks continues to be maintained), and the new thing for 1pci.  but that would be far in the future; i think the best path now would be a polygerrit plugin that deals with the comments, makes a tab/table and go with that until we see what comes out of gerrit land.18:22
tristanCsean-k-mooney: you can see it in action here: https://104.130.172.52/c/openstack/diskimage-builder/+/55400218:22
*** sshnaidm|ruck is now known as sshnaidm|afk18:22
fungisean-k-mooney: ianw has a slightly different approach in a plugin he started which it seemed like folks are converging on18:22
sean-k-mooneyoh i see RDO ci :)18:22
sean-k-mooneyfungi: the badges approch? i have not seen taht yet18:23
tristanCsean-k-mooney: you can create a tp account (ending in 'CI') and post a comment to see it updated18:23
corvusfungi, sean-k-mooney, tristanC: https://github.com/ianw/gerrit-zuul-summary-status i think?18:24
sean-k-mooneyfungi: provide it has the smae basic info with the links, status, jobname and times group by pipline/ci that woudl be cool18:24
corvusthat plugin uses the upstream gerrit tooling; it could be hosted in the upstream gerrit and potentially attract more contributors18:25
fungii was mostly just trying to follow the discussion, but yeah the big plus is that it could be consistent with the existing gerrit plugin ecosystem18:26
sean-k-mooneyya is there a live instance of it. im about to grab dinner so dont really have time to deploy gerrit and figure out how to build it18:27
corvussean-k-mooney: i don't know, but it's super easy to run gerrit in a throwaway docker container; should be able to bind-mount the result in18:28
sean-k-mooneyya my current side project is deploying k8s and getting ready to move my zuul install among other things so trying not to get too distracted with other thigns18:29
sean-k-mooneytrying and failing :)18:29
sean-k-mooneybut its time for dinner so i better go o/18:30
openstackgerritMerged zuul/zuul-operator master: Add reformat changes to the blame ignore list  https://review.opendev.org/c/zuul/zuul-operator/+/73976818:32
*** hashar has quit IRC18:40
*** zenkuro has quit IRC18:57
*** hamalq has joined #zuul18:58
*** hashar has joined #zuul18:58
*** ashbullock has joined #zuul19:00
ashbullockhey, I've managed to get an artifact set up using zuul return module which I can see in the logging server, but how do I pass this to child jobs, i've tried dependencies and provides/requires but I can't see the vars in the child job, is there something i could be missing?19:03
*** nils has quit IRC19:05
corvusashbullock: artifacts aren't returned to dependent jobs; they're only shared between buildsets for different changes.  you can return arbitrary data for use by child jobs like this: https://zuul-ci.org/docs/zuul/reference/jobs.html#return-values19:06
ashbullockcorvus thanks, so the child job should have access to that dictionary under zuul vars?19:10
corvusashbullock: not under 'zuul.' vars, but yes under vars supplied by zuul.  if you say "zuul_return: {data: {my_artifact_url: http://...}}" in the first job, then the dependent job will have a variable ${my_artifact_url} available to it.19:13
*** vishalmanchanda has quit IRC19:22
ashbullock@corvus this is our zuul config http://paste.openstack.org/show/800718/ it's got dependencies on the base image, would you expect to see the vars in the child job with this config?19:26
fungiashbullock: also not sure if it's apparent, but if you're collecting the inventory.yaml for each build you should see every zuul variable included in it, which is an easy way to double-check19:30
ashbullockalso I wanted to catch up with you regarding testing for the bitbucketcloud driver, i'm struggling with setting up the tests, is it right to follow the base file here:  https://opendev.org/zuul/zuul/src/branch/master/tests/base.py19:35
ashbullockalso the unit tests, what's are mocks in the base.py the correct way to go19:38
*** nils has joined #zuul19:45
clarkbcorvus: trying to catch up with zuulv4 things. Looks like the stack you pinged about earlier has landed. Are there other chagnes I should be reviewing?19:46
corvusclarkb: nope; just the message on the ml about sql; that change (and it's to-be-written followup) is next19:50
*** sanjayu_ has joined #zuul19:51
corvusashbullock: yes, if the base-image-build job did a zuul_return as above, then terraform-image-build should see those vars19:53
*** holser has quit IRC19:53
corvusashbullock: re bbc driver: yeah, following the pattern that the pagure driver does is the gold standard i think19:54
*** sanjayu_ has quit IRC20:10
*** holser has joined #zuul20:28
*** nils has quit IRC20:28
*** sshnaidm|afk has quit IRC20:30
fungiclarkb: oh, and the zuul-runner spec20:32
clarkbah yup I see that email20:33
fungi(also mentioned on the ml)20:33
*** nils has joined #zuul20:36
*** ashbullock has quit IRC20:44
*** tosky has joined #zuul20:55
*** openstackgerrit has quit IRC21:08
*** hashar has quit IRC21:16
*** rfolco has quit IRC21:34
*** ajitha has quit IRC21:46
*** rfolco has joined #zuul22:19
*** rfolco has quit IRC22:24
*** rfolco has joined #zuul22:42
*** rlandy has quit IRC23:04
*** nils has quit IRC23:13
*** rfolco has quit IRC23:17

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