From 42271263052909e359eceb44673529d333efbc68 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Tue, 5 Mar 2019 00:33:06 +0100 Subject: [PATCH] ci(docs-infra): run cli docs examples concurrently (#29103) PR Close #29103 --- .circleci/config.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f1c36b43d2..55077e6394 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -332,6 +332,7 @@ jobs: # Needed because the example e2e tests depend on Chrome. - image: *browsers_docker_image parallelism: 4 + resource_class: xlarge steps: - *attach_workspace - *init_environment @@ -340,13 +341,14 @@ jobs: # Run examples tests. The "CIRCLE_NODE_INDEX" will be set if "parallelism" is enabled. # Since the parallelism is set to "3", there will be three parallel CircleCI containers # with either "0", "1" or "2" as node index. This can be passed to the "--shard" argument. - - run: yarn --cwd aio example-e2e --setup --local --shard=${CIRCLE_NODE_INDEX}/${CIRCLE_NODE_TOTAL} + - run: yarn --cwd aio example-e2e --setup --local --cliSpecsConcurrency=5 --shard=${CIRCLE_NODE_INDEX}/${CIRCLE_NODE_TOTAL} test_docs_examples_ivy: <<: *job_defaults docker: # Needed because the example e2e tests depend on Chrome. - image: *browsers_docker_image + resource_class: xlarge # We increase the parallelism here to five while the "test_docs_examples" job runs with # a parallelism of four. This is necessary because this job also need to run NGCC which # takes up more time and we don't want these jobs to impact the overall CI turnaround. @@ -365,7 +367,7 @@ jobs: # Run examples tests with ivy. The "CIRCLE_NODE_INDEX" will be set if "parallelism" is enabled. # Since the parallelism is set to "3", there will be three parallel CircleCI containers # with either "0", "1" or "2" as node index. This can be passed to the "--shard" argument. - - run: yarn --cwd aio example-e2e --setup --local --ivy --shard=${CIRCLE_NODE_INDEX}/${CIRCLE_NODE_TOTAL} + - run: yarn --cwd aio example-e2e --setup --local --ivy --cliSpecsConcurrency=5 --shard=${CIRCLE_NODE_INDEX}/${CIRCLE_NODE_TOTAL} # This job should only be run on PR builds, where `CI_PULL_REQUEST` is not `false`. aio_preview: