Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
2953787
Fix runtime build with the latest `rustc`
dmitry-markin Jul 11, 2025
8e50734
Make sure to build runtime during CI cargo check stage
dmitry-markin Jul 11, 2025
18a1d9e
Add TODO item to remove the panic handler
dmitry-markin Jul 11, 2025
b80e93c
monor: typo
dmitry-markin Jul 11, 2025
50298f0
Upgrade `polkadot-sdk` cdf107de (2025-01-09) -> 436b4935 (2025-07-06)
dmitry-markin Jul 8, 2025
b640b0a
Use `try-runtime-cli` from crates.io
dmitry-markin Jul 10, 2025
7ed427a
Bump `codec`, `scale-info`, `impl-codec`
dmitry-markin Jul 14, 2025
30aaabf
bump `orchestra`
dmitry-markin Jul 14, 2025
7aaa6b0
Update to newer API of `pallet_session`
dmitry-markin Jul 14, 2025
d2e50ec
impl `DecodeWithMemTracking` for `ValidateSigned`
dmitry-markin Jul 14, 2025
ab17485
Use panic handler from `sp-io`
dmitry-markin Jul 14, 2025
8f7b06f
Use rococo extra storage proof size while we are on rococo
dmitry-markin Jul 14, 2025
4a0c435
impl `DecodeWithMemTracking` for `XcmBlobMessageDispatchResult`
dmitry-markin Jul 14, 2025
be6f34c
WIP: Update runtime
dmitry-markin Jul 17, 2025
9431522
Merge remote-tracking branch 'origin/main' into dm-upgrade-polkadot-sdk
dmitry-markin Jul 17, 2025
8e9f7e2
Compilation nits
bkontur Jul 18, 2025
c5cf766
gitignore
bkontur Jul 18, 2025
edc280a
Fix `NoCurrency` for `pallet-session`
bkontur Jul 18, 2025
2b010c8
More fixes
bkontur Jul 18, 2025
6b71e94
Merge pull request #23 from paritytech/bko-on-dm-upgrade-polkadot-sdk
dmitry-markin Jul 21, 2025
200dc89
Remove panic handler leftovers
dmitry-markin Jul 21, 2025
564a2c3
runtime: replace `CreateInherent` trait with `CreateBare`
dmitry-markin Jul 21, 2025
6385160
minor: remove unused imports
dmitry-markin Jul 21, 2025
88139a6
Upgrade polkadot-sdk `436b4935` -> `161e7f4d`
dmitry-markin Jul 21, 2025
4a7fc87
Apply suggestions from code review
dmitry-markin Jul 22, 2025
93d1e2d
Use new `construct_runtime!` syntax
dmitry-markin Jul 22, 2025
694c6db
More clean up
bkontur Jul 22, 2025
72fe6ec
More
bkontur Jul 22, 2025
ef3c9d4
Zepter+taplo
bkontur Jul 22, 2025
1c83a9e
workspace.deps
bkontur Jul 22, 2025
9b749f8
Merge pull request #24 from paritytech/bko-on-dm-upgrade-polkadot-sdk
bkontur Jul 22, 2025
4d14828
Add "test" CI stage
dmitry-markin Jul 22, 2025
1cde819
minor: yaml indentation
dmitry-markin Jul 22, 2025
e03fbda
Use GitHub runner for tests for now
dmitry-markin Jul 22, 2025
966eef3
Use rust 1.88 for `cargo test` CI stage
dmitry-markin Jul 22, 2025
d4492a7
Use cheaper `parity-default` runner for CI
dmitry-markin Jul 22, 2025
4640f84
Use image-provided toolchain
dmitry-markin Jul 22, 2025
41ffb99
CI: use rust 1.88 image
dmitry-markin Jul 22, 2025
3f2acd5
Update runtime/src/lib.rs
bkontur Jul 22, 2025
a68e607
Upgrade polkadot-sdk to `db5e6454`
dmitry-markin Jul 22, 2025
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
28 changes: 28 additions & 0 deletions .config/taplo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# all options https://taplo.tamasfe.dev/configuration/formatter-options.html

