Fix gate by running l-c job on Bionic

l-c job template moved the l-c jobs running on Focal
and currently fails on many constraints.

Let's keep running l-c job on bionic as it was before and we
can move it to Focal once issues are identified and fixed.

- Fixing the hacking tests which are behaving differently between
< 3.8.0 (until Ubuntu Bionic) and 3.8.2 (Ubuntu Focal).

Squashing below review also
- https://review.opendev.org/#/c/750786/

Co-Author: Lance Bragstad <lbragstad@gmail.com>

Change-Id: If733e9824d87d8c73797f753e4daf95489bed9c2
This commit is contained in:
Ghanshyam Mann 2020-09-10 19:05:30 -05:00
parent 0b9d98b37b
commit 0ba9e3a12e
3 changed files with 20 additions and 3 deletions

View File

@ -204,7 +204,7 @@
- project:
templates:
- openstack-cover-jobs
- openstack-lower-constraints-jobs
#- openstack-lower-constraints-jobs
- openstack-python3-victoria-jobs
- publish-openstack-docs-pti
- periodic-stable-jobs
@ -221,6 +221,14 @@
- ^etc/.*$
- ^keystone/tests/unit/.*$
- ^releasenotes/.*$
- openstack-tox-lower-constraints:
nodeset: ubuntu-bionic
irrelevant-files: &func_irrelevant-files
- ^.*\.rst$
- ^api-ref/.*$
- ^doc/.*$
- ^etc/.*$
- ^releasenotes/.*$
- keystone-dsvm-py3-functional-federation-ubuntu-focal:
voting: false
irrelevant-files: *irrelevant-files
@ -249,6 +257,9 @@
- keystone-tox-protection
gate:
jobs:
- openstack-tox-lower-constraints:
nodeset: ubuntu-bionic
irrelevant-files: *func_irrelevant-files
- keystone-dsvm-py3-functional:
irrelevant-files: *irrelevant-files
- keystone-dsvm-py3-functional-federation-ubuntu-focal-k2k:

View File

@ -65,7 +65,7 @@ class HackingCode(fixtures.Fixture):
'expected_errors': [
(7, 10, 'K001'),
(10, 15, 'K001'),
(10, 29, 'K001'),
(10, 28, 'K001'),
(13, 15, 'K001'),
(16, 15, 'K001'),
(16, 31, 'K001'),
@ -87,6 +87,12 @@ class HackingCode(fixtures.Fixture):
mutable_default_args['expected_errors'][12] = (28, 27, 'K001')
mutable_default_args['expected_errors'][14] = (32, 11, 'K001')
# NOTE(gmann): Python version < 3.8.2 (before Ubuntu Focal) returns
# the incorrect col_offset for below function defined in above code sample
# def f(foo, bad=[], more_bad=[x for x in range(3)]):
if sys.version_info < (3, 8, 2):
mutable_default_args['expected_errors'][2] = (10, 29, 'K001')
comments_begin_with_space = {
'code': """
# This is a good comment

View File

@ -1,4 +1,4 @@
amqp==2.2.2
amqp==5.0.0
Babel==2.3.4
bashate==0.5.1
bcrypt==3.1.3