Wednesday, 2023-02-08

-@gerrit:opendev.org- Clark Boylan proposed:00:10
- [zuul/zuul] 873043: Fix ResourceWarnings in inventory testing https://review.opendev.org/c/zuul/zuul/+/873043
- [zuul/zuul] 873044: Fix ResourceWarnings in fingergw https://review.opendev.org/c/zuul/zuul/+/873044
- [zuul/zuul] 873045: Fix ResourceWarnings in the executor server https://review.opendev.org/c/zuul/zuul/+/873045
@clarkb:matrix.orgThese resource warnings are great. I think they've identified several bugs now (all minor to be fair but ya)00:10
@clarkb:matrix.orgI'm really hoping we'll eventually reach a point where having warnings pop up in unittesting is something that we treat as an error. However, cherrypy and GitPython may make this difficult00:11
-@gerrit:opendev.org- Clark Boylan proposed:00:17
- [zuul/zuul] 873043: Fix ResourceWarnings in inventory testing https://review.opendev.org/c/zuul/zuul/+/873043
- [zuul/zuul] 873044: Fix ResourceWarnings in fingergw https://review.opendev.org/c/zuul/zuul/+/873044
- [zuul/zuul] 873045: Fix ResourceWarnings in the executor server https://review.opendev.org/c/zuul/zuul/+/873045
-@gerrit:opendev.org- Clark Boylan proposed: [zuul/zuul] 873047: Fix DeprecationWarning: ssl.PROTOCOL_TLS is deprecated https://review.opendev.org/c/zuul/zuul/+/87304700:40
@clarkb:matrix.orgcorvus: https://review.opendev.org/c/zuul/zuul/+/873043 could use a rereview since I found an extra case for that one and updated teh change after your first +200:47
@jim:acmegating.comdone thx!00:48
@clarkb:matrix.orgThe first change that fixes the statsd thing takes us from ~3958 to ~268 ResourceWarnings00:53
@clarkb:matrix.org * The first change that fixes the statsd thing takes us from ~3958 to ~268 ResourceWarnings during py311 testing00:53
@clarkb:matrix.orgSome of this is actually racy depending on what cherrypy and gitpython do if I've read some of the warnings properly00:53
@clarkb:matrix.orgso exact numbers may differ.00:54
@iwienand:matrix.organy thoughts on why zuul doesn't seem to want to run tests against https://review.opendev.org/c/zuul/zuul-jobs/+/872806?01:04
@clarkb:matrix.orgits based on an old unmerged parent01:09
@clarkb:matrix.orgparent has a newer merged ps01:09
@iwienand:matrix.orgyeah, just realised that01:10
@iwienand:matrix.org```2023-02-08 01:01:53,260 DEBUG zuul.Pipeline.openstack.check: [e: 0d00d5f349c14104bf069b1d0dd452e2] Change <Change 0x7fa9a7583010 zuul/zuul-jobs 872375,8> does not match pipeline requirement <GerritRefFilter connection_name: gerrit open: True current-patchset: True> because False```01:10
-@gerrit:opendev.org- Ian Wienand proposed: [zuul/zuul-jobs] 872806: build-docker-image: further cleanup buildx path https://review.opendev.org/c/zuul/zuul-jobs/+/87280601:10
@iwienand:matrix.orgi'm really not sure what happened there01:11
@iwienand:matrix.orgmaybe the rebase failed in git review?01:12
-@gerrit:opendev.org- Clark Boylan proposed: [zuul/zuul] 873049: Fix more file opening ResourceWarnings https://review.opendev.org/c/zuul/zuul/+/87304901:13
@clarkb:matrix.orgianw: git review only keeps the rebase if it would fail (and asks you to fix it and rerun)01:13
@clarkb:matrix.orgianw: this is probably a deficiency in git review's rebase checking where it you rebase cleaning against the target branch it rolls back and doesn't detaect the rebase is necessary due to gerrit parent/child relationships01:14
@clarkb:matrix.orgOr maybe you rebased prior to the chnge merging and it kept the od parent in the rebase01:14
@iwienand:matrix.orgi dunno what I did :) too many patches in that series01:21
-@gerrit:opendev.org- Zuul merged on behalf of Matthieu Huin https://matrix.to/#/@mhuin:matrix.org: [zuul/zuul] 810955: GUI: Add tenant dropdown to top menu https://review.opendev.org/c/zuul/zuul/+/81095503:54
@michael_kelly_anet:matrix.orgHey folks, any chances of getting some reviews on https://review.opendev.org/q/owner:mkelly+project:zuul/zuul-jobs+status:open ?04:59
@michael_kelly_anet:matrix.orgThey've been sitting there for a few weeks04:59
-@gerrit:opendev.org- Simon Westphahl proposed: [zuul/zuul] 872519: Replace use of ProjectContext with SourceContext https://review.opendev.org/c/zuul/zuul/+/87251906:22
-@gerrit:opendev.org- Simon Westphahl proposed: [zuul/zuul] 872519: Replace use of ProjectContext with SourceContext https://review.opendev.org/c/zuul/zuul/+/87251906:47
-@gerrit:opendev.org- Benedikt Löffler proposed: [zuul/nodepool] 802255: Add option for an upload script https://review.opendev.org/c/zuul/nodepool/+/80225510:12
-@gerrit:opendev.org- Benedikt Löffler proposed: [zuul/nodepool] 802255: Add option for an upload script https://review.opendev.org/c/zuul/nodepool/+/80225511:56
@mhuin:matrix.orgFor those of you who run unit tests locally, how long does it take to complete the run, out of curiosity? I'm using a 4 cores, 8GB RAM Ubuntu 22.04 VM and going through the test suite takes at least 2 hours13:19
@mhuin:matrix.orgAlso, nice to see https://github.com/python-zk/kazoo/pull/706 merged, I won't miss the SSL warnings13:26
@shoragan:matrix.orgDoes Zuul support something like bors' rollups? https://internals.rust-lang.org/t/batched-merge-rollup-feature-has-landed-on-bors/101913:43
@jim:acmegating.comshoragan: no, but it does test in parallel for rapid merging of changes while each is still tested individually: https://zuul-ci.org/docs/zuul/latest/gating.html#testing-in-parallel14:23
@jim:acmegating.commhu: more cores are better.  also, py 3.10+ is faster.  i've seen 20 cores do it in 11 minutes.  the opendev vms take a bit under an hour.14:26
@jim:acmegating.comshoragan: or https://zuul-ci.org/media/simulation.webm if you're more of a visual person (that's the 2nd video on https://zuul-ci.org/ )14:32
@jpew:matrix.orgcorvus: The use case shoragan  and I are looking at is patch mailing lists where the number of changes is high and the amount of time to test is long; it's not feasible to test every patch14:33
@jpew:matrix.orgSo we manually group patches into groups of probably 10-30(?) and manually have CI build them, verify, then fast-forward the branch.... looking at alternatives though14:34
@mhuin:matrix.org> <@jim:acmegating.com> mhu: more cores are better.  also, py 3.10+ is faster.  i've seen 20 cores do it in 11 minutes.  the opendev vms take a bit under an hour.14:37
alright good to know, gotta get a better workstation at next PC refresh then!
@shoragan:matrix.orgcorvus jpew: the rust devs are using rollups only for "simple" commits, for which the change of failure is low. in that scenario, they are saving a lot of build/test CPU time without much risk.14:57
@shoragan:matrix.orgThe current Yocto/openembedded-core CI builds and tests take several hours on fast servers, so testing each change individually by running them in parallel would need significantly more resources. :)14:59
@jim:acmegating.comfor historical context, the zuul authors have typically designed around the idea that cpu time is cheaper than developer time, and worth every penny.  not saying that's true in all situations, but that's the idea.  sorry i have to run now.15:00
@shoragan:matrix.orgcorvus: thanks :)15:00
@jpew:matrix.orgI wonder if we could have 2 gate pipelines or something that shared the same queue (or maybe just a way of choosing which jobs run besides `job.files`)15:08
@fungicide:matrix.orgjpew: part of it is that zuul was designed originally for open source projects which allow patches to be proposed by anyone, so the maintainers set rules for how to decide what amount of testing is performed on a patch. letting the proposer of the patch decide how much testing that patch requires would mean one more thing reviewers have to look out for. maybe a knob the approver can tweak to say this patch needs only minimal testing would be sufficient15:13
@fungicide:matrix.organother part is that zuul is designed to ensure that the branch tip is always in good shape, so batching up changes means you can get into temporarily broken states on the branch if one commit fixes a bug in another and they both are in the same batch15:14
@jpew:matrix.orgfungi: Ya, it's the maintainer that decided the amount of testing, not the submitter15:14
@jpew:matrix.orgfungi: Ya, that can happen too15:15
@fungicide:matrix.orgoh, now i see in the bors rollup explanation it mentions pull request comments (i misread it as the pull request description). i guess you tell it to ignore comments from non-maintainers15:16
@fungicide:matrix.organyway, the "skip most testing for these changes" model can be simulated by having one change which removes jobs from the pipeline and another which adds them back. obviously that would be a poor workflow because it means lots of churn for the zuul config, but the end result (you're turning off testing for lots of patches and then pushing back on whoever proposed the last patch in the set) is more or less the same15:18
@fungicide:matrix.orgi wonder if the gerrit "submit whole topic" support is already partway there? we don't use that option in opendev so i haven't analyzed the implementation all that closely15:20
@shoragan:matrix.orgfungi: bors is not skipping any tests for the rollup, but it's testing several PRs together in one CI run16:18
@fungicide:matrix.orgright, it's skipping testing for some PRs, and then assuming that the state it tested for the last one is representative of the ones queued ahead of it (in zuul terms)16:19
@shoragan:matrix.orgfungi: yes16:20
@fungicide:matrix.orgso if it batches up 5 PRs and the second one introduces a regression which the fourth one solves, then it won't know that16:20
@fungicide:matrix.orgsome projects don't care that every commit has been tested to work as merged, so for them it's probably an acceptable tradeoff16:20
@shoragan:matrix.orgfor PRs consisting of multiple commits, does zuul check each individual commit?16:21
@shoragan:matrix.org> <@fungicide:matrix.org> some projects don't care that every commit has been tested to work as merged, so for them it's probably an acceptable tradeoff16:22
Yocto/OpenEmbedded already does this manually (by testing a manually updated 'master-next' branch in CI)
@fungicide:matrix.orgzuul combines the commits because it considers a pull request from the github driver (or a merge request from the gitlab driver) to be one unit of change16:22
@fungicide:matrix.orgfor those of us using gerrit, a change is represented by a single commit (like squashing in githubland)16:22
@fungicide:matrix.orggerrit's workflow encourages revising patches rather than piling fixes on top of bad commits16:23
@fungicide:matrix.orgso more like the lkml workflow16:23
@shoragan:matrix.orgstill in the kernel workflow, one patch series is usually reviewed as a group of semantically related changes16:23
@shoragan:matrix.org(same as in Yocto)16:24
@shoragan:matrix.orgso a PR with fixes for problems introduced in earlier commits would be rejected during code review16:24
@shoragan:matrix.orgat least that's the way it works now :)16:24
@fungicide:matrix.orgyes, in gerrit you usually have a series of related changes with git parent/child relationships, though since zuul is also meant for cross-repo work that can include depends-on relationships between commits in different repos and shared gerrit topics too16:27
@shoragan:matrix.org> <@fungicide:matrix.org> right, it's skipping testing for some PRs, and then assuming that the state it tested for the last one is representative of the ones queued ahead of it (in zuul terms)16:27
Is there a way to configure this behavior in Zuul already?
@fungicide:matrix.orgbut the changes are still reviewed and revised individually, even if within the context of the larger series16:27
@fungicide:matrix.org> <@shoragan:matrix.org> Is there a way to configure this behavior in Zuul already?16:28
other than what i mentioned earlier (removing/replacing jobs in the pipeline with noop in a change and then reverting that in another change), i don't believe so currently
@shoragan:matrix.orgok16:28
@clarkb:matrix.orgdid same topic stuff get ruled out?16:34
@clarkb:matrix.orgit dedups jobs16:34
@clarkb:matrix.orgmaybe not exactly what is being looked for, but does cut down on test resource needs16:34
@jpew:matrix.orgClark: It might work, but Gerrit is highly unlikely to be an option in this case :)16:35
@clarkb:matrix.orgI thought the github connection can emulate the behavior16:36
@clarkb:matrix.orgvia depends on cycles?16:36
@clarkb:matrix.orgbut I don't use github, cycles, or dedup'd jobs so can't say for certain16:36
@jpew:matrix.orgYa, it might be worth looking into16:37
@clarkb:matrix.orgthis is just me talking out loud here: another option might be merge commits on branches zuul pays attention to and changes to other branches zuul ignores (but again I don't do anything like this so can't see definitively if it would work)16:47
@jpew:matrix.orgYa, that's what I was thinking, assemble commits on a branch zuul ignores, then gate a merge it to a branch it does care about17:07
@morucci:matrix.orgHi, we are using the aws nodepool driver and we were running the version 5.0.0 since a while. Today we bumped our nodepool to 8.0.0 but we got trouble with the cloud-images.username attribute which is now mandatory. It was not with 5.0.0 (https://opendev.org/zuul/nodepool/src/tag/5.0.0/nodepool/driver/aws/config.py#L180) and it worked fine. What is it needed with the new version ?18:00
@morucci:matrix.orghttps://zuul-ci.org/docs/nodepool/latest/aws.html#attr-providers.[aws].cloud-images.username here in the doc it is not set as mandatory 18:01
@morucci:matrix.orgBut in the code it is https://opendev.org/zuul/nodepool/src/branch/master/nodepool/driver/aws/config.py#L3518:02
@clarkb:matrix.orgfbo: I think zuul will always default to the `zuul` username18:04
@clarkb:matrix.orgbut you want the zuul side and the nodepool side to match for logins18:04
@morucci:matrix.orgThanks Clark then we'll put the same value both side18:07
@clarkb:matrix.orgI guess if you are using amazon provided images then your username might be `ubuntu`?18:08
@clarkb:matrix.org * I guess if you are using amazon provided images then your username might be `ubuntu` and so on?18:08
@clarkb:matrix.organd now that I think about it more that attribute is probably there so that nodepool can tell zuul what to connect as18:08
@morucci:matrix.orgClark: we are using fedora cloud images already provisioned on aws so we'll set "fedora" as username.18:19
@jim:acmegating.comthe drivers have been inconsistent about this, but are converging on always requiring username for cloud images.  i think that's the right way to go since it's almost always required and there is no sensible default.  we should update the docs and this should have had a release note.  it just slipped through, sorry.18:21
@morucci:matrix.orgcorvus: thanks for the info, we'll set the username18:42
@morucci:matrix.orgcorvus: however we are experiencing that issue with really last Zuul version https://softwarefactory-project.io/paste/show/bFnmhzm5EZ0IP8d3KGSL/18:43
@morucci:matrix.orgAttributeError: 'ProjectContext' object has no attribute 'serialize'18:43
@morucci:matrix.orgIs it a known issue ?18:43
@jim:acmegating.comfbo yes, fixed in https://review.opendev.org/87251918:51
@morucci:matrix.orgthanks19:37
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 873169: Test job variants when override-checkout is a tag https://review.opendev.org/c/zuul/zuul/+/87316919:56
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/nodepool] 873210: DNM: Verify the direction of time https://review.opendev.org/c/zuul/nodepool/+/87321022:03
@mordred:inaugust.comcorvus: I don't know exactly what's going on ... but it's good to see you're using Zuul to validate the space-time continuum ^^22:27
@jim:acmegating.commordred: yeah, i mean, i'm working a problem where either python is returning an incorrect value, or space-time causality is broken!  place your bets!  :)22:31

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