Skip to content
This repository was archived by the owner on Aug 13, 2024. It is now read-only.

Commit b65bdbd

Browse files
committed
ci: use virtualenv to avoid race conditions
Desktop QA tests also use Pytest packages and their versions are different, so we can't install them globally, it needs to be done per build using `WORKSPACE_TMP` as destination. Signed-off-by: Jakub Sokołowski <jakub@status.im>
1 parent bcac2b9 commit b65bdbd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ci/Jenkinsfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ pipeline {
7070
PYTHONPATH = "${SQUISH_DIR}/lib:${SQUISH_DIR}/lib/python:${PYTHONPATH}"
7171
LD_LIBRARY_PATH = "${SQUISH_DIR}/lib:${SQUISH_DIR}/python3/lib:${LD_LIBRARY_PATH}"
7272

73+
/* Avoid race conditions with other builds using virtualenv. */
74+
VIRTUAL_ENV = "${WORKSPACE_TMP}/venv"
75+
PATH = "${VIRTUAL_ENV}/bin:${PATH}"
76+
7377
TESTRAIL_URL = 'https://ethstatus.testrail.net'
7478
TESTRAIL_PROJECT_ID = 17
7579

@@ -87,7 +91,8 @@ pipeline {
8791

8892
stage('Deps') {
8993
steps { script {
90-
sh 'pip3 install --user -r requirements.txt'
94+
sh "python3 -m venv ${VIRTUAL_ENV}"
95+
sh 'pip3 install -r requirements.txt'
9196
} }
9297
}
9398

0 commit comments

Comments
 (0)