Files
pezkuwi-subxt/cumulus/scripts/ci/gitlab/pipeline/benchmarks.yml
T
joe petrowski 6007549589 Rename Statemint to Asset Hub (#2633)
* change dir names

* cargo toml updates

* fix crate imports for build

* change chain spec names and PR review rule

* update cli to accept asset-hub

* find/replace benchmark commands

* integration tests

* bridges docs

* more integration tests

* AuraId

* other statemint tidying

* rename statemint mod

* chain spec mod

* rename e2e test dirs

* one more Runtime::Statemine

* benchmark westmint

* rename chain spec name and id

* rename chain spec files

* more tidying in scripts/docs/tests

* rename old dir if exists

* Force people to manually do the move.

(Safer as there could be additional considerations with their setup)

* review touchups

* more renaming

* Update polkadot-parachain/src/command.rs

Co-authored-by: Bastian Köcher <git@kchr.de>

* better error message

* do not break on-chain spec_name

* log info message that path has been renamed

* better penpal docs

---------

Co-authored-by: gilescope <gilescope@gmail.com>
Co-authored-by: Bastian Köcher <git@kchr.de>
Co-authored-by: parity-processbot <>
2023-06-02 09:58:19 +00:00

82 lines
2.7 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:
- .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/t" "$BRANCHNAME"
- rm -f ./artifacts/polkadot-parachain
- rm -f ./artifacts/test-parachain
after_script:
- rm -rf .git/config
tags:
- weights
benchmarks-collectives:
stage: benchmarks-run
timeout: 1d
extends:
- .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
benchmarks-bridge-hubs:
stage: benchmarks-run
timeout: 1d
extends:
- .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