tests: Enable stricter error handling, fix resulting failures

pull/949/head
Alex Willmer 2 years ago
parent c32577295a
commit db0ffae352

@ -1,4 +1,5 @@
[defaults]
any_errors_fatal = true
inventory = hosts
gathering = explicit
strategy_plugins = ../../ansible_mitogen/plugins/strategy
@ -35,6 +36,10 @@ timeout = 10
# On Travis, paramiko check fails due to host key checking enabled.
host_key_checking = False
[inventory]
any_unparsed_is_failed = true
host_pattern_mismatch = error
[callback_profile_tasks]
task_output_limit = 10

@ -1,7 +1,6 @@
- name: bench/file_transfer.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- name: Make 32MiB file

@ -1,6 +1,5 @@
- name: bench/loop-100-copies.yml
hosts: all
any_errors_fatal: true
tasks:
- name: Create file tree

@ -22,9 +22,15 @@ tc-remote-addr-explicit-both ansible_ssh_host=a.b.c ansible_host=b.c.d
# password()
tc-password-unset
tc-password-explicit-ssh ansible_ssh_pass=ansi-ssh-pass
tc-password-explicit-user ansible_password=ansi-pass
tc-password-explicit-pass ansible_password=ansi-pass
tc-password-explicit-both ansible_password=a.b.c ansible_ssh_pass=c.b.a
# remote_user()
tc-remote-user-unset # defaults to C.DEFAULT_REMOTE_USER
tc-remote-user-explicit-ssh ansible_ssh_user=ansi-ssh-user
tc-remote-user-explicit-user ansible_user=ansi-user
tc-remote-user-explicit-both ansible_user=a.b.c ansible_ssh_user=c.b.a
# become()
tc-become-unset
tc-become-set

@ -2,7 +2,6 @@
- name: integration/action/copy.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- copy:
dest: /tmp/copy-tiny-file

@ -5,7 +5,6 @@
- name: integration/action/fixup_perms2__copy.yml
hosts: test-targets
any_errors_fatal: true
tasks:
#
# copy module (no mode).

@ -2,7 +2,6 @@
- name: integration/action/low_level_execute_command.yml
hosts: test-targets
any_errors_fatal: true
tasks:
# "echo -en" to test we actually hit bash shell too.

@ -9,7 +9,6 @@
- name: integration/action/make_tmp_path.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- meta: end_play
when: not is_mitogen

@ -2,7 +2,7 @@
# they succeed and are cleaned up correctly.
- name: integration/action/make_tmp_path__double.yml
hosts: targets
hosts: test-targets
tasks:
- mitogen_action_script:
script: |

@ -3,7 +3,6 @@
- name: integration/action/remote_expand_user.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- name: "Find out root's homedir."
# Runs first because it blats regular Ansible facts with junk, so

@ -1,7 +1,6 @@
- name: integration/action/remote_file_exists.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- file:

@ -4,7 +4,6 @@
#
- name: integration/action/remove_tmp_path.yml
hosts: test-targets
any_errors_fatal: true
tasks:
#
# Use the copy module to cause a temporary directory to be created, and

@ -2,7 +2,6 @@
- name: integration/action/synchronize.yml
hosts: test-targets
any_errors_fatal: true
vars:
ansible_user: mitogen__has_sudo_pubkey
ansible_become_pass: has_sudo_pubkey_password

@ -1,7 +1,6 @@
- name: integration/action/transfer_data.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- file:

@ -2,7 +2,6 @@
- name: integration/async/multiple_items_loop.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- name: start long running ops

@ -2,7 +2,6 @@
- name: integration/async/result_binary_producing_json.yml
gather_facts: true
hosts: test-targets
any_errors_fatal: true
tasks:
- block:

@ -2,7 +2,6 @@
- name: integration/async/result_binary_producing_junk.yml
gather_facts: true
hosts: test-targets
any_errors_fatal: true
tasks:
- block:

@ -2,7 +2,6 @@
- name: integration/async/result_shell_echo_hi.yml
gather_facts: true
hosts: test-targets
any_errors_fatal: true
tasks:
- shell: echo hi; echo there >&2

@ -2,7 +2,6 @@
- name: integration/async/runner_new_process.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- name: get process ID.

@ -3,7 +3,6 @@
- name: integration/async/runner_one_job.yml
hosts: test-targets
any_errors_fatal: true
tasks:
# Verify output of a single async job.

