From dbfca164c183a838eb218fcd91ee77ce4d0b9fd9 Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Wed, 20 Apr 2022 08:57:26 +0200 Subject: [PATCH] Drop support for Swift 5.2 and 5.3 (#337) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As outlined in a [Swift forums post in November ’21](https://forums.swift.org/t/swiftnio-swift-version-support/53232), SwiftNIO will only support the latest non-patch Swift release and the 2 immediately prior non-patch versions. - drop support for Swift 5.2 and 5.3. - update CI for Swift 5.4 to run on bionic instead of focal to ensure that we still test bionic. --- Package.swift | 2 +- README.md | 2 +- docker/docker-compose.1604.52.yaml | 42 ------------------- docker/docker-compose.1804.53.yaml | 41 ------------------ ...04.54.yaml => docker-compose.1804.54.yaml} | 14 +++---- scripts/build_podspec.sh | 2 +- scripts/check_no_api_breakages.sh | 2 +- 7 files changed, 11 insertions(+), 94 deletions(-) delete mode 100644 docker/docker-compose.1604.52.yaml delete mode 100644 docker/docker-compose.1804.53.yaml rename docker/{docker-compose.2004.54.yaml => docker-compose.1804.54.yaml} (80%) diff --git a/Package.swift b/Package.swift index 2a56272..188a4f7 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.2 +// swift-tools-version:5.4 //===----------------------------------------------------------------------===// // // This source file is part of the SwiftNIO open source project diff --git a/README.md b/README.md index 0c8aa01..8c22e16 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ To depend on `swift-nio-http2`, put the following in the `dependencies` of your .package(url: "https://github.com/apple/swift-nio-http2.git", from: "1.19.2"), -SwiftNIO HTTP2 1.18.x and later support Swift 5.2 and above. 1.17.x and earlier also support Swift 5.0 and 5.1. +SwiftNIO HTTP2 1.21.x and later support Swift 5.4 and above. 1.20.x and earlier also support Swift 5.2 and 5.3. 1.17.x and earlier also support Swift 5.0 and 5.1. ### `swift-nio-http2` 0.x diff --git a/docker/docker-compose.1604.52.yaml b/docker/docker-compose.1604.52.yaml deleted file mode 100644 index 25a1449..0000000 --- a/docker/docker-compose.1604.52.yaml +++ /dev/null @@ -1,42 +0,0 @@ -version: "3" - -services: - - runtime-setup: - image: swift-nio-http2:16.04-5.2 - build: - args: - ubuntu_version: "xenial" - swift_version: "5.2" - h2spec_version: "2.2.1" - - unit-tests: - image: swift-nio-http2:16.04-5.2 - - integration-tests: - image: swift-nio-http2:16.04-5.2 - - performance-test: - image: swift-nio-http2:16.04-5.2 - - h2spec: - image: swift-nio-http2:16.04-5.2 - - test: - image: swift-nio-http2:16.04-5.2 - environment: - - MAX_ALLOCS_ALLOWED_1k_requests_interleaved=48200 - - MAX_ALLOCS_ALLOWED_1k_requests_noninterleaved=47100 - - MAX_ALLOCS_ALLOWED_client_server_h1_request_response=310050 - - MAX_ALLOCS_ALLOWED_client_server_request_response=274050 - - MAX_ALLOCS_ALLOWED_create_client_stream_channel=42050 - - MAX_ALLOCS_ALLOWED_get_100000_headers_canonical_form=200050 - - MAX_ALLOCS_ALLOWED_get_100000_headers_canonical_form_trimming_whitespace=200050 - - MAX_ALLOCS_ALLOWED_get_100000_headers_canonical_form_trimming_whitespace_from_long_string=300050 - - MAX_ALLOCS_ALLOWED_get_100000_headers_canonical_form_trimming_whitespace_from_short_string=200050 - - MAX_ALLOCS_ALLOWED_hpack_decoding=5050 - - MAX_ALLOCS_ALLOWED_stream_teardown_100_concurrent=323150 - - SANITIZER_ARG=--sanitize=thread - - shell: - image: swift-nio-http2:16.04-5.2 diff --git a/docker/docker-compose.1804.53.yaml b/docker/docker-compose.1804.53.yaml deleted file mode 100644 index 097db9d..0000000 --- a/docker/docker-compose.1804.53.yaml +++ /dev/null @@ -1,41 +0,0 @@ -version: "3" - -services: - - runtime-setup: - image: swift-nio-http2:18.04-5.3 - build: - args: - ubuntu_version: "bionic" - swift_version: "5.3" - h2spec_version: "2.2.1" - - unit-tests: - image: swift-nio-http2:18.04-5.3 - - integration-tests: - image: swift-nio-http2:18.04-5.3 - - performance-test: - image: swift-nio-http2:18.04-5.3 - - h2spec: - image: swift-nio-http2:18.04-5.3 - - test: - image: swift-nio-http2:18.04-5.3 - environment: - - MAX_ALLOCS_ALLOWED_1k_requests_interleaved=46200 - - MAX_ALLOCS_ALLOWED_1k_requests_noninterleaved=45100 - - MAX_ALLOCS_ALLOWED_client_server_h1_request_response=309050 - - MAX_ALLOCS_ALLOWED_client_server_request_response=273050 - - MAX_ALLOCS_ALLOWED_create_client_stream_channel=42050 - - MAX_ALLOCS_ALLOWED_get_100000_headers_canonical_form=200050 - - MAX_ALLOCS_ALLOWED_get_100000_headers_canonical_form_trimming_whitespace=200050 - - MAX_ALLOCS_ALLOWED_get_100000_headers_canonical_form_trimming_whitespace_from_long_string=300050 - - MAX_ALLOCS_ALLOWED_get_100000_headers_canonical_form_trimming_whitespace_from_short_string=200050 - - MAX_ALLOCS_ALLOWED_hpack_decoding=5050 - - MAX_ALLOCS_ALLOWED_stream_teardown_100_concurrent=303150 - - shell: - image: swift-nio-http2:18.04-5.3 diff --git a/docker/docker-compose.2004.54.yaml b/docker/docker-compose.1804.54.yaml similarity index 80% rename from docker/docker-compose.2004.54.yaml rename to docker/docker-compose.1804.54.yaml index 843120b..0be3a58 100644 --- a/docker/docker-compose.2004.54.yaml +++ b/docker/docker-compose.1804.54.yaml @@ -3,7 +3,7 @@ version: "3" services: runtime-setup: - image: swift-nio-http2:20.04-5.4 + image: swift-nio-http2:18.04-5.4 build: args: base_image: "swift:5.4-focal" @@ -12,19 +12,19 @@ services: h2spec_version: "2.2.1" unit-tests: - image: swift-nio-http2:20.04-5.4 + image: swift-nio-http2:18.04-5.4 integration-tests: - image: swift-nio-http2:20.04-5.4 + image: swift-nio-http2:18.04-5.4 performance-test: - image: swift-nio-http2:20.04-5.4 + image: swift-nio-http2:18.04-5.4 h2spec: - image: swift-nio-http2:20.04-5.4 + image: swift-nio-http2:18.04-5.4 test: - image: swift-nio-http2:20.04-5.4 + image: swift-nio-http2:18.04-5.4 environment: - MAX_ALLOCS_ALLOWED_1k_requests_interleaved=46200 - MAX_ALLOCS_ALLOWED_1k_requests_noninterleaved=45100 @@ -39,4 +39,4 @@ services: - MAX_ALLOCS_ALLOWED_stream_teardown_100_concurrent=303150 shell: - image: swift-nio-http2:20.04-5.4 + image: swift-nio-http2:18.04-5.4 diff --git a/scripts/build_podspec.sh b/scripts/build_podspec.sh index e558413..0f17824 100755 --- a/scripts/build_podspec.sh +++ b/scripts/build_podspec.sh @@ -102,7 +102,7 @@ Pod::Spec.new do |s| s.documentation_url = 'https://apple.github.io/swift-nio-http2/' s.module_name = '${target#Swift}' - s.swift_version = '5.2' + s.swift_version = '5.4' s.cocoapods_version = '>=1.6.0' s.ios.deployment_target = '10.0' s.osx.deployment_target = '10.12' diff --git a/scripts/check_no_api_breakages.sh b/scripts/check_no_api_breakages.sh index 936c696..83c6fd4 100755 --- a/scripts/check_no_api_breakages.sh +++ b/scripts/check_no_api_breakages.sh @@ -18,7 +18,7 @@ set -eu function usage() { echo >&2 "Usage: $0 REPO-GITHUB-URL NEW-VERSION OLD-VERSIONS..." echo >&2 - echo >&2 "This script requires a Swift 5.2+ toolchain." + echo >&2 "This script requires a Swift 5.6+ toolchain." echo >&2 echo >&2 "Examples:" echo >&2