trigger more test plans on CI (#258)

This commit is contained in:
Anton Evangelatov 2020-09-23 13:46:45 +02:00 committed by GitHub
parent 1c9257d537
commit f21ca8591c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 69 additions and 4 deletions

View File

@ -28,7 +28,7 @@ workflows:
main: main:
jobs: jobs:
- soup-build-linux - soup-build-linux
- trigger-baseline-testplan - trigger-testplans
nightly: nightly:
triggers: triggers:
- schedule: - schedule:
@ -38,7 +38,7 @@ workflows:
only: only:
- master - master
jobs: jobs:
- trigger-baseline-testplan - trigger-testplans
jobs: jobs:
soup-build-linux: soup-build-linux:
@ -48,7 +48,7 @@ jobs:
- run: - run:
name: "build lotus-soup" name: "build lotus-soup"
command: pushd lotus-soup && go build -tags=testground . command: pushd lotus-soup && go build -tags=testground .
trigger-baseline-testplan: trigger-testplans:
executor: golang executor: golang
steps: steps:
- setup - setup
@ -58,6 +58,15 @@ jobs:
- run: - run:
name: "prepare .env.toml" 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 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: - run:
name: "trigger baseline test plan on testground ci" 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

View File

@ -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"