@ -2,7 +2,6 @@
- name: integration/async/runner_timeout_then_polling.yml
hosts: test-targets
any_errors_fatal: true
tasks:
# Verify async-with-timeout-then-poll behaviour.

@ -1,7 +1,6 @@
- name: integration/async/runner_two_simultaneous_jobs.yml
hosts: test-targets
any_errors_fatal: true
tasks:
# Start 2 duplicate jobs, verify they run concurrently.

@ -2,7 +2,6 @@
- name: integration/async/runner_with_polling_and_timeout.yml
hosts: test-targets
any_errors_fatal: true
tasks:
# Verify async-with-polling-and-timeout behaviour.

@ -4,7 +4,6 @@
- name: integration/become/su_password.yml
hosts: test-targets
become_method: su
any_errors_fatal: true
tasks:
- name: Ensure su password absent but required.

@ -1,6 +1,5 @@
- name: integration/become/sudo_flags_failure.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- name: Verify behaviour for bad sudo flags.

@ -1,6 +1,5 @@
- name: integration/become/sudo_nonexistent.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- name: Verify behaviour for non-existent accounts.

@ -2,7 +2,6 @@
- name: integration/become/sudo_nopassword.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- name: Verify we aren't root

@ -2,7 +2,6 @@
- name: integration/become/sudo_password.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- name: Ensure sudo password absent but required.

@ -2,7 +2,6 @@
- name: integration/become/sudo_requiretty.yml
hosts: test-targets
any_errors_fatal: true
tasks:
# TODO: https://github.com/dw/mitogen/issues/692

@ -4,7 +4,6 @@
- name: integration/connection/become_same_user.yml
hosts: bsu-joe
gather_facts: no
any_errors_fatal: true
tasks:
# bsu-joe's login user is joe, so become should be ignored.

@ -12,7 +12,6 @@
- name: integration/connection/disconnect_resets_connection.yml
hosts: test-targets
gather_facts: no
any_errors_fatal: true
tasks:
- meta: end_play
when: not is_mitogen

@ -4,7 +4,6 @@
- name: integration/connection/exec_command.yml
hosts: test-targets
gather_facts: no
any_errors_fatal: true
tasks:
- connection_passthrough:
method: exec_command

@ -2,7 +2,6 @@
- name: integration/connection/home_dir.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- name: "Find out root's homedir."
# Runs first because it blats regular Ansible facts with junk, so

@ -4,7 +4,6 @@
- name: integration/connection/put_large_file.yml
hosts: test-targets
gather_facts: no
any_errors_fatal: true
vars:
file_name: large-file
file_size: 512

@ -4,7 +4,6 @@
- name: integration/connection/put_small_file.yml
hosts: test-targets
gather_facts: no
any_errors_fatal: true
vars:
file_name: small-file
file_size: 123

@ -1,5 +1,5 @@
- import_playbook: delegate_to_template.yml
- import_playbook: local_action.yml
- import_playbook: osa_container_standalone.yml
- import_playbook: osa_delegate_to_self.yml
#- import_playbook: osa_container_standalone.yml
#- import_playbook: osa_delegate_to_self.yml
- import_playbook: stack_construction.yml

@ -14,7 +14,6 @@
physical_hosts: ["cd-normal-alias", "cd-normal-normal"]
hosts: test-targets
gather_facts: no
any_errors_fatal: true
tasks:
- meta: end_play
when: not is_mitogen

@ -30,7 +30,6 @@
- hosts: cd-normal
any_errors_fatal: true
tasks:
- meta: end_play
when: not is_mitogen

@ -2,7 +2,6 @@
- name: integration/connection_loader/local_blemished.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- determine_strategy:

@ -3,7 +3,6 @@
- name: integration/connection_loader/paramiko_unblemished.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- debug:
msg: "skipped for now"

@ -2,7 +2,6 @@
- name: integration/connection_loader__ssh_blemished.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- determine_strategy:

@ -3,7 +3,6 @@
- name: integration/context_service/disconnect_cleanup.yml
hosts: test-targets[0]
any_errors_fatal: true
tasks:
- meta: end_play
when: not is_mitogen

@ -2,7 +2,6 @@
- name: integration/context_service/lru_one_target.yml
hosts: test-targets
any_errors_fatal: true
vars:
max_interps: "{{lookup('env', 'MITOGEN_MAX_INTERPRETERS')}}"
ubound: "{{max_interps|int + 1}}"

