Skip to content

Commit 4ce01d6

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Move 'check-cherry-picks' test to gate, n-v check" into stable/victoria
2 parents b2fd01f + b7677ae commit 4ce01d6

File tree

3 files changed

+23
-8
lines changed

3 files changed

+23
-8
lines changed

.zuul.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,17 @@
5656
bindep_profile: test py38
5757
timeout: 3600
5858

59+
- job:
60+
name: nova-tox-validate-backport
61+
parent: openstack-tox
62+
description: |
63+
Determine whether a backport is ready to be merged by checking whether it
64+
has already been merged to master or more recent stable branches.
65+
66+
Uses tox with the ``validate-backport`` environment.
67+
vars:
68+
tox_envlist: validate-backport
69+
5970
- job:
6071
name: nova-live-migration
6172
parent: tempest-multinode-full-py3
@@ -424,6 +435,8 @@
424435
- nova-lvm
425436
- nova-multi-cell
426437
- nova-next
438+
- nova-tox-validate-backport:
439+
voting: false
427440
- nova-tox-functional-py38
428441
- tempest-integrated-compute:
429442
# NOTE(gmann): Policies changes do not need to run all the
@@ -462,6 +475,7 @@
462475
- nova-tox-functional-py38
463476
- nova-multi-cell
464477
- nova-next
478+
- nova-tox-validate-backport
465479
- nova-ceph-multistore:
466480
irrelevant-files: *dsvm-irrelevant-files
467481
- neutron-tempest-linuxbridge:

tools/check-cherry-picks.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
# to verify that they're all on either master or stable/ branches
55
#
66

7-
# Allow this script to be disabled by a simple env var
8-
if [ ${DISABLE_CHERRY_PICK_CHECK:-0} -eq 1 ]; then
9-
exit 0
10-
fi
11-
127
commit_hash=""
138

149
# Check if the patch is a merge patch by counting the number of parents.

tox.ini

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,13 @@ commands =
4949
description =
5050
Run style checks.
5151
envdir = {toxworkdir}/shared
52-
passenv =
53-
DISABLE_CHERRY_PICK_CHECK
5452
commands =
5553
{[testenv:mypy]commands}
5654
bash tools/flake8wrap.sh {posargs}
5755
# Check that all JSON files don't have \r\n in line.
5856
bash -c "! find doc/ -type f -name *.json | xargs grep -U -n $'\r'"
5957
# Check that all included JSON files are valid JSON
6058
bash -c '! find doc/ -type f -name *.json | xargs -t -n1 python -m json.tool 2>&1 > /dev/null | grep -B1 -v ^python'
61-
bash tools/check-cherry-picks.sh
6259

6360
[testenv:fast8]
6461
description =
@@ -67,6 +64,15 @@ envdir = {toxworkdir}/shared
6764
commands =
6865
bash tools/flake8wrap.sh -HEAD
6966

67+
[testenv:validate-backport]
68+
description =
69+
Determine whether a backport is ready to be merged by checking whether it has
70+
already been merged to master or more recent stable branches.
71+
deps =
72+
skipsdist = true
73+
commands =
74+
bash tools/check-cherry-picks.sh
75+
7076
[testenv:functional]
7177
description =
7278
Run functional tests using python3.

0 commit comments

Comments
 (0)