Skip to content

Commit 62e97bf

Browse files
Upgrade polkadot-sdk to db5e6454 (22 Jul 2025) (#21)
This PR upgrades `polkadot-sdk` dependency. This pulls in among many other things: 1. litep2p v0.10.0 with a fix of Bitswap protocol paritytech/litep2p#402. 2. Ability to increase idle connection timeout paritytech/polkadot-sdk#9251. There are now deprecation warnings for using `SignedExtension` (`TransactionExtension` should be used instead) — this is left for a follow-up.
1 parent dbaeb73 commit 62e97bf

File tree

24 files changed

+5611
-4000
lines changed

24 files changed

+5611
-4000
lines changed

.config/taplo.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# all options https://taplo.tamasfe.dev/configuration/formatter-options.html
2+
3+
exclude = [
4+
"target/**",
5+
]
6+
7+
# global rules
8+
[formatting]
9+
reorder_arrays = true
10+
inline_table_expand = false
11+
array_auto_expand = false
12+
array_auto_collapse = false
13+
indent_string = " " # tab
14+
15+
# don't re-order order-dependent rustflags
16+
[[rule]]
17+
include = [".cargo/config.toml"]
18+
keys = ["build"]
19+
20+
[rule.formatting]
21+
reorder_arrays = false
22+
23+
[[rule]]
24+
include = ["Cargo.toml"]
25+
keys = ["workspace.dependencies"]
26+
27+
[rule.formatting]
28+
reorder_keys = true

.config/zepter.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
version:
2+
format: 1
3+
# Minimum version of the binary that is expected to work. This is just for printing a nice error
4+
# message when someone tries to use an older version.
5+
binary: 0.13.2
6+
7+
# The examples in this file assume crate `A` to have a dependency on crate `B`.
8+
workflows:
9+
check:
10+
- [
11+
'lint',
12+
# Check that `A` activates the features of `B`.
13+
'propagate-feature',
14+
# These are the features to check:
15+
'--features=try-runtime,runtime-benchmarks,std',
16+
# 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.
17+
'--left-side-feature-missing=ignore',
18+
# Ignore the case that `A` it outside of the workspace. Otherwise it will report errors in external dependencies that we have no influence on.
19+
'--left-side-outside-workspace=ignore',
20+
# Some features imply that they activate a specific dependency as non-optional. Otherwise the default behaviour with a `?` is used.
21+
'--feature-enables-dep=try-runtime:frame-try-runtime,runtime-benchmarks:frame-benchmarking',
22+
# Auxillary flags:
23+
'--offline',
24+
'--locked',
25+
'--show-path',
26+
'--quiet',
27+
]
28+
# Same as `check`, but with the `--fix` flag.
29+
default:
30+
- [ $check.0, '--fix' ]
31+
32+
# Will be displayed when any workflow fails:
33+
help:
34+
text: |
35+
This repo uses the Zepter CLI to detect abnormalities in the feature configuration.
36+
It looks like one more more checks failed; please check the console output. You can try to automatically address them by running `zepter`.
37+
Otherwise please ask directly in the Merge Request, GitHub Discussions or on Matrix Chat, thank you.
38+
links:
39+
- "https://github.com/ggwpez/zepter"

.github/workflows/check.yml

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ concurrency:
2020
# Common variable is defined in the workflow
2121
# Repo env variable doesn't work for PRs from forks
2222
env:
23-
CI_IMAGE: "paritytech/ci-unified:bullseye-1.84.1-2025-01-28-v202502131220"
23+
CI_IMAGE: "paritytech/ci-unified:bullseye-1.88.0-2025-06-27-v202507112050"
2424

2525
jobs:
2626
set-image:
@@ -35,22 +35,15 @@ jobs:
3535

3636
check:
3737
name: Cargo check
38-
runs-on: ubuntu-latest
38+
# TODO: replace `parity-default` with `ubuntu-latest` when the repo becomes public.
39+
runs-on: parity-default
3940
needs: [set-image]
4041
container:
4142
image: ${{ needs.set-image.outputs.CI_IMAGE }}
4243
steps:
4344
- name: Checkout sources
4445
uses: actions/checkout@v4
4546

46-
- name: Install Rust stable toolchain
47-
uses: actions-rs/toolchain@v1
48-
with:
49-
profile: minimal
50-
toolchain: stable
51-
override: true
52-
53-
# Rust cache
5447
- name: Rust cache
5548
uses: Swatinem/rust-cache@v2
5649
with:
@@ -62,15 +55,15 @@ jobs:
6255

6356
check-benchmarking:
6457
name: Cargo check (benchmarking)
65-
runs-on: ubuntu-latest
58+
# TODO: replace `parity-default` with `ubuntu-latest` when the repo becomes public.
59+
runs-on: parity-default
6660
needs: [set-image]
6761
container:
6862
image: ${{ needs.set-image.outputs.CI_IMAGE }}
6963
steps:
7064
- name: Checkout sources
7165
uses: actions/checkout@v4
7266

73-
# Rust cache
7467
- name: Rust cache
7568
uses: Swatinem/rust-cache@v2
7669
with:
@@ -81,3 +74,25 @@ jobs:
8174
run: >
8275
cd node &&
8376
cargo check --features=runtime-benchmarks
77+
78+
test:
79+
name: Test
80+
# TODO: replace `parity-default` with `ubuntu-latest` when the repo becomes public.
81+
runs-on: parity-default
82+
timeout-minutes: 60
83+
needs: [set-image]
84+
container:
85+
image: ${{ needs.set-image.outputs.CI_IMAGE }}
86+
steps:
87+
- name: Checkout sources
88+
uses: actions/checkout@v4
89+
90+
- name: Rust cache
91+
uses: Swatinem/rust-cache@v2
92+
with:
93+
cache-on-failure: true
94+
cache-all-crates: true
95+
96+
# TODO: enable `--all-features`.
97+
- name: Run tests
98+
run: cargo test --workspace

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
# direnv files
1010
.envrc
1111
.direnv
12+
.idea

0 commit comments

Comments
 (0)