@ -3,7 +3,6 @@
- name: integration/context_service/reconnection.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- mitogen_shutdown_all:

@ -2,7 +2,6 @@
- name: integration/context_service/remote_name.yml
hosts: test-targets[0]
any_errors_fatal: true
tasks:
- meta: end_play
when: not is_mitogen

@ -3,7 +3,6 @@
- name: integration/interpreter_discovery/ansible_2_8_tests.yml
hosts: test-targets
any_errors_fatal: true
gather_facts: true
tasks:
- name: can only run these tests on ansible >= 2.8.0

@ -3,7 +3,6 @@
- name: integration/interpreter_discovery/complex_args.yml
hosts: test-targets
any_errors_fatal: true
gather_facts: true
tasks:
- name: create temp file to source

@ -5,7 +5,6 @@
# https://github.com/ansible/ansible/issues/14489
- name: integration/local/cwd_preserved.yml
any_errors_fatal: true
hosts: test-targets
tasks:
- connection: local

@ -3,7 +3,6 @@
- name: integration/module_utils/adjacent_to_playbook.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- custom_python_external_module:

@ -3,7 +3,6 @@
- name: integration/module_utils/adjacent_to_playbook.yml
hosts: test-targets
any_errors_fatal: true
roles:
- modrole
tags:

@ -2,7 +2,6 @@
- name: integration/module_utils/from_config_path.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- custom_python_external_module:

@ -2,7 +2,6 @@
- name: integration/module_utils/from_config_path.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- custom_python_external_pkg:

@ -1,7 +1,6 @@
- name: integration/module_utils/overrides_builtin.yml
hosts: test-targets
any_errors_fatal: true
roles:
- overrides_modrole
tags:

@ -4,7 +4,6 @@
- name: integration/playbook_semantics/become_flags.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- name: "without -E"
@ -19,7 +18,6 @@
- become_flags
- hosts: test-targets
any_errors_fatal: true
become_flags: -E
tasks:
- name: "with -E"

@ -1,6 +1,5 @@
- name: integration/playbook_semantics/delegate_to.yml
hosts: test-targets
any_errors_fatal: true
tasks:
#
# delegate_to, no sudo

@ -2,7 +2,6 @@
- name: integration/playbook_semantics/environment.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- shell: echo $SOME_ENV
environment:

@ -3,7 +3,6 @@
- name: integration/playbook_semantics/with_items.yml
hosts: test-targets
any_errors_fatal: true
tasks:
# TODO: https://github.com/dw/mitogen/issues/692

@ -1,7 +1,6 @@
- name: integration/runner/builtin_command_module.yml
hosts: test-targets
any_errors_fatal: true
gather_facts: true
tasks:
- command: hostname

@ -1,7 +1,6 @@
# https://github.com/dw/mitogen/issues/291
- name: integration/runner/custom_bash_hashbang_argument.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- custom_bash_old_style_module:

@ -1,6 +1,5 @@
- name: integration/runner/custom_bash_old_style_module.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- custom_bash_old_style_module:

@ -1,6 +1,5 @@
- name: integration/runner/custom_bash_want_json_module.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- custom_bash_want_json_module:
foo: true

@ -1,6 +1,5 @@
- name: integration/runner/custom_binary_producing_json.yml
hosts: test-targets
any_errors_fatal: true
gather_facts: true
tasks:
- block:

@ -24,7 +24,6 @@
- hosts: test-targets
any_errors_fatal: true
tasks:
- assert:
that:

@ -10,7 +10,6 @@
- custom_binary_single_null
- hosts: test-targets
any_errors_fatal: true
tasks:
- assert:
that:

@ -1,6 +1,5 @@
- name: integration/runner/custom_perl_json_args_module.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- custom_perl_json_args_module:
foo: true

@ -1,6 +1,5 @@
- name: integration/runner/custom_perl_want_json_module.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- custom_perl_want_json_module:
foo: true

@ -1,6 +1,5 @@
- name: integration/runner/custom_python_json_args_module.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- custom_python_json_args_module:
foo: true

@ -1,7 +1,6 @@
- name: integration/runner/custom_python_new_style_module.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- custom_python_new_style_missing_interpreter:
foo: true

@ -1,6 +1,5 @@
- name: integration/runner/custom_python_new_style_module.yml
hosts: test-targets
any_errors_fatal: true
tasks:
# without Mitogen Ansible 2.10 hangs on this play
- meta: end_play

