Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.3.4 #1003

Merged
merged 45 commits into from
Jul 2, 2023
Merged

Release 0.3.4 #1003

merged 45 commits into from
Jul 2, 2023

Conversation

moreati
Copy link
Member

@moreati moreati commented Jul 2, 2023

No description provided.

moreati and others added 30 commits June 2, 2022 12:52
The new fully qualified name of the DNF module needs to also be added to the list.

Fixes mitogen-hq#832
The tag is applied by the playbook that imports this one.
e.g. in Ansible 6, ansible-core 2.13

```
[mux  2717] 23:39:11.342416 D mitogen: PkgutilMethod(): _AnsibleCollectionLoader(path=None).get_file_name('ansible.plugins') failed: ValueError('_AnsibleCollectionLoader(path=None) cannot find files for ansible.plugins, only ansible_collections.ansible.builtin.plugins')
```
…precendence

Until Ansible 2.9 it looks like ansible_become_password had higher priority.
From Ansible 2.10 ansible_become_pass has higher priority [1]. Mitogen was not
respecting this.

I may need to rework this further, instatiating the become plugin may have
slowed down execution.

[1] Based on testing with

```
[ubuntus]
become-pass-pass ansible_become_pass=1234
become-pass-password ansible_become_password=1234
become-pass-both ansible_become_password=wrong ansible_become_pass=1234

[ubuntus:vars]
ansible_host=ubuntu2004.local
ansible_user=ubuntu
```
```
- hosts: ubuntus
  gather_facts: false
  become: true
  tasks:
    - ping:
```
For easier grep, and easier identification in task_profiler summaries.
Was failing on my dsktop PC, with a spinning rust HDD
Replaced with ansible_inventory_sources.
They won't be available if the play is first, and hence no facts have been
gather in previous play(s), e.g. due to --start-at-task
moreati and others added 15 commits September 13, 2022 08:29
Reduced execution time of tests/ansible/integration/transport_config/all.yml
from 11 minutes to 49 seconds.
Refs mitogen-hq#925 mitogen-hq#969

I'm not 100% confident that merely removing this is the full fix,
without substituting something else. I am sure keeping it would be
the greater of two evils. __del__() should be avoided on general
principal, and it's associated with multiple intermittant CI
failures, plus multiple user reported issues.
…n_undiscover

tests: Speed up transport config tests by avoiding interpreter discovery
Python 2.6 added json to the stdlib. We no longer support Python <= 2.7 in
Mitogen 0.3.x, so this fallback is unneeded complexity. Fixes mitogen-hq#659
faulthandler is a stdlib module in Python 3.3+. For a long time a PyPI package
of the same name was available for earlier Python releases. That package has
since been removed from PyPI, and the source respoitory archived. So we should
not rely on it.
fixes mitogen-hq#983 refs mitogen-hq#970
I'm abandoning tox-factor because having any [tox] requires = ... causes tox
3.x to create an isolated virtualenv for running tox itself. Since Tox 4.x was
released that virtualenv gets it, which is incompatible with the tox-factor
plugin.
e.g.
```
Traceback (most recent call last):
File
"/Users/runner/work/1/s/.tox/.tox/lib/python3.10/site-packages/tox_factor/compat.py",
line 2, in <module>
    from tox.config.parallel import ENV_VAR_KEY_PUBLIC as TOX_PARALLEL_ENV
ModuleNotFoundError: No module named 'tox.config.parallel'
```
Remove vendored mitogen.compat.simplejson
ansible_mitogen: correct typo in MitogenViaSpec.mitogen_lxc_path()
Without Ubuntu 20.04 virtualenv package being installed pip was installing a
version of virtualenv that couldn't create the Tox environment for Python 2.7.

> Successfully installed distlib-0.3.6 filelock-3.12.2 platformdirs-3.8.0
> pluggy-1.2.0 py-1.11.0 tomli-2.0.1 tox-3.28.0 virtualenv-20.23.1
> Finishing: Install tooling
> ...
> py27-mode_mitogen-distro_centos6 create: /home/vsts/work/1/s/.tox/py27-
> mode_mitogen-distro_centos6
> ERROR: invocation failed (exit code 1), logfile: /home/vsts/work/1/s/.tox/
> py27-mode_mitogen-distro_centos6/log/py27-mode_mitogen-distro_centos6-0.log
> ================================== log start
> ===================================
> RuntimeError: failed to query /usr/bin/python2.7 with code 1 err:
> '  File "/home/vsts/.local/lib/python3.8/site-packages/virtualenv/discovery/
> py_info.py", line 24\n    return list(OrderedDict.fromkeys(["",
> *os.environ.get("PATHEXT", "").lower().split(os.pathsep)]))\n
> ^\nSyntaxError: invalid syntax\n'
CI: Fix tests on Linux, Ansible tests targetting Debian 9 & 11
@moreati moreati requested a review from dw July 2, 2023 09:09
Copy link
Member

@dw dw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! huge thanks for the test documentation cleanups. i saw emails about a broken netlify build, it might have been for the mitogen docs, just drop a mail if they're broken

@moreati moreati merged commit d26ded2 into mitogen-hq:stable Jul 2, 2023
43 checks passed
@moreati moreati deleted the release-0.3.4 branch July 2, 2023 18:30
@amarao
Copy link

amarao commented Jul 3, 2023

Thank you very much!

I've updated collection to use it as a strategy with version patching, I hope it will be adopted by upstream...

https://galaxy.ansible.com/serverscom/mitogen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants