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

Upgrade polkadot-sdk to version 1.7.2 #2700

Merged
merged 83 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from 58 commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
050af7e
Use polkadot-sdk to version 1.7.2
RomarQ Feb 29, 2024
3e2a418
fix test compilation
RomarQ Mar 1, 2024
cf063dd
Fix runtime API
RomarQ Mar 4, 2024
4693b73
fix runtime-benchmarks for pallet-identity
RomarQ Mar 5, 2024
48ee91e
fix identity precompile
RomarQ Mar 6, 2024
677fe97
format code
RomarQ Mar 6, 2024
cefa404
fix rust tests
RomarQ Mar 6, 2024
0e2995d
fix license check
RomarQ Mar 6, 2024
fd4cc41
fix format
RomarQ Mar 6, 2024
f8469eb
chore(ci): explicitly set rust toolchain before running the jobs
RomarQ Mar 7, 2024
0a57a6b
chore(ci): add rust-src component
RomarQ Mar 7, 2024
eec0501
chore(ci): fix rust-toolchain component installation
RomarQ Mar 7, 2024
90bd671
chore(ci): remove deprectated actions-rs/toolchain action
RomarQ Mar 7, 2024
de0fcf5
chore(ci): try to fix CI
RomarQ Mar 7, 2024
d50f207
chore(ci): try to fix CI
RomarQ Mar 7, 2024
52787b1
chore(ci): try to fix CI
RomarQ Mar 7, 2024
504b560
chore(ci): try to fix CI
RomarQ Mar 7, 2024
11ee0f0
disable crate default-features
RomarQ Mar 7, 2024
20bd522
fix tests
RomarQ Mar 7, 2024
e1269b0
fix try-runtime
RomarQ Mar 7, 2024
40b48c5
update crowdloan-rewards crate
RomarQ Mar 7, 2024
b802da9
revert Xtokens.sol change
RomarQ Mar 7, 2024
b039d4d
remove TODO's
RomarQ Mar 8, 2024
08a3303
chore update typescript test
RomarQ Mar 11, 2024
7541a7e
Merge branch 'master' into rq/update-polkadot-v1.7.2
RomarQ Mar 12, 2024
111eef2
replace NativeElseWasmExecutor with WasmExecutor to fix runtime overr…
RomarQ Mar 12, 2024
b60e8f1
rename trait
RomarQ Mar 12, 2024
7e56168
fix benchmarks
RomarQ Mar 12, 2024
de96dab
attempt to fix tracing-tests
RomarQ Mar 12, 2024
d8e66f4
revert change
RomarQ Mar 13, 2024
2e5a24e
set delayed_best_block to true in ParachainBlockImport
RomarQ Mar 13, 2024
ec2dbda
initialize block inside tracing method in the runtime api
RomarQ Mar 14, 2024
4901b7e
fix formatting in typescript tests
RomarQ Mar 14, 2024
fa5cd63
try new runtime-overrides
RomarQ Mar 14, 2024
116b473
fix some xcm tests tests
RomarQ Mar 14, 2024
8598662
fix tracing tests
RomarQ Mar 15, 2024
938ea52
fix formatting
RomarQ Mar 15, 2024
18080a1
fix rust tests
RomarQ Mar 15, 2024
d0d4e36
Revert "try new runtime-overrides"
RomarQ Mar 15, 2024
bd49b4e
keep using xcm v3 in some places to avoid having many breaking changes
RomarQ Mar 15, 2024
c31a6b8
fix benchmarks
RomarQ Mar 15, 2024
72c9578
fix tracing tests
RomarQ Mar 15, 2024
541c416
fix typescript tests
RomarQ Mar 17, 2024
d19e6ce
revert removal of RewardDestination::Controller
RomarQ Mar 18, 2024
2615ca5
fix tests in test-proxy
RomarQ Mar 18, 2024
5f5d08b
fix tests in test-precompile-wormhole.ts
RomarQ Mar 18, 2024
46a9db2
fix test-pov tests
RomarQ Mar 18, 2024
bdc8482
fix dmp queue tests
RomarQ Mar 18, 2024
472bf9f
fix fee tests and add xcm v4 tests
RomarQ Mar 18, 2024
6e2c17e
add xcm v4 tests
RomarQ Mar 18, 2024
b15a5c2
fix fmt
RomarQ Mar 18, 2024
31ead3d
update moonkit dependency branch
RomarQ Mar 18, 2024
ba61606
add new type parameter to pallet async-backing config
RomarQ Mar 19, 2024
915b9ef
fix coverage job
RomarQ Mar 19, 2024
d3afb94
update github jobs
RomarQ Mar 19, 2024
74711dc
derive new test id's
RomarQ Mar 19, 2024
b93ea02
update rustc to version 1.75
RomarQ Mar 19, 2024
5b90e07
Revert "update rustc to version 1.75"
RomarQ Mar 19, 2024
8064258
update Cargo.lock
RomarQ Mar 19, 2024
1a3aea5
revert changes to .gihub folder
RomarQ Mar 19, 2024
52bea1f
fix formatting
RomarQ Mar 19, 2024
aee9b69
removed unused script
RomarQ Mar 19, 2024
b3a4287
try disabling coverage
RomarQ Mar 19, 2024
9b0962d
Revert "try disabling coverage"
RomarQ Mar 19, 2024
1397d9c
update mold linker
RomarQ Mar 19, 2024
d5b049b
use default linker
RomarQ Mar 19, 2024
9de0703
Revert "use default linker"
RomarQ Mar 19, 2024
f5d2287
fix leaked dependencies
RomarQ Mar 19, 2024
a850bc8
apply suggestions from reviews
RomarQ Mar 20, 2024
e389a70
Revert "Revert "use default linker""
RomarQ Mar 20, 2024
4301aff
Revert "Revert "Revert "use default linker"""
RomarQ Mar 20, 2024
c7c7a37
increase timeout for coverage job
RomarQ Mar 20, 2024
6dff7e7
Merge branch 'master' into rq/update-polkadot-v1.7.2
RomarQ Mar 20, 2024
e93eb9f
use pre-generated chain spec in dev-tests (avoid compiling wasm on ev…
RomarQ Mar 21, 2024
944e8ff
Merge branch 'master' into rq/update-polkadot-v1.7.2
RomarQ Mar 21, 2024
83c5ca2
fix line lint
RomarQ Mar 21, 2024
fde57bb
fix tests
RomarQ Mar 21, 2024
918aab5
Revert "increase timeout for coverage job"
RomarQ Mar 22, 2024
fccb45f
add HostFunctions to ChainSpec
RomarQ Mar 22, 2024
4936313
add common migration MigrateToLatestXcmVersion
RomarQ Mar 22, 2024
d97ffc8
fix migration
RomarQ Mar 22, 2024
a04afba
add runtime-2900 feature to moonbeam-rpc-primitives-debug
RomarQ Mar 22, 2024
3b40b35
update benchmarks
RomarQ Mar 25, 2024
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
12 changes: 2 additions & 10 deletions .github/workflow-templates/cargo-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,8 @@ runs:
run: |
mkdir -p mold
curl -L --retry 10 --silent --show-error https://github.com/rui314/mold/releases/download/v1.1.1/mold-1.1.1-$(uname -m)-linux.tar.gz | tar -C $(realpath mold) --strip-components=1 -xzf -
# With rustup's nice new toml format, we just need to run rustup show to install the toolchain
# https://github.com/actions-rs/toolchain/issues/126#issuecomment-782989659
- name: Setup Rust toolchain
shell: bash
run: |
if ! which "rustup" > /dev/null; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
fi
rustup show
rustup target add wasm32-unknown-unknown
- name: Install Rust Toolchain
uses: ./.github/workflow-templates/rust-toolchain
- name: Build Node
shell: bash
run: |
Expand Down
19 changes: 19 additions & 0 deletions .github/workflow-templates/rust-toolchain/action.yml
RomarQ marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Rust Toolchain
description: Install Rust toolchain

runs:
using: "composite"
steps:
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.74.0
override: true
components: rust-src, rustfmt, clippy
- name: Install targets
shell: bash
run: |
rustup target add wasm32-unknown-unknown
- name: Shows the name of the active toolchain and the version of `rustc`
shell: bash
run: rustup show
31 changes: 10 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,8 @@ jobs:
uses: actions/checkout@v3
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
# With rustup's nice new toml format, we just need to run rustup show to install the toolchain
# https://github.com/actions-rs/toolchain/issues/126#issuecomment-782989659
- name: Setup Rust toolchain
run: rustup show
- name: Install Rust Toolchain
uses: ./.github/workflow-templates/rust-toolchain
- name: Check Cargo.toml files format with toml_sort
run: ./scripts/check-cargo-toml-files-format.sh

Expand All @@ -239,8 +237,8 @@ jobs:
uses: actions/checkout@v3
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
- name: Setup Rust toolchain
run: rustup show
- name: Install Rust Toolchain
uses: ./.github/workflow-templates/rust-toolchain
- name: Verifies all 'pallet-evm/ethereum' use 'forbid-evm-reentrancy' feature
run: ./scripts/check-forbid-evm-reentrancy.sh

Expand All @@ -253,10 +251,8 @@ jobs:
uses: actions/checkout@v3
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
# With rustup's nice new toml format, we just need to run rustup show to install the toolchain
# https://github.com/actions-rs/toolchain/issues/126#issuecomment-782989659
- name: Setup Rust toolchain
run: rustup show
- name: Install Rust Toolchain
uses: ./.github/workflow-templates/rust-toolchain
- name: Format code with rustfmt
run: cargo fmt -- --check

Expand All @@ -271,10 +267,10 @@ jobs:
uses: actions/checkout@v3
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
- name: Install Rust Toolchain
uses: ./.github/workflow-templates/rust-toolchain
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Setup Rust toolchain
run: rustup show
# Development branch clippy check
- name: Clippy (dev)
if: github.ref != 'refs/heads/master' && !startsWith(github.ref, 'perm-')
Expand Down Expand Up @@ -331,15 +327,8 @@ jobs:
run: |
mkdir -p mold
curl -L --retry 10 --silent --show-error https://github.com/rui314/mold/releases/download/v1.1.1/mold-1.1.1-$(uname -m)-linux.tar.gz | tar -C $(realpath mold) --strip-components=1 -xzf -
# With rustup's nice new toml format, we just need to run rustup show to install the toolchain
# https://github.com/actions-rs/toolchain/issues/126#issuecomment-782989659
- name: Setup Rust toolchain
run: |
if ! which "rustup" > /dev/null; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
fi
rustup show
rustup target add wasm32-unknown-unknown
- name: Install Rust Toolchain
uses: ./.github/workflow-templates/rust-toolchain
# Checks are run after uploading artifacts since they are modified by the tests
- name: Unit tests
run: |
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/check-licenses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.74.0
override: true
- name: Install Rust Toolchain
uses: ./.github/workflow-templates/rust-toolchain
- name: Verify Licenses
run: |
cargo install cargo-license
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

# With rustup's nice new toml format, we just need to run rustup show to install the toolchain
# https://github.com/actions-rs/toolchain/issues/126#issuecomment-782989659
- name: Setup Rust toolchain
run: rustup show
uses: ./.github/workflow-templates/rust-toolchain

- uses: actions/cache@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prepare-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
with:
ref: ${{ github.event.inputs.sha }}
- name: Setup Rust toolchain
run: rustup show
uses: ./.github/workflow-templates/rust-toolchain
- name: Build Node
run: cargo build --profile=production --all
- name: Save parachain binary
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ on:
workflow_dispatch:
inputs:
from:
description: "Polkadot version to bump from (ex: v0.9.40)"
description: "Polkadot version to bump from (ex: v1.3.0)"
required: true
to:
description: "Polkadot version to bump to (ex: v0.9.42)"
description: "Polkadot version to bump to (ex: v1.7.2)"
required: true

jobs:
Expand All @@ -29,7 +29,7 @@ jobs:
- name: Create version bump issue
uses: peter-evans/create-issue-from-file@v3
with:
title: Update substrate/polkadot/cumulus from ${{ github.event.inputs.from }} to ${{ github.event.inputs.to }}
title: Update polkadot-sdk from ${{ github.event.inputs.from }} to ${{ github.event.inputs.to }}
content-filepath: ./version-bump.md
labels: |
automated issue
Loading
Loading