Files
swift-nio-http2/docker/docker-compose.2004.54.yaml
T
George Barnett e3e9024a63 Stop using deprecated API in allocation counting tests (#284)
Motivation:

Some of the allocation counting tests used frame-based stream channels
rather than the frame payload based ones. These were deprecated some
time ago.

Modifications:

- Update test handlers to be `HTTP2Frame.FramePayload` based
- Update the 'create_client_stream_channel' test to count streams rather
  than summing their stream ID (as stream IDs aren't assigned until the
  stream channel delivers pending writes for the first time).
- Update allocation limits

Result:

Allocation counting tests don't use deprecated APIs.
2021-03-16 14:45:34 +00:00

47 lines
1.4 KiB
YAML

version: "3"
services:
runtime-setup:
image: swift-nio-http2:20.04-5.4
build:
args:
base_image: "swiftlang/swift:nightly-5.4-focal"
ubuntu_version: "focal"
swift_version: "5.4"
h2spec_version: "2.2.1"
unit-tests:
image: swift-nio-http2:20.04-5.4
integration-tests:
image: swift-nio-http2:20.04-5.4
environment:
- MAX_ALLOCS_ALLOWED_1k_requests_interleaved=50000
- MAX_ALLOCS_ALLOWED_1k_requests_noninterleaved=49000
- MAX_ALLOCS_ALLOWED_client_server_h1_request_response=332000
- MAX_ALLOCS_ALLOWED_client_server_request_response=296000
- MAX_ALLOCS_ALLOWED_create_client_stream_channel=49000
- MAX_ALLOCS_ALLOWED_hpack_decoding=5050
- MAX_ALLOCS_ALLOWED_stream_teardown_100_concurrent=334000
performance-test:
image: swift-nio-http2:20.04-5.4
h2spec:
image: swift-nio-http2:20.04-5.4
test:
image: swift-nio-http2:20.04-5.4
environment:
- MAX_ALLOCS_ALLOWED_1k_requests_interleaved=50000
- MAX_ALLOCS_ALLOWED_1k_requests_noninterleaved=49000
- MAX_ALLOCS_ALLOWED_client_server_h1_request_response=332000
- MAX_ALLOCS_ALLOWED_client_server_request_response=296000
- MAX_ALLOCS_ALLOWED_create_client_stream_channel=49000
- MAX_ALLOCS_ALLOWED_hpack_decoding=5050
- MAX_ALLOCS_ALLOWED_stream_teardown_100_concurrent=334000
shell:
image: swift-nio-http2:20.04-5.4