Skip to content

Commit 2f31557

Browse files
authored
Merge pull request #100 from tankyleo/2026-05-vss-client-v050-compatibility
Add `vss_client_v050_compatibility` test
2 parents f728209 + 3a1d16f commit 2f31557

8 files changed

Lines changed: 634 additions & 10 deletions

File tree

.github/workflows/impl_tests.yml renamed to .github/workflows/implementation-tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ concurrency:
77
cancel-in-progress: true
88

99
jobs:
10-
test-postgres-backend:
10+
postgres-backend-tests:
1111
strategy:
1212
fail-fast: false
1313
matrix:
1414
platform: [ ubuntu-latest ]
1515
toolchain: [ stable, 1.85.0 ] # 1.85.0 is the MSRV
1616
runs-on: ${{ matrix.platform }}
17+
timeout-minutes: 15
1718

1819
services:
1920
postgres:
@@ -35,6 +36,10 @@ jobs:
3536
uses: actions/checkout@v3
3637
with:
3738
path: vss-server
39+
- name: Install Rust toolchain
40+
run: |
41+
rustup toolchain install ${{ matrix.toolchain }} --profile minimal
42+
rustup default ${{ matrix.toolchain }}
3843
3944
- name: Run postgres backend test suite
4045
run: |

.github/workflows/ldk-node-integration.yml renamed to .github/workflows/ldk-node-integration-tests.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ concurrency:
77
cancel-in-progress: true
88

99
jobs:
10-
build-and-test:
10+
ldk-node-integration-tests:
1111
strategy:
1212
fail-fast: false
1313
matrix:
@@ -41,12 +41,21 @@ jobs:
4141
with:
4242
repository: lightningdevkit/ldk-node
4343
path: ldk-node
44+
- name: Install Rust toolchain
45+
run: |
46+
rustup toolchain install ${{ matrix.toolchain }} --profile minimal
47+
rustup default ${{ matrix.toolchain }}
4448
4549
- name: Build and Deploy VSS Server
4650
run: |
4751
cd vss-server/rust
4852
RUSTFLAGS="--cfg noop_authorizer" cargo build --no-default-features
4953
./target/debug/vss-server server/vss-server-config.toml&
54+
- name: Pin packages to allow for MSRV
55+
if: "matrix.toolchain == '1.85.0'"
56+
run: |
57+
cd ldk-node
58+
cargo update -p idna_adapter --precise "1.2.0" --verbose # idna_adapter 1.2.1 uses ICU4X 2.2.0, requiring 1.86 and newer
5059
- name: Run LDK Node Integration tests
5160
run: |
5261
cd ldk-node

.github/workflows/build-and-deploy-rust.yml renamed to .github/workflows/ping-tests.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Ping Check
1+
name: Ping Tests
22

33
on: [push, pull_request]
44

@@ -7,13 +7,14 @@ concurrency:
77
cancel-in-progress: true
88

99
jobs:
10-
ping-check:
10+
ping-tests:
1111
strategy:
1212
fail-fast: false
1313
matrix:
1414
platform: [ ubuntu-latest ]
1515
toolchain: [ stable, 1.85.0 ] # 1.85.0 is the MSRV
1616
runs-on: ${{ matrix.platform }}
17+
timeout-minutes: 15
1718

1819
services:
1920
postgres:
@@ -33,8 +34,12 @@ jobs:
3334
steps:
3435
- name: Checkout code
3536
uses: actions/checkout@v3
37+
- name: Install Rust toolchain
38+
run: |
39+
rustup toolchain install ${{ matrix.toolchain }} --profile minimal --component rustfmt
40+
rustup default ${{ matrix.toolchain }}
3641
- name: Check formatting
37-
run: rustup component add rustfmt && cd rust && cargo fmt --all -- --check
42+
run: cd rust && cargo fmt --all -- --check
3843
- name: Build and Deploy VSS Server
3944
run: |
4045
cd rust

.github/workflows/server-tests.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Server Tests
2+
3+
on: [push, pull_request]
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
9+
jobs:
10+
server-tests:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
platform: [ ubuntu-latest ]
15+
toolchain: [ stable, 1.85.0 ] # 1.85.0 is the MSRV
16+
runs-on: ${{ matrix.platform }}
17+
timeout-minutes: 15
18+
19+
services:
20+
postgres:
21+
image: postgres:latest
22+
ports:
23+
- 5432:5432
24+
env:
25+
POSTGRES_DB: postgres
26+
POSTGRES_USER: postgres
27+
POSTGRES_PASSWORD: postgres
28+
options: >-
29+
--health-cmd pg_isready
30+
--health-interval 10s
31+
--health-timeout 5s
32+
--health-retries 5
33+
34+
steps:
35+
- name: Checkout code
36+
uses: actions/checkout@v3
37+
- name: Install Rust toolchain
38+
run: |
39+
rustup toolchain install ${{ matrix.toolchain }} --profile minimal
40+
rustup default ${{ matrix.toolchain }}
41+
- name: Build and Deploy VSS Server
42+
run: |
43+
cd rust
44+
RUSTFLAGS="--cfg noop_authorizer" cargo build --no-default-features
45+
./target/debug/vss-server server/vss-server-config.toml&
46+
- name: Run the server tests
47+
run: |
48+
sleep 5
49+
cd rust/server
50+
RUSTFLAGS="--cfg vss_client_v050_compatibility" cargo test
51+
cargo update -p vss-client-ng@0.6.0 --verbose
52+
RUSTFLAGS="--cfg vss_client_main_compatibility" cargo test

0 commit comments

Comments
 (0)