ci: shard gateway tests and disable debug info in rust ci

This commit is contained in:
zhefox
2026-06-23 13:35:56 +08:00
parent deb5f55786
commit c54b214657
2 changed files with 63 additions and 9 deletions
+63 -3
View File
@@ -25,6 +25,8 @@ concurrency:
env:
CARGO_INCREMENTAL: 0
CARGO_PROFILE_DEV_DEBUG: 0
CARGO_PROFILE_TEST_DEBUG: 0
CARGO_TERM_COLOR: always
jobs:
@@ -163,8 +165,50 @@ jobs:
exit 1
fi
test_gateway:
name: Test (Gateway)
test_gateway_shard:
name: Test Gateway Lib Shard (${{ matrix.shard }}/3)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3]
steps:
- uses: actions/checkout@v5
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Show Rust toolchain
run: rustup show active-toolchain
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
shared-key: rust-ci-${{ runner.os }}
workspaces: . -> target
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.9
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Test
env:
RUSTC_WRAPPER: sccache
SCCACHE_GHA_ENABLED: "true"
RUST_MIN_STACK: "16777216"
run: cargo nextest run -p aether-gateway --lib --partition count:${{ matrix.shard }}/3
- name: Show sccache stats
if: always()
env:
RUSTC_WRAPPER: sccache
SCCACHE_GHA_ENABLED: "true"
run: sccache --show-stats
test_gateway_bin:
name: Test Gateway Bin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
@@ -192,7 +236,7 @@ jobs:
RUSTC_WRAPPER: sccache
SCCACHE_GHA_ENABLED: "true"
RUST_MIN_STACK: "16777216"
run: cargo nextest run -p aether-gateway
run: cargo nextest run -p aether-gateway --bin aether-gateway
- name: Show sccache stats
if: always()
@@ -201,6 +245,22 @@ jobs:
SCCACHE_GHA_ENABLED: "true"
run: sccache --show-stats
test_gateway:
name: Test (Gateway)
runs-on: ubuntu-latest
needs:
- test_gateway_shard
- test_gateway_bin
if: ${{ always() }}
steps:
- name: Verify Gateway test shards
run: |
if [ "${{ needs.test_gateway_shard.result }}" != "success" ] || \
[ "${{ needs.test_gateway_bin.result }}" != "success" ]; then
echo "Gateway tests failed"
exit 1
fi
test_data:
name: Test (Data)
runs-on: ubuntu-latest