Commit Graph

16 Commits (master)

Author SHA1 Message Date
Alex Willmer 27b4b77bba CI: Upgrade Github jobs from Ubuntu 20.04 to 22.04 & 24.04
Python 2.7 (distro package) and 3.6 (pyenv managed) jobs run on Ubuntu 22.04.
More recent Pythons (distro or Github provided) run on 24.04.

fixes #1256

Ansible tasks that run locally (e.g. `connection: local`, `delegate_to:
localhost`) must now specify their `ansible_python_interpreter`, typically as
`{{ ansible_playbook_python }}`; otherwise the system Python on the controller
(e.g. `/usr/bin/python`) is likely to be used and this is often outside the
version range supported by the Ansible verison under test. If this occurs then
the symptom is often a failure to import a builtin from
`ansible.module_utils.six.moves`, e.g.

```
fatal: [target-centos6-1]: FAILED! => changed=true
  cmd:
  - ansible
  - -m
  - shell
  - -c
  - local
  - -a
  - whoami
  - -i
  - /tmp/mitogen_ci_ansibled3llejls/hosts
  - test-targets
  delta: '0:00:02.076385'
  end: '2025-04-17 17:27:02.561500'
  msg: non-zero return code
  rc: 8
  start: '2025-04-17 17:27:00.485115'
  stderr: |-
  stderr_lines: <omitted>
  stdout: |-
    An exception occurred during task execution. To see the full traceback,
    use -vvv. The error was:     from ansible.module_utils.six.moves import
    map, reduce, shlex_quote
```
8 months ago
Alex Willmer 7079a07a15 tests: Fix duplicate local task executions
integration/ssh/timeouts.yml is noteworthy. It was an accidental N**2 in time
-  executing num hosts * num hosts tasks.
2 years ago
Alex Willmer 526422b74b tests: Name tasks
For easier grep, and easier identification in task_profiler summaries.
3 years ago
Alex Willmer db0ffae352 tests: Enable stricter error handling, fix resulting failures 4 years ago
Alex Willmer 8e79488768 tests: Mark or avoid sudo tasks on localhost 4 years ago
Alex Willmer f070767dad tests: Use meaningful play names 4 years ago
Alex Willmer bb271d8d00 tests: Tag resource intensive tasks, to skip when strategy=linear
The ansible_mitogen test suite takes over an hour when Ansible is not
accelerated by Mitogen. This change aims to reduce that by skipping
tests with a large number of iterations when the linear strategy is
chosen.

The tagged tests are intended to uncover Mitogen resource leaks. Since
Mitogen is not invoked when strategy=linear, the slight reduction in
test coverage is an acceptable trade off.
5 years ago
Steven Robertson 1091cd7ca1 try and suppress mode warning clogging up logs 5 years ago
David Wilson c616359a17 Import include processing bench 7 years ago
David Wilson 2209d880e4 ansible/bench: make end= configurable. 7 years ago
David Wilson 44d6ca771a issue #426: fix local/delegate_to issue 7 years ago
David Wilson 918f709420 tests: import a bunch more random unchecked in pieces. 7 years ago
David Wilson 8e9b5ad576 tests: import template benchmark script. 7 years ago
David Wilson 49c804937d tests: import 2 more simple benchmarks. 7 years ago
David Wilson 962ba862e9 tests: use test-targets group, not all group 8 years ago
David Wilson 6541779dd6 tests: import Ansible file transfer benchmark 8 years ago