@ -2,7 +2,6 @@
- name: integration/runner/custom_python_prehistoric_module.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- custom_python_prehistoric_module:
register: out

@ -1,6 +1,5 @@
- name: integration/runner/custom_python_want_json_module.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- custom_python_want_json_module:
foo: true

@ -1,6 +1,5 @@
- name: integration/runner/custom_script_interpreter.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- custom_bash_old_style_module:

@ -3,7 +3,6 @@
- name: integration/runner/environment_isolation.yml
hosts: test-targets
any_errors_fatal: true
gather_facts: true
tasks:

@ -4,7 +4,6 @@
- name: integration/runner/etc_environment.yml
hosts: test-targets[0]
any_errors_fatal: true
gather_facts: true
tasks:
- include: _etc_environment_user.yml

@ -1,6 +1,5 @@
- name: integration/runner/forking_active.yml
hosts: test-targets
any_errors_fatal: true
tasks:
# Verify mitogen_task_isolation=fork triggers forking.

@ -1,7 +1,6 @@
- name: integration/runner/forking_correct_parent.yml
hosts: test-targets
any_errors_fatal: true
tasks:
# Verify mitogen_task_isolation=fork forks from "virginal fork parent", not

@ -2,7 +2,6 @@
- name: integration/runner/forking_inactive.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- name: get process ID.

@ -13,9 +13,9 @@
-o "ControlPath /tmp/mitogen-ansible-test-{{18446744073709551615|random}}"
tasks:
- name: ansible_ssh_user
# Remaining tests just use "ansible_user".
- name: ansible_ssh_user, ansible_ssh_pass
shell: >
ANSIBLE_ANY_ERRORS_FATAL=false
ANSIBLE_STRATEGY=mitogen_linear
ANSIBLE_SSH_ARGS=""
ansible -m shell -a whoami -i "{{MITOGEN_INVENTORY_FILE}}" test-targets
@ -26,7 +26,9 @@
register: out
when: is_mitogen
- shell: >
- name: ansible_ssh_user, wrong ansible_ssh_pass
shell: >
ANSIBLE_ANY_ERRORS_FATAL=false
ANSIBLE_STRATEGY=mitogen_linear
ANSIBLE_SSH_ARGS=""
ansible -m shell -a whoami -i "{{MITOGEN_INVENTORY_FILE}}" test-targets
@ -39,13 +41,15 @@
when: is_mitogen
- assert:
that: out.rc == 4 # unreachable
that:
- out.rc == 4 # ansible.executor.task_queue_manager.TaskQueueManager.RUN_UNREACHABLE_HOSTS
fail_msg: out={{out}}
when: is_mitogen
- name: ansible_ssh_pass
- name: ansible_user, ansible_ssh_pass
shell: >
ANSIBLE_ANY_ERRORS_FATAL=false
ANSIBLE_STRATEGY=mitogen_linear
ANSIBLE_SSH_ARGS=""
ansible -m shell -a whoami -i "{{MITOGEN_INVENTORY_FILE}}" test-targets
@ -56,7 +60,9 @@
register: out
when: is_mitogen
- shell: >
- name: ansible_user, wrong ansible_ssh_pass
shell: >
ANSIBLE_ANY_ERRORS_FATAL=false
ANSIBLE_STRATEGY=mitogen_linear
ANSIBLE_SSH_ARGS=""
ansible -m shell -a whoami -i "{{MITOGEN_INVENTORY_FILE}}" test-targets
@ -69,13 +75,15 @@
when: is_mitogen
- assert:
that: out.rc == 4 # unreachable
that:
- out.rc == 4 # ansible.executor.task_queue_manager.TaskQueueManager.RUN_UNREACHABLE_HOSTS
fail_msg: out={{out}}
when: is_mitogen
- name: ansible_password
- name: ansible_user, ansible_password
shell: >
ANSIBLE_ANY_ERRORS_FATAL=false
ANSIBLE_STRATEGY=mitogen_linear
ANSIBLE_SSH_ARGS=""
ansible -m shell -a whoami -i "{{MITOGEN_INVENTORY_FILE}}" test-targets
@ -86,7 +94,9 @@
register: out
when: is_mitogen
- shell: >
- name: ansible_user, wrong ansible_password
shell: >
ANSIBLE_ANY_ERRORS_FATAL=false
ANSIBLE_STRATEGY=mitogen_linear
ANSIBLE_SSH_ARGS=""
ansible -m shell -a whoami -i "{{MITOGEN_INVENTORY_FILE}}" test-targets
@ -99,18 +109,20 @@
when: is_mitogen
- assert:
that: out.rc == 4 # unreachable
that:
- out.rc == 4 # ansible.executor.task_queue_manager.TaskQueueManager.RUN_UNREACHABLE_HOSTS
fail_msg: out={{out}}
when: is_mitogen
- name: ansible_ssh_private_key_file
- name: setup ansible_ssh_private_key_file
shell: chmod 0600 ../data/docker/mitogen__has_sudo_pubkey.key
args:
chdir: ../..
- name: ansible_ssh_private_key_file
- name: ansible_user, ansible_ssh_private_key_file
shell: >
ANSIBLE_ANY_ERRORS_FATAL=false
ANSIBLE_STRATEGY=mitogen_linear
ANSIBLE_SSH_ARGS=""
ansible -m shell -a whoami -i "{{MITOGEN_INVENTORY_FILE}}" test-targets
@ -121,7 +133,9 @@
register: out
when: is_mitogen
- shell: >
- name: ansible_user, wrong ansible_ssh_private_key_file
shell: >
ANSIBLE_ANY_ERRORS_FATAL=false
ANSIBLE_STRATEGY=mitogen_linear
ANSIBLE_SSH_ARGS=""
ansible -m shell -a whoami -i "{{MITOGEN_INVENTORY_FILE}}" test-targets
@ -134,6 +148,7 @@
when: is_mitogen
- assert:
that: out.rc == 4 # unreachable
that:
- out.rc == 4 # ansible.executor.task_queue_manager.TaskQueueManager.RUN_UNREACHABLE_HOSTS
fail_msg: out={{out}}
when: is_mitogen

