8b29037cec
This is the action item to implement the spec: doc/source/specs/2025.1/chart_versioning.rst Also add overrides env variables - OSH_VALUES_OVERRIDES_PATH - OSH_INFRA_VALUES_OVERRIDES_PATH This commit temporarily disables all jobs that involve scripts in the OSH git repo because they need to be updated to work with the new values_overrides structure in the OSH-infra repo. Once this is merged I4974785c904cf7c8730279854e3ad9b6b7c35498 all these disabled test jobs must be enabled. Depends-On: I327103c18fc0e10e989a17f69b3bff9995c45eb4 Change-Id: I7bfdef3ea2128bbb4e26e3a00161fe30ce29b8e7
66 lines
3.2 KiB
YAML
66 lines
3.2 KiB
YAML
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
---
|
|
- block:
|
|
- name: "Run script set {{ workload }}"
|
|
shell: |
|
|
set -xe;
|
|
env
|
|
{{ gate_script_path }}
|
|
loop: "{{ workload }}"
|
|
loop_control:
|
|
loop_var: gate_script_path
|
|
pause: 5
|
|
args:
|
|
chdir: "{{ zuul.project.src_dir }}/{{ gate_scripts_relative_path }}"
|
|
environment:
|
|
CEPH_OSD_DATA_DEVICE: "{{ ceph_osd_data_device }}"
|
|
POD_NETWORK_CIDR: "{{ kubeadm.pod_network_cidr }}"
|
|
zuul_site_mirror_fqdn: "{{ zuul_site_mirror_fqdn }}"
|
|
OSH_EXTRA_HELM_ARGS: "{{ zuul_osh_extra_helm_args_relative_path | default('') }}"
|
|
OSH_HELM_REPO: "{{ osh_helm_repo | default('../openstack-helm/') }}"
|
|
OSH_INFRA_HELM_REPO: "{{ osh_infra_helm_repo | default('../openstack-helm-infra/') }}"
|
|
DOWNLOAD_OVERRIDES: "{{ download_overrides | default('') }}"
|
|
OSH_PATH: "{{ zuul_osh_relative_path | default('../openstack-helm/') }}"
|
|
OSH_INFRA_PATH: "{{ zuul_osh_infra_relative_path | default('../openstack-helm-infra/') }}"
|
|
OSH_VALUES_OVERRIDES_PATH: "{{ osh_values_overrides_path }}"
|
|
OSH_INFRA_VALUES_OVERRIDES_PATH: "{{ osh_infra_values_overrides_path }}"
|
|
OPENSTACK_RELEASE: "{{ osh_params.openstack_release | default('') }}"
|
|
CONTAINER_DISTRO_NAME: "{{ osh_params.container_distro_name | default('') }}"
|
|
CONTAINER_DISTRO_VERSION: "{{ osh_params.container_distro_version | default('') }}"
|
|
FEATURE_GATES: "{{ osh_params.feature_gates | default('') }}"
|
|
FEATURES: "{{ osh_params.feature_gates | default('') | regex_replace(',', ' ') }} {{ osh_params.openstack_release | default('') }} {{ osh_params.container_distro_name | default('') }}_{{ osh_params.container_distro_version | default('') }} {{ osh_params.container_distro_name | default('') }}"
|
|
RUN_HELM_TESTS: "{{ run_helm_tests | default('yes') }}"
|
|
# NOTE(aostapenko) using bigger than async_status timeout due to async_status issue with
|
|
# not recognizing timed out jobs: https://github.com/ansible/ansible/issues/25637
|
|
async: 3600
|
|
poll: 0
|
|
register: async_results
|
|
|
|
- name: Wait for script set to finish
|
|
async_status:
|
|
jid: '{{ item.ansible_job_id }}'
|
|
register: jobs
|
|
until: jobs.finished
|
|
delay: 5
|
|
retries: 360
|
|
loop: "{{ async_results.results }}"
|
|
|
|
always:
|
|
- name: Print script set output
|
|
shell: |
|
|
# NOTE(aostapenko) safely retrieving items for the unlikely case if jobs timed out in async_status
|
|
echo 'STDOUT:\n{{ item.get("stdout") | regex_replace("\'", "") }}\nSTDERR:\n{{ item.get("stderr") | regex_replace("\'", "") }}'
|
|
loop: "{{ jobs.results }}"
|
|
...
|