From a55f92954ae9286114ac38730cb684607b4f3297 Mon Sep 17 00:00:00 2001 From: William Giokas <1007380@gmail.com> Date: Thu, 2 Aug 2018 21:27:18 -0600 Subject: [PATCH] No rehashing in parallel Rehashing in parallel causes pyenv to fail, if they're run at almost the exact same time. It's breaking our lint tests pretty horribly. --- .ci/lint | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/lint b/.ci/lint index 2920022b2c..a820c149de 100644 --- a/.ci/lint +++ b/.ci/lint @@ -29,13 +29,13 @@ pipeline { parallel { stage('salt linting') { steps { - sh 'eval "$(pyenv init -)"; tox -e pylint-salt $(find salt/ -name "*.py" -exec git diff --name-only "origin/$CHANGE_TARGET" "origin/$BRANCH_NAME" setup.py {} +) | tee pylint-report.xml' + sh 'eval "$(pyenv init - --no-rehash)"; tox -e pylint-salt $(find salt/ -name "*.py" -exec git diff --name-only "origin/$CHANGE_TARGET" "origin/$BRANCH_NAME" setup.py {} +) | tee pylint-report.xml' archiveArtifacts artifacts: 'pylint-report.xml' } } stage('test linting') { steps { - sh 'eval "$(pyenv init -)"; tox -e pylint-tests $(find tests/ -name "*.py" -exec git diff --name-only "origin/$CHANGE_TARGET" "origin/$BRANCH_NAME" {} +) | tee pylint-report-tests.xml' + sh 'eval "$(pyenv init - --no-rehash)"; tox -e pylint-tests $(find tests/ -name "*.py" -exec git diff --name-only "origin/$CHANGE_TARGET" "origin/$BRANCH_NAME" {} +) | tee pylint-report-tests.xml' archiveArtifacts artifacts: 'pylint-report-tests.xml' } }