@ -3,7 +3,6 @@
- name: integration/strategy/_mixed_mitogen_vanilla.yml (mitogen_linear)
hosts: test-targets[0]
any_errors_fatal: true
strategy: mitogen_linear
run_once: true
tasks:
@ -22,7 +21,6 @@
- name: integration/strategy/_mixed_mitogen_vanilla.yml (linear)
hosts: test-targets[0]
any_errors_fatal: true
strategy: linear
tasks:
- custom_python_detect_environment:
@ -40,7 +38,6 @@
- name: integration/strategy/_mixed_mitogen_vanilla.yml (mitogen_linear)
hosts: test-targets[0]
any_errors_fatal: true
strategy: mitogen_linear
tasks:
- custom_python_detect_environment:

@ -3,7 +3,6 @@
- name: integration/strategy/_mixed_vanilla_mitogen.yml (linear)
hosts: test-targets[0]
any_errors_fatal: true
strategy: linear
tasks:
- custom_python_detect_environment:
@ -21,7 +20,6 @@
- name: integration/strategy/_mixed_vanilla_mitogen.yml (mitogen_linear)
hosts: test-targets[0]
any_errors_fatal: true
strategy: mitogen_linear
tasks:
- custom_python_detect_environment:
@ -39,7 +37,6 @@
- name: integration/strategy/_mixed_vanilla_mitogen.yml (linear)
hosts: test-targets[0]
any_errors_fatal: true
strategy: linear
tasks:
- custom_python_detect_environment:

@ -1,7 +1,6 @@
- name: integration/strategy/mixed_vanilla_mitogen.yml (linear->mitogen->linear)
hosts: test-targets[0]
any_errors_fatal: true
tasks:
- connection: local
command: |

@ -2,7 +2,6 @@
- name: integration/stub_connections/kubectl.yml
hosts: test-targets
gather_facts: false
any_errors_fatal: true
tasks:
- meta: end_play
when: not is_mitogen

@ -2,7 +2,6 @@
- name: integration/stub_connections/lxc.yml
hosts: test-targets
gather_facts: false
any_errors_fatal: true
tasks:
- meta: end_play
when: not is_mitogen

@ -2,7 +2,6 @@
- name: integration/stub_connections/lxd.yml
hosts: test-targets
gather_facts: false
any_errors_fatal: true
tasks:
- meta: end_play
when: not is_mitogen

@ -2,7 +2,6 @@
- name: integration/stub_connections/mitogen_doas.yml
hosts: test-targets
gather_facts: false
any_errors_fatal: true
tasks:
- meta: end_play
when: not is_mitogen

