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
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
d71fb67
Begin v0.3.4.dev0
moreati Jun 2, 2022
a30a743
Add ansible.builtin.dnf to ALWAYS_FORK_MODULES
davidmehren Jun 18, 2022
c1e72b8
Fix typo changelog.rst
saady Jun 3, 2022
f070767
tests: Use meaningful play names
moreati Jun 13, 2022
8e79488
tests: Mark or avoid sudo tasks on localhost
moreati Jun 13, 2022
216e7c9
tests: Correct Ansible targets
moreati Jun 13, 2022
c325772
tests: Check and/or suppress stderr of subprocesses, reduce shell=Tru…
moreati Jun 19, 2022
db0ffae
tests: Enable stricter error handling, fix resulting failures
moreati Jul 4, 2022
24c8453
tests: Remove redundant regression tags
moreati Jul 4, 2022
64819ec
tests: Regression test for #776 (package/yum/dnf module called twice)
moreati Jul 4, 2022
eb4a7e0
tests: cleanup subprocess file handles in create_child_test
moreati Jul 4, 2022
e36bbde
tests: Replace uses of assertTrue() with specific methods
moreati Jul 17, 2022
63e39c1
ci: Remove traces of Ansible < 2.10 (not supported in 0.3.x)
moreati Jun 2, 2022
db114d3
ci: Bump Ansible releases used in tests
moreati Jun 2, 2022
195b400
ci: Drop Ansible 3 tests to free up CI capacity
moreati Jun 2, 2022
e8ad12e
Ansible 6 support
moreati Jun 2, 2022
ad4b686
master.PkgutilMethod: Skip module loaders that raise ValueError
moreati Jun 2, 2022
f150387
ansible_mitogen: Correct ansible_become_pass/ansible_become_password …
moreati Jul 4, 2022
8cda5f5
Merge pull request #933 from moreati/ansible6
moreati Jul 24, 2022
39dfd2d
ci: Upgrade VM Images to macOS 11 and Ubuntu 20.04
moreati Aug 25, 2022
00dab14
add SSH args into options documentation
adone Aug 26, 2022
4a5d529
Merge pull request #959 from adone/mitogen_ssh_options_doc
moreati Sep 10, 2022
99fe9d4
tests: Print task durations
moreati Sep 12, 2022
2e8bf73
tests: Print filename of a failed task (Ansible >= 2.11)
moreati Sep 12, 2022
526422b
tests: Name tasks
moreati Sep 12, 2022
900760e
tests: Increase Ansible timeout to reduce false positives
moreati Sep 12, 2022
1ed932e
tests: Eliminate MITOGEN_INVENTORY_FILE
moreati Sep 12, 2022
edd2868
tests: Don't rely on facts when setting become
moreati Sep 12, 2022
7d79c56
tests: Clarify skipped Poller test reasons
moreati Sep 12, 2022
a3a10cb
tests: Upgrade coverage dependency
moreati Sep 12, 2022
572636a
Merge pull request #964 from moreati/test-tweaks
moreati Sep 13, 2022
03acf40
tests: Speed up transport config tests by avoiding interpreter discovery
moreati Oct 18, 2022
0af2ce8
Remove ansible_mitogen Connection.close() workaround
moreati Oct 31, 2022
392c41d
ci: Ignore WALinuxAgent processes in Azure Piplines CI runner
moreati Nov 2, 2022
a47b9f3
Merge pull request #969 from moreati/transport_config_python_undiscover
moreati Nov 6, 2022
1871f2a
Remove vendored mitogen.compat.simplejson
moreati Sep 12, 2022
21cb4a3
CI: Remove faulthandler fallback requirement
moreati Feb 5, 2023
8151577
CI: Limit to Tox < 4.0 to avoid plugin incompatibility
moreati Feb 5, 2023
d488b5e
Merge pull request #965 from moreati/evict-simplejson
moreati Feb 5, 2023
317a2ab
ansible_mitogen: correct typo in MitogenViaSpec.mitogen_lxc_path()
InsanePrawn Jan 18, 2023
330375b
Merge pull request #980 from InsanePrawn/transport_lxc_fix
moreati Feb 5, 2023
19b79f7
CI: Fix tests on Linux, Ansible tests targetting Debian 9 & 11
moreati Jul 1, 2023
5602445
Merge pull request #1001 from moreati/ci-fixup
moreati Jul 1, 2023
f18f516
Prep for v0.3.4
moreati Jul 2, 2023
b4d910a
Merge commit 'f18f516' into release-0.3.4
moreati Jul 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .ci/ansible_tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# Run tests/ansible/all.yml under Ansible and Ansible-Mitogen

