-
Notifications
You must be signed in to change notification settings - Fork 699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added short-benchmarks for cumulus #1183
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
f2d1a65
Added short-benchmarks for cumulus
bkontur c1d3417
Added `--bin` flag for short-benchmarks
bkontur a2b4e1c
fix dependency for short-benchmark-cumulus
alvicsam b87a5b7
Merge branch 'master' into bko-short-benchmarks-for-cumulus
pepoviola b0f5f31
Merge branch 'master' into bko-short-benchmarks-for-cumulus
alvicsam 43ace82
Merge branch 'master' into bko-short-benchmarks-for-cumulus
alvicsam 8f19fd9
Fixed benchmark with new XCM::V3 `MAX_INSTRUCTIONS_TO_DECODE`
bkontur fcae69f
Merge branch 'master' into bko-short-benchmarks-for-cumulus
bkontur 27d84d8
Fixed benchmark for bridge messages pallets
bkontur 9e380c1
Merge remote-tracking branch 'origin/bko-short-benchmarks-for-cumulus…
bkontur 9e059e5
Merge remote-tracking branch 'origin/master' into bko-short-benchmark…
bkontur 14db007
Update .gitlab/pipeline/short-benchmarks.yml
bkontur e0c662b
Added tag/benchmarks also to the short-benchmark-polkadot
bkontur e3cb289
Merge branch 'master' into bko-short-benchmarks-for-cumulus
bkontur File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ | |
# Here are all jobs that are executed during "short-benchmarks" stage | ||
|
||
# Run all pallet benchmarks only once to check if there are any errors | ||
|
||
# run short-benchmarks for relay chain runtimes from polkadot | ||
|
||
short-benchmark-polkadot: &short-bench | ||
stage: short-benchmarks | ||
extends: | ||
|
@@ -12,6 +15,8 @@ short-benchmark-polkadot: &short-bench | |
artifacts: true | ||
variables: | ||
RUNTIME: polkadot | ||
tags: | ||
- benchmark | ||
script: | ||
- ./artifacts/polkadot benchmark pallet --execution wasm --wasm-execution compiled --chain $RUNTIME-dev --pallet "*" --extrinsic "*" --steps 2 --repeat 1 | ||
|
||
|
@@ -24,3 +29,60 @@ short-benchmark-westend: | |
<<: *short-bench | ||
variables: | ||
RUNTIME: westend | ||
|
||
# run short-benchmarks for system parachain runtimes from cumulus | ||
|
||
.short-benchmark-cumulus: &short-bench-cumulus | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
stage: short-benchmarks | ||
extends: | ||
- .common-refs | ||
- .docker-env | ||
needs: | ||
- job: build-short-benchmark-cumulus | ||
artifacts: true | ||
variables: | ||
RUNTIME_CHAIN: benchmarked-runtime-chain | ||
bkontur marked this conversation as resolved.
Show resolved
Hide resolved
|
||
tags: | ||
- benchmark | ||
script: | ||
- ./artifacts/polkadot-parachain benchmark pallet --wasm-execution compiled --chain $RUNTIME_CHAIN --pallet "*" --extrinsic "*" --steps 2 --repeat 1 | ||
|
||
short-benchmark-asset-hub-polkadot: | ||
<<: *short-bench-cumulus | ||
variables: | ||
RUNTIME_CHAIN: asset-hub-polkadot-dev | ||
|
||
short-benchmark-asset-hub-kusama: | ||
<<: *short-bench-cumulus | ||
variables: | ||
RUNTIME_CHAIN: asset-hub-kusama-dev | ||
|
||
short-benchmark-asset-hub-westend: | ||
<<: *short-bench-cumulus | ||
variables: | ||
RUNTIME_CHAIN: asset-hub-westend-dev | ||
|
||
short-benchmark-bridge-hub-polkadot: | ||
<<: *short-bench-cumulus | ||
variables: | ||
RUNTIME_CHAIN: bridge-hub-polkadot-dev | ||
|
||
short-benchmark-bridge-hub-kusama: | ||
<<: *short-bench-cumulus | ||
variables: | ||
RUNTIME_CHAIN: bridge-hub-kusama-dev | ||
|
||
short-benchmark-bridge-hub-rococo: | ||
<<: *short-bench-cumulus | ||
variables: | ||
RUNTIME_CHAIN: bridge-hub-rococo-dev | ||
|
||
short-benchmark-collectives-polkadot: | ||
<<: *short-bench-cumulus | ||
variables: | ||
RUNTIME_CHAIN: collectives-polkadot-dev | ||
|
||
short-benchmark-glutton-kusama: | ||
<<: *short-bench-cumulus | ||
variables: | ||
RUNTIME_CHAIN: glutton-kusama-dev-1300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is also
mv ./target/testnet/polkadot ./artifacts/.
in the stepbuild-linux-stable
, so this step overrides that, right?Possibly we could do something like:
cp ./target/release/polkadot ./artifacts/short-benchmarks/
.Also the same for
polkadot-parachain
binary build-linux-stable-cumulus doesmv ./target/release/polkadot-parachain ./artifacts/.
but alsobuild-short-benchmark-cumulus
does `cp ./target/release/polkadot-parachain ./artifacts/.I am not missing anything, there is a possible consequence that later jobs could use binary with
--features runtime-benchmarks
.