From 81f896141426f66de522ba3af07e17bda6e18792 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Mon, 24 Aug 2026 20:38:41 +0200 Subject: CI: Post sources.yaml changes Add sources.yaml trigger on aio/mariadb/prometheus jobs Move out yamllint header from sources.yaml to yamllint config, because the kolla-check-sources.py does not ensure the header is there and it's easier to fix it in this repo. Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/1002239 Change-Id: I4e01fb50ca92a12812a0ab1c63b44e1aa5d4a717 Signed-off-by: Michal Nasiadka Signed-off-by: Bartosz Bezak --- .yamllint | 27 +++++++++++++++++++++++++++ kolla/common/sources.yaml | 1 - zuul.d/scenarios/aio.yaml | 4 +++- zuul.d/scenarios/mariadb.yaml | 4 +++- zuul.d/scenarios/prometheus-opensearch.yaml | 4 +++- 5 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 .yamllint diff --git a/.yamllint b/.yamllint new file mode 100644 index 000000000..016ae71e8 --- /dev/null +++ b/.yamllint @@ -0,0 +1,27 @@ +extends: default + +rules: + comments: + # https://github.com/prettier/prettier/issues/6780 + min-spaces-from-content: 1 + # https://github.com/adrienverge/yamllint/issues/384 + comments-indentation: false + document-start: disable + # 160 chars was the default used by old E204 rule, but + # you can easily change it or disable in your .yamllint file. + line-length: + ignore: | + kolla/common/sources.yaml + max: 160 + # We are adding an extra space inside braces as that's how prettier does it + # and we are trying not to fight other linters. + braces: + min-spaces-inside: 0 # yamllint defaults to 0 + max-spaces-inside: 1 # yamllint defaults to 0 + # key-duplicates: + # forbid-duplicated-merge-keys: true # not enabled by default + octal-values: + forbid-implicit-octal: true # yamllint defaults to false + forbid-explicit-octal: true # yamllint defaults to false + # quoted-strings: + # quote-type: double diff --git a/kolla/common/sources.yaml b/kolla/common/sources.yaml index 54291bcd4..054482fa2 100644 --- a/kolla/common/sources.yaml +++ b/kolla/common/sources.yaml @@ -1,4 +1,3 @@ -# yamllint disable rule:line-length --- openstack-base: type: "url" diff --git a/zuul.d/scenarios/aio.yaml b/zuul.d/scenarios/aio.yaml index 4a8a324ea..f5acd08c2 100644 --- a/zuul.d/scenarios/aio.yaml +++ b/zuul.d/scenarios/aio.yaml @@ -6,7 +6,9 @@ check: jobs: - kolla-ansible-centos-10s: &files - files: ^kolla/docker/ + files: + - ^kolla/common/sources.yaml + - ^kolla/docker/ - kolla-ansible-debian-trixie: *files - kolla-ansible-debian-trixie-upgrade: *files - kolla-ansible-rocky-10: *files diff --git a/zuul.d/scenarios/mariadb.yaml b/zuul.d/scenarios/mariadb.yaml index 882e1338e..c53a27fca 100644 --- a/zuul.d/scenarios/mariadb.yaml +++ b/zuul.d/scenarios/mariadb.yaml @@ -6,6 +6,8 @@ check: jobs: - kolla-ansible-debian-trixie-mariadb: &files - files: ^kolla/docker/(base|mariadb-server)/ + files: + - ^kolla/common/sources.yaml + - ^kolla/docker/(base|mariadb-server)/ - kolla-ansible-rocky-10-mariadb: *files - kolla-ansible-ubuntu-noble-mariadb: *files diff --git a/zuul.d/scenarios/prometheus-opensearch.yaml b/zuul.d/scenarios/prometheus-opensearch.yaml index 84649c360..c1a5778de 100644 --- a/zuul.d/scenarios/prometheus-opensearch.yaml +++ b/zuul.d/scenarios/prometheus-opensearch.yaml @@ -4,7 +4,9 @@ check: jobs: - kolla-ansible-debian-trixie-prometheus-opensearch: &files - files: ^kolla/docker/(base|fluentd|grafana|opensearch|prometheus)/ + files: + - ^kolla/common/sources.yaml + - ^kolla/docker/(base|fluentd|grafana|opensearch|prometheus)/ - kolla-ansible-debian-trixie-prometheus-opensearch-upgrade: *files - kolla-ansible-rocky-10-prometheus-opensearch: *files - kolla-ansible-rocky-10-prometheus-opensearch-upgrade: *files -- cgit v1.2.3