@ -2,7 +2,6 @@
- name: integration/stub_connections/mitogen_sudo.yml
hosts: test-targets
gather_facts: false
any_errors_fatal: true
tasks:
- meta: end_play
when: not is_mitogen

@ -41,7 +41,7 @@
- out.result[0].kwargs.port == 4321
fail_msg: out={{out}}
- hosts: tc-port-explicit-unset
- hosts: tc-port-unset
vars: {mitogen_via: tc-port-explicit-ssh}
tasks:
- include: ../_mitogen_only.yml
@ -50,9 +50,9 @@
that:
- out.result|length == 2
- out.result[0].method == "ssh"
- out.result[1].kwargs.port == 4321
- out.result[0].kwargs.port == 4321
- out.result[1].method == "ssh"
- out.result[0].kwargs.port == None
- out.result[1].kwargs.port == None
fail_msg: out={{out}}
# ansible_port=

@ -60,7 +60,7 @@
left: out.result[0].kwargs.username
right: "ansi-user"
- hosts: tc-remote-user-explicit-host
- hosts: tc-remote-user-explicit-user
vars: {mitogen_via: tc-remote-user-unset}
tasks:
- include: ../_mitogen_only.yml

@ -3,7 +3,6 @@
- name: regression/issue_109__target_has_old_ansible_installed.yml
hosts: test-targets
any_errors_fatal: true
gather_facts: true
tasks:
- meta: end_play

@ -2,7 +2,6 @@
# by exercisizng the uri package.
- name: regression/issue_113__duplicate_module_imports.yml
any_errors_fatal: true
hosts: test-targets
tasks:

@ -4,7 +4,6 @@
- name: regression/issue_140__thread_pileup.yml
hosts: test-targets
any_errors_fatal: true
tasks:
- name: Create file tree

@ -6,7 +6,6 @@
- name: regression/issue_152__local_action_wrong_interpreter.yml
hosts: test-targets
connection: local
any_errors_fatal: true
tasks:
- copy:

@ -1,5 +1,4 @@
- name: regression/issue_152__virtualenv_python_fails.yml
any_errors_fatal: true
gather_facts: true
hosts: test-targets
tasks:

@ -2,7 +2,6 @@
# must be reinitialized or cleared out somehow on each invocation.
- name: regression/issue_154__module_state_leaks.yml
any_errors_fatal: true
hosts: test-targets
tasks:

@ -1,5 +1,4 @@
- name: regression/issue_177__copy_module_failing.yml
any_errors_fatal: true
hosts: test-targets
tasks:

@ -2,7 +2,6 @@
- name: regression/issue_615_streaming_transfer.yml
hosts: test-targets
any_errors_fatal: True
gather_facts: no
# Without Mitogen this causes Ansible to use the slurp module, which is *slow*
become: true

@ -4,10 +4,8 @@
# since things are ran on localhost; Azure DevOps loses connection and fails
# TODO: do we want to install docker a different way to be able to do this for other tests too
---
# this should only run on our Mac hosts
- name: regression/issue_655_wait_for_connection_error.yml
hosts: targets
any_errors_fatal: True
hosts: localhost
gather_facts: yes
become: no
tasks:
@ -85,5 +83,7 @@
loop:
- cmd: podman stop testMitogen
- cmd: podman machine stop
when:
- ansible_facts.pkg_mgr in ['homebrew']
tags:
- issue_655

@ -17,3 +17,4 @@
- debug: {var: ansible_run_tags}
- debug: {var: ansible_skip_tags}
- debug: {var: ansible_version.full}
- debug: {var: is_mitogen}

@ -205,7 +205,7 @@ class LinuxPolicyTest(testlib.TestCase):
proc.wait()
his_cpu = self._get_cpus(tf.name)
self.assertNotEquals(my_cpu, his_cpu)
self.assertNotEqual(my_cpu, his_cpu)
self.policy._clear()
finally:
tf.close()

@ -86,6 +86,7 @@ passenv =
AWS_SECRET_ACCESS_KEY
HOME
setenv =
# See also azure-pipelines.yml
ANSIBLE_SKIP_TAGS = requires_local_sudo,resource_intensive
ANSIBLE_STRATEGY = mitogen_linear
NOCOVERAGE_ERASE = 1

Loading…
Cancel
Save