Merge "Verify that wheels are built while running against multiple hosts"

This commit is contained in:
Zuul 2021-12-25 00:14:30 +00:00 committed by Gerrit Code Review
commit aa39e09529
1 changed files with 20 additions and 0 deletions

View File

@ -22,6 +22,26 @@
tags:
- always
# NOTE(noonedeadpunk): If you are deploying services from local forks high load on which is not
# an issue for you, you can disable this with `venv_wheel_build_skip_check: true`
- name: Fail if wheels are not built for multiple hosts
fail:
msg: >-
You are not building wheels while running role against multiple hosts.
This might result in DOS-ing OpenDev infrustructure servers.
In order to proceed, please ensure that you have repo servers
for selected OS version and architecture.
If you want to avoid building wheel on purpose, ensure that you run
playbook in serial manner.
In case of causing unreasonable load on the opendev.org git servers,
your access may be blocked to protect other users and the OpenDev CI
infrastructure which are reliant on this service.
Found venv_build_targets: {{ venv_build_targets }}
when:
- venv_wheel_build_enable | bool
- ansible_play_batch | length > 2
- not (venv_wheel_build_skip_check | default(False))
- include_tasks: "python_venv_wheel_build.yml"
args:
apply: