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

add perf cli smoke test #1762

Merged
merged 11 commits into from
Nov 10, 2020
27 changes: 27 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,31 @@ jobs:
- run: make docker-perf IMAGE_NAME=$PERF_IMAGE_NAME
- run: IMAGE_NAME=$PERF_IMAGE_NAME sh .circleci/ci_publish.sh

run_perf_cli_smoke_test:
machine:
image: ubuntu-1604:201903-01
environment:
PERF_IMAGE_NAME: "omisego/perf:ci"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is generating the :ci tagged image?? Also when will this tag get updated?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah my bad....it is just local image where I somehow thought it was from remote.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is true is the convention is to name the current image - latest :)

steps:
- checkout
- docker_login
- make_docker_images
- run:
name: Setup data dir
command: |
[ -d data ] || mkdir data && chmod 777 data
- run:
name: Start daemon services
command: |
cd priv/perf
make start-services
- run: make docker-perf IMAGE_NAME=$PERF_IMAGE_NAME
- run: docker run -it $PERF_IMAGE_NAME mix run -e "LoadTest.TestRunner.run()" -- help
- run:
command: |
export $(cat ./localchain_contract_addresses.env | xargs) &&
docker run -it --env-file ./localchain_contract_addresses.env --network host $PERF_IMAGE_NAME mix run -e "LoadTest.TestRunner.run()" -- "deposits" 10 10

publish_watcher_info:
machine:
image: ubuntu-1604:201903-01
Expand Down Expand Up @@ -1069,6 +1094,8 @@ workflows:
filters: *all_branches_and_tags
- watcher_mix_based_childchain:
filters: *all_branches_and_tags
- run_perf_cli_smoke_test:
filters: *all_branches_and_tags
- publish_watcher:
requires:
[
Expand Down