Skip to content
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

Update dependencies to polkadot-v0.9.23 #649

Merged
merged 22 commits into from
Jun 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
2b8e206
adjust telemetry for rococo
Kailai-Wang Jun 10, 2022
342f81d
fix compile errors and cargo update
Kailai-Wang Jun 11, 2022
ab49c20
fix into_account
Kailai-Wang Jun 12, 2022
24f0f81
fix clippy
Kailai-Wang Jun 12, 2022
b3bb968
adjust script to for block detection
Kailai-Wang Jun 12, 2022
266e474
Merge branch 'dev' into 616-udpate-dep-to-v0.9.23
Kailai-Wang Jun 14, 2022
9400720
add extra filter check with sudo
Kailai-Wang Jun 14, 2022
57d6bed
add an option to benchmark all chains
Kailai-Wang Jun 14, 2022
71735d9
bump version
Kailai-Wang Jun 14, 2022
c368ca2
temporarily skip pallet-asset-manager for benchmarking
Kailai-Wang Jun 14, 2022
41a5a0a
[benchmarking bot] Auto commit generated weights files (#644)
github-actions[bot] Jun 14, 2022
a364a1a
small update of PR body
Kailai-Wang Jun 14, 2022
0885afa
activate xtokens filter for moonbase
Kailai-Wang Jun 15, 2022
2362900
Merge branch 'dev' into 616-udpate-dep-to-v0.9.23
Kailai-Wang Jun 15, 2022
31776cd
Merge branch 'dev' into activate-xtokens-for-moonbase
Kailai-Wang Jun 15, 2022
b981bc9
align integration-test of moonbase with other chains
Kailai-Wang Jun 15, 2022
76d0051
re-enable asset-manager benchmarking
Kailai-Wang Jun 15, 2022
ef37c04
revert to old runtime weights file
Kailai-Wang Jun 15, 2022
f01f786
[benchmarking bot] Auto commit generated weights files (#648)
github-actions[bot] Jun 15, 2022
2efebab
activate xtokens and update integration test for moonbase
Kailai-Wang Jun 15, 2022
51ef0ef
Merge branch '616-udpate-dep-to-v0.9.23' of github.com:litentry/liten…
Kailai-Wang Jun 15, 2022
c5da62e
minor adjustments
Kailai-Wang Jun 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions .github/workflows/benchmark-runtime-weights.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ on:
inputs:
chain:
type: choice
description: The chain whose runtime is benchmarked
description: The chain whose runtime is benchmarked, all = rococo+litmus+litentry
options:
- all
- litmus
- litentry
- rococo
- moonbase
pallets:
description: pallets to benchmark, * for all, or comma listed (e.g. frame-system,pallet-proxy)
default: "*"
required: true

env:
REMOTE_HOST: parachain-benchmark # remote host to run benchmarking upon, must be ssh reachable
REMOTE_HOST: parachain-benchmark # remote host to run benchmarking upon, must be reachable per ssh

jobs:
## build docker image with runtime-benchmarks feature, and then run the benchmarking remotely
Expand All @@ -43,20 +43,22 @@ jobs:

# exit status should propagate through ssh
- name: Remotely benchmark pallets ${{ github.event.inputs.pallets }} for ${{ github.event.inputs.chain }}
timeout-minutes: 120
timeout-minutes: 240
run: |
# prepend the asterisk with \ to go through ssh
arg="${{ github.event.inputs.pallets }}"
if [ "$arg" = "*" ];
then arg="\\$arg";
chain="${{ github.event.inputs.chain }}"
if [ "$arg" = "*" ]; then
arg="\\$arg";
fi
ssh -x "${{ env.REMOTE_HOST }}" 'bash -s' < scripts/benchmark-weight-remote.sh "${{ github.event.inputs.chain }}" "${GITHUB_REF#refs/heads/}" "$arg"

- name: Copy generated weights files back
run: |
echo "copy generated weights files back ..."
scp "${{ env.REMOTE_HOST }}":/tmp/litentry-parachain/runtime/${{ github.event.inputs.chain }}/src/weights/*.rs runtime/${{ github.event.inputs.chain }}/src/weights/
echo "done"
if [ "$chain" = "all" ]; then
chain="rococo litmus litentry"
fi
for c in $chain; do
ssh -x "${{ env.REMOTE_HOST }}" 'bash -s' < scripts/benchmark-weight-remote.sh "$c" "${GITHUB_REF#refs/heads/}" "$arg"
echo "copy generated weights files back ..."
scp "${{ env.REMOTE_HOST }}":/tmp/litentry-parachain/runtime/$c/src/weights/*.rs runtime/$c/src/weights/
done
echo "======================"
git status

Expand All @@ -72,10 +74,10 @@ jobs:
title: "[benchmarking bot] Update generated weights files"
body: |
This is an automatically created PR.
It updates the weights files under `runtime/${{ github.event.inputs.chain }}/src/weights/*.rs` after running benchmarks on the remote machine: ${{ env.REMOTE_HOST }}
It updates the weights files under `runtime/*/src/weights/*.rs` after running benchmarks on the remote machine: ${{ env.REMOTE_HOST }}

Pallets: "${{ github.event.inputs.pallets }}"
Chain: "${{ github.event.inputs.chain }}"
Chain: "${{ github.event.inputs.chain }}" [all = rococo,litmus,litentry]
Github action run: https://github.com/litentry/litentry-parachain/actions/runs/${{ github.run_id }}
labels: |
S1-pleasereview
Expand Down
Loading