Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
ci: add gomu gomu no gatling perfomrance test (#1449)
Browse files Browse the repository at this point in the history
  • Loading branch information
isavov authored Feb 21, 2024
1 parent 194cf75 commit eae831a
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 1 deletion.
54 changes: 54 additions & 0 deletions .github/workflows/gomu-gomu-tests.yml
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
10 changes: 10 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
pull_request:
branches: [main]

concurrency:
group:
pr-checks-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
changelog:
name: Enforce CHANGELOG
Expand Down Expand Up @@ -54,3 +59,8 @@ jobs:
SCARB_VERSION: "2.3.1"
steps:
- uses: keep-starknet-strange/starknet-foundry-compatibility-tests@main

gomu-gomu-tests:
name: Run gomu gomu performance tests
uses: ./.github/workflows/gomu-gomu-tests.yml
needs: madara_commands
5 changes: 5 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ jobs:
steps:
- uses: keep-starknet-strange/starknet-foundry-compatibility-tests@main

gomu-gomu-tests:
name: Run gomu gomu performance tests
uses: ./.github/workflows/gomu-gomu-tests.yml
needs: madara_commands

rustdoc:
name: Deploy docs to GitHub Pages
uses: ./.github/workflows/rustdoc.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Build the project
run: |
cargo build --release --workspace
cargo build --profile production --workspace
- name: Run integration tests
run: cargo test --release
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- feat: add transparent representation to `Felt252Wrapper`
- feat(rpc/trace_api): add `trace_block_transaction`
- chore(db): changed the way hashes are encoded
- ci: add gomu gomu no gatling perfomrance test

## v0.7.0

Expand Down

0 comments on commit eae831a

Please sign in to comment.