Skip to content

Commit fef0305

Browse files
stephenfinlyarwood
authored andcommitted
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): Conflict as I91b8056e73658fc815eb2f6711e89d4ab5deed92 isn't present on stable/wallaby. Conflicts: .zuul.yaml Change-Id: Id3e4452883f6a3cf44ff58b39ded82e882e28c23 Signed-off-by: Stephen Finucane <[email protected]> (cherry picked from commit 98b01c9)
1 parent 222075a commit fef0305

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
@@ -78,6 +78,17 @@
7878
bindep_profile: test py39
7979
timeout: 3600
8080

81+
- job:
82+
name: nova-tox-validate-backport
83+
parent: openstack-tox
84+
description: |
85+
Determine whether a backport is ready to be merged by checking whether it
86+
has already been merged to master or more recent stable branches.
87+
88+
Uses tox with the ``validate-backport`` environment.
89+
vars:
90+
tox_envlist: validate-backport
91+
8192
- job:
8293
name: nova-live-migration
8394
parent: tempest-multinode-full-py3
@@ -460,6 +471,8 @@
460471
- nova-lvm
461472
- nova-multi-cell
462473
- nova-next
474+
- nova-tox-validate-backport:
475+
voting: false
463476
- nova-tox-functional-py38
464477
- nova-tox-functional-py39:
465478
voting: false
@@ -500,6 +513,7 @@
500513
- nova-tox-functional-py38
501514
- nova-multi-cell
502515
- nova-next
516+
- nova-tox-validate-backport
503517
- nova-ceph-multistore:
504518
irrelevant-files: *dsvm-irrelevant-files
505519
- 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)