diff --git a/.github/workflows/PR.yml b/.github/workflows/PR.yml index 3b87b551726..dd388ecdb1e 100644 --- a/.github/workflows/PR.yml +++ b/.github/workflows/PR.yml @@ -72,11 +72,14 @@ jobs: build: needs: status if: >- - needs.status.outputs.skip-ci != '1' && ( - contains(github.event.pull_request.labels.*.name, 'A0-pleasereview') - || contains(github.event.pull_request.labels.*.name, 'A4-insubstantial') - || contains(github.event.pull_request.labels.*.name, 'A2-mergeoncegreen') - ) + needs.status.outputs.skip-ci != '1' + && ( + contains(github.event.pull_request.title, '[depbot]') + || ( + contains(github.event.pull_request.labels.*.name, 'A0-pleasereview') + || contains(github.event.pull_request.labels.*.name, 'A4-insubstantial') + || contains(github.event.pull_request.labels.*.name, 'A2-mergeoncegreen') + )) uses: ./.github/workflows/build.yml with: cache: ${{ needs.status.outputs.cache }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a0968811a72..1271af50f00 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest env: RUSTUP_HOME: /tmp/rustup_home - if: ${{ !contains(github.event.pull_request.title, '[skip-ci]') }} + if: ${{ !contains(github.event.pull_request.title, '[skip-ci]') && github.actor != 'dependabot[bot]' }} steps: - uses: actions/checkout@v4 diff --git a/scripts/benchmarking/run_all_benchmarks.sh b/scripts/benchmarking/run_all_benchmarks.sh index 1e1c6677713..bd001f2527f 100755 --- a/scripts/benchmarking/run_all_benchmarks.sh +++ b/scripts/benchmarking/run_all_benchmarks.sh @@ -22,7 +22,7 @@ BENCHMARK_REPEAT_ONE_TIME_EXTRINSICS=1000 # List of one-time extrinsics to benchmark. # They are retrieved automatically from the pallet_gear benchmarks file by their `r` component range 0..1, # which defines them as one-time extrinsics. -ONE_TIME_EXTRINSICS=$(cat "pallets/gear/src/benchmarking/mod.rs" | grep "0 .. 1;" -B 1 | grep -E "{$" | awk '{print $1}') +mapfile -t ONE_TIME_EXTRINSICS < <(cat "pallets/gear/src/benchmarking/mod.rs" | grep "0 .. 1;" -B 1 | grep -E "{$" | awk '{print $1}') while getopts 'bmfps:c:v' flag; do case "${flag}" in @@ -125,7 +125,7 @@ for PALLET in "${PALLETS[@]}"; do fi - # Get all the extrinsics for the pallet if the pallet is "pallet_gear" + # Get all the extrinsics for the pallet if the pallet is "pallet_gear". if [ "$PALLET" == "pallet_gear" ] then IFS=',' read -r -a ALL_EXTRINSICS <<< "$(IFS=',' $GEAR benchmark pallet --list \ @@ -183,7 +183,7 @@ for PALLET in "${PALLETS[@]}"; do --steps=$BENCHMARK_STEPS_ONE_TIME_EXTRINSICS \ --repeat=$BENCHMARK_REPEAT_ONE_TIME_EXTRINSICS \ --pallet="$PALLET" \ - --extrinsic="$(IFS=, ; echo "${ONE_TIME_EXTRINSICS[*]}")" \ + --extrinsic="$(IFS=', '; echo "${ONE_TIME_EXTRINSICS[*]}")" \ --execution=wasm \ --wasm-execution=compiled \ --heap-pages=4096 \