Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI and allocation limits #1377

Merged
merged 2 commits into from
Mar 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 32 additions & 15 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
fail-fast: false
matrix:
include:
- image: swift:5.6-focal
swift-test-flags: "--enable-test-discovery --sanitize=thread"
- image: swift:5.5-focal
swift-test-flags: "--enable-test-discovery"
- image: swift:5.4-focal
Expand All @@ -44,43 +46,55 @@ jobs:
run: swift build ${{ matrix.swift-build-flags }}
timeout-minutes: 20
- name: 🧪 Test
# Skip tests on 5.6: https://bugs.swift.org/browse/SR-15955
if: ${{ matrix.image != 'swift:5.6-focal' }}
run: swift test ${{ matrix.swift-test-flags }}
timeout-minutes: 20
performance-tests:
strategy:
fail-fast: false
matrix:
include:
- image: swift:5.6-focal
env:
MAX_ALLOCS_ALLOWED_bidi_1k_rpcs_10_requests: 429000
MAX_ALLOCS_ALLOWED_bidi_1k_rpcs_1_request: 177000
MAX_ALLOCS_ALLOWED_embedded_server_bidi_1k_rpcs_10_small_requests: 110000
MAX_ALLOCS_ALLOWED_embedded_server_bidi_1k_rpcs_1_small_request: 65000
MAX_ALLOCS_ALLOWED_embedded_server_unary_1k_rpcs_1_small_request: 61000
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong: 175000
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong_interceptors_client: 182000
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong_interceptors_server: 182000
- image: swift:5.5-focal
env:
MAX_ALLOCS_ALLOWED_bidi_1k_rpcs_10_requests: 480000
MAX_ALLOCS_ALLOWED_bidi_1k_rpcs_1_request: 201000
MAX_ALLOCS_ALLOWED_bidi_1k_rpcs_10_requests: 459000
MAX_ALLOCS_ALLOWED_bidi_1k_rpcs_1_request: 189000
MAX_ALLOCS_ALLOWED_embedded_server_bidi_1k_rpcs_10_small_requests: 110000
MAX_ALLOCS_ALLOWED_embedded_server_bidi_1k_rpcs_1_small_request: 65000
MAX_ALLOCS_ALLOWED_embedded_server_unary_1k_rpcs_1_small_request: 61000
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong: 194000
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong_interceptors_client: 201000
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong_interceptors_server: 201000
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong: 186000
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong_interceptors_client: 193000
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong_interceptors_server: 193000
- image: swift:5.4-focal
env:
MAX_ALLOCS_ALLOWED_bidi_1k_rpcs_10_requests: 480000
MAX_ALLOCS_ALLOWED_bidi_1k_rpcs_1_request: 201000
MAX_ALLOCS_ALLOWED_bidi_1k_rpcs_10_requests: 459000
MAX_ALLOCS_ALLOWED_bidi_1k_rpcs_1_request: 189000
MAX_ALLOCS_ALLOWED_embedded_server_bidi_1k_rpcs_10_small_requests: 110000
MAX_ALLOCS_ALLOWED_embedded_server_bidi_1k_rpcs_1_small_request: 65000
MAX_ALLOCS_ALLOWED_embedded_server_unary_1k_rpcs_1_small_request: 61000
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong: 194000
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong_interceptors_client: 201000
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong_interceptors_server: 201000
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong: 186000
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong_interceptors_client: 193000
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong_interceptors_server: 193000
- image: swift:5.3-focal
env:
MAX_ALLOCS_ALLOWED_bidi_1k_rpcs_10_requests: 481000
MAX_ALLOCS_ALLOWED_bidi_1k_rpcs_1_request: 202000
MAX_ALLOCS_ALLOWED_bidi_1k_rpcs_10_requests: 460000
MAX_ALLOCS_ALLOWED_bidi_1k_rpcs_1_request: 190000
MAX_ALLOCS_ALLOWED_embedded_server_bidi_1k_rpcs_10_small_requests: 110000
MAX_ALLOCS_ALLOWED_embedded_server_bidi_1k_rpcs_1_small_request: 65000
MAX_ALLOCS_ALLOWED_embedded_server_unary_1k_rpcs_1_small_request: 61000
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong: 195000
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong_interceptors_client: 202000
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong_interceptors_server: 202000
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong: 187000
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong_interceptors_client: 194000
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong_interceptors_server: 194000
name: Performance Tests on ${{ matrix.image }}
runs-on: ubuntu-latest
container:
Expand All @@ -96,6 +110,7 @@ jobs:
fail-fast: false
matrix:
include:
- image: swift:5.6-focal
- image: swift:5.5-focal
- image: swift:5.4-focal
- image: swift:5.3-focal
Expand All @@ -112,6 +127,8 @@ jobs:
GRPC_NO_NIO_SSL: 1
timeout-minutes: 20
- name: Test without NIOSSL
# Skip tests on 5.6: https://bugs.swift.org/browse/SR-15955
if: ${{ matrix.image != 'swift:5.6-focal' }}
run: swift test --enable-test-discovery
env:
GRPC_NO_NIO_SSL: 1
Expand Down