Skip to content

Commit

Permalink
Add git workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Sonnino committed Jun 28, 2021
1 parent d885277 commit 98128ad
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 5 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Rust

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup
run: |
rustup toolchain install 1.51.0-x86_64-unknown-linux-gnu
rustup component add rustfmt --toolchain 1.51.0-x86_64-unknown-linux-gnu
rustup component add clippy --toolchain 1.51.0-x86_64-unknown-linux-gnu
- name: Build (default)
run: cargo build --all-targets --verbose
- name: Build (all features)
run: cargo build --all-features --all-targets --verbose
- name: Run tests (all features)
run: cargo test --all-features --verbose
- name: Rustfmt
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy --all-features --all-targets
10 changes: 5 additions & 5 deletions benchmark/fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
def local(ctx, debug=True):
''' Run benchmarks on localhost '''
bench_params = {
'nodes': 7,
'nodes': 4,
'workers': 1,
'rate': 150_000,
'rate': 50_000,
'tx_size': 512,
'faults': 0,
'duration': 20,
Expand Down Expand Up @@ -55,7 +55,7 @@ def destroy(ctx):


@task
def start(ctx, max=10):
def start(ctx, max=2):
''' Start at most `max` machines per data center '''
try:
InstanceManager.make().start_instances(max)
Expand Down Expand Up @@ -94,10 +94,10 @@ def install(ctx):
def remote(ctx, debug=False):
''' Run benchmarks on AWS '''
bench_params = {
'nodes': [50],
'nodes': [20, 50],
'workers': 1,
'collocate': True,
'rate': [150_000],
'rate': [50_000, 150_000],
'tx_size': 512,
'faults': 0,
'duration': 300,
Expand Down

0 comments on commit 98128ad

Please sign in to comment.