ansible.utils
ansible.utils copied to clipboard
Add unit test showing high CPU utilization when attempting to get /120 subnet
SUMMARY
Two bugs are exposed by the unit tests, one in netaddr
and one in ansible.utils
. The "2600:1f1c:1b3:8f00::/56" | ipsubnet(120, 0)
unit test causes the ipsubnet
filter to attempt to create 18446744073709551616 subnets, this never returns.
- https://github.com/netaddr/netaddr/issues/241
- #132
ISSUE TYPE
- Bugfix Pull Request
COMPONENT NAME
ipsubnet filter
ADDITIONAL INFORMATION
Unable to freeze job graph: Job network-ee-unit-tests depends on network-ee-build-container-image which was not run.
Unable to freeze job graph: Job network-ee-unit-tests depends on network-ee-build-container-image which was not run.
recheck
Build failed.
- ansible-changelog-fragment : SUCCESS in 40s
- ansible-test-sanity-docker-devel : SUCCESS in 12m 57s (non-voting)
- ansible-test-sanity-docker-milestone : SUCCESS in 8m 50s
- ansible-test-sanity-docker-stable-2.9 : SUCCESS in 13m 48s
- ansible-test-sanity-docker-stable-2.10 : SUCCESS in 14m 10s
- ansible-test-sanity-docker-stable-2.11 : SUCCESS in 8m 39s
- ansible-test-sanity-docker-stable-2.12 : SUCCESS in 9m 33s
- ansible-test-units-ansible-utils-python27 : TIMED_OUT in 1h 01m 15s
- ansible-test-units-ansible-utils-python36 : TIMED_OUT in 1h 02m 59s
- ansible-test-units-ansible-utils-python37 : TIMED_OUT in 1h 02m 20s
- build-ansible-collection : SUCCESS in 3m 26s
- ansible-ee-tests-latest : TIMED_OUT in 30m 33s
- ansible-ee-tests-stable-2.9 : TIMED_OUT in 30m 43s
- ansible-ee-tests-stable-2.11 : TIMED_OUT in 31m 08s
- ansible-ee-tests-stable-2.12 : TIMED_OUT in 30m 50s
- ansible-tox-linters : FAILURE in 4m 55s
- ansible-galaxy-importer : SUCCESS in 3m 25s
This at the very least needs a rebase, but the changelog update is also correct- no code is changing here outside of tests, so this is at best a doc_changes
, or a trivial
change
Closing as above changes has already been added from a different PR