From 4c0af60287240837e82f0b8f4b5a77c66283c7bd Mon Sep 17 00:00:00 2001 From: William Durand Date: Wed, 12 May 2021 14:38:21 +0200 Subject: [PATCH] Avoid pyenv shim and use dennis-cmd directly (#17136) --- .circleci/config.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8b2682ae52..fabbb0de02 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -538,6 +538,11 @@ jobs: command: pytest -n 2 -m 'not es_tests and not needs_locales_compilation and not static_assets' -v src/olympia/amo/ src/olympia/lib/ src/olympia/signing environment: AUTOGRAPH_SERVER_URL: http://127.0.0.1:5500 + # After having removed `tox`, we noticed that this job was a lot slower. + # The reason seems to be related to pyenv shims, which add a huge + # overhead to CLIs like `dennis-cmd`. By updating the path below, we + # should use `dennis-cmd` directly instead of the pyenv shim. + - run: echo "export PATH=\"$(pyenv prefix)/bin:$PATH\"" >> $BASH_ENV - run: bash ./locale/compile-mo.sh ./locale/ - run: command: pytest -n 2 -m 'needs_locales_compilation' -v src/olympia/