Skip to content

Commit

Permalink
Add 5.3 CI (#1498)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8da802c)
  • Loading branch information
Davidde94 authored and weissi committed May 5, 2020
1 parent 76f2512 commit 40bdad8
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ class NIOConcurrencyHelpersTests: XCTestCase {
}
doIt()
assert(weakF == nil, within: .seconds(1))
assert(weakF == nil, within: .seconds(1))
assert(weakG == nil, within: .seconds(1))
}

@available(*, deprecated, message: "AtomicBox is deprecated, this is a test for the deprecated functionality")
Expand Down
5 changes: 0 additions & 5 deletions Tests/NIOHTTP1Tests/HTTPDecoderTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -245,16 +245,11 @@ class HTTPDecoderTest: XCTestCase {
}

func handlerAdded(context: ChannelHandlerContext) {
var fulfilledImmediately = true
defer {
fulfilledImmediately = false
}
context.pipeline.removeHandler(name: "decoder").whenComplete { result in
_ = result.mapError { (error: Error) -> Error in
XCTFail("unexpected error \(error)")
return error
}
//XCTAssertTrue(fulfilledImmediately)
}
}

Expand Down
3 changes: 2 additions & 1 deletion docker/docker-compose.1604.52.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ services:
image: swift-nio:16.04-5.2
build:
args:
base_image: "swiftlang/swift:nightly-5.2-xenial"
ubuntu_version: "xenial"
swift_version: "5.2"

unit-tests:
image: swift-nio:16.04-5.2
Expand Down
48 changes: 48 additions & 0 deletions docker/docker-compose.1604.53.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
version: "3"

services:

runtime-setup:
image: swift-nio:16.04-5.3
build:
args:
base_image: "swiftlang/swift:nightly-5.3-xenial"

unit-tests:
image: swift-nio:16.04-5.3

integration-tests:
image: swift-nio:16.04-5.3

test:
image: swift-nio:16.04-5.3
environment:
- MAX_ALLOCS_ALLOWED_1000_reqs_1_conn=30540
- MAX_ALLOCS_ALLOWED_1_reqs_1000_conn=486500 #5.3 improvement 491050
- MAX_ALLOCS_ALLOWED_ping_pong_1000_reqs_1_conn=4440
- MAX_ALLOCS_ALLOWED_bytebuffer_lots_of_rw=2100
- MAX_ALLOCS_ALLOWED_future_lots_of_callbacks=75010
- MAX_ALLOCS_ALLOWED_creating_10000_headers=100
- MAX_ALLOCS_ALLOWED_scheduling_10000_executions=20150
- MAX_ALLOCS_ALLOWED_modifying_1000_circular_buffer_elements=50
- MAX_ALLOCS_ALLOWED_encode_1000_ws_frames_holding_buffer=1010
- MAX_ALLOCS_ALLOWED_encode_1000_ws_frames_holding_buffer_with_space=1010
- MAX_ALLOCS_ALLOWED_encode_1000_ws_frames_new_buffer=4010
- MAX_ALLOCS_ALLOWED_encode_1000_ws_frames_new_buffer_with_space=4010
- MAX_ALLOCS_ALLOWED_decode_1000_ws_frames=1000
- MAX_ALLOCS_ALLOWED_modifying_byte_buffer_view=2010
- MAX_ALLOCS_ALLOWED_schedule_10000_tasks=90050
- MAX_ALLOCS_ALLOWED_read_10000_chunks_from_file=200500 #5.3 improvement 210050
- SANITIZER_ARG=--sanitize=thread

performance-test:
image: swift-nio:16.04-5.3

shell:
image: swift-nio:16.04-5.3

echo:
image: swift-nio:16.04-5.3

http:
image: swift-nio:16.04-5.3
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ version: "3"
services:

runtime-setup:
image: swift-nio:16.04-5.1
image: swift-nio:18.04-5.1
build:
args:
ubuntu_version: "xenial"
swift_version: "5.1.3"
ubuntu_version: "bionic"
swift_version: "5.1"

unit-tests:
image: swift-nio:16.04-5.1
image: swift-nio:18.04-5.1

integration-tests:
image: swift-nio:16.04-5.1
image: swift-nio:18.04-5.1

test:
image: swift-nio:16.04-5.1
image: swift-nio:18.04-5.1
environment:
- MAX_ALLOCS_ALLOWED_1000_reqs_1_conn=30540
- MAX_ALLOCS_ALLOWED_1_reqs_1000_conn=488050
Expand All @@ -34,16 +34,15 @@ services:
- MAX_ALLOCS_ALLOWED_modifying_byte_buffer_view=6010
- MAX_ALLOCS_ALLOWED_schedule_10000_tasks=90050
- MAX_ALLOCS_ALLOWED_read_10000_chunks_from_file=210050
- SANITIZER_ARG=--sanitize=thread

performance-test:
image: swift-nio:16.04-5.1
image: swift-nio:18.04-5.1

shell:
image: swift-nio:16.04-5.1
image: swift-nio:18.04-5.1

echo:
image: swift-nio:16.04-5.1
image: swift-nio:18.04-5.1

http:
image: swift-nio:16.04-5.1
image: swift-nio:18.04-5.1

0 comments on commit 40bdad8

Please sign in to comment.