Sunday, 2020-03-29

*** tosky has quit IRC00:00
openstackgerritMohammed Naser proposed zuul/zuul-jobs master: chart-testing-lint-single: new job  https://review.opendev.org/71566500:03
*** rf0lc0 has quit IRC01:28
*** swest has quit IRC01:39
*** swest has joined #zuul01:54
*** bhavikdbavishi has joined #zuul02:13
*** bhavikdbavishi has quit IRC02:18
*** evrardjp has quit IRC04:36
*** bhavikdbavishi has joined #zuul04:36
*** evrardjp has joined #zuul04:36
*** bhavikdbavishi1 has joined #zuul04:39
*** bhavikdbavishi has quit IRC04:41
*** bhavikdbavishi1 is now known as bhavikdbavishi04:41
*** bhavikdbavishi has quit IRC06:31
*** sgw has quit IRC07:59
*** bhavikdbavishi has joined #zuul08:43
*** bhavikdbavishi has quit IRC10:26
*** bhavikdbavishi has joined #zuul10:42
*** klindgren_ has joined #zuul10:47
*** klindgren has quit IRC10:47
*** lennyb has quit IRC10:48
*** lennyb has joined #zuul10:48
*** tosky has joined #zuul10:52
*** bhavikdbavishi has quit IRC10:53
*** sshnaidm|off has quit IRC10:58
*** sshnaidm has joined #zuul11:03
*** sshnaidm has quit IRC12:17
*** sshnaidm has joined #zuul12:17
*** Goneri has joined #zuul13:59
*** sshnaidm is now known as sshnaidm|afk14:07
*** sshnaidm|afk is now known as sshnaidm14:25
*** rfolco has joined #zuul15:40
openstackgerritMohammed Naser proposed zuul/zuul-jobs master: helm: collect kubernetes logs in post  https://review.opendev.org/71570915:40
*** evrardjp has quit IRC16:36
*** evrardjp has joined #zuul16:36
*** sgw has joined #zuul17:42
*** adam_g has quit IRC17:54
*** adam_g has joined #zuul18:02
mnaserhmm -- i've got an interesting and tricky problem.  i've got a repo where i build a docker image only if the Dockerfile changes18:22
mnaserif i make use of the use-buildset-registry role within the job, and the job to build the docker image did not run, i end up with an error18:23
mnaserif i don't make use of the buildset registry role in the job, then that means the image will not be pulled in from thee buildset registry _even if_ the dockerfile changed and the image was built18:24
mnaseryou can kinda see this issue here: https://review.opendev.org/#/c/715662/2 and https://review.opendev.org/#/c/715705/5 -- the first change adds the docker image build job (only if the dockerfile changes), the second one runs the functional tests which need the image18:25
mnaseri could just technically build the image all the time but that seems like a waste of time, should i be instead starting a buildset registry _within_ my functional job?  but that means i can end up with two buildset registries?18:26
corvusmnaser: i think the current 'best' solution to that is to always run the buildset registry in its own job.  the image build job can list it as a dependency, so it will only start building the image once the registry is up and running (and it will automatically not run the buildset registry in the image build job if it's already running in a previous job).  then the deployment job can list the buildset18:33
corvusregistry as a hard dependency, and the image build job as a soft dependency (so iff the build job runs, the deploy job will wait for it, but it will always wait for the buildset registry to be running)18:33
mnasercorvus: ok, so anytime we have "consumers" for images, it's best to start up a buildset registry18:34
corvusmnaser: yeah, at least, i think if the producers aren't guaranteed (we always build the zuul image for instance, so we always know in zuul-quick-start that zuul-build-image will have a registry running)18:36
corvusmnaser: also, you should probably inherit from opendev-buildset-registry-consumer in the consumer job18:39
corvusmnaser: (that will invoke use-buildset-registry, and also pull the images into it from the intermediate registry)18:39
mnasercorvus: would that be the same as having use-buildset-registry in the role?18:40
corvusmnaser: there's another important role, 'pull-from-intermediate-registry' which is used to make the cross-change dependency stuff work (so if change A builds the image, and change B runs the image, change B gets the image from change A).  that requires a secret, so you have to inherit from an opendev base job that already has it.18:41
mnasercorvus: hmm, okay, so at the time i added something the the install-docker role to automatically run use-buildset-registry but it didn't include pull-from-intermediate-registry18:42
corvusmnaser: depending on the complexity of your consumer job, you may end up wanting to use multiple inheritance to get that.  we did that in system-config.  so if you take a look at your situation, and can't draw a straight line through opendev-buildset-registry-consumer, then you may want to take a look at how we did that for the system-config jobs here:18:43
corvushttps://opendev.org/opendev/system-config/src/branch/master/.zuul.yaml#L898-L91718:43
mnaser(i wanted to make it easier to reuse the existing helm jobs and simply adding a var that says "use buildset registry")18:43
mnaserdoes that mean https://opendev.org/zuul/zuul-jobs/commit/ae05322a857730aa0351f586c625fbd618b3ad15 is not really effective for much?18:44
corvusmnaser: well, you might be able to get almost the same thing by just having a new job with the extra inheritance path.  so "apply-helm" and "vexxhost-apply-helm-buildset-registry" or whatever18:44
mnaserok, interesting18:45
corvusmnaser: re the install-docker role -- halfway -- it is useful within a single buildset, but still something needs to run pull-from-intermediate-registry to get an image build in a different buildset18:45
mnaseryeah so it's effective in terms of pulling images _within_ the same buildset but will probably not be effective in pulling an image change from another one, ok18:46
corvusyup18:46
mnaserok, let me try this multi-parent thing with the functional job and see what happens after this run finishes18:49
*** Goneri has quit IRC18:49
*** Goneri has joined #zuul19:13
mnaserdoes anyone know why this failed at the time? https://review.opendev.org/#/c/611549/20:21
mnaserit seems like a really neat cool feature, but the log server is gone and the reference to why it failed doesn't help20:21
AJaegermnaser: maybe we discussed it on IRC? Best check eavesdrop for #openstack-infra and #zuul for that time20:27
mnaserAJaeger: yeah that's likely, okay, i'll try to dig for it20:28
AJaegermnaser: I only remember that the job failed but don't have details why. Yeah, a lovely feature if it works...20:29
corvusmnaser: iirc, i think there was an error which broke zuul and caused a whole bunch of pep8 jobs to fail when they shouldn't have, but zuul is now hardened against it now; it should be okay to revert and test out, but probably with a bunch of depends-on, because i don't know if we found the problem with pep8 that triggered it in the first place.21:01
mnasercorvus: i see, i found a change inside openstacksdk which depended on it and it was working there, maybe that might be a good example to try out21:03
corvusmnaser: yeah, but we should also probably check nova and other things -- it was tested somewhat the first time21:04
corvus(so a single "ok" probably isn't enough to have confidence)21:04
mnasercorvus: fair enough, i'll workout a few changes with some "failures"21:04
corvusmnaser: and probably some successes too :)21:09
openstackgerritMohammed Naser proposed zuul/zuul-jobs master: Revert "Revert "Extract pep8 messages for inline comments""  https://review.opendev.org/71572721:09
mnasercorvus: yep :)21:12
tobiashNext time I'll put traces into the commit message :)21:15
corvusi don't think we expected it to stay reverted out so long21:16
tobiashBut as far as I think I remember there was a parse error for some pep8 outputs21:16
tobiashBut don't know anymore. Could be mypy tests which also run in pep8 jobs21:17
mnasertobiash: perhaps you can run a depends-on that at your side too?21:23
mnaserthe linters failure on that right now is just the revert acting up, we probably don't need to add zuul into the jobs21:24
tobiashmnaser: I can do tomorrow, but I think it was more an emergency revert for openstack projects outside us working hours21:25
tobiashhttp://eavesdrop.openstack.org/irclogs/%23zuul/%23zuul.2018-10-18.log.html#t2018-10-18T08:59:3721:27
corvustobiash: do you think this was the error?  that maybe the problem was just on repos running ansible lint with zuul_return? http://eavesdrop.openstack.org/irclogs/%23zuul/%23zuul.2018-10-18.log.html#t2018-10-18T09:13:3021:32
*** hashar has joined #zuul21:32
tobiashcorvus: I think the missing lines translation was the error: http://eavesdrop.openstack.org/irclogs/%23openstack-infra/%23openstack-infra.2018-10-18.log.html#t2018-10-18T11:12:3821:33
tobiashIf that's the case zuul should handle it correct now21:33
corvustobiash: ah, good find.  that sounds familiar.  so we may be all set.  :)21:34
corvus(should still test of course, but i feel better about it :)21:34
tobiashAnd there was also hardening in zuul for invalid results from the job in the meantime21:34
corvusthe "file 2018-10-18 10" part looks like a parse error21:35
corvusi wonder if the part that caused that got fixed21:35
tobiashI think zuul now validates what it receives from the job and ignores invalid stuff like this21:36
corvusyeah, but i wonder what generated that in the first palec21:37
corvusplace21:37
tobiashI guess it wrongly parsed non pep8 output21:37
mnaserhttps://review.opendev.org/#/c/611552/ was the change it failed to report on21:38
mnaserin this case, perhaps openstack-zuul-jobs-linters running there caused the issue21:39
*** hashar has quit IRC21:39
tobiashIs that job running yamllint or ansible-lint?21:40
mnaserit just runs 'linters' env, let me check21:40
mnaser(might be good to make a patch against there then i guess)21:41
mnasertobiash: the answer is many things -- https://opendev.org/openstack/project-config/src/branch/master/tox.ini#L35-L5021:41
tobiashCommented on the re-revert21:46
tobiashI thing that was the bug that caused the revert in the first place21:46
corvusi also left a comment, which i think will address the linters error21:52
tobiashOh now I understand, it really misparsed something as a correct line comment and zuul reported this to gerrit without further validation (which is now performed as part of the line translation)21:52
tobiashMy initial comment was bogus, too late here ;)21:56
openstackgerritMerged zuul/nodepool master: DiskImage : alphabetise entries  https://review.opendev.org/71338122:01
openstackgerritMohammed Naser proposed zuul/zuul-jobs master: Revert "Revert "Extract pep8 messages for inline comments""  https://review.opendev.org/71572722:03
openstackgerritMerged zuul/nodepool master: diskimage: make name primary key  https://review.opendev.org/71338222:08
openstackgerritMerged zuul/nodepool master: Add parent and abstract flags for diskimages  https://review.opendev.org/71315722:08
openstackgerritMerged zuul/nodepool master: Move config merge into DiskImage object  https://review.opendev.org/71355022:08
mnaserinteresting, i wonder if "Depends-On:  http://..." doesn't get picked up and "Depends-On: http://" does22:36
*** tflink has quit IRC22:37
mnaseri think i just saw a case of that happening22:37
*** tflink has joined #zuul22:37
mnaseryep, the regex implies a "single" whitespace22:38
mnaserthat seems a little user unfriendly, thoughts?22:39
*** SpamapS has quit IRC22:44
*** SpamapS has joined #zuul22:45
*** tosky has quit IRC22:54
openstackgerritMohammed Naser proposed zuul/zuul-jobs master: Revert "Revert "Extract pep8 messages for inline comments""  https://review.opendev.org/71572723:08
mnasercool, figured out the root cause, used some regex to make it a bit more strict23:09
openstackgerritMohammed Naser proposed zuul/zuul-jobs master: Revert "Revert "Extract pep8 messages for inline comments""  https://review.opendev.org/71572723:22
mnaserwee, okay, that works much better23:56

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