From 90d9eb416129c9566ce7fe85b021a8f67cccd420 Mon Sep 17 00:00:00 2001 From: albailey Date: Mon, 9 Aug 2021 08:45:02 -0500 Subject: [PATCH] Attempt to fix zuul jobs from timing out The tox jobs for fault are having problems with a timeout, which appears to be related to how long it takes to setup the python requirements. This update tries to limit the scope for yamllint, and eliminate some of the sdist related actions. pylint has been relocated to the test-requirements file. The usedevelop = False is required for the base tox.ini because there are no setup files at that directory level. Several pylint errors had to be suppressed, and will be restored once py3 changes are merged from centos8 branch. Story: 2008943 Task: 42967 Signed-off-by: albailey Change-Id: Icc8747226511f0be614df20800813fe4eb9e6b96 --- fm-rest-api/fm/test-requirements.txt | 2 +- pylint.rc | 3 +++ test-requirements.txt | 6 ++++-- tox.ini | 4 +--- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/fm-rest-api/fm/test-requirements.txt b/fm-rest-api/fm/test-requirements.txt index 00adf991..2b21c4c6 100644 --- a/fm-rest-api/fm/test-requirements.txt +++ b/fm-rest-api/fm/test-requirements.txt @@ -1,7 +1,7 @@ hacking!=0.13.0,<0.14,>=0.12.0 bashate >= 0.2 PyYAML >= 3.1.0 -yamllint >= 0.5.2 +yamllint<1.26.1;python_version>="3.0" # GPLv2 stestr != 3.0.0 testtools!=1.2.0,>=0.9.36 iso8601 diff --git a/pylint.rc b/pylint.rc index 066bc5e0..6c1c7bea 100755 --- a/pylint.rc +++ b/pylint.rc @@ -71,9 +71,12 @@ extension-pkg-whitelist=lxml.etree,greenlet # E1102 not-callable # E1120 no-value-for-parameter # E1121 too-many-function-args +# NOTE: these are suppressed until py3 support merges: +# W0143,W1505,E0604,E0611,E0702,E1136,E0401 disable=C, R, fixme, W0102,W0106,W0107,W0110,W0201,W0212,W0221,W0223,W0231,W0237,W0235, W0311,W0403,W0603,W0612,W0613,W0621,W0622,W0703,W1401, + W0143,W1505,E0604,E0611,E0702,E1136,E0401, E0604,E1101,E1102,E1120,E1121 [REPORTS] diff --git a/test-requirements.txt b/test-requirements.txt index 891aec20..ce23df38 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -2,6 +2,8 @@ hacking<4.0.1 bashate >= 0.2 mock PyYAML >= 3.1.0 -yamllint >= 0.5.2 -isort<5;python_version>="3.5" +astroid<= 2.2.5;python_version>="3.0" # GPLv2 bandit;python_version>="3.5" +isort<5;python_version>="3.5" +pylint<2.4.0;python_version>="3.0" # GPLv2 +yamllint<1.26.1;python_version>="3.0" # GPLv2 diff --git a/tox.ini b/tox.ini index baaf4cbe..6355540b 100644 --- a/tox.ini +++ b/tox.ini @@ -5,6 +5,7 @@ skipsdist = True stxdir = {toxinidir}/../ [testenv] +usedevelop = False install_command = pip install \ -chttps://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt \ {opts} {packages} @@ -52,13 +53,10 @@ commands = [testenv:pylint] basepython = python3 -sitepackages = False - deps = {[testenv]deps} -e{toxinidir}/../config/tsconfig/tsconfig -e{toxinidir}/../config/sysinv/cgts-client/cgts-client -r{toxinidir}/requirements.txt - pylint commands = pylint {posargs} --rcfile=./pylint.rc \ fm-api/fm_api \