Alex Willmer
f82c72f539
tests: Name transport_config tests that involve mitogen_via
...
This should make it much easier to find a (failed) test, based on test output.
12 months ago
Alex Willmer
fca7578cdf
Merge pull request #1213 from moreati/spring-clean-2025
...
Spring clean 2025
12 months ago
Alex Willmer
e97d20c9d1
ansible_mitogen: Return stderr_lines from _low_level_execute_command()
...
Vanilla Ansible has returned stderr since v1.9 or earlier, stderr_lines was
added in v2.6.0 (https://github.com/ansible/ansible/pull/40079 ).
12 months ago
Alex Willmer
51c7b789f7
ansible_mitogen: Decouple possible_pythons order & error handling
...
'python' could now be tried earlier, or not at all.
12 months ago
Alex Willmer
356be2e65f
ansible_mitogen: Remove unneeded internal _run_cmd()
12 months ago
Alex Willmer
1b8b2c8b1a
ansible_mitogen: Rename Mitogen interpreter discovery attributes
...
This makes their nature and ownership/responsibility much more explicit.
12 months ago
Alex Willmer
d3da3ff769
ansible_mitogen: Don't redeclare interpreter discovery attributes
...
Duplicated effort on Ansible 2.10, and a potential source of future error
12 months ago
Alex Willmer
9342186b22
tests: Fix unclosed file in fd_check script
12 months ago
Alex Willmer
67219c309a
mitogen: Fix unclosed file in first stage
12 months ago
Alex Willmer
6fcb7aae96
mitogen: Replace uses of deprecated `pkgutil.find_loader()`
...
fixes #1111
12 months ago
Alex Willmer
90779fe846
ci: Enable Python warnings
12 months ago
Alex Willmer
6698f4bcd9
tests: Remove unused tasks fragment
12 months ago
Alex Willmer
e564944c5b
tests: Stricter playbook and inventory parsing
12 months ago
Alex Willmer
3f068e7c83
ci: Remove unneeded aws command entries
...
CI container imagesa re now hosted by GitHub Container Register. There is
nothing that needs to run `aws`.
fixes #1036
12 months ago
Alex Willmer
0953a931c0
Merge pull request #1223 from moreati/prep-v0.3.21
...
Prepare v0.3.21
12 months ago
Alex Willmer
5c76941d1e
Begin 0.3.22dev
12 months ago
Alex Willmer
8b7354cb3a
Prepare v0.3.21
12 months ago
Alex Willmer
53b6bf0292
docs: Add changelog, credits for connection_loader__get fixes
...
refs #1215
12 months ago
Alex Willmer
c39c47501a
Merge pull request #1215 from Nihlus/fix-connection-loader
...
ansible_mitogen: Fix usage of connection_loader__get.
12 months ago
Jarl Gullberg
211079f130
Add regression tests for the new connection logic.
...
Co-authored-by: Alex Willmer <alex@moreati.org.uk>
Co-authored-by: Mark Farrell <mark.a.farrell@team.telstra.com>
12 months ago
Jarl Gullberg
8ebeaffaad
Disallow connection redirection of sub-connections if the top-level connection in the play is not a Mitogen connection.
12 months ago
Jarl Gullberg
d0afae7806
Fix usage of connection_loader__get by wrapping the correct upstream functions.
12 months ago
Alex Willmer
69a61732cd
Merge pull request #1217 from Nihlus/fork-freeipa-modules
...
ansible_mitogen: Add all ansible_freeipa modules to the always-fork list.
12 months ago
Jarl Gullberg
0d1c84e727
Update changelog.
12 months ago
Jarl Gullberg
7330d68e19
Add all ansible_freeipa modules to the always-fork list.
1 year ago
Alex Willmer
20e92a63ff
Merge pull request #1212 from moreati/issue1209
...
docs: Attempt to configure Netlify build of mitogen.networkgenomics.com
1 year ago
Alex Willmer
f032762012
docs: Attempt to configure Netlify build of mitogen.networkgenomics.com
...
This site has an unknown build config. Specifically I do not know the value of
- Package directory
- Base directory
these are the locations that Netlify looks for netlify.toml. I've already
tried docs/netlify.toml (#1210 ), unsuccessfully. This attempt is on the basis
that Package directory == '/', or less likely that Base directory == '/'.
refs #1209
See
- https://docs.netlify.com/configure-builds/monorepos/#use-a-netlify-configuration-file
- https://docs.netlify.com/configure-builds/file-based-configuration/
1 year ago
Alex Willmer
5ef8db92b6
Merge pull request #1211 from moreati/issue1209
...
docs: Read release version from changelog
1 year ago
Alex Willmer
1195e39b55
docs: Read release version from changelog
...
fixes #1157
1 year ago
Alex Willmer
69b6552f3a
Merge pull request #1210 from moreati/issue1209
...
docs: Fix "No module named 'imghdr'" when building website
1 year ago
Alex Willmer
882dc0ca06
docs: Fix "No module named 'imghdr'" when building website
...
Between Mitogen 0.3.19 & 0.3.20 Netlify changed their default Python to 3.13.
This broke our deployment of https://mitogen.networkgenomics.com/ . The
previous default was Python 3.8, based on a recent successful build of
https://spiffy-croissant-696d93.netlify.app .
1 year ago
Alex Willmer
34d9df101f
Merge pull request #1207 from moreati/prep-0.3.20
...
Prepare v0.3.20
1 year ago
Alex Willmer
3ee6a0ff93
Begin v0.3.21dev
1 year ago
Alex Willmer
f1f8ad11ee
Prepare v0.3.20
1 year ago
Alex Willmer
11a6ccfe71
Merge pull request #1206 from moreati/issue1083-python_path2
...
ansible_mitogen: Respect interpreter_python and ANSIBLE_PYTHON_INTERPRETER
1 year ago
Alex Willmer
945e360363
ansible_mitogen: Respect interpreter_python and ANSIBLE_PYTHON_INTERPRETER
...
This adapts PR #740 by @extmind (afe0026890 ),
which augmented the call to `Connection.get_task_var()` with
`C.config.get_config_value('INTERPRETER_PYTHON'` as a default. Instead this
*replaces* the call to `Connection.get_task_var()`. The aim is greater
simplicity by disentangling templating of a configured interpreter path and
discovery of an interpreter when none is configured. I think this also reduces
the number of times `Connection._get_task_vars()` is called, so reducing the
number of times we do the ugly stack frame inspection.
I've also added test cases.
Co-authored-by: Lars Beckers <lars@extmind.de>
1 year ago
Alex Willmer
e8005ece3a
Merge pull request #1201 from moreati/issue1083-timeout
...
ansible_mitogen: Templated connection timeout
1 year ago
Alex Willmer
5e6d7bf4fb
ansible_mitogen: Templated connection timeout
...
Ansible >= 4 (ansible-core >= 2.11) the SSH plugin has a `timeout` option and
with variable `ansible_ssh_timeout`, but not a `ansible_timeout` variable.
The local plugin has no such option or variable(s). However `ansible_timeout`
is backfilled for all conection plugins, by legacy mechanisms that populate
the play context attribute:
- `ansible.constants.COMMON_CONNECTION_VARS`
- `ansible.constants.MAGIC_VARIABLE_MAPPING`
The `timeout` keyword is for task completion timeout, not connection timeout.
1 year ago
Alex Willmer
6900e88dfd
ansible_mitogen: Fix templated python interpreter with `meta: reset_connection`
...
refs #1079
1 year ago
Alex Willmer
941da31735
build: Reduce macOS job timeout to mitigate BlockingIOError
...
This will mitigate the impact of #1185 a little, which causes the job to
continue running without making progress, until it hits this timeout.
Successful jobs are typically completing in 8 - 12 minutes.
refs #1185
1 year ago
Alex Willmer
d033f7b057
ansible_mitogen: Restore dummy objects in Connection.reset()
...
The previous commit (53b4881628 in PR 1200) was
not intended to change these values, but some WIP slipped through. This
partially reverts that commit so the two changes (moving the monkey patch,
making the monkey patch more capable) exist in distinct commits.
1 year ago
Alex Willmer
7a828e7510
Merge pull request #1200 from moreati/issue1079-templated-python-interpreter
...
ansible_mitogen: Fix timeout in wait_for_connection with templated ansible_python_interpreter
1 year ago
Alex Willmer
53b4881628
ansible_mitogen: Fix wait_for_connection + templated ansible_python_interpreter
...
This tightens up our monkey patching `Connection._action` so it's only applied
during `meta: reset_connection` & promptly removed. This fixes "'int' object
has no attribute 'template'" when `ansible.plugins.action.wait_for_connection`
or other code calls `ansible.plugins.connection.ConnectionBase.reset()`.
This could also have switched to `templar=templar` on the temporary action,
rather than `templar=0`, but it's not strictly necessary to fix this bug. I
anticipate other changes doing so soon, to improve interpreter discovery &
templated python interpreter path support.
1 year ago
Alex Willmer
288b0051d2
Merge pull request #1198 from moreati/prep-v0.3.19
...
Prepare v0.3.19
1 year ago
Alex Willmer
ffb1709630
Begin v0.3.20dev
1 year ago
Alex Willmer
24ba734ff9
Prepare v0.3.19
1 year ago
Alex Willmer
d68368e549
Merge pull request #1177 from moreati/issue1129
...
Ansible 11 (ansible-core 2.18)
1 year ago
Alex Willmer
0b99169f42
Support Ansible 11 (ansible-core 2.18)
1 year ago
Alex Willmer
b36806ab7f
Merge pull request #1194 from moreati/prepare-v0.3.18
...
Prepare v0.3.18
1 year ago
Alex Willmer
1cd7ea18d3
Begin v0.3.19dev
1 year ago