Skip to content

Commit

Permalink
Update tests-misc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mordamax committed Aug 20, 2024
1 parent 0d7b9b8 commit 77c026a
Showing 1 changed file with 29 additions and 30 deletions.
59 changes: 29 additions & 30 deletions .github/workflows/tests-misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,23 +159,23 @@ jobs:
with:
ref: ${{ matrix.branch }}

# - name: script
# run: |
# ARTIFACTS_DIR=./artifacts
# BENCH_TRIE_READ=::trie::read::small
# BENCH_NODE_IMPORT=::node::import::sr25519::transfer_keep_alive::paritydb::small
# mkdir -p $ARTIFACTS_DIR
#
# SKIP_WASM_BUILD=1 forklift cargo check --locked --benches --all;
# forklift cargo run --locked --release -p node-bench -- $BENCH_TRIE_READ --json | tee $ARTIFACTS_DIR/bench_trie_read_small.json;
# forklift cargo run --locked --release -p node-bench -- $BENCH_NODE_IMPORT --json | tee $ARTIFACTS_DIR/bench_transfer_keep_alive.json
#
# - name: Upload artifacts
# uses: actions/upload-artifact@v4.3.6
# with:
# path: ./artifacts
# name: cargo-check-benches-${{ matrix.branch }}-${{ github.sha }}
# retention-days: 1
- name: script
run: |
ARTIFACTS_DIR=./artifacts
BENCH_TRIE_READ=::trie::read::small
BENCH_NODE_IMPORT=::node::import::sr25519::transfer_keep_alive::paritydb::small
mkdir -p $ARTIFACTS_DIR
SKIP_WASM_BUILD=1 forklift cargo check --locked --benches --all;
forklift cargo run --locked --release -p node-bench -- $BENCH_TRIE_READ --json | tee $ARTIFACTS_DIR/bench_trie_read_small.json;
forklift cargo run --locked --release -p node-bench -- $BENCH_NODE_IMPORT --json | tee $ARTIFACTS_DIR/bench_transfer_keep_alive.json
- name: Upload artifacts
uses: actions/upload-artifact@v4.3.6
with:
path: ./artifacts
name: cargo-check-benches-${{ matrix.branch }}-${{ github.sha }}
retention-days: 1

node-bench-regression-guard:
timeout-minutes: 20
Expand All @@ -185,17 +185,17 @@ jobs:
- name: Checkout
uses: actions/checkout@v4.1.7

# - name: Download artifact (master run)
# uses: actions/download-artifact@v4.1.8
# with:
# name: cargo-check-benches-${{ github.base_ref }}-${{ github.sha }}
# path: ./artifacts/master
#
# - name: Download artifact (current run)
# uses: actions/download-artifact@v4.1.8
# with:
# name: cargo-check-benches-${{ github.head_ref }}-${{ github.sha }}
# path: ./artifacts/current
- name: Download artifact (master run)
uses: actions/download-artifact@v4.1.8
with:
name: cargo-check-benches-${{ github.base_ref }}-${{ github.sha }}
path: ./artifacts/master

- name: Download artifact (current run)
uses: actions/download-artifact@v4.1.8
with:
name: cargo-check-benches-${{ github.head_ref }}-${{ github.sha }}
path: ./artifacts/current

- name: script
id: compare
Expand All @@ -205,9 +205,8 @@ jobs:
-v $PWD/artifacts/master:/artifacts/master \
-v $PWD/artifacts/current:/artifacts/current \
paritytech/node-bench-regression-guard:latest \
exit 1 \
node-bench-regression-guard --reference /artifacts/master --compare-with /artifacts/current \
|| echo $FAILED_MSG >> $GITHUB_STEP_SUMMARY && echo $FAILED_MSG && exit 1
# node-bench-regression-guard --reference /artifacts/master --compare-with /artifacts/current \
#


Expand Down

0 comments on commit 77c026a

Please sign in to comment.