Skip to content

Commit

Permalink
upstream CI: Use start.sh script and environment template
Browse files Browse the repository at this point in the history
The upstream CI tests can be simplified by using the script
infra/image/start.sh to start the testing container and using a steps
template playbook to prepare the environment.

Although not required, the environment and test template separation
aid on the future modification of the pipelines.
  • Loading branch information
rjeffman committed Oct 15, 2024
1 parent 6e22c0d commit feaea64
Show file tree
Hide file tree
Showing 12 changed files with 180 additions and 469 deletions.
24 changes: 16 additions & 8 deletions infra/azure/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ trigger:
- master

pool:
vmImage: 'ubuntu-20.04'
vmImage: 'ubuntu-22.04'

stages:

Expand All @@ -15,8 +15,9 @@ stages:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-latest
distro: fedora-latest
ansible_version: "-core"
filter_tests: false

# Fedora

Expand All @@ -26,8 +27,9 @@ stages:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-latest
distro: fedora-latest
ansible_version: "-core <2.14"
filter_tests: false

# Fedora

Expand All @@ -37,19 +39,22 @@ stages:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-latest
distro: fedora-latest
ansible_version: "-core >=2.14,<2.15"
filter_tests: false

# Galaxy on Fedora

- stage: Galaxy_Fedora_Latest
dependsOn: []
jobs:
- template: templates/galaxy_tests.yml
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-latest
distro: fedora-latest
ansible_version: "-core >=2.14,<2.15"
filter_tests: false
test_galaxy: true

# CentOS 9 Stream

Expand All @@ -59,8 +64,9 @@ stages:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: c9s
distro: c9s
ansible_version: "-core >=2.14,<2.15"
filter_tests: false

# CentOS 8 Stream

Expand All @@ -70,5 +76,7 @@ stages:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: c8s
distro: c8s
ansible_version: "-core >=2.14,<2.15"
target_python: "/usr/libexec/platform-python"
filter_tests: false
76 changes: 52 additions & 24 deletions infra/azure/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,73 +22,85 @@ stages:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-latest
distro: fedora-latest
ansible_version: "-core >=2.13,<2.14"
filter_tests: false

- stage: FedoraLatest_Ansible_Core_2_14
dependsOn: []
jobs:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-latest
distro: fedora-latest
ansible_version: "-core >=2.14,<2.15"
filter_tests: false

- stage: FedoraLatest_Ansible_Core_2_15
dependsOn: []
jobs:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-latest
distro: fedora-latest
ansible_version: "-core >=2.15,<2.16"
filter_tests: false

- stage: FedoraLatest_Ansible_latest
dependsOn: []
jobs:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-latest
distro: fedora-latest
ansible_version: ""
filter_tests: false

# Galaxy on Fedora

- stage: Galaxy_FedoraLatest_Ansible_Core_2_13
dependsOn: []
jobs:
- template: templates/galaxy_tests.yml
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-latest
distro: fedora-latest
ansible_version: "-core >=2.13,<2.14"
filter_tests: false
test_galaxy: true

- stage: Galaxy_FedoraLatest_Ansible_Core_2_14
dependsOn: []
jobs:
- template: templates/galaxy_tests.yml
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-latest
distro: fedora-latest
ansible_version: "-core >=2.14,<2.15"
filter_tests: false
test_galaxy: true

- stage: Galaxy_FedoraLatest_Ansible_Core_2_15
dependsOn: []
jobs:
- template: templates/galaxy_tests.yml
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-latest
distro: fedora-latest
ansible_version: "-core >=2.15,<2.16"
filter_tests: false
test_galaxy: true

- stage: Galaxy_FedoraLatest_Ansible_latest
dependsOn: []
jobs:
- template: templates/galaxy_tests.yml
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-latest
distro: fedora-latest
ansible_version: ""
filter_tests: false
test_galaxy: true

# Fedora Rawhide

Expand All @@ -98,35 +110,39 @@ stages:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-rawhide
distro: fedora-rawhide
ansible_version: "-core >=2.13,<2.14"
filter_tests: false

- stage: FedoraRawhide_Ansible_Core_2_14
dependsOn: []
jobs:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-rawhide
distro: fedora-rawhide
ansible_version: "-core >=2.14,<2.15"
filter_tests: false

- stage: FedoraRawhide_Ansible_Core_2_15
dependsOn: []
jobs:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-rawhide
distro: fedora-rawhide
ansible_version: "-core >=2.15,<2.16"
filter_tests: false

- stage: FedoraRawhide_Ansible_latest
dependsOn: []
jobs:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-rawhide
distro: fedora-rawhide
ansible_version: ""
filter_tests: false

# CentoOS 9 Stream

Expand All @@ -136,35 +152,39 @@ stages:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: c9s
distro: c9s
ansible_version: "-core >=2.13,<2.14"
filter_tests: false

- stage: c9s_Ansible_Core_2_14
dependsOn: []
jobs:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: c9s
distro: c9s
ansible_version: "-core >=2.14,<2.15"
filter_tests: false

- stage: c9s_Ansible_Core_2_15
dependsOn: []
jobs:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: c9s
distro: c9s
ansible_version: "-core >=2.15,<2.16"
filter_tests: false

- stage: c9s_Ansible_latest
dependsOn: []
jobs:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: c9s
distro: c9s
ansible_version: ""
filter_tests: false

# CentOS 8 Stream

Expand All @@ -174,32 +194,40 @@ stages:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: c8s
distro: c8s
ansible_version: "-core >=2.13,<2.14"
target_python: "/usr/libexec/platform-python"
filter_tests: false

- stage: c8s_Ansible_Core_2_14
dependsOn: []
jobs:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: c8s
distro: c8s
ansible_version: "-core >=2.14,<2.15"
target_python: "/usr/libexec/platform-python"
filter_tests: false

- stage: c8s_Ansible_Core_2_15
dependsOn: []
jobs:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: c8s
distro: c8s
ansible_version: "-core >=2.15,<2.16"
target_python: "/usr/libexec/platform-python"
filter_tests: false

- stage: c8s_Ansible_latest
dependsOn: []
jobs:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: c8s
distro: c8s
ansible_version: ""
target_python: "/usr/libexec/platform-python"
filter_tests: false
16 changes: 11 additions & 5 deletions infra/azure/pr-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,53 +12,59 @@ stages:
- stage: Fedora_Latest
dependsOn: []
jobs:
- template: templates/fast_tests.yml
- template: templates/run_tests.yml
parameters:
build_number: $(Build.BuildNumber)
distro: fedora-latest
ansible_version: "-core >=2.15,<2.16"
filter_tests: true

# Galaxy on Fedora

- stage: Galaxy_Fedora_Latest
dependsOn: []
jobs:
- template: templates/fast_tests.yml
- template: templates/run_tests.yml
parameters:
build_number: $(Build.BuildNumber)
distro: fedora-latest
ansible_version: "-core >=2.15,<2.16"
filter_tests: true
test_galaxy: true

# CentOS 9 Stream

- stage: CentOS_9_Stream
dependsOn: []
jobs:
- template: templates/fast_tests.yml
- template: templates/run_tests.yml
parameters:
build_number: $(Build.BuildNumber)
distro: c9s
ansible_version: "-core >=2.15,<2.16"
filter_tests: true

# CentOS 8 Stream

- stage: CentOS_8_Stream
dependsOn: []
jobs:
- template: templates/fast_tests.yml
- template: templates/run_tests.yml
parameters:
build_number: $(Build.BuildNumber)
distro: c8s
ansible_version: "-core >=2.15,<2.16"
target_python: "/usr/libexec/platform-python"
filter_tests: true

# Rawhide

- stage: Fedora_Rawhide
dependsOn: []
jobs:
- template: templates/fast_tests.yml
- template: templates/run_tests.yml
parameters:
build_number: $(Build.BuildNumber)
distro: fedora-rawhide
ansible_version: "-core >=2.15,<2.16"
filter_tests: true
Loading

0 comments on commit feaea64

Please sign in to comment.