From 68209b7a5f21db0826ae3ac4580b6351eac5b7b0 Mon Sep 17 00:00:00 2001 From: Mara Robin B <mara@broda.me> Date: Mon, 14 Mar 2022 12:22:55 +0100 Subject: [PATCH] ci: use production profile for benchmarks (#5100) --- polkadot/.gitlab-ci.yml | 3 ++- polkadot/scripts/run_benches_for_runtime.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/polkadot/.gitlab-ci.yml b/polkadot/.gitlab-ci.yml index 66bd12584cb..b7bb5f1dbaa 100644 --- a/polkadot/.gitlab-ci.yml +++ b/polkadot/.gitlab-ci.yml @@ -514,12 +514,13 @@ update_polkadot_weights: &update-weights stage: stage2 when: manual variables: + PROFILE: production RUNTIME: polkadot artifacts: paths: - ${RUNTIME}_weights_${CI_COMMIT_SHORT_SHA}.patch script: - - ./scripts/run_benches_for_runtime.sh $RUNTIME + - ./scripts/run_benches_for_runtime.sh $RUNTIME $PROFILE - git diff -P > ${RUNTIME}_weights_${CI_COMMIT_SHORT_SHA}.patch # uses the "shell" executors tags: diff --git a/polkadot/scripts/run_benches_for_runtime.sh b/polkadot/scripts/run_benches_for_runtime.sh index 5498b596a6d..f2f101e9e18 100755 --- a/polkadot/scripts/run_benches_for_runtime.sh +++ b/polkadot/scripts/run_benches_for_runtime.sh @@ -5,7 +5,8 @@ # current reference machine: https://github.com/paritytech/substrate/pull/5848 runtime="$1" -standard_args="--release --locked --features=runtime-benchmarks" +profile="$2" +standard_args="--profile $profile --locked --features=runtime-benchmarks" echo "[+] Running all benchmarks for $runtime" -- GitLab