From e52ddfa713485fd4d3006bab16a24ecf754781fa Mon Sep 17 00:00:00 2001 From: Dmitry Novikov Date: Wed, 27 Sep 2023 19:25:27 +0400 Subject: [PATCH 1/3] fix(ci): Skip docs publishing for dependabot PRs (#3362) --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 7a5c80321b0eb38d42d119374526b60d03f317f4 Mon Sep 17 00:00:00 2001 From: Elijah <83283675+tltsutltsu@users.noreply.github.com> Date: Wed, 27 Sep 2023 21:35:37 +0600 Subject: [PATCH 2/3] fix(benchmarks): fix benchmarks run on CI runner (#3371) --- scripts/benchmarking/run_all_benchmarks.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 \ From de7ef50b22a3d34e5c5fa84e6d227ec4150b7b58 Mon Sep 17 00:00:00 2001 From: clearloop <26088946+clearloop@users.noreply.github.com> Date: Wed, 27 Sep 2023 23:50:20 +0800 Subject: [PATCH 3/3] [depbot] ci(build): not skipping build for depbot (#3370) --- .github/workflows/PR.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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 }}