Thursday, 2024-02-15

@clarkb:matrix.orgwe likely use distro pip on those with is older00:02
@fungicide:matrix.orgi don't see distro-packaged pip installed on the held bionic test node00:16
@fungicide:matrix.orgoh, it's pip300:17
@fungicide:matrix.orgyeah, /usr/bin/pip3 is 9.0.100:17
@fungicide:matrix.orgso if we're using that one, it's way too old to recognize that a package on pypi is marked as yanked00:18
@kiransurya:matrix.orgfungi:  I'm new to Zuul. I am currently working to create multiple nodes using nodepool offered by Zuul. Can you give me some insights regarding that06:56
@yodakv:matrix.orgHello folks,09:34
What's UP ?
Who can help me to understand something about nodepool ? I use Azure as cloud provider (everything work really good ) . Does have configuration to tel, " please don't delete VM for n time", or something similar ? I want to reuse my dynamic VM , because during work days we have a lot's of jobs . Idea is to safe some time for job execution. Any advice ?
-@gerrit:opendev.org- Zuul merged on behalf of Simon Westphahl: [zuul/nodepool] 906815: Refactor config loading in builder and launcher https://review.opendev.org/c/zuul/nodepool/+/90681510:23
-@gerrit:opendev.org- Simon Westphahl proposed on behalf of Tobias Henkel: [zuul/zuul] 756077: Increase merge retries and delays in between https://review.opendev.org/c/zuul/zuul/+/75607713:48
@clarkb:matrix.org> <@kiransurya:matrix.org> fungi:  I'm new to Zuul. I am currently working to create multiple nodes using nodepool offered by Zuul. Can you give me some insights regarding that13:54
You will need to define a nodeset with multiple nodes in it. Then the ansible playbooks in your jobs can address the nodes directly in order to perform actions on the various nodes in the nodesets
@clarkb:matrix.org> <@yodakv:matrix.org> Hello folks,13:54
> What's UP ?
>
> Who can help me to understand something about nodepool ? I use Azure as cloud provider (everything work really good ) . Does have configuration to tel, " please don't delete VM for n time", or something similar ? I want to reuse my dynamic VM , because during work days we have a lot's of jobs . Idea is to safe some time for job execution. Any advice ?
You should look at the metastatic driver in nodepool. You should be able to configure it on top of the azure driver in order to reuse nodes with a timeout for deletion
@jim:acmegating.comkiransurya: https://zuul-ci.org/docs/zuul/latest/config/nodeset.html are the docs for that13:57
@jim:acmegating.comKiril Valchev: https://zuul-ci.org/docs/nodepool/latest/metastatic.html are the docs for that13:57
@yodakv:matrix.org> <@jim:acmegating.com> Kiril Valchev: https://zuul-ci.org/docs/nodepool/latest/metastatic.html are the docs for that14:05
Ooo, thank you corvus ! How did i missed it 🤔 .
-@gerrit:opendev.org- Simon Westphahl proposed: [zuul/zuul] 907210: Add backoff delay only after successful job start https://review.opendev.org/c/zuul/zuul/+/90721016:48
-@gerrit:opendev.org- Zuul merged on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/zuul] 908865: Fix test_timer_preserve_jobs race https://review.opendev.org/c/zuul/zuul/+/90886518:22
-@gerrit:opendev.org- Clark Boylan proposed:20:16
- [zuul/zuul] 909130: Cleanup vendored nullcontext managers https://review.opendev.org/c/zuul/zuul/+/909130
- [zuul/zuul] 909131: Fix a few python type related issues https://review.opendev.org/c/zuul/zuul/+/909131
- [zuul/zuul] 909132: Define __init__ on ZuulConfigKey https://review.opendev.org/c/zuul/zuul/+/909132
@clarkb:matrix.orgThese three changes are a result of some testing pytype's type inferrence against zuul.20:17
@clarkb:matrix.orgI think the first one is probably worth merging for the cleanup. I'm a bit indifferent on the other two but figured they would provide an illustration of where maybe the gaps in lack of typing are. fwiw I don't think we need to reopen the annotations discussion again. Instead I was hoping that pytype's inference would work sufficiently for people wanting types for IDEs. Unfortunately I don't think it will work reliably. There are still a number of files that don't type check properly and at least a few of them that would require annotations to do so20:18
@clarkb:matrix.orgThat said if we do chip away at things that don't need annotations to infer properly then maybe ide magic would work for that subset of files?20:23
@tristanc_:matrix.orgThanks, I didn't knew about pytype, it looks great!20:31
@tristanc_:matrix.orgIt's interesting it didn't suggest to change `ZooKeeperClient.retry_log_rate` from int to float20:34
@clarkb:matrix.orgI can't check ~114 of ~270 zuul files due to errors in the dep tree20:34
@clarkb:matrix.orgMissing that is probably a result of this20:35
@tristanc_:matrix.orgOr simply that it considers comparing int and float to be valid20:36
@jim:acmegating.comcomparing int and float *is* valid!20:36
@clarkb:matrix.orgIn the case of the one I changed the var becomes a float when we reassign it later so it didn't like the :int sprcifer20:37
@clarkb:matrix.orgAnd ya pytype is neat. I think if I were to more seriously try typed python I would use it over mypy due to the inference and less strict checkint20:38
@clarkb:matrix.orgBut I don't think you can get away with using it when the codebase isn't willing to add annotations here or there as a few places needed that to be happy20:38
@tristanc_:matrix.orgcorvus: sure it's valid, but is it correct? For example, `12.0000000000000001 > 12` is False in py3.1220:41
@jim:acmegating.comtristanC: so is 12.0000000000000001 > 12.020:42
@jim:acmegating.comthat's not a problem with type conversion, that's a problem with floating point math20:42
@tristanc_:matrix.orgcorvus: right, when comparing int with float, the int is converted to float, so the epsilon issue can still be surprising, for example this is False: `1_000_000_000_000_000_000_000_001 > 1_000_000_000_000_000_000_000_001` but this is True `1_000_000_000_000_000_000_000_001 > 1_000_000_000_000_000_000_000_001.0`20:47
@clarkb:matrix.orgOnce upon a time I had to take a course where we spent like 3 months just doing manual ieee floating point. They really wanted us to not be surprised by this stuff20:48
@fungicide:matrix.orgi feel like by using a language such as python that lets you compare values of different types, you're opting into the position of dealing with corner cases20:49
@fungicide:matrix.orgto me, the reason `12.0000000000000001 < 12` is "computers"20:50
@tristanc_:matrix.orgapparently, pytype doesn't like the re-assignment from int to float, so it could have complained about int and float comparaison20:50
@fungicide:matrix.orgif you're going to compare them, you need to be aware of differences in internal representation. just part of being a programmer20:51
@tristanc_:matrix.orgfungi: but `12.0000000000000001 < 12` is also false :')20:52
@fungicide:matrix.orgoh, yep, `==`20:53
@fungicide:matrix.orgregardless, inequalities with mixed floats and ints need inclusivity (`<=`, `>=`), and the expectation that things get strange if precision is too high20:54
@fungicide:matrix.organd also (depending on the language/interpreter) may vary based on how large the in-memory representation is20:57
@fungicide:matrix.orgif you want a more insane-looking example which doesn't involve mixed types, `12.0000000000000001 > 11.9999999999999999` may also be `False`20:58
@fungicide:matrix.org * regardless, inequalities with floats need inclusivity (`<=`, `>=`), and the expectation that things get strange if precision is too high21:00
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 909135: DNM: Reduce test concurrency https://review.opendev.org/c/zuul/zuul/+/90913521:02
-@gerrit:opendev.org- Clark Boylan proposed:21:02
- [zuul/zuul] 909130: Cleanup vendored nullcontext managers https://review.opendev.org/c/zuul/zuul/+/909130
- [zuul/zuul] 909131: Fix a few python type related issues https://review.opendev.org/c/zuul/zuul/+/909131
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 908510: DNM: debug test_component_registry https://review.opendev.org/c/zuul/zuul/+/90851021:25
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 908510: DNM: debug test_component_registry https://review.opendev.org/c/zuul/zuul/+/90851021:27
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 909138: DNM: test ansible 9 at normal concurrency https://review.opendev.org/c/zuul/zuul/+/90913821:38
-@gerrit:opendev.org- Zuul merged on behalf of Clark Boylan:21:49
- [zuul/zuul-jobs] 909045: Remove openshift + zuul registry testing https://review.opendev.org/c/zuul/zuul-jobs/+/909045
- [zuul/zuul-jobs] 909029: Override DOCKER_MIN_API_VERSION for skopeo when installing docker https://review.opendev.org/c/zuul/zuul-jobs/+/909029
-@gerrit:opendev.org- Zuul merged on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/zuul-jobs] 908671: Remove command.warn usage https://review.opendev.org/c/zuul/zuul-jobs/+/90867121:56
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 909151: Remove unecessary test global component registry https://review.opendev.org/c/zuul/zuul/+/90915122:20
-@gerrit:opendev.org- Zuul merged on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com:22:28
- [zuul/zuul] 906203: Add dark mode images for status page https://review.opendev.org/c/zuul/zuul/+/906203
- [zuul/zuul] 908853: Fix subway graph line gap https://review.opendev.org/c/zuul/zuul/+/908853
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 909174: DNM: Pin kazoo https://review.opendev.org/c/zuul/zuul/+/90917422:49

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