Fixing pylint failures in zuul.

pylint running in python3.8 will complain about some
code such as 'import contextlib'

Rather than destabilize the code, specify python3.6 for
the pylint job.

When python2 is fully dropped, the changes can be addressed.

The zuul nodeset for bionic sets up a venv for python3.6

Closes-Bug: #1928841
Signed-off-by: albailey <Al.Bailey@windriver.com>
Change-Id: Ib2e7f467ce20e5b31aef7242405ef034583d4e1a
(cherry picked from commit f9a862b5d8)
This commit is contained in:
albailey 2021-05-18 11:06:17 -05:00 committed by Al Bailey
parent 4e2fc59072
commit 35e6f1d277
3 changed files with 3 additions and 2 deletions

View File

@ -88,6 +88,7 @@
parent: tox
description: |
Run pylint test for sysinv
nodeset: ubuntu-bionic
required-projects:
- starlingx/fault
- starlingx/update

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2018-2020 Wind River Systems, Inc.
# Copyright (c) 2018-2021 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#

View File

@ -164,7 +164,7 @@ deps = -r{toxinidir}/test-requirements.txt
commands = bandit --ini tox.ini -n 5 -r sysinv
[testenv:pylint]
basepython = python3
basepython = python3.6
commands =
pylint {posargs} sysinv --rcfile=./pylint.rc