Skip to content

chore: Upgrade smoldot to 2.1.0#2248

Open
DenzelPenzel wants to merge 3 commits into
masterfrom
denzelpenzel/upgrade-smoldot
Open

chore: Upgrade smoldot to 2.1.0#2248
DenzelPenzel wants to merge 3 commits into
masterfrom
denzelpenzel/upgrade-smoldot

Conversation

@DenzelPenzel

@DenzelPenzel DenzelPenzel commented Jul 10, 2026

Copy link
Copy Markdown

Summary

Upgrades the light client stack and hardens the light client integration tests.

  • Bump smoldot 1.1.0 → 2.1.0 and smoldot-light 1.1.0 → 1.3.1.
  • Raise the workspace rust-version 1.85.0 → 1.88.0 (required by the newer smoldot).
  • Harden the light client integration tests: wrap client initialization and each step in explicit timeouts so a stalled light client fails fast and names the stuck step, and initialise a RUST_LOG-driven tracing subscriber so smoldot/subxt logs are attached to failures.

Bump the light client dependencies:
- smoldot 1.1.0 -> 2.1.0
- smoldot-light 1.1.0 -> 1.3.1

The newer smoldot requires a higher toolchain, so raise the workspace
rust-version from 1.85.0 to 1.88.0.
@DenzelPenzel DenzelPenzel requested a review from a team as a code owner July 10, 2026 12:01
@socket-security

socket-security Bot commented Jul 10, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedcargo/​smoldot@​0.20.0 ⏵ 2.1.0591009310070
Updatedcargo/​smoldot-light@​0.18.0 ⏵ 1.3.198 -11009310070

View full report

Wrap client initialization and each test step in explicit timeouts so a
stalled light client fails fast and names the stuck step, instead of
hanging until the CI job timeout cancels it with no output. Initialise a
tracing subscriber driven by RUST_LOG so smoldot and subxt logs are
attached to failures.

On the CI side, run only the `light_client` tests with `--nocapture`
under RUST_LOG, and raise the flaky lightclient job timeout from 10 to
15 minutes to accommodate warp sync. Also normalise some YAML
indentation and trailing whitespace in the workflow.
@DenzelPenzel DenzelPenzel force-pushed the denzelpenzel/upgrade-smoldot branch 2 times, most recently from 1cd6caa to 3bd1ac0 Compare July 10, 2026 13:56
The newer clippy (Rust 1.97) surfaces additional lints on this branch:

- collapsible_if: collapse nested if / if-let into let-chains
  (metadata, lightclient background, rpcs mock client, chain_head,
  follow_stream_unpin)
- needless_borrow: drop unnecessary & in format args (cli diff,
  rpcs UserError Display, eth signer test)
- manual_is_multiple_of: use is_multiple_of in seed_from_entropy
- unused_imports: drop unused subxt_test in light_client test
@DenzelPenzel DenzelPenzel force-pushed the denzelpenzel/upgrade-smoldot branch from 3bd1ac0 to 1425ffd Compare July 10, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant