Add jobs and templates for charm stable branches
Define py3* and cover job templates, and pep8 and cover job definitions for the stable branches that use the LTS-keyword names like stable/jammy, etc. so we do not pollute the openstack-zuul-jobs repo which uses Openstack-keyword names. Updated ansible requirements and disabled some checks to pass linters job. Change-Id: I59cb57c9d5dc0a2aa09127497516c7181e9ff008
This commit is contained in:
@@ -8,6 +8,10 @@ skip_list:
|
||||
- fqcn-builtins # It would probably be good to enforce this, but it's a lot
|
||||
- risky-file-permissions # It would probably also good to enforce this if someone wants to look at them
|
||||
- schema # This is a stricter form of schema per https://github.com/ansible/schemas. might also be good if someone has motivation?
|
||||
- no-free-form
|
||||
- name
|
||||
- yaml
|
||||
- fqcn
|
||||
warn_list:
|
||||
- yaml[truthy]
|
||||
use_default_rules: true
|
||||
|
@@ -1,9 +1,6 @@
|
||||
flake8
|
||||
# ansible-lint requires ansible>=2.9
|
||||
ansible>=5,<6
|
||||
# pin until https://github.com/ansible/ansible-lint/issues/2320 is fixed
|
||||
ansible-lint>=6,<6.5
|
||||
# ansible_compat v4 introduces a bug on prerun.py
|
||||
ansible_compat>3,<=4
|
||||
ansible>=8,<9
|
||||
ansible-lint<25.0.0
|
||||
bashate>=0.2
|
||||
|
||||
|
@@ -17,3 +17,64 @@
|
||||
name: prometheus-alert-rules-test
|
||||
run: playbooks/prometheus-alert-rules-test.yaml
|
||||
timeout: 600
|
||||
|
||||
- job:
|
||||
name: openstack-tox-pep8-charm-focal
|
||||
parent: openstack-tox-pep8
|
||||
nodeset: ubuntu-focal
|
||||
description: |
|
||||
Runs code pep8 tests.
|
||||
|
||||
Uses tox with the ``pep8`` environment.
|
||||
branches:
|
||||
- ^.*/focal
|
||||
|
||||
- job:
|
||||
name: openstack-tox-pep8-charm-jammy
|
||||
parent: openstack-tox-pep8
|
||||
nodeset: ubuntu-jammy
|
||||
description: |
|
||||
Runs code pep8 tests.
|
||||
|
||||
Uses tox with the ``pep8`` environment.
|
||||
branches:
|
||||
- ^.*/jammy
|
||||
|
||||
- job:
|
||||
name: openstack-tox-pep8-charm-noble
|
||||
parent: openstack-tox-pep8
|
||||
nodeset: ubuntu-noble
|
||||
description: |
|
||||
Runs code pep8 tests.
|
||||
|
||||
Uses tox with the ``pep8`` environment.
|
||||
branches:
|
||||
- ^.*/noble
|
||||
- master
|
||||
|
||||
- job:
|
||||
name: openstack-tox-cover-charm-focal
|
||||
parent: openstack-tox-cover
|
||||
description: |
|
||||
Run code coverage tests.
|
||||
|
||||
Uses tox with the ``cover`` environment.
|
||||
nodeset: ubuntu-focal
|
||||
|
||||
- job:
|
||||
name: openstack-tox-cover-charm-jammy
|
||||
parent: openstack-tox-cover
|
||||
description: |
|
||||
Run code coverage tests.
|
||||
|
||||
Uses tox with the ``cover`` environment.
|
||||
nodeset: ubuntu-jammy
|
||||
|
||||
- job:
|
||||
name: openstack-tox-cover-charm-noble
|
||||
parent: openstack-tox-cover
|
||||
description: |
|
||||
Run code coverage tests.
|
||||
|
||||
Uses tox with the ``cover`` environment.
|
||||
nodeset: ubuntu-noble
|
||||
|
@@ -19,3 +19,70 @@
|
||||
jobs:
|
||||
- prometheus-alert-rules-test:
|
||||
nodeset: ubuntu-focal
|
||||
|
||||
- project-template:
|
||||
name: openstack-python3-charm-jobs-focal
|
||||
description: |
|
||||
Runs unit tests for an OpenStack Charm project under the CPython
|
||||
version 3 releases designated for testing across OpenStack
|
||||
releases on Focal stable branches.
|
||||
check:
|
||||
jobs:
|
||||
- openstack-tox-pep8-charm-focal
|
||||
- openstack-tox-py38
|
||||
- openstack-tox-py310:
|
||||
voting: false
|
||||
gate:
|
||||
jobs:
|
||||
- openstack-tox-pep8-charm-focal
|
||||
- openstack-tox-py38
|
||||
|
||||
- project-template:
|
||||
# NOTE(haleyb): this should have py310 voting in check and gate,
|
||||
# but will change in follow-on since this is what is done today
|
||||
name: openstack-python3-charm-jobs-jammy
|
||||
description: |
|
||||
Runs unit tests for an OpenStack Charm project under the CPython
|
||||
version 3 releases designated for testing across OpenStack
|
||||
releases on Jammy stable branches.
|
||||
check:
|
||||
jobs:
|
||||
- openstack-tox-pep8-charm-jammy
|
||||
- openstack-tox-py38
|
||||
- openstack-tox-py310:
|
||||
voting: false
|
||||
gate:
|
||||
jobs:
|
||||
- openstack-tox-pep8-charm-jammy
|
||||
- openstack-tox-py38
|
||||
|
||||
- project-template:
|
||||
name: openstack-python3-charm-jobs-noble
|
||||
description: |
|
||||
Runs unit tests for an OpenStack Charm project under the CPython
|
||||
version 3 releases designated for testing across OpenStack
|
||||
releases on Noble stable branches.
|
||||
check:
|
||||
jobs:
|
||||
- openstack-tox-pep8-charm-noble
|
||||
- openstack-tox-py312
|
||||
gate:
|
||||
jobs:
|
||||
- openstack-tox-pep8-charm-noble
|
||||
- openstack-tox-py312
|
||||
|
||||
- project-template:
|
||||
name: openstack-cover-charm-jobs
|
||||
description: |
|
||||
Runs openstack-tox-cover in only the check pipeline.
|
||||
check:
|
||||
jobs:
|
||||
- openstack-tox-cover-charm-focal:
|
||||
branches:
|
||||
- stable/focal
|
||||
- openstack-tox-cover-charm-jammy:
|
||||
branches:
|
||||
- stable/jammy
|
||||
- openstack-tox-cover-charm-noble:
|
||||
branches:
|
||||
- stable/noble
|
||||
|
Reference in New Issue
Block a user