CI restructuring

Bumping yamllint version to 1.33.0

Removing heavy CI jobs from pipeline

Removing molecule jobs from pipeline

Removing doc build and promotion

Fixing indentation in impacted ansible files

Adjusted for wallaby stable branch.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I113f1415db37bebb359e325858094a59077ec57a
(cherry picked from commit eb00c0fc9d)
This commit is contained in:
Jiri Podivin 2023-11-20 09:16:11 +01:00
parent 2b526f850b
commit bcab47fae0
5 changed files with 12 additions and 57 deletions

View File

@ -20,7 +20,7 @@ repos:
entry: flake8 --ignore=E24,E121,E122,E123,E124,E126,E226,E265,E305,E402,F401,F405,E501,E704,F403,F841,W503,W605
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.24.2
rev: v1.33.0
hooks:
- id: yamllint
files: \.(yaml|yml)$

View File

@ -3,10 +3,10 @@
hosts: all
tasks:
- name: Copy http_server.py
copy:
src: ../scripts/http_server.py
dest: /
- name: Copy http_server.py
copy:
src: ../scripts/http_server.py
dest: /
- name: "Start http_server.py scenario {{ molecule_yml.scenario.name }}"
shell: cd /; nohup python3 /http_server.py --scenario {{ molecule_yml.scenario.name }} > http_server.log 2>&1 &
- name: "Start http_server.py scenario {{ molecule_yml.scenario.name }}"
shell: cd /; nohup python3 /http_server.py --scenario {{ molecule_yml.scenario.name }} > http_server.log 2>&1 &

View File

@ -18,7 +18,7 @@
hosts: all
gather_facts: false
tasks:
# This is an example playbook to execute your ansible tests.
- name: Example assertion
assert:
that: true
# This is an example playbook to execute your ansible tests.
- name: Example assertion
assert:
that: true

View File

@ -53,7 +53,7 @@ commands = oslo_debug_helper {posargs}
deps =
-r {toxinidir}/requirements.txt
-r {toxinidir}/test-requirements.txt
-r {toxinidir}/molecule-requirements.txt
ansible-core
-c {env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/wallaby}
commands =
ansible-galaxy install -fr {toxinidir}/ansible-collections-requirements.yml

View File

@ -1,57 +1,12 @@
---
- project:
templates:
- tripleo-validations-molecule-jobs
- release-notes-jobs-python3
- check-requirements
check:
jobs:
- openstack-tox-linters
- openstack-tox-docs: &tripleo-docs
files:
- ^doc/.*
- ^groups.yaml
- ^molecule-requirements.txt
- ^requirements.txt
- ^README.rst
- tripleo-ci-centos-8-content-provider: &content_provider_deps
irrelevant-files: &docs_only_files
- ^.*\.rst$
- ^doc/.*$
- ^releasenotes/.*$
dependencies:
- openstack-tox-linters
- tripleo-ci-centos-8-standalone-tv-validation:
irrelevant-files: *docs_only_files
vars: &consumer_vars
consumer_job: true
build_container_images: false
remove_tags:
- build
dependencies:
- tripleo-ci-centos-8-content-provider
- tripleo-ci-centos-9-content-provider: *content_provider_deps
- tripleo-ci-centos-9-standalone-tv-validation: &9_tv_validation_all
irrelevant-files: *docs_only_files
vars: *consumer_vars
dependencies:
- tripleo-ci-centos-9-content-provider
- openstack-tox-py36
gate:
jobs:
- openstack-tox-linters
- openstack-tox-docs: *tripleo-docs
- tripleo-ci-centos-8-content-provider:
irrelevant-files: *docs_only_files
- tripleo-ci-centos-8-standalone-tv-validation:
irrelevant-files: *docs_only_files
vars: *consumer_vars
dependencies:
- tripleo-ci-centos-8-content-provider
- tripleo-ci-centos-9-content-provider: *content_provider_deps
- tripleo-ci-centos-9-standalone-tv-validation: *9_tv_validation_all
- openstack-tox-py36
promote:
jobs:
- promote-openstack-tox-docs: *tripleo-docs