Skip to content

Commit b4d910a

Browse files
committed
Merge commit 'f18f516' into release-0.3.4
2 parents 660d3e0 + f18f516 commit b4d910a

File tree

204 files changed

+913
-2101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+913
-2101
lines changed

.ci/ansible_tests.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python
22
# Run tests/ansible/all.yml under Ansible and Ansible-Mitogen
33

4+
import collections
45
import glob
56
import os
67
import signal
@@ -44,6 +45,12 @@ def pause_if_interactive():
4445
if not path.endswith('default.hosts'):
4546
ci_lib.run("ln -s %s %s", path, HOSTS_DIR)
4647

48+
distros = collections.defaultdict(list)
49+
families = collections.defaultdict(list)
50+
for container in containers:
51+
distros[container['distro']].append(container['name'])
52+
families[container['family']].append(container['name'])
53+
4754
inventory_path = os.path.join(HOSTS_DIR, 'target')
4855
with open(inventory_path, 'w') as fp:
4956
fp.write('[test-targets]\n')
@@ -59,6 +66,16 @@ def pause_if_interactive():
5966
for container in containers
6067
)
6168

69+
for distro, hostnames in sorted(distros.items(), key=lambda t: t[0]):
70+
fp.write('\n[%s]\n' % distro)
71+
fp.writelines('%s\n' % name for name in hostnames)
72+
73+
for family, hostnames in sorted(families.items(), key=lambda t: t[0]):
74+
fp.write('\n[%s]\n' % family)
75+
fp.writelines('%s\n' % name for name in hostnames)
76+
77+
fp.write('\n[linux:children]\ntest-targets\n')
78+
6279
ci_lib.dump_file(inventory_path)
6380

6481
if not ci_lib.exists_in_path('sshpass'):

.ci/azure-pipelines-steps.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
# Each step entry runs a task (Azure Pipelines analog of an Ansible module).
2+
# https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/?view=azure-pipelines&viewFallbackFrom=azure-devops#tool
13

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

78
steps:
89
- task: UsePythonVersion@0
@@ -11,7 +12,18 @@ steps:
1112
versionSpec: '$(python.version)'
1213
condition: ne(variables['python.version'], '')
1314

14-
- script: python -mpip install tox
15+
- script: |
16+
type python
17+
python --version
18+
displayName: Show python version
19+
20+
- script: |
21+
sudo apt-get update
22+
sudo apt-get install -y python2-dev python3-pip virtualenv
23+
displayName: Install build deps
24+
condition: and(eq(variables['python.version'], ''), eq(variables['Agent.OS'], 'Linux'))
25+
26+
- script: python -mpip install "tox<4.0"
1527
displayName: Install tooling
1628

1729
- script: python -mtox -e "$(tox.env)"

.ci/azure-pipelines.yml

Lines changed: 7 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -9,78 +9,25 @@
99
#ANSIBLE_VERBOSITY: 3
1010

1111
jobs:
12-
- job: Mac1015
12+
- job: mac11
1313
# vanilla Ansible is really slow
1414
timeoutInMinutes: 120
1515
steps:
1616
- template: azure-pipelines-steps.yml
1717
pool:
18-
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md
19-
vmImage: macOS-10.15
20-
strategy:
21-
matrix:
22-
Mito_27:
23-
python.version: '2.7'
24-
tox.env: py27-mode_mitogen
25-
Mito_36:
26-
python.version: '3.6'
27-
tox.env: py36-mode_mitogen
28-
Mito_310:
29-
python.version: '3.10'
30-
tox.env: py310-mode_mitogen
31-
32-
# TODO: test python3, python3 tests are broken
33-
Loc_27_210:
34-
python.version: '2.7'
35-
tox.env: py27-mode_localhost-ansible2.10
36-
Loc_27_3:
37-
python.version: '2.7'
38-
tox.env: py27-mode_localhost-ansible3
39-
Loc_27_4:
40-
python.version: '2.7'
41-
tox.env: py27-mode_localhost-ansible4
42-
43-
# NOTE: this hangs when ran in Ubuntu 18.04
44-
Van_27_210:
45-
python.version: '2.7'
46-
tox.env: py27-mode_localhost-ansible2.10
47-
STRATEGY: linear
48-
ANSIBLE_SKIP_TAGS: resource_intensive
49-
Van_27_3:
50-
python.version: '2.7'
51-
tox.env: py27-mode_localhost-ansible3
52-
STRATEGY: linear
53-
ANSIBLE_SKIP_TAGS: resource_intensive
54-
Van_27_4:
55-
python.version: '2.7'
56-
tox.env: py27-mode_localhost-ansible4
57-
STRATEGY: linear
58-
ANSIBLE_SKIP_TAGS: resource_intensive
59-
60-
- job: Mac11
61-
# vanilla Ansible is really slow
62-
timeoutInMinutes: 120
63-
steps:
64-
- template: azure-pipelines-steps.yml
65-
pool:
66-
# https://github.com/actions/virtual-environments/blob/main/images/macos/
18+
# https://github.com/actions/runner-images/blob/main/images/macos/macos-11-Readme.md
6719
vmImage: macOS-11
6820
strategy:
6921
matrix:
7022
Mito_27:
7123
tox.env: py27-mode_mitogen
72-
Mito_37:
73-
python.version: '3.7'
74-
tox.env: py37-mode_mitogen
7524
Mito_310:
7625
python.version: '3.10'
7726
tox.env: py310-mode_mitogen
7827

