Skip to content

feat(transport): configurable max_message_size with ant-quic 0.22.0 #204

feat(transport): configurable max_message_size with ant-quic 0.22.0

feat(transport): configurable max_message_size with ant-quic 0.22.0 #204

name: Integration Tests (Network)
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs:
integration-network:
name: Network & P2P Tests
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/share/boost
sudo rm -rf /usr/share/swift
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo rm -rf /usr/local/graalvm
sudo rm -rf /usr/local/julia*
sudo rm -rf "$AGENT_TOOLSDIRECTORY" || true
docker system prune -af --volumes || true
sudo apt-get clean
df -h
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-int-network-${{ hashFiles('**/Cargo.lock') }}
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev build-essential protobuf-compiler
- name: Install cargo-nextest
uses: taiki-e/install-action@v2
with:
tool: cargo-nextest
# Note: Using specific features instead of --all-features to avoid sp1-sdk
# build issues (linker OOM on Linux, C++20 on Windows).
- name: Build tests
run: cargo build --tests --features "mocks,h2_greedy,test-utils"
- name: Clean incremental artifacts
run: |
find target -name "incremental" -type d -exec rm -rf {} + 2>/dev/null || true
df -h
- name: QUIC Integration
# Run sequentially to avoid port binding conflicts
run: cargo nextest run --test ant_quic_integration_test --features "mocks,h2_greedy,test-utils" --no-fail-fast --test-threads=1
- name: Wait for socket cleanup
run: sleep 5
- name: Connection Lifecycle
# Run sequentially to avoid port binding conflicts
# These tests are flaky due to dual-stack socket binding issues - continue on error for now
run: cargo nextest run --test connection_lifecycle_integration_test --features "mocks,h2_greedy,test-utils" --no-fail-fast --test-threads=1
continue-on-error: true
- name: Wait for socket cleanup
run: sleep 5
- name: Network Error Tests
# Run sequentially to avoid port binding conflicts
run: cargo nextest run --test network_error_tests --features "mocks,h2_greedy,test-utils" --no-fail-fast --test-threads=1
integration-protocols:
name: Protocol Tests
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/share/boost
sudo rm -rf /usr/share/swift
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo rm -rf /usr/local/graalvm
sudo rm -rf /usr/local/julia*
sudo rm -rf "$AGENT_TOOLSDIRECTORY" || true
docker system prune -af --volumes || true
sudo apt-get clean
df -h
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo
uses: actions/cache@v4
continue-on-error: true
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-int-protocol-${{ hashFiles('**/Cargo.lock') }}
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev build-essential protobuf-compiler
- name: Install cargo-nextest
uses: taiki-e/install-action@v2
with:
tool: cargo-nextest
# Note: Using specific features instead of --all-features to avoid sp1-sdk
# build issues (linker OOM on Linux, C++20 on Windows).
- name: Build tests (default features)
run: cargo build --tests --features "mocks,h2_greedy,test-utils"
- name: Clean incremental artifacts
run: |
find target -name "incremental" -type d -exec rm -rf {} + 2>/dev/null || true
df -h
- name: Four Word Integration
run: cargo nextest run --test four_word_integration_test --features "mocks,h2_greedy,test-utils" --no-fail-fast
- name: Health Integration
run: cargo nextest run --test health_integration_test --features "mocks,h2_greedy,test-utils" --no-fail-fast
- name: Build test dependencies
run: cargo build --tests --features "mocks,h2_greedy,test-utils"
- name: Gossipsub
run: cargo nextest run --test gossipsub_integration_test --features "mocks,h2_greedy,test-utils" --no-fail-fast
- name: Coordinator Integration
run: cargo nextest run --test coordinator_integration_test --features "mocks,h2_greedy,test-utils" --no-fail-fast