Skip to content

Commit a0ec2de

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Move 'check-cherry-picks' test to gate, n-v check"
2 parents c9fd0c2 + 98b01c9 commit a0ec2de

File tree

3 files changed

+24
-9
lines changed

3 files changed

+24
-9
lines changed

.zuul.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,17 @@
5050
bindep_profile: test py39
5151
timeout: 3600
5252

53+
- job:
54+
name: nova-tox-validate-backport
55+
parent: openstack-tox
56+
description: |
57+
Determine whether a backport is ready to be merged by checking whether it
58+
has already been merged to master or more recent stable branches.
59+
60+
Uses tox with the ``validate-backport`` environment.
61+
vars:
62+
tox_envlist: validate-backport
63+
5364
- job:
5465
name: nova-live-migration
5566
parent: tempest-multinode-full-py3
@@ -159,7 +170,7 @@
159170
# Disable non-essential services that we don't need for this job.
160171
c-bak: false
161172

162-
#TODO(lucasagomes): Move this job to ML2/OVN when QoS Minimum Bandwidth
173+
# TODO(lucasagomes): Move this job to ML2/OVN when QoS Minimum Bandwidth
163174
# support is implemented.
164175
# See: https://docs.openstack.org/neutron/latest/ovn/gaps.html
165176
- job:
@@ -494,6 +505,8 @@
494505
- nova-lvm
495506
- nova-multi-cell
496507
- nova-next
508+
- nova-tox-validate-backport:
509+
voting: false
497510
- nova-tox-functional-py38
498511
- nova-tox-functional-py39:
499512
voting: false
@@ -535,6 +548,7 @@
535548
- nova-tox-functional-py38
536549
- nova-multi-cell
537550
- nova-next
551+
- nova-tox-validate-backport
538552
- nova-ceph-multistore:
539553
irrelevant-files: *nova-base-irrelevant-files
540554
- 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
@@ -51,16 +51,13 @@ commands =
5151
description =
5252
Run style checks.
5353
envdir = {toxworkdir}/shared
54-
passenv =
55-
DISABLE_CHERRY_PICK_CHECK
5654
commands =
5755
{[testenv:mypy]commands}
5856
bash tools/flake8wrap.sh {posargs}
5957
# Check that all JSON files don't have \r\n in line.
6058
bash -c "! find doc/ -type f -name *.json | xargs grep -U -n $'\r'"
6159
# Check that all included JSON files are valid JSON
6260
bash -c '! find doc/ -type f -name *.json | xargs -t -n1 python -m json.tool 2>&1 > /dev/null | grep -B1 -v ^python'
63-
bash tools/check-cherry-picks.sh
6461

6562
[testenv:fast8]
6663
description =
@@ -69,6 +66,15 @@ envdir = {toxworkdir}/shared
6966
commands =
7067
bash tools/flake8wrap.sh -HEAD
7168

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

0 commit comments

Comments
 (0)