You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/units/plugins
Martin Krizek 94126e4082
Reduce number of implicit meta tasks (#84007) (#84046)
This greatly reduces run time on large inventories since meta tasks are
executed in the main process sequentially and just executing them is expensive.

This change avoids running the following implicit meta tasks:
  * ``flush_handlers`` on hosts where no handlers are notified
  * ``noop`` for the linear strategy's lockstep, instead hosts that are
    not executing the current task are just not part of the current host loop

A playbook consiting of two simple plays both running on ~6000 hosts
runs in:
devel: 37s
this PR: 1.3s

Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
(cherry picked from commit d6d2251929)
1 month ago
..
action Replace `reboot_command` integration test with unit tests (#78956) 1 year ago
become better handling of sudo flag replacement (#76389) 3 years ago
cache Fix pointless statements in unit tests (#79940) 2 years ago
callback Use unittest.mock instead of mock. (#77883) 3 years ago
connection connection plugins: extras fix (#83353) (#83820) 3 months ago
filter Fix set filters to use set operations (#81639) 1 year ago
inventory Fix constructed inventory plugin unit test (#81481) 1 year ago
loader_fixtures Clean up unit test boilerplate. 5 years ago
lookup Remove unreachable code in password lookup test (#81482) 1 year ago
shell ssh and psrp - Support more complex characters in fetch_file (#83753) (#83816) (#83848) 3 months ago
strategy Reduce number of implicit meta tasks (#84007) (#84046) 1 month ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
test_plugins.py Fix pylint disallowed-name errors (#80854) 2 years ago