Wednesday, 2023-01-11

@michael_kelly_anet:matrix.orgHmm. Yea, looks like right now if your node image happens to have git-lfs installed even this will break entirely because it tries to download the objects and can't02:53
-@gerrit:opendev.org- Michael Kelly proposed: [zuul/zuul] 869784: manager: Fix TODO in executeJobs() https://review.opendev.org/c/zuul/zuul/+/86978406:03
-@gerrit:opendev.org- Michael Kelly proposed: [zuul/zuul] 869784: manager: Fix TODO in executeJobs() https://review.opendev.org/c/zuul/zuul/+/86978406:04
-@gerrit:opendev.org- Michael Kelly proposed:06:18
- [zuul/zuul] 869785: manager: Remove unncessary job_graph check from executeJobs() https://review.opendev.org/c/zuul/zuul/+/869785
- [zuul/zuul] 869786: model: Eliminate semaphore_handler parameter on findJobsTo*() https://review.opendev.org/c/zuul/zuul/+/869786
-@gerrit:opendev.org- Michael Kelly proposed: [zuul/zuul] 869786: model: Eliminate semaphore_handler parameter on findJobsTo*() https://review.opendev.org/c/zuul/zuul/+/86978606:28
-@gerrit:opendev.org- Michael Kelly proposed: [zuul/zuul-jobs] 869787: prepare-workspace-git: Skip LFS checkout when mirroring repos https://review.opendev.org/c/zuul/zuul-jobs/+/86978707:02
-@gerrit:opendev.org- Michael Kelly proposed: [zuul/zuul-jobs] 869787: prepare-workspace-git: Skip LFS checkout when mirroring repos https://review.opendev.org/c/zuul/zuul-jobs/+/86978708:15
-@gerrit:opendev.org- Michael Kelly proposed: [zuul/zuul-jobs] 869787: prepare-workspace-git: Skip LFS checkout when mirroring repos https://review.opendev.org/c/zuul/zuul-jobs/+/86978708:20
-@gerrit:opendev.org- Michael Kelly proposed: [zuul/zuul-jobs] 869787: prepare-workspace-git: Skip LFS checkout when mirroring repos https://review.opendev.org/c/zuul/zuul-jobs/+/86978708:24
-@gerrit:opendev.org- Zuul merged on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/nodepool] 869771: Add release notes for 8.0.1 https://review.opendev.org/c/zuul/nodepool/+/86977109:32
-@gerrit:opendev.org- Zuul merged on behalf of Simon Westphahl: [zuul/nodepool] 866549: Correct documentation for image upload metric https://review.opendev.org/c/zuul/nodepool/+/86654909:43
-@gerrit:opendev.org- Zuul merged on behalf of Clark Boylan: [zuul/zuul] 867137: Update openshift client install version https://review.opendev.org/c/zuul/zuul/+/86713710:22
@mbecker12:matrix.orgHi! I've been looking into the openshiftpods driver recently and stumbled across the max-pods quota and how it's evaluated.10:27
I can see that it boils down to the listNodes() function in provider.py. What I don't get is the [FakeServer class](https://opendev.org/zuul/nodepool/src/branch/master/nodepool/driver/openshiftpods/provider.py#L50). What's the purpose of that? To me it looks like it eventually just resolves to a counter of instances which should [coincide with the number of items in self.k8s_client.list_namespaced_pod()](https://opendev.org/zuul/nodepool/src/branch/master/nodepool/driver/openshiftpods/provider.py#L73-L75).
@mbecker12:matrix.orgAlso, in the openshiftpods driver, the valid_names derived from [pod_names] (https://opendev.org/zuul/nodepool/src/branch/master/nodepool/driver/openshiftpods/provider.py#L38) are set to be the keys of the label definition. I don't really understand why this is done this way. Shouldn't it be something like label.name instead?10:28
@westphahl:matrix.orgcorvus: Clark is it intentional that with the switch to nox we now get the full log output from the test runs and not just the failed ones? job output is now in the ~250mb range14:00
@jim:acmegating.comswest: nope! :)14:32
-@gerrit:opendev.org- Fabien Boucher proposed: [zuul/zuul] 869829: Fix scheduleFilesChanges fallback to target branch ref https://review.opendev.org/c/zuul/zuul/+/86982914:46
@westphahl:matrix.orgcorvus: k, good :) passing `--suppress-attachments` to stestr doesn't seem to make any difference. I don't quite understand how this was working before14:48
-@gerrit:opendev.org- Fabien Boucher proposed: [zuul/zuul] 869559: [gitlab driver] Remove usage of MR diff_refs attribute https://review.opendev.org/c/zuul/zuul/+/86955914:49
@clarkb:matrix.org> <@westphahl:matrix.org> corvus: k, good :) passing `--suppress-attachments` to stestr doesn't seem to make any difference. I don't quite understand how this was working before15:00
It has to do with the OS_*_CAPTURE env vars iirc. Maybe those aren't being set correctly by the noxfile helper function
@jim:acmegating.comyes, i suspect we missed something with the variables15:03
@westphahl:matrix.orgcorvus: just curious: how do those `OS_*_CAPTURE` vars interact with stestr?15:06
@jim:acmegating.comswest: we do some stuff in the test framework setup in `__init__.py` with them15:08
@jim:acmegating.comer base.py15:09
@jim:acmegating.comhttps://opendev.org/zuul/zuul/src/branch/master/tests/base.py#L4308 is the general area15:09
@westphahl:matrix.orgyeah I think I'm missing the link how that interacts with stestr15:10
@clarkb:matrix.orgWe manipulate the data stream by capturing the info and then decide whether or not to add it to the subunit stream15:10
@clarkb:matrix.orgIf stdout and logs are captured and then not forwarded along they never leave the test process and stestr doesn't see them15:10
@clarkb:matrix.orgIf they are written to stdout or stderr or explicitly in the subunit stream then stestr sees the data15:11
@jim:acmegating.comand we only attach them if there's an error https://opendev.org/zuul/zuul/src/branch/master/tests/base.py#L432215:11
@westphahl:matrix.orgk, now I get it. still seems weird that passing `--suppress-attachments` to stestr doesn't hide the output on that level15:12
@jim:acmegating.com * and we only attach logs if there's an error https://opendev.org/zuul/zuul/src/branch/master/tests/base.py#L432215:12
@jim:acmegating.comthe problem may be that nothing is being captured and attached and it's all just going to stdout/err directly15:13
@clarkb:matrix.orgmaking a new session that sets env vars and echos out the capture var values using `session.run("bash", "-c", "env")` shows the values being set15:58
@clarkb:matrix.organd doing some simple testing locally the vars seem to be set16:05
@clarkb:matrix.orgmakes me think the issue isn't with the var setup but with something internal to the test suite16:05
@clarkb:matrix.orgIf you look in the log it is actually capturing stderr and reporting the captured stderr back properly. What seems to be making it through is just the log output16:11
@clarkb:matrix.orgOk some logs were leaking through in the old zuul jobs too. But much fewer were doing this. Whatever has changed has caused a much larger range of logs to leak through16:19
@clarkb:matrix.orgLogging is properly captured in a random test I modified (one that doesn't need zookeeper and friends for simplicity). I think that means our simple test cases are ok and something must be side effecting us16:26
-@gerrit:opendev.org- Fabien Boucher proposed: [zuul/zuul] 869559: [gitlab driver] Remove usage of MR diff_refs attribute https://review.opendev.org/c/zuul/zuul/+/86955916:30
@clarkb:matrix.orgRunning just `tests.unit.test_circular_dependencies.TestGerritCircularDependencies.test_crd_cycle` reproduces the issue17:01
@clarkb:matrix.orgat the time we try to add our special log handler a stderr handler already exists in the logger17:13
@clarkb:matrix.orgpossibly because we create class level loggers which get evaluated at code load time before we execute the setUp() method17:14
@jim:acmegating.comzuul-maint: how is this for a nodepool release?  commit a4c4f0afcca01cde9a4be2a3fbf813fcca2bedd5 (HEAD -> master, tag: 8.0.1, origin/master)17:21
@jim:acmegating.comthat will give us an easy revert target before we land the openstack state machine change17:21
@clarkb:matrix.orgThe issue is the warning for lacking the rsa skip check thing. We run that super early and calling logging.warning() produces a stderr handler on the root logger17:43
@michael_kelly_anet:matrix.orgAnyone up for giving me some reviews on https://review.opendev.org/c/zuul/zuul-jobs/+/869787 ?17:47
-@gerrit:opendev.org- Clark Boylan proposed: [zuul/zuul] 869862: Cleanup test logging https://review.opendev.org/c/zuul/zuul/+/86986217:54
@clarkb:matrix.orgcorvus: swest ^17:54
@clarkb:matrix.orgcorvus: I think they formalized the unsafe thing and I'm guessing the old flag went away: https://github.com/pyca/cryptography/pull/7667/files17:57
@jim:acmegating.comClark: so we need to set the new flag, yeah?17:59
@clarkb:matrix.orgthat is my hunch17:59
@westphahl:matrix.orgClark: +2, it's interesting though that wenn you run the tests with tox the logs will be correctly captured. So I doubt this has to do with a changed ssl version 18:04
@jim:acmegating.comswest: any chance your tox env has an old cryptography installed in its venv?18:04
@westphahl:matrix.orgyeah I was about to write that my tox env might be outdated18:05
@jim:acmegating.comClark: swest i'll do the followup18:06
@westphahl:matrix.orgftr. my tox env was outdated. same issue with tox now18:07
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 869865: Use unsafe_skip_rsa_key_validation with cryptography https://review.opendev.org/c/zuul/zuul/+/86986518:12
@fungicide:matrix.orgyay, so entirely unrelated to nox18:13
@jim:acmegating.comlooks like 39.0.0 was released on jan 1, so timing is coincidence18:13
@clarkb:matrix.orgIs that flag valid with openssl 1.x? The old comment mentioned openssl 3.0.0. many distros are still not on 3.0.018:14
@clarkb:matrix.orgHopefully cryptography handles it for both18:14
@fungicide:matrix.orgunit testing ought to tell us if not18:15
@clarkb:matrix.orgOh ya the 3.8 job runs in focal and is 1.x 18:15
@jim:acmegating.comClark: i believe in both cases we're telling cryptography not to perform validation (which it does with openssl), so regardless of the openssl version, we're just not invoking the routine either way18:15
@jim:acmegating.com(basically, it would be okay to do it on the old version, too slow on the new version, and since we don't care, we just don't do it regardless)18:16
@clarkb:matrix.orgGot it18:16
-@gerrit:opendev.org- Clark Boylan proposed: [zuul/zuul] 869862: Cleanup test logging https://review.opendev.org/c/zuul/zuul/+/86986218:37
-@gerrit:opendev.org- Clark Boylan proposed on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/zuul] 869865: Use unsafe_skip_rsa_key_validation with cryptography https://review.opendev.org/c/zuul/zuul/+/86986518:37
@clarkb:matrix.orgI messed up a linter thing... should be good now in that stack18:37
@clarkb:matrix.orgLooking at the complaints about leaked sockets one of the sockets is of type dgram. Ive had the fakestatsd (which gets shutdown cleanly) print out its port number and it doesn't match the one that the warning complains about18:53
@clarkb:matrix.orgThose warnings are probably worthy of investigation too18:53
-@gerrit:opendev.org- Clark Boylan proposed: [zuul/zuul] 869870: Unvendor kazoo locks recipes https://review.opendev.org/c/zuul/zuul/+/86987019:17
@clarkb:matrix.orgI wasn't able to figure out those leaks. But did determine we could fix one set of warnings this way ^19:17
@jpew:matrix.orgIs there a way to make zuul only load configuration from and process changes from at a single branch in a repository?22:51
@jpew:matrix.orgWe're trying to easy a repo into use Zuul on a branch, but it's commenting on changes for other branches, which we don't want22:52
@jpew:matrix.org(specifically, complaining when there are merge conflicts)22:52
@clarkb:matrix.orgjpew: https://zuul-ci.org/docs/zuul/latest/tenants.html#attr-tenant.untrusted-projects.%3Cproject%3E.include-branches22:56
@jpew:matrix.orgClark: We did that, but it still commented on changes on other branches :/22:57
@clarkb:matrix.organd you reloaded the config after editing that? It isn't automatic like the in repo configs22:57
@clarkb:matrix.orgIts possible the merge checking is happening super early though since zuul generally needs to merge things to get any config22:58
@jpew:matrix.orgYa, because the project wasn't even part of zuul before22:58
@clarkb:matrix.org(that is probably a bug if that is what is happening)22:58
@jpew:matrix.orgYa, it was definetly doing that23:00
@clarkb:matrix.orgthe easiest way to confirm that is probably to grep the event id out of your scheduler and merger logs and then trace that to see if merging is happening before include branch list is consulted23:04

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