mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-03-26 21:43:02 +00:00
Python module rstcheck which is used by ansible-test deprecated
Python versions prior 3.7 in version 3.5.0 and removed support
in 4.0.0 [1]. Ubuntu 18.04 LTS (Bionic Beaver) comes with Python
3.6 by default, so rstcheck prints a FutureWarning which confuses
ansible-test:
Run command: ***/python -m rstcheck --report warning
--ignore-substitutions _,br,release,today,version
docs/openstack_guidelines.rst
Traceback (most recent call last):
File "***/ansible-test", line 28, in <module>
main()
File "***/ansible-test", line 24, in main
cli_main()
File "***/ansible_test/_internal/cli.py", line 130, in main
args.func(config)
File "***/ansible_test/_internal/sanity/__init__.py", line 193,
in command_sanity
result = test.test(args, sanity_targets, version)
File "***/ansible_test/_internal/sanity/rstcheck.py", line 80,
in test
results = parse_to_list_of_dict(pattern, stderr)
File "***/ansible_test/_internal/util.py", line 799, in
parse_to_list_of_dict
raise Exception('Pattern "%s" did not match values:\n%s' %
(pattern, '\n'.join(unmatched)))
Exception: Pattern "^(?P<path>[^:]*):(?P<line>[0-9]+):
\((?P<level>INFO|WARNING|ERROR|SEVERE)/[0-4]\) (?P<message>.*)$"
did not match values:
***/rstcheck.py:51: FutureWarning: Python versions prior 3.7 are
deprecated. Please update your python version.
FutureWarning
ERROR: Command "/usr/bin/env ANSIBLE_TEST_CONTENT_ROOT=***/
ansible_collections/openstack/cloud LC_ALL=en_US.UTF-8 ***/python3.6
***/ansible-test sanity -v --python 3.6 --skip-test
metaclass-boilerplate --skip-test future-import-boilerplate plugins/
docs/ meta/ scripts/ --metadata ***.json --truncate 0 --redact
--color no --requirements" returned exit status 1.
We cannot constrain the version of rstcheck which ansible-test installs
into its Python virtual environment. This has to be fixed in Ansible
itself, a pull request against Ansible 2.9 has been opened [2].
Ref.:
[1] https://github.com/myint/rstcheck/blob/master/README.rst
[2] https://github.com/ansible/ansible/pull/77568
As a workaround we temporarily set our Ubuntu 18.04 based linter job
openstack-tox-linters-ansible-2.9 to non-voting and remove it from
check dependencies and as a gate job.
Thanks to Arx Cruz and Jesper Schmitz Mouridsen for pointing out this
issue and its root cause ☺️
Change-Id: Ic6f2febc5a40a29534ac4c7f41f714865099086a
729 lines
31 KiB
YAML
729 lines
31 KiB
YAML
# yamllint disable
|
|
---
|
|
# Keep this file in sync between branches to avoid issues e.g. with job scheduling. Zuul CI will search in master branch
|
|
# first when collecting job variants during job freeze which can have unwanted side effects. For example, when parent
|
|
# job *-base has been changed in stable/1.0.0 branch, Zuul could still use *-base variants from master branch during job
|
|
# freeze on child jobs such as *-ussuri-ansible-2.11 etc.
|
|
- job:
|
|
name: ansible-collections-openstack-functional-devstack-base
|
|
parent: openstacksdk-functional-devstack
|
|
# Do not restrict branches in base jobs because else Zuul would not find a matching
|
|
# parent job variant during job freeze when child jobs are on other branches.
|
|
post-run: ci/playbooks/postlog.yaml
|
|
description: |
|
|
Run openstack collections functional tests against a devstack
|
|
# Do not set job.override-checkout or job.required-projects.override-checkout in base job because
|
|
# else Zuul will use this branch when matching variants for parent jobs during job freeze
|
|
required-projects:
|
|
- openstack/ansible-collections-openstack
|
|
- openstack/designate
|
|
# openstack/devstack is required through parent job openstacksdk-functional-devstack
|
|
# openstack/os-client-config is required through parent job openstacksdk-functional-devstack
|
|
# openstack/openstacksdk is required through parent job openstacksdk-functional-devstack
|
|
irrelevant-files: &ignore_files
|
|
- changelogs/.*
|
|
- galaxy.*
|
|
- COPYING
|
|
- docs/.*
|
|
- .*\.md
|
|
- .*\.rst
|
|
- tools/run-ansible-sanity.sh
|
|
- tests/sanity/.*
|
|
- contrib/.*
|
|
- .zuul.yaml
|
|
vars:
|
|
zuul_work_dir: src/opendev.org/openstack/ansible-collections-openstack
|
|
tox_envlist: ansible
|
|
tox_install_siblings: true
|
|
fetch_subunit: false
|
|
devstack_plugins:
|
|
designate: https://opendev.org/openstack/designate
|
|
devstack_services:
|
|
designate: true
|
|
neutron-dns: true
|
|
zuul_copy_output:
|
|
'{{ devstack_log_dir }}/test_output.log': 'logs'
|
|
extensions_to_txt:
|
|
log: true
|
|
|
|
- job:
|
|
name: ansible-collections-openstack-functional-devstack
|
|
parent: ansible-collections-openstack-functional-devstack-base
|
|
branches: master
|
|
description: |
|
|
Run openstack collections functional tests against a master devstack
|
|
using master of openstacksdk with latest ansible release
|
|
|
|
- job:
|
|
name: ansible-collections-openstack-functional-devstack-octavia-base
|
|
parent: ansible-collections-openstack-functional-devstack-base
|
|
# Do not restrict branches in base jobs because else Zuul would not find a matching
|
|
# parent job variant during job freeze when child jobs are on other branches.
|
|
description: |
|
|
Run openstack collections functional tests against a devstack with Octavia plugin enabled
|
|
pre-run: ci/playbooks/get_amphora_tarball.yaml
|
|
# Do not set job.override-checkout or job.required-projects.override-checkout in base job because
|
|
# else Zuul will use this branch when matching variants for parent jobs during job freeze
|
|
required-projects:
|
|
- openstack/octavia
|
|
files:
|
|
- ^ci/roles/loadbalancer/.*$
|
|
- ^plugins/modules/lb_health_monitor.py
|
|
- ^plugins/modules/lb_listener.py
|
|
- ^plugins/modules/lb_member.py
|
|
- ^plugins/modules/lb_pool.py
|
|
- ^plugins/modules/loadbalancer.py
|
|
vars:
|
|
configure_swap_size: 8192
|
|
tox_install_siblings: false
|
|
devstack_plugins:
|
|
designate: https://opendev.org/openstack/designate
|
|
octavia: https://opendev.org/openstack/octavia
|
|
devstack_services:
|
|
designate: true
|
|
neutron-dns: true
|
|
octavia: true
|
|
o-api: true
|
|
o-cw: true
|
|
o-hk: true
|
|
o-hm: true
|
|
devstack_localrc:
|
|
OCTAVIA_AMP_IMAGE_FILE: "/tmp/test-only-amphora-x64-haproxy-ubuntu-bionic.qcow2"
|
|
OCTAVIA_AMP_IMAGE_SIZE: 3
|
|
OCTAVIA_AMP_IMAGE_NAME: "test-only-amphora-x64-haproxy-ubuntu-bionic"
|
|
|
|
- job:
|
|
name: ansible-collections-openstack-functional-devstack-octavia
|
|
parent: ansible-collections-openstack-functional-devstack-octavia-base
|
|
branches: master
|
|
description: |
|
|
Run openstack collections functional tests against a master devstack
|
|
with Octavia plugin enabled, using latest releases of openstacksdk
|
|
and latest ansible release. Run it only on Load Balancer changes.
|
|
|
|
- job:
|
|
name: ansible-collections-openstack-functional-devstack-octavia
|
|
parent: ansible-collections-openstack-functional-devstack-octavia-base
|
|
branches: stable/1.0.0
|
|
description: |
|
|
Run openstack collections functional tests against a master devstack
|
|
with Octavia plugin enabled, using 0.*.* releases of openstacksdk
|
|
and latest ansible release. Run it only on Load Balancer changes.
|
|
required-projects:
|
|
- # Choose parent devstack job from master branch instead of non-existing stable/1.0.0 branch
|
|
name: openstack/devstack
|
|
override-checkout: master
|
|
- # Choose parent devstack job from master branch instead of non-existing stable/1.0.0 branch
|
|
name: openstack/openstacksdk
|
|
override-checkout: master
|
|
vars:
|
|
tox_constraints_file: '{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/tests/constraints-openstacksdk-0.x.x.txt'
|
|
|
|
- job:
|
|
name: ansible-collections-openstack-functional-devstack-releases
|
|
parent: ansible-collections-openstack-functional-devstack-base
|
|
branches: master
|
|
description: |
|
|
Run openstack collections functional tests against a master devstack
|
|
using latest releases of openstacksdk and latest ansible release
|
|
# OpenStack SDK 1.*.* has not been released to PyPI yet
|
|
voting: false
|
|
vars:
|
|
# Uncomment once OpenStack SDK 1.*.* has been released to PyPI
|
|
# tox_constraints_file: '{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/tests/constraints-openstacksdk-1.x.x.txt'
|
|
tox_install_siblings: false
|
|
|
|
- job:
|
|
name: ansible-collections-openstack-functional-devstack-releases
|
|
parent: ansible-collections-openstack-functional-devstack-base
|
|
branches: stable/1.0.0
|
|
description: |
|
|
Run openstack collections functional tests against a master devstack
|
|
using 0.*.* releases of openstacksdk and latest ansible release
|
|
required-projects:
|
|
- name: github.com/ansible/ansible
|
|
override-checkout: stable-2.9
|
|
- # Choose parent devstack job from master branch instead of non-existing stable/1.0.0 branch
|
|
name: openstack/devstack
|
|
override-checkout: master
|
|
- # Choose parent devstack job from master branch instead of non-existing stable/1.0.0 branch
|
|
name: openstack/openstacksdk
|
|
override-checkout: master
|
|
vars:
|
|
tox_constraints_file: '{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/tests/constraints-openstacksdk-0.x.x.txt'
|
|
tox_install_siblings: false
|
|
|
|
# Job with Ansible 2.9 for checking backward compatibility
|
|
- job:
|
|
name: ansible-collections-openstack-functional-devstack-ansible-2.9
|
|
parent: ansible-collections-openstack-functional-devstack-base
|
|
branches: master
|
|
description: |
|
|
Run openstack collections functional tests against a master devstack
|
|
using master of openstacksdk and stable 2.9 branch of ansible
|
|
voting: false
|
|
required-projects:
|
|
- name: github.com/ansible/ansible
|
|
override-checkout: stable-2.9
|
|
vars:
|
|
tox_envlist: ansible-2.9
|
|
|
|
- job:
|
|
name: ansible-collections-openstack-functional-devstack-ansible-2.9
|
|
parent: ansible-collections-openstack-functional-devstack-base
|
|
branches: stable/1.0.0
|
|
description: |
|
|
Run openstack collections functional tests against a master devstack
|
|
using 0.*.* releases of openstacksdk and stable 2.9 branch of ansible
|
|
required-projects:
|
|
- name: github.com/ansible/ansible
|
|
override-checkout: stable-2.9
|
|
- # Choose parent devstack job from master branch instead of non-existing stable/1.0.0 branch
|
|
name: openstack/devstack
|
|
override-checkout: master
|
|
- name: openstack/openstacksdk
|
|
# Yoga has the latest SDK release of the 0.*.* series atm
|
|
override-checkout: stable/yoga
|
|
vars:
|
|
tox_envlist: ansible-2.9
|
|
|
|
- job:
|
|
name: ansible-collections-openstack-functional-devstack-ansible-2.11
|
|
parent: ansible-collections-openstack-functional-devstack-base
|
|
branches: master
|
|
description: |
|
|
Run openstack collections functional tests against a master devstack
|
|
using master of openstacksdk and stable 2.12 branch of ansible
|
|
voting: false
|
|
required-projects:
|
|
- name: github.com/ansible/ansible
|
|
override-checkout: stable-2.11
|
|
vars:
|
|
tox_envlist: ansible-2.11
|
|
|
|
- job:
|
|
name: ansible-collections-openstack-functional-devstack-ansible-2.11
|
|
parent: ansible-collections-openstack-functional-devstack-base
|
|
branches: stable/1.0.0
|
|
description: |
|
|
Run openstack collections functional tests against a master devstack
|
|
using 0.*.* releases of openstacksdk and stable 2.12 branch of ansible
|
|
required-projects:
|
|
- name: github.com/ansible/ansible
|
|
override-checkout: stable-2.11
|
|
- # Choose parent devstack job from master branch instead of non-existing stable/1.0.0 branch
|
|
name: openstack/devstack
|
|
override-checkout: master
|
|
- name: openstack/openstacksdk
|
|
# Yoga has the latest SDK release of the 0.*.* series atm
|
|
override-checkout: stable/yoga
|
|
vars:
|
|
tox_envlist: ansible-2.11
|
|
|
|
- job:
|
|
name: ansible-collections-openstack-functional-devstack-ansible-2.12
|
|
parent: ansible-collections-openstack-functional-devstack-base
|
|
branches: master
|
|
description: |
|
|
Run openstack collections functional tests against a master devstack
|
|
using master of openstacksdk and stable 2.12 branch of ansible
|
|
voting: false
|
|
required-projects:
|
|
- name: github.com/ansible/ansible
|
|
override-checkout: stable-2.12
|
|
vars:
|
|
tox_envlist: ansible-2.12
|
|
|
|
- job:
|
|
name: ansible-collections-openstack-functional-devstack-ansible-2.12
|
|
parent: ansible-collections-openstack-functional-devstack-base
|
|
branches: stable/1.0.0
|
|
description: |
|
|
Run openstack collections functional tests against a master devstack
|
|
using 0.*.* releases of openstacksdk and stable 2.12 branch of ansible
|
|
required-projects:
|
|
- name: github.com/ansible/ansible
|
|
override-checkout: stable-2.12
|
|
- # Choose parent devstack job from master branch instead of non-existing stable/1.0.0 branch
|
|
name: openstack/devstack
|
|
override-checkout: master
|
|
- name: openstack/openstacksdk
|
|
# Yoga has the latest SDK release of the 0.*.* series atm
|
|
override-checkout: stable/yoga
|
|
vars:
|
|
tox_envlist: ansible-2.12
|
|
|
|
- job:
|
|
name: ansible-collections-openstack-functional-devstack-ansible-devel
|
|
parent: ansible-collections-openstack-functional-devstack-base
|
|
branches: master
|
|
description: |
|
|
Run openstack collections functional tests against a master devstack
|
|
using master of openstacksdk and devel branch of ansible
|
|
voting: false
|
|
required-projects:
|
|
- name: github.com/ansible/ansible
|
|
override-checkout: devel
|
|
|
|
# Stable branches tests
|
|
|
|
- job:
|
|
name: ansible-collections-openstack-functional-devstack-xena-ansible-2.12
|
|
# Do not inherit from any parent job which does not run for branch stable/1.0.0 because Zuul would dismiss this job
|
|
# when collecting parent job variants. For example, when job.branches is set to master in a parent job, then Zuul
|
|
# will not match that job when it collects job variants.
|
|
#
|
|
# Do not inherit from any parent job which sets job.required-projects.override-checkout on openstack/devstack
|
|
# because Zuul would use that git ref instead of stable branch defined below to checkout projects of parent devstack
|
|
# jobs when collecting variants for parent jobs.
|
|
parent: ansible-collections-openstack-functional-devstack-base
|
|
description: |
|
|
Run openstack collections functional tests against a xena devstack
|
|
using xena branch of openstacksdk and stable 2.12 branch of ansible
|
|
branches: stable/1.0.0
|
|
override-checkout: stable/xena
|
|
# job.override-checkout will not override job.required-projects.override-checkout in parent jobs
|
|
required-projects:
|
|
- name: github.com/ansible/ansible
|
|
override-checkout: stable-2.12
|
|
- # Choose parent devstack job from stable/1.0.0 branch instead of non-existing stable/xena branch
|
|
name: openstack/ansible-collections-openstack
|
|
override-checkout: stable/1.0.0
|
|
- # Choose parent devstack job from stable/xena branch
|
|
name: openstack/devstack
|
|
override-checkout: stable/xena
|
|
- name: openstack/openstacksdk
|
|
override-checkout: stable/xena
|
|
vars:
|
|
tox_envlist: ansible-2.12
|
|
|
|
- job:
|
|
name: ansible-collections-openstack-functional-devstack-wallaby-ansible-2.12
|
|
# Do not inherit from any parent job which does not run for branch stable/1.0.0 because Zuul would dismiss this job
|
|
# when collecting parent job variants. For example, when job.branches is set to master in a parent job, then Zuul
|
|
# will not match that job when it collects job variants.
|
|
#
|
|
# Do not inherit from any parent job which sets job.required-projects.override-checkout on openstack/devstack
|
|
# because Zuul would use that git ref instead of stable branch defined below to checkout projects of parent devstack
|
|
# jobs when collecting variants for parent jobs.
|
|
parent: ansible-collections-openstack-functional-devstack-base
|
|
description: |
|
|
Run openstack collections functional tests against a wallaby devstack
|
|
using wallaby branch of openstacksdk and stable 2.12 branch of ansible
|
|
branches: stable/1.0.0
|
|
override-checkout: stable/wallaby
|
|
# job.override-checkout will not override job.required-projects.override-checkout in parent jobs
|
|
required-projects:
|
|
- name: github.com/ansible/ansible
|
|
override-checkout: stable-2.12
|
|
- # Choose parent devstack job from stable/1.0.0 branch instead of non-existing stable/wallaby branch
|
|
name: openstack/ansible-collections-openstack
|
|
override-checkout: stable/1.0.0
|
|
- # Choose parent devstack job from stable/wallaby branch
|
|
name: openstack/devstack
|
|
override-checkout: stable/wallaby
|
|
- name: openstack/openstacksdk
|
|
override-checkout: stable/wallaby
|
|
vars:
|
|
tox_envlist: ansible-2.12
|
|
|
|
- job:
|
|
name: ansible-collections-openstack-functional-devstack-victoria-ansible-2.12
|
|
# Do not inherit from any parent job which does not run for branch stable/1.0.0 because Zuul would dismiss this job
|
|
# when collecting parent job variants. For example, when job.branches is set to master in a parent job, then Zuul
|
|
# will not match that job when it collects job variants.
|
|
#
|
|
# Do not inherit from any parent job which sets job.required-projects.override-checkout on openstack/devstack
|
|
# because Zuul would use that git ref instead of stable branch defined below to checkout projects of parent devstack
|
|
# jobs when collecting variants for parent jobs.
|
|
parent: ansible-collections-openstack-functional-devstack-base
|
|
description: |
|
|
Run openstack collections functional tests against a victoria devstack
|
|
using victoria branch of openstacksdk and stable 2.12 branch of ansible
|
|
branches: stable/1.0.0
|
|
override-checkout: stable/victoria
|
|
# job.override-checkout will not override job.required-projects.override-checkout in parent jobs
|
|
required-projects:
|
|
- name: github.com/ansible/ansible
|
|
override-checkout: stable-2.12
|
|
- # Choose parent devstack job from stable/1.0.0 branch instead of non-existing stable/victoria branch
|
|
name: openstack/ansible-collections-openstack
|
|
override-checkout: stable/1.0.0
|
|
- # Choose parent devstack job from stable/victoria branch
|
|
name: openstack/devstack
|
|
override-checkout: stable/victoria
|
|
- name: openstack/openstacksdk
|
|
override-checkout: stable/victoria
|
|
vars:
|
|
tox_envlist: ansible-2.12
|
|
|
|
- job:
|
|
name: ansible-collections-openstack-functional-devstack-ussuri-ansible-2.11
|
|
# Do not inherit from any parent job which does not run for branch stable/1.0.0 because Zuul would dismiss this job
|
|
# when collecting parent job variants. For example, when job.branches is set to master in a parent job, then Zuul
|
|
# will not match that job when it collects job variants.
|
|
#
|
|
# Do not inherit from any parent job which sets job.required-projects.override-checkout on openstack/devstack
|
|
# because Zuul would use that git ref instead of stable branch defined below to checkout projects of parent devstack
|
|
# jobs when collecting variants for parent jobs.
|
|
parent: ansible-collections-openstack-functional-devstack-base
|
|
description: |
|
|
Run openstack collections functional tests against a ussuri devstack
|
|
using ussuri branch of openstacksdk and stable 2.11 branch of ansible
|
|
branches: stable/1.0.0
|
|
override-checkout: stable/ussuri
|
|
# job.override-checkout will not override job.required-projects.override-checkout in parent jobs
|
|
required-projects:
|
|
- name: github.com/ansible/ansible
|
|
override-checkout: stable-2.11
|
|
- # Choose parent devstack job from stable/1.0.0 branch instead of non-existing stable/ussuri branch
|
|
name: openstack/ansible-collections-openstack
|
|
override-checkout: stable/1.0.0
|
|
- # Choose parent devstack job from stable/ussuri branch
|
|
name: openstack/devstack
|
|
override-checkout: stable/ussuri
|
|
- name: openstack/openstacksdk
|
|
override-checkout: stable/ussuri
|
|
vars:
|
|
tox_envlist: ansible-2.11
|
|
|
|
- job:
|
|
name: ansible-collections-openstack-functional-devstack-train-ansible-2.11
|
|
# Do not inherit from any parent job which does not run for branch stable/1.0.0 because Zuul would dismiss this job
|
|
# when collecting parent job variants. For example, when job.branches is set to master in a parent job, then Zuul
|
|
# will not match that job when it collects job variants.
|
|
#
|
|
# Do not inherit from any parent job which sets job.required-projects.override-checkout on openstack/devstack
|
|
# because Zuul would use that git ref instead of stable branch defined below to checkout projects of parent devstack
|
|
# jobs when collecting variants for parent jobs.
|
|
parent: ansible-collections-openstack-functional-devstack-base
|
|
description: |
|
|
Run openstack collections functional tests against a train devstack
|
|
using train branch of openstacksdk and stable 2.11 branch of ansible
|
|
branches: stable/1.0.0
|
|
override-checkout: stable/train
|
|
# job.override-checkout will not override job.required-projects.override-checkout in parent jobs
|
|
required-projects:
|
|
- name: github.com/ansible/ansible
|
|
override-checkout: stable-2.11
|
|
- # Choose parent devstack job from stable/1.0.0 branch instead of non-existing stable/train branch
|
|
name: openstack/ansible-collections-openstack
|
|
override-checkout: stable/1.0.0
|
|
- # Choose parent devstack job from stable/train branch
|
|
name: openstack/devstack
|
|
override-checkout: stable/train
|
|
- name: openstack/openstacksdk
|
|
override-checkout: stable/train
|
|
vars:
|
|
tox_envlist: ansible-2.11
|
|
|
|
- job:
|
|
name: ansible-collections-openstack-functional-devstack-queens-ansible-2.11
|
|
# Do not inherit from any parent job which does not run for branch stable/1.0.0 because Zuul would dismiss this job
|
|
# when collecting parent job variants. For example, when job.branches is set to master in a parent job, then Zuul
|
|
# will not match that job when it collects job variants.
|
|
#
|
|
# Do not inherit from any parent job which sets job.required-projects.override-checkout on openstack/devstack
|
|
# because Zuul would use that git ref instead of stable branch defined below to checkout projects of parent devstack
|
|
# jobs when collecting variants for parent jobs.
|
|
parent: ansible-collections-openstack-functional-devstack-base
|
|
description: |
|
|
Run openstack collections functional tests against a queens devstack
|
|
using train branch of openstacksdk and stable 2.11 branch of ansible
|
|
branches: stable/1.0.0
|
|
override-checkout: stable/queens
|
|
# job.override-checkout will not override job.required-projects.override-checkout in parent jobs
|
|
required-projects:
|
|
- name: github.com/ansible/ansible
|
|
override-checkout: stable-2.11
|
|
- # Choose parent devstack job from stable/1.0.0 branch instead of non-existing stable/queens branch
|
|
name: openstack/ansible-collections-openstack
|
|
override-checkout: stable/1.0.0
|
|
- # Choose parent devstack job from stable/queens branch
|
|
name: openstack/devstack
|
|
override-checkout: stable/queens
|
|
- name: openstack/openstacksdk
|
|
# Run queens with highest possible py2 version of SDK
|
|
override-checkout: stable/train
|
|
vars:
|
|
tox_envlist: ansible-2.11
|
|
|
|
# Linters
|
|
- job:
|
|
name: openstack-tox-linters-ansible
|
|
parent: openstack-tox-linters
|
|
nodeset: ubuntu-focal
|
|
description: |
|
|
Run openstack collections linter tests using the devel branch of ansible
|
|
required-projects:
|
|
- name: github.com/ansible/ansible
|
|
override-checkout: devel
|
|
vars:
|
|
# override tox_constraints_file from parent job
|
|
tox_constraints_file: '{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/tests/constraints-none.txt'
|
|
tox_envlist: linters
|
|
tox_install_siblings: true
|
|
|
|
- job:
|
|
name: openstack-tox-linters-ansible-devel
|
|
parent: openstack-tox-linters-ansible
|
|
description: |
|
|
Run openstack collections linter tests using the devel branch of ansible
|
|
# non-voting because we can't prevent ansible devel from breaking us
|
|
voting: false
|
|
vars:
|
|
python_version: 3.8
|
|
bindep_profile: test py38
|
|
|
|
- job:
|
|
name: openstack-tox-linters-ansible-2.12
|
|
parent: openstack-tox-linters-ansible
|
|
description: |
|
|
Run openstack collections linter tests using the 2.12 branch of ansible
|
|
required-projects:
|
|
- name: github.com/ansible/ansible
|
|
override-checkout: stable-2.12
|
|
vars:
|
|
tox_envlist: linters-2.12
|
|
python_version: 3.8
|
|
bindep_profile: test py38
|
|
|
|
- job:
|
|
name: openstack-tox-linters-ansible-2.9
|
|
parent: openstack-tox-linters-ansible
|
|
nodeset: ubuntu-bionic
|
|
description: |
|
|
Run openstack collections linter tests using the 2.9 branch of ansible
|
|
# TODO: Change back to voting once ansible-test is compatible with rstcheck on Python 3.6
|
|
voting: false
|
|
required-projects:
|
|
- name: github.com/ansible/ansible
|
|
override-checkout: stable-2.9
|
|
vars:
|
|
tox_envlist: linters-2.9
|
|
|
|
# Cross-checks with other projects
|
|
- job:
|
|
name: bifrost-collections-src
|
|
parent: bifrost-integration-tinyipa-ubuntu-focal
|
|
required-projects:
|
|
- openstack/ansible-collections-openstack
|
|
- # always use master branch when collecting parent job variants, refer to git blame for rationale.
|
|
name: openstack/bifrost
|
|
override-checkout: master
|
|
- job:
|
|
name: bifrost-keystone-collections-src
|
|
parent: bifrost-integration-tinyipa-keystone-ubuntu-focal
|
|
required-projects:
|
|
- openstack/ansible-collections-openstack
|
|
- # always use master branch when collecting parent job variants, refer to git blame for rationale.
|
|
name: openstack/bifrost
|
|
override-checkout: master
|
|
|
|
# TripleO jobs
|
|
- job:
|
|
name: tripleo-ci-centos-8-standalone-osa
|
|
parent: tripleo-ci-base-standalone-centos-8
|
|
vars:
|
|
featureset: '052'
|
|
consumer_job: false
|
|
build_container_images: true
|
|
required-projects:
|
|
- openstack/ansible-collections-openstack
|
|
- # always use master branch when collecting parent job variants, refer to git blame for rationale.
|
|
name: openstack/tripleo-ci
|
|
override-checkout: master
|
|
irrelevant-files: &irr_files
|
|
- .*molecule.*
|
|
- ^.*\.md$
|
|
- ^.*\.rst$
|
|
- ^docs/.*$
|
|
- ^contrib/.*$
|
|
- ^changelogs/.*$
|
|
- ^meta/.*$
|
|
- ^tests/.*$
|
|
- ^tools/.*$
|
|
- ^requirements.*$
|
|
- ^setup.*$
|
|
- tox.ini
|
|
# Run only on files used in TripleO
|
|
files: &ooo_files
|
|
- ^plugins/modules/catalog_service.*$
|
|
- ^plugins/modules/endpoint.*$
|
|
- ^plugins/modules/identity_domain.*$
|
|
- ^plugins/modules/identity_domain_info.*$
|
|
- ^plugins/modules/identity_role.*$
|
|
- ^plugins/modules/identity_user.*$
|
|
- ^plugins/modules/keypair.*$
|
|
- ^plugins/modules/project.*$
|
|
- ^plugins/modules/role_assignment.*$
|
|
- ^plugins/modules/stack.*$
|
|
- ^plugins/module_utils/openstack.*$
|
|
|
|
- job:
|
|
name: tripleo-ci-centos-9-standalone-osa
|
|
parent: tripleo-ci-centos-8-standalone-osa
|
|
nodeset: single-centos-9-node
|
|
branches: ^(stable/1.0.0|master).*$
|
|
override-checkout: master
|
|
vars:
|
|
containers_base_image: quay.io/centos/centos:stream9
|
|
consumer_job: false
|
|
build_container_images: true
|
|
branch_override: master
|
|
files: *ooo_files
|
|
irrelevant-files: *irr_files
|
|
|
|
- job:
|
|
name: tripleo-ci-centos-8-standalone-train-osa
|
|
parent: tripleo-ci-centos-8-standalone-osa
|
|
branches: stable/1.0.0
|
|
override-checkout: stable/train
|
|
vars:
|
|
branch_override: stable/train
|
|
|
|
- job:
|
|
name: tripleo-ci-centos-8-standalone-wallaby-osa
|
|
parent: tripleo-ci-centos-8-standalone-osa
|
|
branches: stable/1.0.0
|
|
override-checkout: stable/wallaby
|
|
vars:
|
|
branch_override: stable/wallaby
|
|
|
|
- job:
|
|
name: tripleo-ci-centos-9-standalone-wallaby-osa
|
|
parent: tripleo-ci-centos-9-standalone-osa
|
|
branches: stable/1.0.0
|
|
override-checkout: stable/wallaby
|
|
vars:
|
|
branch_override: stable/wallaby
|
|
|
|
- job:
|
|
name: ansible-collections-openstack-release
|
|
parent: base
|
|
run: ci/publish/publish_collection.yml
|
|
secrets:
|
|
- ansible_galaxy_info
|
|
|
|
- secret:
|
|
name: ansible_galaxy_info
|
|
data:
|
|
url: https://galaxy.ansible.com
|
|
token: !encrypted/pkcs1-oaep
|
|
- lZFzfoCbuwqV1k6qRfl/VS7E+knUW7+zpg7BptrenK4n0g7UY0HtdVkYq0pV0Tj/LbhzG
|
|
jHD0mehcV1iS6B7ORKg4criJkdDfEx09BD8z8yv0EleiIMmhlrCoMcY593OZMBtVbGi0D
|
|
CwQtNO98QIsfZogChfLfvRNiBmUV98mEb/p6p3EtGx8J7qcAsqfWxc/CzB8GCleLAHHHT
|
|
FuikMM03ZnV0ew7E+TPkHbzzPhBZOqS5HYF0HtgttHwIXdfIWp/XdTuEEk7uRRgYZ2Iao
|
|
ifWRzoKaOQmhM++e1ydCqw9D4y9dZEFNMQLwSqcrvtb8cNwT1kl7SCFqYNE2lbutj4ne6
|
|
PTBQRsKegMB4Y3ena14fNF6tCynvJLPhF/cjPH2Jhs+B19XQhWkL3TgiOY02W24YHwRcP
|
|
+LdkM8inAvyVi3DEbEqdjBPO9OFJcBOKPlCdkGvuwdNCuEpEwctWs0gV3voflG2CDKzmJ
|
|
wu9JJOAWnq/0l1WpuDqWreKeQ/BUGZC2Gb4xRAqofulgvhs4WuYoEccjH4EJFIZ90S1EP
|
|
R/ZLadqZaEhmjwGM5sMWbBbjT23XsRgg0Tzt9m8DENYMuYDqkMdRbt2jYZa+32p4hyxVe
|
|
Y6H/pqYq5b9uOzumnShaK4WlmkQyXcNPkoSlMC1h4OGvqX/WUixpI38jyMA5Tc=
|
|
|
|
- project:
|
|
check:
|
|
jobs:
|
|
- tox-pep8
|
|
- openstack-tox-linters-ansible-devel
|
|
- openstack-tox-linters-ansible-2.12
|
|
- openstack-tox-linters-ansible-2.9
|
|
- ansible-collections-openstack-functional-devstack:
|
|
dependencies: &deps_unit_lint
|
|
- tox-pep8
|
|
# TODO: Add back once ansible-test is compatible with rstcheck on Python 3.6
|
|
#- openstack-tox-linters-ansible-2.9
|
|
- openstack-tox-linters-ansible-2.12
|
|
voting: false
|
|
|
|
- ansible-collections-openstack-functional-devstack-releases:
|
|
dependencies: *deps_unit_lint
|
|
- ansible-collections-openstack-functional-devstack-ansible-2.9:
|
|
dependencies: *deps_unit_lint
|
|
- ansible-collections-openstack-functional-devstack-ansible-2.12:
|
|
dependencies: *deps_unit_lint
|
|
- ansible-collections-openstack-functional-devstack-ansible-devel:
|
|
dependencies: *deps_unit_lint
|
|
- ansible-collections-openstack-functional-devstack-xena-ansible-2.12:
|
|
dependencies: *deps_unit_lint
|
|
- ansible-collections-openstack-functional-devstack-wallaby-ansible-2.12:
|
|
dependencies: *deps_unit_lint
|
|
- ansible-collections-openstack-functional-devstack-train-ansible-2.11:
|
|
dependencies: *deps_unit_lint
|
|
- ansible-collections-openstack-functional-devstack-octavia:
|
|
dependencies: *deps_unit_lint
|
|
|
|
- bifrost-collections-src:
|
|
voting: false
|
|
dependencies: *deps_unit_lint
|
|
irrelevant-files: *ignore_files
|
|
- bifrost-keystone-collections-src:
|
|
voting: false
|
|
dependencies: *deps_unit_lint
|
|
irrelevant-files: *ignore_files
|
|
|
|
- tripleo-ci-centos-8-standalone-wallaby-osa:
|
|
dependencies: *deps_unit_lint
|
|
|
|
- tripleo-ci-centos-8-standalone-train-osa:
|
|
voting: false
|
|
dependencies: *deps_unit_lint
|
|
|
|
- tripleo-ci-centos-9-standalone-osa:
|
|
voting: false
|
|
dependencies: *deps_unit_lint
|
|
|
|
- tripleo-ci-centos-9-standalone-wallaby-osa:
|
|
voting: false
|
|
dependencies: *deps_unit_lint
|
|
|
|
gate:
|
|
jobs:
|
|
- tox-pep8
|
|
- openstack-tox-linters-ansible-2.12
|
|
# TODO: Add back once ansible-test is compatible with rstcheck on Python 3.6
|
|
#- openstack-tox-linters-ansible-2.9
|
|
# - ansible-collections-openstack-functional-devstack
|
|
- ansible-collections-openstack-functional-devstack-releases
|
|
# - ansible-collections-openstack-functional-devstack-ansible-2.9
|
|
# - ansible-collections-openstack-functional-devstack-ansible-2.12
|
|
- ansible-collections-openstack-functional-devstack-wallaby-ansible-2.12
|
|
- ansible-collections-openstack-functional-devstack-xena-ansible-2.12
|
|
- ansible-collections-openstack-functional-devstack-train-ansible-2.11
|
|
- ansible-collections-openstack-functional-devstack-octavia
|
|
- tripleo-ci-centos-8-standalone-wallaby-osa
|
|
|
|
periodic:
|
|
jobs:
|
|
- openstack-tox-linters-ansible-devel
|
|
- openstack-tox-linters-ansible-2.12
|
|
- openstack-tox-linters-ansible-2.9
|
|
- ansible-collections-openstack-functional-devstack
|
|
- ansible-collections-openstack-functional-devstack-releases
|
|
- ansible-collections-openstack-functional-devstack-ansible-2.9
|
|
- ansible-collections-openstack-functional-devstack-ansible-2.12
|
|
- ansible-collections-openstack-functional-devstack-ansible-devel
|
|
- ansible-collections-openstack-functional-devstack-xena-ansible-2.12
|
|
- ansible-collections-openstack-functional-devstack-wallaby-ansible-2.12
|
|
- ansible-collections-openstack-functional-devstack-victoria-ansible-2.12
|
|
- ansible-collections-openstack-functional-devstack-train-ansible-2.11
|
|
- ansible-collections-openstack-functional-devstack-queens-ansible-2.11
|
|
- bifrost-collections-src
|
|
- bifrost-keystone-collections-src
|
|
- ansible-collections-openstack-functional-devstack-octavia
|
|
- tripleo-ci-centos-9-standalone-wallaby-osa
|
|
- tripleo-ci-centos-9-standalone-osa
|
|
- tripleo-ci-centos-8-standalone-train-osa
|
|
- tripleo-ci-centos-8-standalone-wallaby-osa
|
|
|
|
experimental:
|
|
jobs:
|
|
- ansible-collections-openstack-functional-devstack-ansible-2.11
|
|
- ansible-collections-openstack-functional-devstack-victoria-ansible-2.12
|
|
- ansible-collections-openstack-functional-devstack-ussuri-ansible-2.11
|
|
- ansible-collections-openstack-functional-devstack-queens-ansible-2.11
|
|
|
|
tag:
|
|
jobs:
|
|
- ansible-collections-openstack-release
|