7928
# TODO: test python3, python3 tests are broken
8029
Loc_27_210:
8130
tox.env: py27-mode_localhost-ansible2.10
82-
Loc_27_3:
83-
tox.env: py27-mode_localhost-ansible3
8431
Loc_27_4:
8532
tox.env: py27-mode_localhost-ansible4
8633

@@ -89,49 +36,36 @@ jobs:
8936
tox.env: py27-mode_localhost-ansible2.10
9037
STRATEGY: linear
9138
ANSIBLE_SKIP_TAGS: resource_intensive
92-
Van_27_3:
93-
tox.env: py27-mode_localhost-ansible3
94-
STRATEGY: linear
95-
ANSIBLE_SKIP_TAGS: resource_intensive
9639
Van_27_4:
9740
tox.env: py27-mode_localhost-ansible4
9841
STRATEGY: linear
9942
ANSIBLE_SKIP_TAGS: resource_intensive
10043

10144
- job: Linux
10245
pool:
103-
# https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu1804-README.md
104-
vmImage: "Ubuntu 18.04"
46+
# https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2004-Readme.md
47+
vmImage: ubuntu-20.04
10548
steps:
10649
- template: azure-pipelines-steps.yml
10750
strategy:
10851
matrix:
10952
Mito_27_centos6:
110-
python.version: '2.7'
11153
tox.env: py27-mode_mitogen-distro_centos6
11254
Mito_27_centos7:
113-
python.version: '2.7'
11455
tox.env: py27-mode_mitogen-distro_centos7
11556
Mito_27_centos8:
116-
python.version: '2.7'
11757
tox.env: py27-mode_mitogen-distro_centos8
11858
Mito_27_debian9:
119-
python.version: '2.7'
12059
tox.env: py27-mode_mitogen-distro_debian9
12160
Mito_27_debian10:
122-
python.version: '2.7'
12361
tox.env: py27-mode_mitogen-distro_debian10
12462
Mito_27_debian11:
125-
python.version: '2.7'
12663
tox.env: py27-mode_mitogen-distro_debian11
12764
Mito_27_ubuntu1604:
128-
python.version: '2.7'
12965
tox.env: py27-mode_mitogen-distro_ubuntu1604
13066
Mito_27_ubuntu1804:
131-
python.version: '2.7'
13267
tox.env: py27-mode_mitogen-distro_ubuntu1804
13368
Mito_27_ubuntu2004:
134-
python.version: '2.7'
13569
tox.env: py27-mode_mitogen-distro_ubuntu2004
13670

13771
Mito_36_centos6:
@@ -190,59 +124,14 @@ jobs:
190124
python.version: '3.10'
191125
tox.env: py310-mode_mitogen-distro_ubuntu2004
192126

193-
#DebOps_2460_27_27:
194-
#python.version: '2.7'
195-
#MODE: debops_common
196-
#VER: 2.4.6.0
197-
198-
#DebOps_262_36_27:
199-
#python.version: '3.6'
200-
#MODE: debops_common
201-
#VER: 2.6.2
202-
203-
#Ansible_2460_26:
204-
#python.version: '2.7'
205-
#MODE: ansible
206-
#VER: 2.4.6.0
207-
208-
#Ansible_262_26:
209-
#python.version: '2.7'
210-
#MODE: ansible
211-
#VER: 2.6.2
212-
213-
#Ansible_2460_36:
214-
#python.version: '3.6'
215-
#MODE: ansible
216-
#VER: 2.4.6.0
217-
218-
#Ansible_262_36:
219-
#python.version: '3.6'
220-
#MODE: ansible
221-
#VER: 2.6.2
222-
223-
#Vanilla_262_27:
224-
#python.version: '2.7'
225-
#MODE: ansible
226-
#VER: 2.6.2
227-
#DISTROS: debian
228-
#STRATEGY: linear
229-
230127
Ans_27_210:
231-
python.version: '2.7'
232128
tox.env: py27-mode_ansible-ansible2.10
233-
Ans_27_3:
234-
python.version: '2.7'
235-
tox.env: py27-mode_ansible-ansible3
236129
Ans_27_4:
237-
python.version: '2.7'
238130
tox.env: py27-mode_ansible-ansible4
239131

240132
Ans_36_210:
241133
python.version: '3.6'
242134
tox.env: py36-mode_ansible-ansible2.10
243-
Ans_36_3:
244-
python.version: '3.6'
245-
tox.env: py36-mode_ansible-ansible3
246135
Ans_36_4:
247136
python.version: '3.6'
248137
tox.env: py36-mode_ansible-ansible4
@@ -259,3 +148,6 @@ jobs:
259148
Ans_310_5:
260149
python.version: '3.10'
261150
tox.env: py310-mode_ansible-ansible5
151+
Ans_310_6:
152+
python.version: '3.10'
153+
tox.env: py310-mode_ansible-ansible6

0 commit comments

Comments
 (0)