diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 6879f86ae5c..dc9787e3701 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -7,6 +7,7 @@ on: branches: - releases - main + workflow_dispatch: jobs: benchmark: @@ -36,15 +37,14 @@ jobs: id: branch-name uses: tj-actions/branch-names@v5.1 - - name: Check for runtime changes - env: - BASE_BRANCH: ${{ github.event.pull_request.base.ref }} - GITHUB_BRANCH_NAME: ${{ steps.branch-name.outputs.current_branch }} + # - name: Check for runtime changes + # env: + # BASE_BRANCH: ${{ github.event.pull_request.base.ref }} + # GITHUB_BRANCH_NAME: ${{ steps.branch-name.outputs.current_branch }} - id: check_runtime - #if: github.event.label.name == 'needs-benchmarks' - if: contains( github.event.pull_request.labels.*.name, 'needs-benchmarks') - run: .maintain/check_runtime.sh + # id: check_runtime + # if: contains( github.event.pull_request.labels.*.name, 'needs-benchmarks') + # run: .maintain/check_runtime.sh - name: Benchmark Test env: diff --git a/.maintain/run_benchmarks.sh b/.maintain/run_benchmarks.sh index 57934e8a405..fa448991033 100755 --- a/.maintain/run_benchmarks.sh +++ b/.maintain/run_benchmarks.sh @@ -16,24 +16,6 @@ VERSIONS_FILES=( steps=50 repeat=20 -pallets=( - oracle - frame_system - timestamp - session - balances - indices - membership - treasury - scheduler - collective - democracy - collator_selection - utility - lending - dutch_auction -) - /home/runner/.cargo/bin/rustup install nightly /home/runner/.cargo/bin/rustup target add wasm32-unknown-unknown --toolchain nightly /home/runner/.cargo/bin/cargo build --release -p composable --features=runtime-benchmarks @@ -45,18 +27,17 @@ run_benchmarks() { # shellcheck disable=SC2068 echo "Running benchmarks for $CHAIN" # shellcheck disable=SC2068 - for p in ${pallets[@]}; do - ./target/release/composable benchmark \ - --chain="$CHAIN" \ - --execution=wasm \ - --wasm-execution=compiled \ - --pallet="$p" \ - --extrinsic='*' \ - --steps=$steps \ - --repeat=$repeat \ - --raw \ - --output="$OUTPUT" - done + ./target/release/composable benchmark \ + --chain="$CHAIN" \ + --execution=wasm \ + --wasm-execution=compiled \ + --pallet="*" \ + --extrinsic='*' \ + --steps=$steps \ + --repeat=$repeat \ + --raw \ + --output="$OUTPUT" \ + --log error git config --global user.email "haroldsphinx@gmail.com" git config --global user.name "haroldsphinx" USERNAME=$(gcloud secrets versions access latest --secret=github-api-username) @@ -71,8 +52,8 @@ run_benchmarks() { for i in "${VERSIONS_FILES[@]}"; do while IFS=',' read -r output chain folder; do - if has_runtime_changes "${BASE_BRANCH}" "${GITHUB_BRANCH_NAME}" "$folder"; then - run_benchmarks $output $chain $folder - fi + # if has_runtime_changes "${BASE_BRANCH}" "${GITHUB_BRANCH_NAME}" "$folder"; then + run_benchmarks $output $chain $folder + # fi done <<<"$i" done