Skip to content

Commit

Permalink
Re-organize CI test groups for POSIX tests. (ansible#77420)
Browse files Browse the repository at this point in the history
* `context/target` tests must be in groups 1 - 2.
* `context/controller` tests must be in groups 3 - 5.

This makes it easier to efficiently organize groups and balance test runtimes.
  • Loading branch information
mattclay committed Aug 4, 2022
1 parent 7e634f5 commit 02e9881
Show file tree
Hide file tree
Showing 195 changed files with 244 additions and 193 deletions.
25 changes: 25 additions & 0 deletions .azure-pipelines/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,18 @@ stages:
groups:
- 1
- 2
- template: templates/matrix.yml
parameters:
targets:
- name: macOS 12.0
test: macos/12.0
- name: RHEL 8.6
test: rhel/8.6
- name: RHEL 9.0
test: rhel/9.0
- name: FreeBSD 13.1
test: freebsd/13.1
groups:
- 3
- 4
- 5
Expand Down Expand Up @@ -131,6 +143,19 @@ stages:
groups:
- 1
- 2
- template: templates/matrix.yml
parameters:
testFormat: linux/{0}
targets:
- name: Alpine 3
test: alpine3
- name: Fedora 35
test: fedora35
- name: Fedora 36
test: fedora36
- name: Ubuntu 22.04
test: ubuntu2204
groups:
- 3
- 4
- 5
Expand Down
2 changes: 1 addition & 1 deletion test/integration/targets/adhoc/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group2
shippable/posix/group4
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/ansible-doc/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group1
shippable/posix/group5
context/controller
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group4
shippable/posix/group5
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/ansible-galaxy-role/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group4
shippable/posix/group3
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/ansible-galaxy/aliases
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
destructive
shippable/posix/group4
shippable/posix/group5
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/ansible-inventory/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group5
shippable/posix/group4
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/ansible-pull/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group3
shippable/posix/group5
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/ansible-runner/aliases
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
shippable/posix/group3
shippable/posix/group5
context/controller
skip/osx
skip/macos
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
needs/httptester # using legacy alias for testing purposes
shippable/posix/group1
shippable/posix/group3
context/controller
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
shippable/posix/group1 # runs in the distro test containers
shippable/posix/group3 # runs in the distro test containers
shippable/generic/group1 # runs in the default test container
context/controller
needs/target/collection
2 changes: 1 addition & 1 deletion test/integration/targets/ansible-test-config/aliases
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
shippable/posix/group1 # runs in the distro test containers
shippable/posix/group3 # runs in the distro test containers
shippable/generic/group1 # runs in the default test container
context/controller
needs/target/collection
2 changes: 1 addition & 1 deletion test/integration/targets/ansible-test-no-tty/aliases
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
context/controller
shippable/posix/group1 # runs in the distro test containers
shippable/posix/group3 # runs in the distro test containers
shippable/generic/group1 # runs in the default test container
needs/target/collection
2 changes: 1 addition & 1 deletion test/integration/targets/ansible-test-sanity-lint/aliases
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
shippable/posix/group1 # runs in the distro test containers
shippable/posix/group3 # runs in the distro test containers
shippable/generic/group1 # runs in the default test container
context/controller
needs/target/collection
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
shippable/posix/group1 # runs in the distro test containers
shippable/posix/group3 # runs in the distro test containers
shippable/generic/group1 # runs in the default test container
context/controller
needs/target/collection
2 changes: 1 addition & 1 deletion test/integration/targets/ansible-test-shell/aliases
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
shippable/posix/group1 # runs in the distro test containers
shippable/posix/group3 # runs in the distro test containers
shippable/generic/group1 # runs in the default test container
context/controller
needs/target/collection
2 changes: 1 addition & 1 deletion test/integration/targets/ansible-test/aliases
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
shippable/posix/group1 # runs in the distro test containers
shippable/posix/group3 # runs in the distro test containers
shippable/generic/group1 # runs in the default test container
context/controller
needs/target/collection
Expand Down
2 changes: 1 addition & 1 deletion test/integration/targets/ansible-vault/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group3
shippable/posix/group5
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/ansible/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group4
shippable/posix/group3
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/any_errors_fatal/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group3
shippable/posix/group5
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/apt/aliases
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
shippable/posix/group5
shippable/posix/group2
destructive
skip/freebsd
skip/osx
Expand Down
2 changes: 1 addition & 1 deletion test/integration/targets/args/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group3
shippable/posix/group5
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/argspec/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group5
shippable/posix/group4
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/assert/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group3
shippable/posix/group5
context/controller # this is a controller-only action, the module is just for documentation
2 changes: 1 addition & 1 deletion test/integration/targets/async_extra_data/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group5
shippable/posix/group2
context/target
2 changes: 1 addition & 1 deletion test/integration/targets/become_su/aliases
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
destructive
shippable/posix/group1
shippable/posix/group3
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/become_unprivileged/aliases
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
destructive
shippable/posix/group1
shippable/posix/group3
needs/ssh
needs/root
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/binary_modules_posix/aliases
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
shippable/posix/group3
shippable/posix/group2
needs/target/binary_modules
context/target
2 changes: 1 addition & 1 deletion test/integration/targets/blocks/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group3
shippable/posix/group5
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/builtin_vars_prompt/aliases
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
setup/always/setup_passlib
setup/always/setup_pexpect
shippable/posix/group4
shippable/posix/group3
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/callback_default/aliases
Original file line number Diff line number Diff line change
@@ -1 +1 @@
shippable/posix/group1
shippable/posix/group3
2 changes: 1 addition & 1 deletion test/integration/targets/changed_when/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group2
shippable/posix/group4
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/check_mode/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group3
shippable/posix/group5
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/cli/aliases
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ destructive
needs/root
needs/ssh
needs/target/setup_pexpect
shippable/posix/group3
shippable/posix/group5
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/collections/aliases
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
posix
shippable/posix/group4
shippable/posix/group1
shippable/windows/group1
windows
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group1
shippable/posix/group3
context/controller
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group4
shippable/posix/group3
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/command_nonexisting/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group2
shippable/posix/group4
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/common_network/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group5
shippable/posix/group4
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/conditionals/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group1
shippable/posix/group3
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/config/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group1
shippable/posix/group3
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/connection_delegation/aliases
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
shippable/posix/group1
shippable/posix/group3
context/controller
skip/freebsd # No sshpass
skip/osx # No sshpass
Expand Down
2 changes: 1 addition & 1 deletion test/integration/targets/connection_local/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group3
shippable/posix/group5
needs/target/connection
2 changes: 1 addition & 1 deletion test/integration/targets/connection_paramiko_ssh/aliases
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
needs/ssh
shippable/posix/group3
shippable/posix/group5
needs/target/setup_paramiko
needs/target/connection
destructive # potentially installs/uninstalls OS packages via setup_paramiko
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group3
shippable/posix/group5
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/connection_ssh/aliases
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
needs/ssh
shippable/posix/group1
shippable/posix/group3
needs/target/connection
2 changes: 1 addition & 1 deletion test/integration/targets/controller/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
context/controller
shippable/posix/group1
shippable/posix/group3
2 changes: 1 addition & 1 deletion test/integration/targets/cron/aliases
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
destructive
shippable/posix/group4
shippable/posix/group1
skip/osx
skip/macos
2 changes: 1 addition & 1 deletion test/integration/targets/dataloader/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group1
shippable/posix/group3
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/debug/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group1
shippable/posix/group3
context/controller # this is a controller-only action, the module is just for documentation
2 changes: 1 addition & 1 deletion test/integration/targets/debugger/aliases
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
shippable/posix/group1
shippable/posix/group3
context/controller
setup/always/setup_pexpect
2 changes: 1 addition & 1 deletion test/integration/targets/delegate_to/aliases
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
shippable/posix/group3
shippable/posix/group5
needs/ssh
needs/root # only on macOS and FreeBSD to configure network interfaces
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/dict_transformations/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group1
shippable/posix/group3
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/dnf/aliases
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
destructive
shippable/posix/group4
shippable/posix/group1
skip/power/centos
skip/freebsd
skip/osx
Expand Down
2 changes: 1 addition & 1 deletion test/integration/targets/egg-info/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group1
shippable/posix/group3
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/entry_points/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
context/controller
shippable/posix/group5
shippable/posix/group4
2 changes: 1 addition & 1 deletion test/integration/targets/environment/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group3
shippable/posix/group2
context/target
2 changes: 1 addition & 1 deletion test/integration/targets/error_from_connection/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group2
shippable/posix/group4
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/facts_linux_network/aliases
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
needs/privileged
shippable/posix/group2
shippable/posix/group1
skip/freebsd
skip/osx
skip/macos
Expand Down
2 changes: 1 addition & 1 deletion test/integration/targets/failed_when/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group2
shippable/posix/group4
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/filter_core/aliases
Original file line number Diff line number Diff line change
@@ -1 +1 @@
shippable/posix/group2
shippable/posix/group4
2 changes: 1 addition & 1 deletion test/integration/targets/filter_encryption/aliases
Original file line number Diff line number Diff line change
@@ -1 +1 @@
shippable/posix/group2
shippable/posix/group4
2 changes: 1 addition & 1 deletion test/integration/targets/filter_mathstuff/aliases
Original file line number Diff line number Diff line change
@@ -1 +1 @@
shippable/posix/group2
shippable/posix/group4
2 changes: 1 addition & 1 deletion test/integration/targets/filter_urls/aliases
Original file line number Diff line number Diff line change
@@ -1 +1 @@
shippable/posix/group2
shippable/posix/group4
2 changes: 1 addition & 1 deletion test/integration/targets/filter_urlsplit/aliases
Original file line number Diff line number Diff line change
@@ -1 +1 @@
shippable/posix/group2
shippable/posix/group4
2 changes: 1 addition & 1 deletion test/integration/targets/gathering/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group3
shippable/posix/group5
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/gathering_facts/aliases
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
shippable/posix/group3
shippable/posix/group5
needs/root
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/git/aliases
Original file line number Diff line number Diff line change
@@ -1 +1 @@
shippable/posix/group4
shippable/posix/group1
2 changes: 1 addition & 1 deletion test/integration/targets/group_by/aliases
Original file line number Diff line number Diff line change
@@ -1 +1 @@
shippable/posix/group3
shippable/posix/group2
2 changes: 1 addition & 1 deletion test/integration/targets/groupby_filter/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group2
shippable/posix/group4
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/handler_race/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group5
shippable/posix/group4
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/handlers/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group5
shippable/posix/group4
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/hardware_facts/aliases
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
destructive
needs/privileged
shippable/posix/group2
shippable/posix/group4
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/hash/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group3
shippable/posix/group5
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/hosts_field/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group3
shippable/posix/group5
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/ignore_errors/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group4
shippable/posix/group3
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/ignore_unreachable/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group3
shippable/posix/group5
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/import_tasks/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group5
shippable/posix/group4
context/controller # this is a controller-only action, the module is just for documentation
2 changes: 1 addition & 1 deletion test/integration/targets/include_import/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group5
shippable/posix/group4
context/controller
2 changes: 1 addition & 1 deletion test/integration/targets/include_vars-ad-hoc/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shippable/posix/group2
shippable/posix/group4
context/controller
Loading

0 comments on commit 02e9881

Please sign in to comment.