Fix py27 and py35 zuul jobs failing to setup
As of March 1, when jobs run on ubuntu-xenial, they fail to run py27 and py35 jobs with an error similar to: /usr/bin/python3 -m virtualenv --no-download --python /usr/bin/python2.7 py27 ImportError: cannot import name 'ContextManager' It does not appear to impact the ubuntu-bionic nodes so updating zuul to use those nodes. bionic nodes do not support python3.5, so the py35 jobs is now converted to py36. Partial-Bug: 1865554 Change-Id: Iad13d03ced21294d1a02c82f4e1e37cac3f27ee7 Signed-off-by: albailey <Al.Bailey@windriver.com>
This commit is contained in:
parent
f63603e966
commit
b1dfa14f0b
14
.zuul.yaml
14
.zuul.yaml
@ -12,13 +12,13 @@
|
|||||||
- openstack-tox-pep8
|
- openstack-tox-pep8
|
||||||
- stx-fault-build
|
- stx-fault-build
|
||||||
- fault-rest-api-py27
|
- fault-rest-api-py27
|
||||||
- fault-rest-api-py35
|
- fault-rest-api-py36
|
||||||
gate:
|
gate:
|
||||||
jobs:
|
jobs:
|
||||||
- openstack-tox-linters
|
- openstack-tox-linters
|
||||||
- openstack-tox-pep8
|
- openstack-tox-pep8
|
||||||
- fault-rest-api-py27
|
- fault-rest-api-py27
|
||||||
- fault-rest-api-py35
|
- fault-rest-api-py36
|
||||||
post:
|
post:
|
||||||
jobs:
|
jobs:
|
||||||
- stx-fault-upload-git-mirror
|
- stx-fault-upload-git-mirror
|
||||||
@ -62,7 +62,7 @@
|
|||||||
parent: tox
|
parent: tox
|
||||||
description: |
|
description: |
|
||||||
Run py27 test for fm-rest-api
|
Run py27 test for fm-rest-api
|
||||||
nodeset: ubuntu-xenial
|
nodeset: ubuntu-bionic
|
||||||
required-projects:
|
required-projects:
|
||||||
- starlingx/config
|
- starlingx/config
|
||||||
vars:
|
vars:
|
||||||
@ -70,15 +70,15 @@
|
|||||||
tox_extra_args: -c fm-rest-api/fm/tox.ini
|
tox_extra_args: -c fm-rest-api/fm/tox.ini
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: fault-rest-api-py35
|
name: fault-rest-api-py36
|
||||||
parent: tox
|
parent: tox
|
||||||
description: |
|
description: |
|
||||||
Run py35 test for fm-rest-api
|
Run py36 test for fm-rest-api
|
||||||
nodeset: ubuntu-xenial
|
nodeset: ubuntu-bionic
|
||||||
required-projects:
|
required-projects:
|
||||||
- starlingx/config
|
- starlingx/config
|
||||||
vars:
|
vars:
|
||||||
tox_envlist: py35
|
tox_envlist: py36
|
||||||
tox_extra_args: -c fm-rest-api/fm/tox.ini
|
tox_extra_args: -c fm-rest-api/fm/tox.ini
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = py27,py35
|
envlist = py27,py36
|
||||||
minversion = 2.3
|
minversion = 2.3
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
stxdir = {toxinidir}/../../../
|
stxdir = {toxinidir}/../../../
|
||||||
@ -23,8 +23,8 @@ commands =
|
|||||||
stestr run {posargs}
|
stestr run {posargs}
|
||||||
stestr slowest
|
stestr slowest
|
||||||
|
|
||||||
[testenv:py35]
|
[testenv:py36]
|
||||||
basepython = python3.5
|
basepython = python3.6
|
||||||
commands =
|
commands =
|
||||||
stestr run {posargs}
|
stestr run {posargs}
|
||||||
stestr slowest
|
stestr slowest
|
||||||
|
Loading…
Reference in New Issue
Block a user