Commit Graph

3692 Commits (f03276201231f1a00593c9f92f8834b1c29e1e24)
 

Author SHA1 Message Date
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/
11 months ago
Alex Willmer 5ef8db92b6
Merge pull request #1211 from moreati/issue1209
docs: Read release version from changelog
11 months ago
Alex Willmer 1195e39b55 docs: Read release version from changelog
fixes #1157
11 months ago
Alex Willmer 69b6552f3a
Merge pull request #1210 from moreati/issue1209
docs: Fix "No module named 'imghdr'" when building website
11 months 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.
11 months ago
Alex Willmer 34d9df101f
Merge pull request #1207 from moreati/prep-0.3.20
Prepare v0.3.20
11 months ago
Alex Willmer 3ee6a0ff93 Begin v0.3.21dev 11 months ago
Alex Willmer f1f8ad11ee Prepare v0.3.20 11 months ago
Alex Willmer 11a6ccfe71
Merge pull request #1206 from moreati/issue1083-python_path2
ansible_mitogen: Respect interpreter_python and ANSIBLE_PYTHON_INTERPRETER
11 months 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>
11 months ago
Alex Willmer e8005ece3a
Merge pull request #1201 from moreati/issue1083-timeout
ansible_mitogen: Templated connection timeout
12 months 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.
12 months ago
Alex Willmer 6900e88dfd ansible_mitogen: Fix templated python interpreter with `meta: reset_connection`
refs #1079
12 months 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
12 months 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.
12 months 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
12 months 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.
12 months 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
Alex Willmer d85d9a25ee Prepare v0.3.18 1 year ago
Alex Willmer 4a2ba525a7
Merge pull request #1193 from moreati/issue1083-become
ansible_mitogen: Templated become flag
1 year ago
Alex Willmer dd41ddf89b ansible_mitogen: Templated become flag
The code change to support this was already made in transport_config.py, as
part of templated become_user support (commit bf6607e27e, PR #1148). This
commit adds tests to confirm the functionality.
1 year ago
Alex Willmer 8e64459bbf
Merge pull request #1192 from moreati/issue-1083-become_method
ansible_mitogen: Templated become method
1 year ago
Alex Willmer e120cd2cae ansible_mitogen: Templated become method 1 year ago
Alex Willmer 61c8267605
Merge pull request #1190 from moreati/test-port-keyword
Prepare v0.3.17 and some washup tests
1 year ago
Alex Willmer d2db3c3840 Begin v0.3.18dev 1 year ago
Alex Willmer 6cf6f69751 Prepare v0.3.17 1 year ago
Alex Willmer 905b87b71a tests: Test templated ansible_host_key_checking provided by task vars
missed by #1184
1 year ago
Alex Willmer 5ae5bb94ac docs: Changelog entry for templated ansible_host 1 year ago
Alex Willmer 6da2c6a80f
Merge pull request #1189 from moreati/issue1083-host
ansible_mitogen: Templated target host
1 year ago
Alex Willmer f50a61f981 ansible_mitogen: Templated host option (e.g. ansible_host, ansible_ssh_host)
A twist - for the connection option "host" the corresponding legacy
PlayContext attribute is PlayContext.remote_addr. This may be the only case
where a connection option name and the PlayContext attribute name differ.
1 year ago
Alex Willmer 6d9f2e12d9 tests: Switch remaining tt_targets_inventory group vars to host vars
This is ground work for adding/testing templated hostnames and python
interpreters. The extreme wideness will hopefully be temporary, e.g. by
switching to YAML inventories. The INI inventory plugin doesn't support
multiline host entries.

> 640 K(olumns) should be enough for anyone
> -- Apocryphal, not Bill Gates
1 year ago
Alex Willmer 0d09174031
Merge pull request #1184 from moreati/issue1083-host_key_checking
ansible_mitogen: Templated SSH host key checking
1 year ago
Alex Willmer 3a1b5ec620 CI: Increase sshd MaxAuthRetries to 50 on macOS runners
refs #1186
1 year ago
Alex Willmer 8cfcb66cda CI: Refactor sshd configuration into a role
Prep for applying it to macOS 13 GitHub runners.

refs #1186
1 year ago
Alex Willmer 9e0dad2a1a ansible_mitogen: Templated SSH host key checking
refs #1083
1 year ago
Alex Willmer 9189c01c16
Merge pull request #1181 from moreati/issue1083-private_key_file
ansible_mitogen: Templated SSH private key file
1 year ago
Alex Willmer c7df5c97c1 ansible_mitogen: Templated SSH private key file 1 year ago
Alex Willmer 5895ccadd2
Merge pull request #1183 from moreati/issue1182
CI: Fix incorrect u=r,g=r,o=rw file permissions on mitogen__has_sudo_pubkey.key
1 year ago
Alex Willmer 43cc937bc6 CI: Fix incorrect u=r,g=r,o=rw file permissions on mitogen__has_sudo_pubkey.key
The wrong base was used when calculating the mode. So the file became world
readable and writable on a CI runner, until
ansible/integration/ssh/variables.yml happened to correct it near the end of
the integration tests.

I believe this was the only instance.

```console
mitogen git:(issue1182) ✗ ag --python 'int\(.+7\)' . .ci | wc -l
       0
```

fixes #1182
1 year ago
Alex Willmer a35b208acd
Merge pull request #1179 from moreati/prep-v0.3.16
Prepare v0.3.16
1 year ago
Alex Willmer 757527635d Begin v0.3.17dev 1 year ago
Alex Willmer d28dd09e23 Prepare v0.3.16 1 year ago
Alex Willmer df8f11d731
Merge pull request #1176 from moreati/issue1133
CI: Migrate to from macOS 12 to 13 test runners
1 year ago
Alex Willmer 06df62c8b8 CI: Migrated macOS 12 runners to macOS 13, due to EOL.
macOS Python 2.7 jobs have been removed because the macOS 13 image doesn't
include CPython 2.7.
1 year ago