From d60fc03d20d6fdacbf61449f57dbb89c9be99ce5 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Tue, 10 Nov 2020 18:27:10 +0300 Subject: [PATCH] add perf cli smoke test (#1762) * add perf cli smoke test This PR adds ci step that runs `transactions` perf test --- .circleci/config.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index cbf4632cb1..9af83b7cf4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -657,6 +657,8 @@ jobs: description: "These are not actually performance tests, we're checking if the scripts work" machine: image: ubuntu-1604:201903-01 + environment: + PERF_IMAGE_NAME: "omisego/perf:latest" steps: - checkout - run: @@ -665,6 +667,9 @@ jobs: [ -d data ] || mkdir data && chmod 777 data - docker_login - make_docker_images + - run: + name: Build perf docker image + command: make docker-perf IMAGE_NAME=$PERF_IMAGE_NAME - run: name: Start daemon services command: | @@ -685,6 +690,14 @@ jobs: make init export $(cat ../../localchain_contract_addresses.env | xargs) make test + - run: + name: Show help information + command: docker run -it $PERF_IMAGE_NAME mix run -e "LoadTest.TestRunner.run()" -- help + - run: + name: Run perf smoke test + 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 - run: name: (Perf) Format generated code and check for warnings command: |