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.
mitogen/tests/ansible/regression
Alex Willmer 9609437262 CI: Use 2025.02 test images, keeping same OS releases
centos8-test:2025.02 no longer has a /usr/bin/python installed, so use
centos8-py3 target which sets `ansible_python_interpreter=/usr/bin/python3` in
the templated inventory.

Ansible <= 9 (ansible-core <= 2.6) now discover the interpreter as
/usr/bin/python3 on debian11-test:2025.02, as opposed to
/usr/bin/python3.9 on debian11-test:2021. I'm don't know the exact
cause. From manual tests the change in observed behaviour appears to be common to
vanilla Ansible (strategy=linear) and Mitogen flavour
(strategy=mitogen_linear).

```console
(ans9) ➜  mitogen git:(4efb7158) ✗ ANSIBLE_STRATEGY=mitogen_linear ANSIBLE_STRATEGY_PLUGINS=ansible_mitogen/plugins/strategy ans9/bin/ansible -e ansible_python_interpreter=auto -mping d11.lan
d11.lan | SUCCESS => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python3"
    },
    "changed": false,
    "ping": "pong"
}
(ans9) ➜  mitogen git:(4efb7158) ✗ ans9/bin/ansible -e ansible_python_interpreter=auto -mping d11.lan
d11.lan | SUCCESS => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python3"
    },
    "changed": false,
    "ping": "pong"
}
```

Update some tests which assume `/usr/bin/python` exists or that `env python`
will resolve successfully.
4 weeks ago
..
files ci: Configure package managers using a role 10 months ago
scripts tests: Pythonize print_env.sh. 7 years ago
templates ansible_mitogen: Add regression test for ActionModuleMixin._remote_chmod() 1 year ago
_mitogen_only.yml tests: Replace uses of ``include:``, unify skipping of mitogen only tests 2 years ago
all.yml Add regression tests for the new connection logic. 11 months ago
become_test.yml CI: Specify ANSIBLE_STRATEGY in tasks that run ansible or ansible-playbook 7 months ago
issue_109__target_has_old_ansible_installed.yml CI: Fix ansible_version comparison with ansible-core 2.19.0rc1 6 months ago
issue_113__duplicate_module_imports.yml tests: Improve Ansible fail_msg formatting 1 year ago
issue_118__script_not_marked_exec.yml tests: Tag Ansible tests 4 years ago
issue_122__environment_difference.yml CI: Use 2025.02 test images, keeping same OS releases 4 weeks ago
issue_140__thread_pileup.yml CI: Upgrade Github jobs from Ubuntu 20.04 to 22.04 & 24.04 8 months ago
issue_152__local_action_wrong_interpreter.yml CI: Upgrade Github jobs from Ubuntu 20.04 to 22.04 & 24.04 8 months ago
issue_152__virtualenv_python_fails.yml tests: Improve Ansible fail_msg formatting 1 year ago
issue_154__module_state_leaks.yml tests: Improve Ansible fail_msg formatting 1 year ago
issue_177__copy_module_failing.yml tests: Name tasks 3 years ago
issue_332_ansiblemoduleerror_first_occurrence.yml tests: Improve Ansible fail_msg formatting 1 year ago
issue_558_unarchive_failed.yml tests: Name tasks 3 years ago
issue_590__sys_modules_crap.yml CI: Fix ansible_version comparison with ansible-core 2.19.0rc1 6 months ago
issue_591__setuptools_cwd_crash.yml CI: Migrate macOS integration tests to macOS 12, drop Python 2.7 jobs 1 year ago
issue_615__streaming_transfer.yml tests: Fix duplicate local task executions 2 years ago
issue_655__wait_for_connection_error.yml CI: Fix ansible_version comparison with ansible-core 2.19.0rc1 6 months ago
issue_766__get_with_context.yml Python 3.14 support 3 months ago
issue_776__load_plugins_called_twice.yml CI: Fix ansible_version comparison with ansible-core 2.19.0rc1 6 months ago
issue_952__ask_become_pass.yml CI: Specify ANSIBLE_STRATEGY in tasks that run ansible or ansible-playbook 7 months ago
issue_1066__add_host__host_key_checking.yml CI: Fix ansible_version comparison with ansible-core 2.19.0rc1 6 months ago
issue_1079__wait_for_connection_timeout.yml ansible_mitogen: Fix templated python interpreter with `meta: reset_connection` 1 year ago
issue_1087__template_streamerror.yml CI: Specify ANSIBLE_STRATEGY in tasks that run ansible or ansible-playbook 7 months ago
template_test.yml ansible_mitogen: Add regression test for ActionModuleMixin._remote_chmod() 1 year ago