Skip to content

Commit 39dfd2d

Browse files
committed
ci: Upgrade VM Images to macOS 11 and Ubuntu 20.04
1 parent 8cda5f5 commit 39dfd2d

23 files changed

+98
-84
lines changed

.ci/azure-pipelines-steps.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
2-
parameters:
3-
name: ''
4-
pool: ''
5-
sign: false
6-
71
steps:
82
- task: UsePythonVersion@0
93
displayName: Install python
104
inputs:
115
versionSpec: '$(python.version)'
126
condition: ne(variables['python.version'], '')
137

8+
- script: |
9+
sudo apt-get update
10+
sudo apt-get install -y python2-dev
11+
displayName: Install build deps
12+
condition: and(eq(variables['python.version'], ''), eq(variables['Agent.OS'], 'Linux'))
13+
1414
- script: python -mpip install tox
1515
displayName: Install tooling
1616

.ci/azure-pipelines.yml

Lines changed: 4 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -9,61 +9,18 @@
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_4:
37-
python.version: '2.7'
38-
tox.env: py27-mode_localhost-ansible4
39-
40-
# NOTE: this hangs when ran in Ubuntu 18.04
41-
Van_27_210:
42-
python.version: '2.7'
43-
tox.env: py27-mode_localhost-ansible2.10
44-
STRATEGY: linear
45-
ANSIBLE_SKIP_TAGS: resource_intensive
46-
Van_27_4:
47-
python.version: '2.7'
48-
tox.env: py27-mode_localhost-ansible4
49-
STRATEGY: linear
50-
ANSIBLE_SKIP_TAGS: resource_intensive
51-
52-
- job: Mac11
53-
# vanilla Ansible is really slow
54-
timeoutInMinutes: 120
55-
steps:
56-
- template: azure-pipelines-steps.yml
57-
pool:
58-
# 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
5919
vmImage: macOS-11
6020
strategy:
6121
matrix:
6222
Mito_27:
6323
tox.env: py27-mode_mitogen
64-
Mito_37:
65-
python.version: '3.7'
66-
tox.env: py37-mode_mitogen
6724
Mito_310:
6825
python.version: '3.10'
6926
tox.env: py310-mode_mitogen
@@ -86,38 +43,29 @@ jobs:
8643

8744
- job: Linux
8845
pool:
89-
# https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu1804-README.md
90-
vmImage: "Ubuntu 18.04"
46+
# https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2004-Readme.md
47+
vmImage: ubuntu-20.04
9148
steps:
9249
- template: azure-pipelines-steps.yml
9350
strategy:
9451
matrix:
9552
Mito_27_centos6:
96-
python.version: '2.7'
9753
tox.env: py27-mode_mitogen-distro_centos6
9854
Mito_27_centos7:
99-
python.version: '2.7'
10055
tox.env: py27-mode_mitogen-distro_centos7
10156
Mito_27_centos8:
102-
python.version: '2.7'
10357
tox.env: py27-mode_mitogen-distro_centos8
10458
Mito_27_debian9:
105-
python.version: '2.7'
10659
tox.env: py27-mode_mitogen-distro_debian9
10760
Mito_27_debian10:
108-
python.version: '2.7'
10961
tox.env: py27-mode_mitogen-distro_debian10
11062
Mito_27_debian11:
111-
python.version: '2.7'
11263
tox.env: py27-mode_mitogen-distro_debian11
11364
Mito_27_ubuntu1604:
114-
python.version: '2.7'
11565
tox.env: py27-mode_mitogen-distro_ubuntu1604
11666
Mito_27_ubuntu1804:
117-
python.version: '2.7'
11867
tox.env: py27-mode_mitogen-distro_ubuntu1804
11968
Mito_27_ubuntu2004:
120-
python.version: '2.7'
12169
tox.env: py27-mode_mitogen-distro_ubuntu2004
12270

12371
Mito_36_centos6:
@@ -177,10 +125,8 @@ jobs:
177125
tox.env: py310-mode_mitogen-distro_ubuntu2004
178126

179127
Ans_27_210:
180-
python.version: '2.7'
181128
tox.env: py27-mode_ansible-ansible2.10
182129
Ans_27_4:
183-
python.version: '2.7'
184130
tox.env: py27-mode_ansible-ansible4
185131

186132
Ans_36_210:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
pkg_mgr_python_interpreter: /usr/bin/python
2+
pkg_mgr_python_interpreter: python

tests/ansible/integration/module_utils/roles/modrole/library/uses_external3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
from ansible.module_utils.basic import AnsibleModule
44
from ansible.module_utils import external3

tests/ansible/integration/module_utils/roles/overrides_modrole/library/uses_custom_known_hosts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import json
44
import ansible.module_utils.basic

tests/ansible/lib/modules/custom_python_detect_environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
# I am an Ansible new-style Python module. I return details about the Python
33
# interpreter I run within.
44

tests/ansible/lib/modules/custom_python_external_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
# I expect the quote from modules2/module_utils/joker.py.
33

44
from ansible.module_utils.basic import AnsibleModule

tests/ansible/lib/modules/custom_python_external_pkg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
from ansible.module_utils.basic import AnsibleModule
44
from ansible.module_utils.externalpkg import extmod

tests/ansible/lib/modules/custom_python_json_args_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
# I am an Ansible Python JSONARGS module. I should receive an encoding string.
33

44
json_arguments = """<<INCLUDE_ANSIBLE_MODULE_JSON_ARGS>>"""

tests/ansible/lib/modules/custom_python_leaky_class_vars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
# I am an Ansible new-style Python module. I leak state from each invocation
33
# into a class variable and a global variable.
44

0 commit comments

Comments
 (0)