This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add gomu gomu no gatling perfomrance test (#1449)
- Loading branch information
Showing
5 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Task - Gomu Gomu no Gatling Performance Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
env: | ||
BINARY_PATH: ../target/release/madara | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
target/release/madara | ||
key: | ||
${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}-${{ | ||
github.run_id }} | ||
fail-on-cache-miss: true | ||
|
||
- name: Setup rust toolchain | ||
run: | | ||
rustup target add x86_64-unknown-linux-gnu | ||
- name: Setup build deps (linux) | ||
run: | | ||
sudo apt update | ||
sudo apt install -y clang llvm libudev-dev protobuf-compiler libssl-dev pkg-config | ||
- name: Setup gomu gomu | ||
run: | | ||
set -v -x +e | ||
cd .. | ||
git clone https://github.com/keep-starknet-strange/gomu-gomu-no-gatling.git | ||
cd gomu-gomu-no-gatling | ||
cargo install --path . | ||
- name: Setup dev chain | ||
run: | | ||
cd ../madara | ||
./target/release/madara setup --chain=dev --from-local=configs | ||
- name: Run gomu gomu test | ||
run: |- | ||
set -v -x +e | ||
./target/release/madara --dev --cache > madara.log 2>&1 & | ||
MADARA_RUN_PID=$! | ||
while ! echo exit | nc localhost 9944; do sleep 1; done | ||
cd ../gomu-gomu-no-gatling | ||
RUST_LOG=info cargo run -- shoot -c config/default.yaml | ||
kill $MADARA_RUN_PID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters