Skip to content

Commit

Permalink
chore(upgrade): v0.9.43 to v1.0.0 (#1700)
Browse files Browse the repository at this point in the history
# Goal
The goal of this PR is to upgrade to Polkadot v1.0.0

Notable changes:

- The docker images for the local relay network have been updated to
  v1.1.0 to accurately reflect the last working version of Rococo-testnet.

- ci-base-image has been updated to install the stable and nightly
  toolchains.

References
- [Polkadot Forum Release
Notes](https://forum.polkadot.network/t/polkadot-release-analysis-v1-0-0/3585)
- [V1.0.0 Release
Tag](https://github.com/paritytech/polkadot/releases/tag/v1.0.0)
- [Polkadot-v0.9.43 vs Polkadot-v1.0.0
difference](paritytech/substrate@polkadot-v0.9.43...polkadot-v1.0.0#diff-e5be9978262555d1f400caa5ae803ffc96be0ba25fd4ed8bd917c12529474c44R105)

Closes #1639 
Closes #1605 

# Checklist
- [x] Chain spec updated
- [x] Design doc(s) updated
- [x] Weights updated
  • Loading branch information
mattheworris authored Oct 20, 2023
1 parent 098cac0 commit b12638d
Show file tree
Hide file tree
Showing 111 changed files with 3,340 additions and 3,364 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-dev-ci-base-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
push:
branches:
- disabled-as-this-branch-does-not-exist
# - 1482-add-rust-toolchain-install-to-ci-base-image
# - 1639-upgrade-to-polkadot-release-v100
env:
BIN_DIR: target/release

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ env:
RELEASE_BRANCH_NAME: release-${{github.event.inputs.release-version || github.ref_name}}
LATEST_FULL_RELEASE_TAG: _LATEST-FULL-RELEASE
TEST_RUN: ${{startsWith(github.event.inputs.release-version || github.ref_name, 'v0.0.1')}}
RUST_TOOLCHAIN: "nightly-2023-05-22" # Match to /rust-toolchain.toml
RUST_TOOLCHAIN: "1.70.0" # Match to /rust-toolchain.toml

jobs:
validate-release-version:
Expand Down Expand Up @@ -310,7 +310,7 @@ jobs:
srtool --version
- name: Build Deterministic WASM
run: |
RUST_LOG=debug SRTOOL_TAG="1.66.1" srtool build \
RUST_LOG=debug SRTOOL_TAG="1.70.0" srtool build \
--build-opts="'--features on-chain-release-build,no-metadata-docs,${{matrix.features}}'" \
--profile=${{matrix.build-profile}} \
--package=${{matrix.package}}
Expand Down Expand Up @@ -349,7 +349,7 @@ jobs:
- name: Build Docs
run: |
rustup target add wasm32-unknown-unknown
RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo doc --no-deps --workspace --features frequency
RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo +nightly-2023-07-13 doc --no-deps --workspace --features frequency
- name: Fix file permissions
shell: sh
run: |
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/verify-pr-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,11 @@ jobs:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Check
run: cargo fmt --check
# Remove these install commands when ci-base-image has nightly toolchain
run: |
rustup toolchain install nightly-2023-07-13
rustup target add x86_64-unknown-linux-gnu --toolchain nightly-2023-07-13
cargo +nightly-2023-07-13 fmt --check
lint-rust-code:
needs: changes
Expand All @@ -211,8 +215,11 @@ jobs:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Lint
# Remove these install commands when ci-base-image has nightly toolchain
run: |
SKIP_WASM_BUILD=1 env -u RUSTFLAGS cargo clippy \
rustup toolchain install nightly-2023-07-13
rustup target add x86_64-unknown-linux-gnu --toolchain nightly-2023-07-13
SKIP_WASM_BUILD=1 env -u RUSTFLAGS cargo +nightly-2023-07-13 clippy \
--features runtime-benchmarks,frequency-lint-check \
-- \
-D warnings
Expand All @@ -227,9 +234,11 @@ jobs:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Build Docs
# Remove these install commands when ci-base-image has nightly toolchain
run: |
rustup target add wasm32-unknown-unknown
RUSTDOCFLAGS="--enable-index-page --check -Zunstable-options" cargo doc --no-deps --features frequency
rustup toolchain install nightly-2023-07-13
rustup target add wasm32-unknown-unknown --toolchain nightly-2023-07-13
RUSTDOCFLAGS="--enable-index-page --check -Zunstable-options" cargo +nightly-2023-07-13 doc --no-deps --features frequency
verify-rust-packages-and-deps:
needs: changes
Expand Down Expand Up @@ -367,7 +376,7 @@ jobs:
- name: Build Deterministic WASM
if: steps.cache-wasm.outputs.cache-hit != 'true'
run: |
RUST_LOG=debug SRTOOL_TAG="1.66.1" srtool build \
RUST_LOG=debug SRTOOL_TAG="1.70.0" srtool build \
--build-opts="'--features on-chain-release-build,no-metadata-docs,${{matrix.features}}'" \
--profile=${{matrix.build-profile}} \
--package=${{matrix.package}}
Expand Down Expand Up @@ -673,7 +682,6 @@ jobs:
--dev \
--sealing=instant \
--wasm-execution=compiled \
--execution=wasm \
--no-telemetry \
--no-prometheus \
--port $((30333)) \
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
rust 1.69
rust 1.70
make 4.3
cmake 3.24.1
Loading

0 comments on commit b12638d

Please sign in to comment.