import collections
import glob
import os
import signal
Expand Down Expand Up @@ -44,6 +45,12 @@ def pause_if_interactive():
if not path.endswith('default.hosts'):
ci_lib.run("ln -s %s %s", path, HOSTS_DIR)

distros = collections.defaultdict(list)
families = collections.defaultdict(list)
for container in containers:
distros[container['distro']].append(container['name'])
families[container['family']].append(container['name'])

inventory_path = os.path.join(HOSTS_DIR, 'target')
with open(inventory_path, 'w') as fp:
fp.write('[test-targets]\n')
Expand All @@ -59,6 +66,16 @@ def pause_if_interactive():
for container in containers
)

for distro, hostnames in sorted(distros.items(), key=lambda t: t[0]):
fp.write('\n[%s]\n' % distro)
fp.writelines('%s\n' % name for name in hostnames)

for family, hostnames in sorted(families.items(), key=lambda t: t[0]):
fp.write('\n[%s]\n' % family)
fp.writelines('%s\n' % name for name in hostnames)

fp.write('\n[linux:children]\ntest-targets\n')

ci_lib.dump_file(inventory_path)

if not ci_lib.exists_in_path('sshpass'):
Expand Down
22 changes: 17 additions & 5 deletions .ci/azure-pipelines-steps.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Each step entry runs a task (Azure Pipelines analog of an Ansible module).
# https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/?view=azure-pipelines&viewFallbackFrom=azure-devops#tool

parameters:
name: ''
pool: ''
sign: false
# `{script: ...}` is shorthand for `{task: CmdLine@<mumble>, inputs: {script: ...}}`.
# https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/steps-script?view=azure-pipelines
# https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/cmd-line-v2?view=azure-pipelines

steps:
- task: UsePythonVersion@0
Expand All @@ -11,7 +12,18 @@ steps:
versionSpec: '$(python.version)'
condition: ne(variables['python.version'], '')

- script: python -mpip install tox
- script: |
type python
python --version
displayName: Show python version

- script: |
sudo apt-get update
sudo apt-get install -y python2-dev python3-pip virtualenv
displayName: Install build deps
condition: and(eq(variables['python.version'], ''), eq(variables['Agent.OS'], 'Linux'))

- script: python -mpip install "tox<4.0"
displayName: Install tooling

- script: python -mtox -e "$(tox.env)"
Expand Down
122 changes: 7 additions & 115 deletions .ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,78 +9,25 @@
#ANSIBLE_VERBOSITY: 3

jobs:
- job: Mac1015
- job: mac11
# vanilla Ansible is really slow
timeoutInMinutes: 120
steps:
- template: azure-pipelines-steps.yml
pool:
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md
vmImage: macOS-10.15
strategy:
matrix:
Mito_27:
python.version: '2.7'
tox.env: py27-mode_mitogen
Mito_36:
python.version: '3.6'
tox.env: py36-mode_mitogen
Mito_310:
python.version: '3.10'
tox.env: py310-mode_mitogen

# TODO: test python3, python3 tests are broken
Loc_27_210:
python.version: '2.7'
tox.env: py27-mode_localhost-ansible2.10
Loc_27_3:
python.version: '2.7'
tox.env: py27-mode_localhost-ansible3
Loc_27_4:
python.version: '2.7'
tox.env: py27-mode_localhost-ansible4

# NOTE: this hangs when ran in Ubuntu 18.04
Van_27_210:
python.version: '2.7'
tox.env: py27-mode_localhost-ansible2.10
STRATEGY: linear
ANSIBLE_SKIP_TAGS: resource_intensive
Van_27_3:
python.version: '2.7'
tox.env: py27-mode_localhost-ansible3
STRATEGY: linear
ANSIBLE_SKIP_TAGS: resource_intensive
Van_27_4:
python.version: '2.7'
tox.env: py27-mode_localhost-ansible4
STRATEGY: linear
ANSIBLE_SKIP_TAGS: resource_intensive

