diff --git a/.github/workflows/tests-misc.yml b/.github/workflows/tests-misc.yml index 3660fe6e6b03b..89f72abc6cbd1 100644 --- a/.github/workflows/tests-misc.yml +++ b/.github/workflows/tests-misc.yml @@ -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 @@ -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 @@ -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 \ #