From 7e70270267469a274a941f6af2821e2ad32558d8 Mon Sep 17 00:00:00 2001 From: Teytaud Date: Mon, 14 Mar 2022 15:39:11 +0100 Subject: [PATCH 1/7] Making Nevergrad's CI parallel --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0853a7a21..9e0c022cb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,6 +15,7 @@ executors: docker: - image: circleci/python:3.7 working_directory: ~/repo + parallelism: 4 commands: From 8c0fbb75faca67d6d066044bc33cd46c1164903c Mon Sep 17 00:00:00 2001 From: Teytaud Date: Mon, 14 Mar 2022 15:43:55 +0100 Subject: [PATCH 2/7] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9e0c022cb..d3f929a98 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,7 +15,6 @@ executors: docker: - image: circleci/python:3.7 working_directory: ~/repo - parallelism: 4 commands: @@ -192,6 +191,7 @@ jobs: pytests: executor: ubuntu-python37 + parallelism: 4 steps: From 2db02b5550dc0d2563eecfb3dd316537af9eceaa Mon Sep 17 00:00:00 2001 From: Teytaud Date: Mon, 14 Mar 2022 16:40:02 +0100 Subject: [PATCH 3/7] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d3f929a98..ec4a59767 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -191,7 +191,7 @@ jobs: pytests: executor: ubuntu-python37 - parallelism: 4 + parallelism: 40 steps: From e54edf60ade31d9b6e941fb113dccb37450f31b3 Mon Sep 17 00:00:00 2001 From: Teytaud Date: Mon, 14 Mar 2022 19:20:24 +0100 Subject: [PATCH 4/7] Update config.yml --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ec4a59767..55fa7b962 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -191,7 +191,7 @@ jobs: pytests: executor: ubuntu-python37 - parallelism: 40 + parallelism: 8 steps: @@ -199,6 +199,7 @@ jobs: - run: name: "[all] Run pytest" + parallel: true when: always command: | . venv/bin/activate From 6349a81dbb088471ef9b3690fa5565cbee9f1e16 Mon Sep 17 00:00:00 2001 From: Teytaud Date: Wed, 16 Mar 2022 14:48:40 +0100 Subject: [PATCH 5/7] Update config.yml --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 55fa7b962..b57e53d74 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -203,7 +203,8 @@ jobs: when: always command: | . venv/bin/activate - pytest nevergrad -v --exitfirst --durations=20 --cov=nevergrad + TESTFILES=$(circleci tests glob tests/**/test*.py | circleci tests split --split-by=timings) + pytest $TESTFILES -v --exitfirst --durations=20 --cov=nevergrad docs-deploy: From 560a7b4dcc9afff7d72df70c61c21cdbcdf70f09 Mon Sep 17 00:00:00 2001 From: Teytaud Date: Wed, 16 Mar 2022 15:16:37 +0100 Subject: [PATCH 6/7] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b57e53d74..7804a21a3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -203,7 +203,7 @@ jobs: when: always command: | . venv/bin/activate - TESTFILES=$(circleci tests glob tests/**/test*.py | circleci tests split --split-by=timings) + TESTFILES=$(circleci tests glob **/test*.py | circleci tests split --split-by=timings) pytest $TESTFILES -v --exitfirst --durations=20 --cov=nevergrad From c4a73356152a42db86c4a8da99a1189cbdf0c72c Mon Sep 17 00:00:00 2001 From: Teytaud Date: Wed, 16 Mar 2022 15:20:07 +0100 Subject: [PATCH 7/7] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7804a21a3..b57e53d74 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -203,7 +203,7 @@ jobs: when: always command: | . venv/bin/activate - TESTFILES=$(circleci tests glob **/test*.py | circleci tests split --split-by=timings) + TESTFILES=$(circleci tests glob tests/**/test*.py | circleci tests split --split-by=timings) pytest $TESTFILES -v --exitfirst --durations=20 --cov=nevergrad