- job: Mac11
# vanilla Ansible is really slow
timeoutInMinutes: 120
steps:
- template: azure-pipelines-steps.yml
pool:
# https://github.com/actions/virtual-environments/blob/main/images/macos/
# https://github.com/actions/runner-images/blob/main/images/macos/macos-11-Readme.md
vmImage: macOS-11
strategy:
matrix:
Mito_27:
tox.env: py27-mode_mitogen
Mito_37:
python.version: '3.7'
tox.env: py37-mode_mitogen
Mito_310:
python.version: '3.10'
tox.env: py310-mode_mitogen

# TODO: test python3, python3 tests are broken
Loc_27_210:
tox.env: py27-mode_localhost-ansible2.10
Loc_27_3:
tox.env: py27-mode_localhost-ansible3
Loc_27_4:
tox.env: py27-mode_localhost-ansible4

Expand All @@ -89,49 +36,36 @@ jobs:
tox.env: py27-mode_localhost-ansible2.10
STRATEGY: linear
ANSIBLE_SKIP_TAGS: resource_intensive
Van_27_3:
tox.env: py27-mode_localhost-ansible3
STRATEGY: linear
ANSIBLE_SKIP_TAGS: resource_intensive
Van_27_4:
tox.env: py27-mode_localhost-ansible4
STRATEGY: linear
ANSIBLE_SKIP_TAGS: resource_intensive

- job: Linux
pool:
# https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu1804-README.md
vmImage: "Ubuntu 18.04"
# https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2004-Readme.md
vmImage: ubuntu-20.04
steps:
- template: azure-pipelines-steps.yml
strategy:
matrix:
Mito_27_centos6:
python.version: '2.7'
tox.env: py27-mode_mitogen-distro_centos6
Mito_27_centos7:
python.version: '2.7'
tox.env: py27-mode_mitogen-distro_centos7
Mito_27_centos8:
python.version: '2.7'
tox.env: py27-mode_mitogen-distro_centos8
Mito_27_debian9:
python.version: '2.7'
tox.env: py27-mode_mitogen-distro_debian9
Mito_27_debian10:
python.version: '2.7'
tox.env: py27-mode_mitogen-distro_debian10
Mito_27_debian11:
python.version: '2.7'
tox.env: py27-mode_mitogen-distro_debian11
Mito_27_ubuntu1604:
python.version: '2.7'
tox.env: py27-mode_mitogen-distro_ubuntu1604
Mito_27_ubuntu1804:
python.version: '2.7'
tox.env: py27-mode_mitogen-distro_ubuntu1804
Mito_27_ubuntu2004:
python.version: '2.7'
tox.env: py27-mode_mitogen-distro_ubuntu2004

Mito_36_centos6:
Expand Down Expand Up @@ -190,59 +124,14 @@ jobs:
python.version: '3.10'
tox.env: py310-mode_mitogen-distro_ubuntu2004

#DebOps_2460_27_27:
#python.version: '2.7'
#MODE: debops_common
#VER: 2.4.6.0

#DebOps_262_36_27:
#python.version: '3.6'
#MODE: debops_common
#VER: 2.6.2

#Ansible_2460_26:
#python.version: '2.7'
#MODE: ansible
#VER: 2.4.6.0

#Ansible_262_26:
#python.version: '2.7'
#MODE: ansible
#VER: 2.6.2

#Ansible_2460_36:
#python.version: '3.6'
#MODE: ansible
#VER: 2.4.6.0

#Ansible_262_36:
#python.version: '3.6'
#MODE: ansible
#VER: 2.6.2

#Vanilla_262_27:
#python.version: '2.7'
#MODE: ansible
#VER: 2.6.2
#DISTROS: debian
#STRATEGY: linear

Ans_27_210:
python.version: '2.7'
tox.env: py27-mode_ansible-ansible2.10
Ans_27_3:
python.version: '2.7'
tox.env: py27-mode_ansible-ansible3
Ans_27_4:
python.version: '2.7'
tox.env: py27-mode_ansible-ansible4

Ans_36_210:
python.version: '3.6'
tox.env: py36-mode_ansible-ansible2.10
Ans_36_3:
python.version: '3.6'
tox.env: py36-mode_ansible-ansible3
Ans_36_4:
python.version: '3.6'
tox.env: py36-mode_ansible-ansible4
Expand All @@ -259,3 +148,6 @@ jobs:
Ans_310_5:
python.version: '3.10'
tox.env: py310-mode_ansible-ansible5
Ans_310_6:
python.version: '3.10'
tox.env: py310-mode_ansible-ansible6
Loading
Loading