From f21ca8591c980944ad60c719230d0bac0f650dff Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Wed, 23 Sep 2020 13:46:45 +0200 Subject: [PATCH] trigger more test plans on CI (#258) --- .circleci/config.yml | 17 ++++-- .../_compositions/paych-stress-k8s.toml | 56 +++++++++++++++++++ 2 files changed, 69 insertions(+), 4 deletions(-) create mode 100644 lotus-soup/_compositions/paych-stress-k8s.toml diff --git a/.circleci/config.yml b/.circleci/config.yml index 6bf503726..a4a136fb7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -28,7 +28,7 @@ workflows: main: jobs: - soup-build-linux - - trigger-baseline-testplan + - trigger-testplans nightly: triggers: - schedule: @@ -38,7 +38,7 @@ workflows: only: - master jobs: - - trigger-baseline-testplan + - trigger-testplans jobs: soup-build-linux: @@ -48,7 +48,7 @@ jobs: - run: name: "build lotus-soup" command: pushd lotus-soup && go build -tags=testground . - trigger-baseline-testplan: + trigger-testplans: executor: golang steps: - setup @@ -58,6 +58,15 @@ jobs: - run: name: "prepare .env.toml" command: pushd lotus-soup && mkdir -p $HOME/testground && cp env-ci.toml $HOME/testground/.env.toml && echo 'endpoint="'$endpoint'"' >> $HOME/testground/.env.toml && echo 'token="'$token'"' >> $HOME/testground/.env.toml + - run: + name: "prepare testground home dir" + command: mkdir -p $HOME/testground/plans && mv lotus-soup $HOME/testground/plans/ - run: name: "trigger baseline test plan on testground ci" - command: mkdir -p $HOME/testground/plans && mv lotus-soup $HOME/testground/plans/ && ~/testground-cli run composition -f $HOME/testground/plans/lotus-soup/_compositions/baseline-k8s-3-1.toml + command: ~/testground-cli run composition -f $HOME/testground/plans/lotus-soup/_compositions/baseline-k8s-3-1.toml + - run: + name: "trigger payment channel stress test plan on testground ci" + command: ~/testground-cli run composition -f $HOME/testground/plans/lotus-soup/_compositions/paych-stress-k8s.toml + - run: + name: "trigger deals stress concurrent test plan on testground ci" + command: ~/testground-cli run composition -f $HOME/testground/plans/lotus-soup/_compositions/deals-stress-concurrent-natural-k8s.toml diff --git a/lotus-soup/_compositions/paych-stress-k8s.toml b/lotus-soup/_compositions/paych-stress-k8s.toml new file mode 100644 index 000000000..874fb1c1e --- /dev/null +++ b/lotus-soup/_compositions/paych-stress-k8s.toml @@ -0,0 +1,56 @@ +[metadata] + name = "lotus-soup" + author = "raulk" + +[global] + plan = "lotus-soup" + case = "paych-stress" + total_instances = 5 # 2 clients + 2 miners + 1 bootstrapper + builder = "docker:go" + runner = "cluster:k8s" + +[global.build] + selectors = ["testground"] + +[global.run_config] + exposed_ports = { pprof = "6060", node_rpc = "1234", miner_rpc = "2345" } + +[global.build_config] + push_registry=true + go_proxy_mode="remote" + go_proxy_url="http://localhost:8081" + registry_type="aws" + +[global.run.test_params] + clients = "2" + miners = "2" + genesis_timestamp_offset = "0" + balance = "100" ## be careful, this is in FIL. + sectors = "10" + random_beacon_type = "mock" + mining_mode = "natural" + # number of lanes to send vouchers on + lane_count = "8" + # number of vouchers on each lane + vouchers_per_lane = "3" + # amount to increase voucher by each time (per lane) + increments = "3" ## in FIL + +[[groups]] + id = "bootstrapper" + instances = { count = 1 } + [groups.run.test_params] + role = "bootstrapper" + +[[groups]] + id = "miners" + instances = { count = 2 } + [groups.run.test_params] + role = "miner" + +[[groups]] + id = "clients" + # the first client will be on the receiving end; all others will be on the sending end. + instances = { count = 2 } + [groups.run.test_params] + role = "client"