Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: parallelize tests by tags #1744

Merged
merged 13 commits into from
Sep 29, 2020
20 changes: 12 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ commands:
name: Standup Geth and Child Chain
command: docker-compose up geth childchain postgres
background: true
- run:
- run:
name: Has Childchain started?
command: |
attempt_counter=0
Expand Down Expand Up @@ -600,6 +600,7 @@ jobs:
test_docker_compose_release:
machine:
image: ubuntu-1604:201903-01
parallelism: 4
steps:
- checkout
- run:
Expand Down Expand Up @@ -628,7 +629,10 @@ jobs:
make install
make generate_api_code
mix deps.get
mix test
grep -r "@moduletag" ./apps/itest/ | awk '{print "--include " $3}' | tr -d ':' > tags.txt
echo $(circleci tests split ./tags.txt)
ayrat555 marked this conversation as resolved.
Show resolved Hide resolved
circleci tests split ./tags.txt > /tmp/tests-to-run
mix test --exclude test $(cat /tmp/tests-to-run)
- run:
name: (Cabbage) Format generated code and check for warnings
command: |
Expand Down Expand Up @@ -756,7 +760,7 @@ jobs:
make install
make generate_api_code
mix deps.get
mix test --only reorg --trace
mix test --only deposit --trace
no_output_timeout: 30m

test_barebone_release:
Expand Down Expand Up @@ -818,7 +822,7 @@ jobs:
ps axww | grep watcher
ps axww | grep watcher_info
ps axww | grep child_chain
- run:
- run:
name: Has Watcher started?
command: |
attempt_counter=0
Expand All @@ -832,7 +836,7 @@ jobs:
attempt_counter=$(($attempt_counter+1))
sleep 5
done
- run:
- run:
name: Has Watcher Info started?
command: |
attempt_counter=0
Expand All @@ -845,8 +849,8 @@ jobs:
printf '.'
attempt_counter=$(($attempt_counter+1))
sleep 5
done
done


publish_watcher:
machine:
Expand Down Expand Up @@ -1120,4 +1124,4 @@ workflows:
- /^v[0-9]+\.[0-9]+\.[0-9]+.*/
- increase_chart_version_watcher_info_release:
requires: [publish_watcher, publish_watcher_info]
filters: *only_release_tag
filters: *only_release_tag