mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 17:17:56 +00:00
fc83800e5e
* paritytech/ci-cd#697: Update weights with VM runners - Update weights using VM instances - Change runner tag for weights ci job to weights-vm * ".git/.scripts/commands/bench/bench.sh" all * ".git/.scripts/commands/bench-all/bench-all.sh" --target_dir=cumulus --------- Co-authored-by: parity-processbot <> Co-authored-by: Branislav Kontur <bkontur@gmail.com>
85 lines
2.8 KiB
YAML
85 lines
2.8 KiB
YAML
# This file is part of .gitlab-ci.yml
|
|
# Here are all jobs that are executed during "benchmarks" stage
|
|
# Work only on release-parachains-v* branches
|
|
|
|
benchmarks-build:
|
|
stage: benchmarks-build
|
|
extends:
|
|
- .docker-env
|
|
- .collect-artifacts
|
|
- .benchmarks-manual-refs
|
|
script:
|
|
- time cargo build --profile production --locked --features runtime-benchmarks
|
|
- mkdir -p artifacts
|
|
- cp target/production/polkadot-parachain ./artifacts/
|
|
|
|
benchmarks-assets:
|
|
stage: benchmarks-run
|
|
timeout: 1d
|
|
extends:
|
|
- .docker-env
|
|
- .collect-artifacts
|
|
- .benchmarks-refs
|
|
before_script:
|
|
- !reference [.docker-env, before_script]
|
|
script:
|
|
- ./scripts/benchmarks-ci.sh assets asset-hub-kusama ./artifacts
|
|
- ./scripts/benchmarks-ci.sh assets asset-hub-polkadot ./artifacts
|
|
- ./scripts/benchmarks-ci.sh assets asset-hub-westend ./artifacts
|
|
- export CURRENT_TIME=$(date '+%s')
|
|
- export BRANCHNAME="weights-asset-hub-polkadot-${CI_COMMIT_BRANCH}-${CURRENT_TIME}"
|
|
- !reference [.git-commit-push, script]
|
|
- ./scripts/ci/create-benchmark-pr.sh "[benchmarks] Update weights for asset-hub-kusama/-polkadot" "$BRANCHNAME"
|
|
- rm -f ./artifacts/polkadot-parachain
|
|
- rm -f ./artifacts/test-parachain
|
|
after_script:
|
|
- rm -rf .git/config
|
|
tags:
|
|
- weights-vm
|
|
|
|
benchmarks-collectives:
|
|
stage: benchmarks-run
|
|
timeout: 1d
|
|
extends:
|
|
- .docker-env
|
|
- .collect-artifacts
|
|
- .benchmarks-refs
|
|
before_script:
|
|
- !reference [.docker-env, before_script]
|
|
script:
|
|
- ./scripts/benchmarks-ci.sh collectives collectives-polkadot ./artifacts
|
|
- export CURRENT_TIME=$(date '+%s')
|
|
- export BRANCHNAME="weights-collectives-${CI_COMMIT_BRANCH}-${CURRENT_TIME}"
|
|
- !reference [.git-commit-push, script]
|
|
- ./scripts/ci/create-benchmark-pr.sh "[benchmarks] Update weights for collectives" "$BRANCHNAME"
|
|
- rm -f ./artifacts/polkadot-parachain
|
|
- rm -f ./artifacts/test-parachain
|
|
after_script:
|
|
- rm -rf .git/config
|
|
tags:
|
|
- weights-vm
|
|
|
|
benchmarks-bridge-hubs:
|
|
stage: benchmarks-run
|
|
timeout: 1d
|
|
extends:
|
|
- .docker-env
|
|
- .collect-artifacts
|
|
- .benchmarks-refs
|
|
before_script:
|
|
- !reference [.docker-env, before_script]
|
|
script:
|
|
- ./scripts/benchmarks-ci.sh bridge-hubs bridge-hub-polkadot ./artifacts
|
|
- ./scripts/benchmarks-ci.sh bridge-hubs bridge-hub-kusama ./artifacts
|
|
- ./scripts/benchmarks-ci.sh bridge-hubs bridge-hub-rococo ./artifacts
|
|
- export CURRENT_TIME=$(date '+%s')
|
|
- export BRANCHNAME="weights-bridge-hubs-${CI_COMMIT_BRANCH}-${CURRENT_TIME}"
|
|
- !reference [.git-commit-push, script]
|
|
- ./scripts/ci/create-benchmark-pr.sh "[benchmarks] Update weights for bridge-hubs" "$BRANCHNAME"
|
|
- rm -f ./artifacts/polkadot-parachain
|
|
- rm -f ./artifacts/test-parachain
|
|
after_script:
|
|
- rm -rf .git/config
|
|
tags:
|
|
- weights-vm
|