Move 'check-cherry-picks' test to gate, n-v check

This currently runs in the 'check' pipeline, as part of the pep8 job,
which causes otherwise perfectly valid backports to report as failing
CI. There's no reason a stable core shouldn't be encouraged to review
these patches: we simply want to prevent them *merging* before their
parent(s). Resolve this conflict by moving the check to separate voting
job in the 'gate' pipeline as well as a non-voting job in the 'check'
pipeline to catch more obvious issues.

NOTE(lyarwood): Conflicts as I1d6a2986fcb0435cfabdd104d202b65329909d2b
and If6758c83a6bd95aefb7703529cbccd14e3adfee2 are not present on
stable/ussuri.

Conflicts:
  .zuul.yaml

Change-Id: Id3e4452883f6a3cf44ff58b39ded82e882e28c23
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
(cherry picked from commit 98b01c9a59)
(cherry picked from commit fef0305abe)
(cherry picked from commit b7677ae08a)
This commit is contained in:
Stephen Finucane 2021-06-16 12:00:19 +01:00 committed by Lee Yarwood
parent 8e9859b95c
commit 91314f7fbb
3 changed files with 23 additions and 8 deletions

View File

@ -78,6 +78,17 @@
bindep_profile: test py37
timeout: 3600
- job:
name: nova-tox-validate-backport
parent: openstack-tox
description: |
Determine whether a backport is ready to be merged by checking whether it
has already been merged to master or more recent stable branches.
Uses tox with the ``validate-backport`` environment.
vars:
tox_envlist: validate-backport
- job:
name: nova-live-migration
parent: nova-dsvm-multinode-base
@ -378,6 +389,8 @@
- nova-multi-cell
- nova-next
- nova-tox-functional-py36
- nova-tox-validate-backport:
voting: false
- tempest-integrated-compute:
# NOTE(gmann): Policies changes do not need to run all the
# integration test jobs. Running only tempest and grenade
@ -413,6 +426,7 @@
- nova-tox-functional-py36
- nova-multi-cell
- nova-next
- nova-tox-validate-backport
- tempest-integrated-compute:
irrelevant-files: *policies-irrelevant-files
- grenade:

View File

@ -4,11 +4,6 @@
# to verify that they're all on either master or stable/ branches
#
# Allow this script to be disabled by a simple env var
if [ ${DISABLE_CHERRY_PICK_CHECK:-0} -eq 1 ]; then
exit 0
fi
commit_hash=""
# Check if the patch is a merge patch by counting the number of parents.

12
tox.ini
View File

@ -42,15 +42,12 @@ commands =
description =
Run style checks.
envdir = {toxworkdir}/shared
passenv =
DISABLE_CHERRY_PICK_CHECK
commands =
bash tools/flake8wrap.sh {posargs}
# Check that all JSON files don't have \r\n in line.
bash -c "! find doc/ -type f -name *.json | xargs grep -U -n $'\r'"
# Check that all included JSON files are valid JSON
bash -c '! find doc/ -type f -name *.json | xargs -t -n1 python -m json.tool 2>&1 > /dev/null | grep -B1 -v ^python'
bash tools/check-cherry-picks.sh
[testenv:fast8]
description =
@ -59,6 +56,15 @@ envdir = {toxworkdir}/shared
commands =
bash tools/flake8wrap.sh -HEAD
[testenv:validate-backport]
description =
Determine whether a backport is ready to be merged by checking whether it has
already been merged to master or more recent stable branches.
deps =
skipsdist = true
commands =
bash tools/check-cherry-picks.sh
[testenv:functional]
description =
Run functional tests using python3.