Skip to content

Commit

Permalink
fixup! upstream CI: Use start.sh script and environment template
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeffman committed Oct 15, 2024
1 parent c042227 commit afe7452
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 109 deletions.
12 changes: 6 additions & 6 deletions infra/azure/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ stages:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-latest
distro: fedora-latest
ansible_version: "-core"
filter_tests: false

Expand All @@ -27,7 +27,7 @@ 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

Expand All @@ -39,7 +39,7 @@ 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

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

Expand All @@ -63,7 +63,7 @@ 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

Expand All @@ -75,6 +75,6 @@ stages:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: c8s
distro: c8s
ansible_version: "-core >=2.14,<2.15"
filter_tests: false
40 changes: 20 additions & 20 deletions infra/azure/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ 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

Expand All @@ -32,7 +32,7 @@ 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

Expand All @@ -42,7 +42,7 @@ stages:
- 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

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

Expand All @@ -64,7 +64,7 @@ stages:
- template: templates/galaxy_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-latest
distro: fedora-latest
ansible_version: "-core >=2.13,<2.14"
filter_tests: false

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

Expand All @@ -84,7 +84,7 @@ stages:
- template: templates/galaxy_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-latest
distro: fedora-latest
ansible_version: "-core >=2.15,<2.16"
filter_tests: false

Expand All @@ -94,7 +94,7 @@ stages:
- template: templates/galaxy_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-latest
distro: fedora-latest
ansible_version: ""
filter_tests: false

Expand All @@ -106,7 +106,7 @@ 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

Expand All @@ -116,7 +116,7 @@ stages:
- 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

Expand All @@ -126,7 +126,7 @@ stages:
- 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

Expand All @@ -136,7 +136,7 @@ stages:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-rawhide
distro: fedora-rawhide
ansible_version: ""
filter_tests: false

Expand All @@ -148,7 +148,7 @@ 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

Expand All @@ -158,7 +158,7 @@ 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

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

Expand All @@ -178,7 +178,7 @@ stages:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: c9s
distro: c9s
ansible_version: ""
filter_tests: false

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

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

Expand All @@ -210,7 +210,7 @@ stages:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: c8s
distro: c8s
ansible_version: "-core >=2.15,<2.16"
filter_tests: false

Expand All @@ -220,6 +220,6 @@ stages:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
scenario: c8s
distro: c8s
ansible_version: ""
filter_tests: false
65 changes: 0 additions & 65 deletions infra/azure/templates/galaxy_pytest_script.yml

This file was deleted.

14 changes: 7 additions & 7 deletions infra/azure/templates/galaxy_script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ parameters:
- name: number_of_groups
type: number
default: 1
- name: scenario
- name: distro
type: string
default: fedora-latest
- name: ansible_version
Expand All @@ -21,11 +21,11 @@ parameters:

jobs:
- job: Test_Group${{ parameters.group_number }}
displayName: Run playbook tests ${{ parameters.scenario }} (${{ parameters.group_number }}/${{ parameters.number_of_groups }})
displayName: Run playbook tests ${{ parameters.distro }} (${{ parameters.group_number }}/${{ parameters.number_of_groups }})
timeoutInMinutes: 240
variables:
- template: variables.yaml
- template: variables_${{ parameters.scenario }}.yaml
- template: variables_${{ parameters.distro }}.yaml
steps:
- task: UsePythonVersion@0
inputs:
Expand All @@ -49,15 +49,15 @@ jobs:

- script: |
utils/build-galaxy-release.sh -i
molecule create -s ${{ parameters.scenario }}
molecule create -s ${{ parameters.distro }}
retryCountOnTaskFailure: 5
displayName: Setup test container
env:
ANSIBLE_LIBRARY: ./molecule
- script: |
python utils/check_test_configuration.py ${{ parameters.scenario }}
displayName: Check scenario test configuration
python utils/check_test_configuration.py ${{ parameters.distro }}
displayName: Check distro test configuration
- script: |
cd ~/.ansible/collections/ansible_collections/freeipa/ansible_freeipa
Expand All @@ -71,7 +71,7 @@ jobs:
--junit-xml=TEST-results-group-${{ parameters.group_number }}.xml
displayName: Run playbook tests
env:
IPA_SERVER_HOST: ${{ parameters.scenario }}
IPA_SERVER_HOST: ${{ parameters.distro }}
RUN_TESTS_IN_DOCKER: true
IPA_DISABLED_MODULES: ${{ variables.ipa_disabled_modules }}
IPA_DISABLED_TESTS: ${{ variables.ipa_disabled_tests }}
Expand Down
12 changes: 6 additions & 6 deletions infra/azure/templates/galaxy_tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
parameters:
- name: scenario
- name: distro
type: string
default: fedora-latest
- name: build_number
Expand All @@ -15,7 +15,7 @@ jobs:
group_number: 1
number_of_groups: 3
build_number: ${{ parameters.build_number }}
scenario: ${{ parameters.scenario }}
distro: ${{ parameters.distro }}
ansible_version: ${{ parameters.ansible_version }}
python_version: '< 3.12'

Expand All @@ -24,7 +24,7 @@ jobs:
group_number: 2
number_of_groups: 3
build_number: ${{ parameters.build_number }}
scenario: ${{ parameters.scenario }}
distro: ${{ parameters.distro }}
ansible_version: ${{ parameters.ansible_version }}
python_version: '< 3.12'

Expand All @@ -33,17 +33,17 @@ jobs:
group_number: 3
number_of_groups: 3
build_number: ${{ parameters.build_number }}
scenario: ${{ parameters.scenario }}
distro: ${{ parameters.distro }}
ansible_version: ${{ parameters.ansible_version }}
python_version: '< 3.12'

# Temporarily disabled due to ansible docker plugin issue.
# - template: playbook_tests.yml
# - template: galaxy_script.yml
# parameters:
# group_number: 3
# number_of_groups: 3
# build_number: ${{ parameters.build_number }}
# scenario: ${{ parameters.scenario }}
# distro: ${{ parameters.distro }}
# ansible_version: ${{ parameters.ansible_version }}
# python_version: '< 3.12'
# filter_tests: ${{ parameters.filter_tests }}
Expand Down
Loading

0 comments on commit afe7452

Please sign in to comment.