From f694e82b477d4f8a5bdf3ae0bcbfd00440067ad8 Mon Sep 17 00:00:00 2001 From: Gulsum Atici Date: Wed, 29 Mar 2023 22:04:38 +0300 Subject: [PATCH] Allow to run with single tox environment Change-Id: Ic77729d86449daf401602baf3fb35563aa87e10a Signed-off-by: Gulsum Atici --- devops-stages/stage-test.sh | 2 +- ...ngle_tox_environment-30aaca72e8b59c4e.yaml | 23 +++++++++++++++++++ tox.ini | 1 + 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/single_tox_environment-30aaca72e8b59c4e.yaml diff --git a/devops-stages/stage-test.sh b/devops-stages/stage-test.sh index bfcdf9bd..23f2dd68 100755 --- a/devops-stages/stage-test.sh +++ b/devops-stages/stage-test.sh @@ -14,6 +14,6 @@ # limitations under the License. set -e echo "Launching tox" -tox --parallel=auto +tox diff --git a/releasenotes/notes/single_tox_environment-30aaca72e8b59c4e.yaml b/releasenotes/notes/single_tox_environment-30aaca72e8b59c4e.yaml new file mode 100644 index 00000000..3730af47 --- /dev/null +++ b/releasenotes/notes/single_tox_environment-30aaca72e8b59c4e.yaml @@ -0,0 +1,23 @@ +####################################################################################### +# Copyright ETSI Contributors and Others. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and +# limitations under the License. +####################################################################################### +--- +other: + - | + Running several tox environment parallely causes failures during stage tests frequently. + Although the reason is not clear, we are suspicious that environments are affecting each other. + This change allows to run only one tox environment at the same time. + diff --git a/tox.ini b/tox.ini index b9cbdb65..f48234af 100644 --- a/tox.ini +++ b/tox.ini @@ -20,6 +20,7 @@ envlist = black, flake8, safety, cover [tox:jenkins] toxworkdir = /tmp/.tox +setenv = XDG_CACHE_HOME=/tmp/.cache [testenv] usedevelop = True -- 2.25.1