Skip to content

Commit d5cef79

Browse files
committed
improve smoldot nightly test
1 parent 2de1135 commit d5cef79

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.github/workflows/nightly.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,14 @@ jobs:
2121
run: echo "IMAGE=${{ env.IMAGE }}" >> $GITHUB_OUTPUT
2222

2323
smoldot-connectivity-test:
24-
name: Smoldot connectivity test (Westend Asset Hub)
24+
name: Smoldot connectivity test (${{ matrix.network }})
2525
runs-on: parity-large
2626
needs: [set-image]
2727
container: ${{ needs.set-image.outputs.IMAGE }}
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
network: [westend, kusama, polkadot, paseo]
2832
steps:
2933
- name: Checkout repository
3034
uses: actions/checkout@v6
@@ -40,16 +44,16 @@ jobs:
4044
echo "🔧 Building staking-miner..."
4145
cargo build --release
4246
43-
- name: Test smoldot connectivity to Westend Asset Hub
47+
- name: Test smoldot connectivity to ${{ matrix.network }} Asset Hub
4448
run: |
45-
echo "🔗 Testing smoldot connectivity to Westend Asset Hub..."
49+
echo "🔗 Testing smoldot connectivity to ${{ matrix.network }} Asset Hub..."
4650
echo "Note: Initial sync may take a few minutes..."
4751
4852
# Run the info command with smoldot to verify connectivity
4953
# Use timeout to prevent hanging indefinitely (10 minutes should be enough for initial sync)
50-
timeout 600 ./target/release/polkadot-staking-miner --smoldot westend info
54+
timeout 600 ./target/release/polkadot-staking-miner --smoldot ${{ matrix.network }} info
5155
52-
echo "✅ Smoldot connectivity test passed!"
56+
echo "✅ Smoldot connectivity test passed for ${{ matrix.network }}!"
5357
5458
- name: Notify smoldot test failure
5559
if: failure()
@@ -59,7 +63,7 @@ jobs:
5963
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
6064
server: m.parity.io
6165
message: |
62-
@room Smoldot connectivity test failed https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks/${{ github.run_id }}
66+
@room Smoldot connectivity test failed for ${{ matrix.network }} https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks/${{ github.run_id }}
6367
6468
nightly-test:
6569
runs-on: parity-large

src/client.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,6 @@ impl Client {
112112
}
113113

114114
/// Create a new client connecting via smoldot light client.
115-
///
116-
/// Smoldot is a light client that verifies proofs directly, providing trustless operation.
117-
/// It handles network issues (disconnections, peer rotation) internally and is self-healing.
118115
pub async fn new_smoldot(network: SmoldotNetwork) -> Result<Self, Error> {
119116
let (relay_spec, parachain_spec) = network.chain_specs();
120117

0 commit comments

Comments
 (0)