Skip to content

Commit

Permalink
Upgrade to polkadot-v0.9.16 (#567)
Browse files Browse the repository at this point in the history
* switch deps

* add fork patch

* upgrade to v0.9.16

* wip parachain utils

* upgrade pallet-privilege to 0.9.16

* Add support of polkadot-v0.9.16 in pallet-oracle (#587)

* postpone upgrade

* missing maxencodedlen for defi struct

* style

* normalize orml-tokens/orml-traits and upgrade dex-router

* update cargolock

* derive MaxEncodedLen for Currency

* reorder

* revert registre MaxEncodedLen as XcmLocation does not implements it yet

* upgrade xcm related orml packages and add preimage

* format

* WIP: upgrade runtime, please CHECK THIS

* update cargo.lock

* upgrade node/chain_spec

* parachain_utils: make upgrade_runtime generic

* bump transaction version

* fmt

* parachain_utils:: minor fix

* parachain_utils: minor fixes

* Use BoundedVec instead of Vec (#589)

* upgrade executive, from AllPallets to AllPalletsReversedWithSystemFirst to
preserve previous behavior

* upgrade pallet mocks, adding missing MaxConsumers in sys config

* remove unused benchmark from composable

* fix oracle benchmarking

* update cargo.lock

* fix parachain-utils

* some stuff

* format

* fix tests/benchmarking

* update cargo.lock

* style

* some stuff

* upgrade xcm-emulator

* update cargo.lock

* ignore integration tests

* ignore simnode

* fix simnode

* benchmarks

* adds scheduler migrations

* cargo fmt

* bump runtime version

* cargo fmt

* fix benchmark workflow

* fix check benchmarks

* cargo fmt

* fix benchmark.yml

* fix runtime benchmark

* simnode stuff

* only benchmark picasso

* Pushing benchmark changes

* finalize picasso benchmarks

* fix weights

* cargo fmt

Co-authored-by: Hussein Ait Lahcen <hussein.aitlahcen@gmail.com>
Co-authored-by: david <wizdave97@gmail.com>
Co-authored-by: andor0 <aaorlov1@gmail.com>
Co-authored-by: seunlanlege <seunlanlege@users.noreply.github.com>
  • Loading branch information
5 people authored Feb 6, 2022
1 parent 748556d commit 5cfafdc
Show file tree
Hide file tree
Showing 143 changed files with 7,306 additions and 30,862 deletions.
Empty file added .config/config
Empty file.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:

- uses: EndBug/add-and-commit@v8
with:
add: 'runtime/picasso'
add: 'runtime'
message: 'Pushing benchmark changes'
push: "true"
new_branch: ${{ steps.branch-name.outputs.current_branch }}
2 changes: 1 addition & 1 deletion .github/workflows/simnode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ jobs:
env:
BASE_BRANCH: ${{ github.event.pull_request.base.ref }}
GITHUB_BRANCH_NAME: ${{ steps.branch-name.outputs.current_branch }}
if: contains( github.event.pull_request.labels.*.name, 'needs-benchmarks') && env.RUNTIME_CHECK == 1
if: contains( github.event.pull_request.labels.*.name, 'needs-simnode') && env.RUNTIME_CHECK == 1
id: run_simnode
run: .maintain/run_simnode.sh
2 changes: 1 addition & 1 deletion .maintain/playbooks/run-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
dest: "/home/{{ user }}/basilisk"
- url: https://storage.googleapis.com/composable-binaries/testnet-releases/picasso/composable-latest.tar.gz
dest: "/home/{{ user }}/composable-latest.tar.gz"
- url: https://github.com/paritytech/polkadot/releases/download/v0.9.13/polkadot
- url: https://github.com/paritytech/polkadot/releases/download/v0.9.16/polkadot
dest: "/home/{{ user }}/polkadot"

- name: Clone composable repo
Expand Down
13 changes: 2 additions & 11 deletions .maintain/run_benchmarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ set -e # fail on any error

VERSIONS_FILES=(
"runtime/picasso/src/weights,picasso-dev,picasso"
"runtime/dali/src/weights,dali-dev,dali"
"runtime/composable/src/weights,composable-dev,composable"
# "runtime/dali/src/weights,dali-dev,dali"
# "runtime/composable/src/weights,composable-dev,composable"
)

steps=50
Expand Down Expand Up @@ -38,15 +38,6 @@ run_benchmarks() {
--raw \
--output="$OUTPUT" \
--log error
git config --global user.email "haroldsphinx@gmail.com"
git config --global user.name "haroldsphinx"
USERNAME=$(gcloud secrets versions access latest --secret=github-api-username)
PASSWORD=$(gcloud secrets versions access latest --secret=github-api-token)
git remote set-url origin https://"$USERNAME":"$PASSWORD"@github.com/ComposableFi/composable.git
git pull origin "$GITHUB_BRANCH_NAME"
git add runtime/"$FOLDER"
git commit -m "Updates weights for $CHAIN"
git push origin "$GITHUB_BRANCH_NAME"
# ToDO: Setup gpg signing and create a bot account for pushing
}

Expand Down
Loading

0 comments on commit 5cfafdc

Please sign in to comment.