mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-23 13:08:01 +00:00
73a53d99b7
* add link to the weight comparison tool for weights PRs * Update scripts/create-benchmark-pr.sh Co-authored-by: Chevdor <chevdor@users.noreply.github.com> * add backport checklist item * move to scripts/ci Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
56 lines
1.8 KiB
YAML
56 lines
1.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
|
|
extends:
|
|
- .collect-artifacts
|
|
- .benchmarks-refs
|
|
before_script:
|
|
- !reference [.docker-env, before_script]
|
|
timeout: 1d
|
|
script:
|
|
- ./scripts/benchmarks-ci.sh assets statemine ./artifacts
|
|
- ./scripts/benchmarks-ci.sh assets statemint ./artifacts
|
|
- ./scripts/benchmarks-ci.sh assets westmint ./artifacts
|
|
- export CURRENT_TIME=$(date '+%s')
|
|
- export BRANCHNAME="weights-statemint-${CI_COMMIT_BRANCH}-${CURRENT_TIME}"
|
|
- !reference [.git-commit-push, script]
|
|
- ./scripts/ci/create-benchmark-pr.sh "[benchmarks] Update weights for statemine/t" "$BRANCHNAME"
|
|
after_script:
|
|
- rm -rf .git/config
|
|
tags:
|
|
- weights
|
|
|
|
benchmarks-collectives:
|
|
stage: benchmarks-run
|
|
extends:
|
|
- .collect-artifacts
|
|
- .benchmarks-refs
|
|
before_script:
|
|
- !reference [.docker-env, before_script]
|
|
script:
|
|
- ./scripts/benchmarks-ci.sh collectives collectives-polkadot ./artifacts
|
|
- git status
|
|
- 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"
|
|
after_script:
|
|
- rm -rf .git/config
|
|
tags:
|
|
- weights
|
|
|