exclude = [
"target/**",
]

# global rules
[formatting]
reorder_arrays = true
inline_table_expand = false
array_auto_expand = false
array_auto_collapse = false
indent_string = " " # tab

# don't re-order order-dependent rustflags
[[rule]]
include = [".cargo/config.toml"]
keys = ["build"]

[rule.formatting]
reorder_arrays = false

[[rule]]
include = ["Cargo.toml"]
keys = ["workspace.dependencies"]

[rule.formatting]
reorder_keys = true
39 changes: 39 additions & 0 deletions .config/zepter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
version:
format: 1
# Minimum version of the binary that is expected to work. This is just for printing a nice error
# message when someone tries to use an older version.
binary: 0.13.2

# The examples in this file assume crate `A` to have a dependency on crate `B`.
workflows:
check:
- [
'lint',
# Check that `A` activates the features of `B`.
'propagate-feature',
# These are the features to check:
'--features=try-runtime,runtime-benchmarks,std',
# Do not try to add a new section into `[features]` of `A` only because `B` expose that feature. There are edge-cases where this is still needed, but we can add them manually.
'--left-side-feature-missing=ignore',
# Ignore the case that `A` it outside of the workspace. Otherwise it will report errors in external dependencies that we have no influence on.
'--left-side-outside-workspace=ignore',
# Some features imply that they activate a specific dependency as non-optional. Otherwise the default behaviour with a `?` is used.
'--feature-enables-dep=try-runtime:frame-try-runtime,runtime-benchmarks:frame-benchmarking',
# Auxillary flags:
'--offline',
'--locked',
'--show-path',
'--quiet',
]
# Same as `check`, but with the `--fix` flag.
default:
- [ $check.0, '--fix' ]

# Will be displayed when any workflow fails:
help:
text: |
This repo uses the Zepter CLI to detect abnormalities in the feature configuration.
It looks like one more more checks failed; please check the console output. You can try to automatically address them by running `zepter`.
Otherwise please ask directly in the Merge Request, GitHub Discussions or on Matrix Chat, thank you.
links:
- "https://github.com/ggwpez/zepter"
39 changes: 27 additions & 12 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ concurrency:
# Common variable is defined in the workflow
# Repo env variable doesn't work for PRs from forks
env:
CI_IMAGE: "paritytech/ci-unified:bullseye-1.84.1-2025-01-28-v202502131220"
CI_IMAGE: "paritytech/ci-unified:bullseye-1.88.0-2025-06-27-v202507112050"

jobs:
set-image:
Expand All @@ -35,22 +35,15 @@ jobs:

check:
name: Cargo check
runs-on: ubuntu-latest
# TODO: replace `parity-default` with `ubuntu-latest` when the repo becomes public.
runs-on: parity-default
needs: [set-image]
container:
image: ${{ needs.set-image.outputs.CI_IMAGE }}
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Install Rust stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

# Rust cache
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
Expand All @@ -62,15 +55,15 @@ jobs:

check-benchmarking:
name: Cargo check (benchmarking)
runs-on: ubuntu-latest
# TODO: replace `parity-default` with `ubuntu-latest` when the repo becomes public.
runs-on: parity-default
needs: [set-image]
container:
image: ${{ needs.set-image.outputs.CI_IMAGE }}
steps:
- name: Checkout sources
uses: actions/checkout@v4

# Rust cache
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
Expand All @@ -81,3 +74,25 @@ jobs:
run: >
cd node &&
cargo check --features=runtime-benchmarks

test:
name: Test
# TODO: replace `parity-default` with `ubuntu-latest` when the repo becomes public.
runs-on: parity-default
timeout-minutes: 60
needs: [set-image]
container:
image: ${{ needs.set-image.outputs.CI_IMAGE }}
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
cache-all-crates: true

# TODO: enable `--all-features`.
- name: Run tests
run: cargo test --workspace
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
# direnv files
.envrc
.direnv
.idea
Loading
Loading