From efc568c52c08058ec9070170b2dd855dcf1c9f6f Mon Sep 17 00:00:00 2001 From: Rick Newton-Rogers Date: Wed, 4 Oct 2023 17:42:02 +0100 Subject: [PATCH] Add CI pipeline for Swift 5.10 (#145) Motivation: Now that Swift 5.9 is GM we should update the CI pipelines Modifications: * Add a 5.10 nightly docker compose file * Update the 5.9 compose file to stop using nightlies * Update benchmark thresholds Result: Remove add CI support for 5.10 --- ...hmark.Parse_WebPKI_Roots_from_DER.p90.json | 8 ++++++ ...Parse_WebPKI_Roots_from_PEM_files.p90.json | 8 ++++++ ..._WebPKI_Roots_from_multi_PEM_file.p90.json | 8 ++++++ ...ficatesBenchmark.TinyArray.append.p90.json | 8 ++++++ ...inyArray_non-allocating_functions.p90.json | 8 ++++++ .../CertificatesBenchmark.Verifier.p90.json | 6 +++++ ...hmark.Parse_WebPKI_Roots_from_DER.p90.json | 4 +-- ...Parse_WebPKI_Roots_from_PEM_files.p90.json | 4 +-- ..._WebPKI_Roots_from_multi_PEM_file.p90.json | 4 +-- ...hmark.Parse_WebPKI_Roots_from_DER.p90.json | 4 +-- ...Parse_WebPKI_Roots_from_PEM_files.p90.json | 4 +-- ..._WebPKI_Roots_from_multi_PEM_file.p90.json | 4 +-- ...ficatesBenchmark.TinyArray.append.p90.json | 2 +- dev/update-benchmark-thresholds | 2 +- docker/docker-compose.2204.510.yaml | 25 +++++++++++++++++++ docker/docker-compose.2204.59.yaml | 3 ++- 16 files changed, 87 insertions(+), 15 deletions(-) create mode 100644 Benchmarks/Thresholds/5.10/CertificatesBenchmark.Parse_WebPKI_Roots_from_DER.p90.json create mode 100644 Benchmarks/Thresholds/5.10/CertificatesBenchmark.Parse_WebPKI_Roots_from_PEM_files.p90.json create mode 100644 Benchmarks/Thresholds/5.10/CertificatesBenchmark.Parse_WebPKI_Roots_from_multi_PEM_file.p90.json create mode 100644 Benchmarks/Thresholds/5.10/CertificatesBenchmark.TinyArray.append.p90.json create mode 100644 Benchmarks/Thresholds/5.10/CertificatesBenchmark.TinyArray_non-allocating_functions.p90.json create mode 100644 Benchmarks/Thresholds/5.10/CertificatesBenchmark.Verifier.p90.json create mode 100644 docker/docker-compose.2204.510.yaml diff --git a/Benchmarks/Thresholds/5.10/CertificatesBenchmark.Parse_WebPKI_Roots_from_DER.p90.json b/Benchmarks/Thresholds/5.10/CertificatesBenchmark.Parse_WebPKI_Roots_from_DER.p90.json new file mode 100644 index 0000000..287f34e --- /dev/null +++ b/Benchmarks/Thresholds/5.10/CertificatesBenchmark.Parse_WebPKI_Roots_from_DER.p90.json @@ -0,0 +1,8 @@ +{ + "mallocCountTotal" : 5506, + "memoryLeaked" : 0, + "readSyscalls" : 0, + "releaseCount" : 120084, + "retainCount" : 108506, + "writeSyscalls" : 0 +} \ No newline at end of file diff --git a/Benchmarks/Thresholds/5.10/CertificatesBenchmark.Parse_WebPKI_Roots_from_PEM_files.p90.json b/Benchmarks/Thresholds/5.10/CertificatesBenchmark.Parse_WebPKI_Roots_from_PEM_files.p90.json new file mode 100644 index 0000000..724669a --- /dev/null +++ b/Benchmarks/Thresholds/5.10/CertificatesBenchmark.Parse_WebPKI_Roots_from_PEM_files.p90.json @@ -0,0 +1,8 @@ +{ + "mallocCountTotal" : 6465, + "memoryLeaked" : 0, + "readSyscalls" : 0, + "releaseCount" : 133927, + "retainCount" : 120568, + "writeSyscalls" : 0 +} \ No newline at end of file diff --git a/Benchmarks/Thresholds/5.10/CertificatesBenchmark.Parse_WebPKI_Roots_from_multi_PEM_file.p90.json b/Benchmarks/Thresholds/5.10/CertificatesBenchmark.Parse_WebPKI_Roots_from_multi_PEM_file.p90.json new file mode 100644 index 0000000..751bccc --- /dev/null +++ b/Benchmarks/Thresholds/5.10/CertificatesBenchmark.Parse_WebPKI_Roots_from_multi_PEM_file.p90.json @@ -0,0 +1,8 @@ +{ + "mallocCountTotal" : 6473, + "memoryLeaked" : 0, + "readSyscalls" : 0, + "releaseCount" : 133256, + "retainCount" : 120160, + "writeSyscalls" : 0 +} \ No newline at end of file diff --git a/Benchmarks/Thresholds/5.10/CertificatesBenchmark.TinyArray.append.p90.json b/Benchmarks/Thresholds/5.10/CertificatesBenchmark.TinyArray.append.p90.json new file mode 100644 index 0000000..dcdfad8 --- /dev/null +++ b/Benchmarks/Thresholds/5.10/CertificatesBenchmark.TinyArray.append.p90.json @@ -0,0 +1,8 @@ +{ + "mallocCountTotal" : 10, + "memoryLeaked" : 0, + "readSyscalls" : 0, + "releaseCount" : 12, + "retainCount" : 0, + "writeSyscalls" : 0 +} \ No newline at end of file diff --git a/Benchmarks/Thresholds/5.10/CertificatesBenchmark.TinyArray_non-allocating_functions.p90.json b/Benchmarks/Thresholds/5.10/CertificatesBenchmark.TinyArray_non-allocating_functions.p90.json new file mode 100644 index 0000000..8e9ac91 --- /dev/null +++ b/Benchmarks/Thresholds/5.10/CertificatesBenchmark.TinyArray_non-allocating_functions.p90.json @@ -0,0 +1,8 @@ +{ + "mallocCountTotal" : 0, + "memoryLeaked" : 0, + "readSyscalls" : 0, + "releaseCount" : 0, + "retainCount" : 0, + "writeSyscalls" : 0 +} \ No newline at end of file diff --git a/Benchmarks/Thresholds/5.10/CertificatesBenchmark.Verifier.p90.json b/Benchmarks/Thresholds/5.10/CertificatesBenchmark.Verifier.p90.json new file mode 100644 index 0000000..42f48a8 --- /dev/null +++ b/Benchmarks/Thresholds/5.10/CertificatesBenchmark.Verifier.p90.json @@ -0,0 +1,6 @@ +{ + "mallocCountTotal" : 1233, + "memoryLeaked" : 0, + "readSyscalls" : 0, + "writeSyscalls" : 0 +} \ No newline at end of file diff --git a/Benchmarks/Thresholds/5.9/CertificatesBenchmark.Parse_WebPKI_Roots_from_DER.p90.json b/Benchmarks/Thresholds/5.9/CertificatesBenchmark.Parse_WebPKI_Roots_from_DER.p90.json index 3d1e208..39783b1 100644 --- a/Benchmarks/Thresholds/5.9/CertificatesBenchmark.Parse_WebPKI_Roots_from_DER.p90.json +++ b/Benchmarks/Thresholds/5.9/CertificatesBenchmark.Parse_WebPKI_Roots_from_DER.p90.json @@ -2,7 +2,7 @@ "mallocCountTotal" : 5506, "memoryLeaked" : 0, "readSyscalls" : 0, - "releaseCount" : 185027, - "retainCount" : 174449, + "releaseCount" : 185130, + "retainCount" : 174552, "writeSyscalls" : 0 } \ No newline at end of file diff --git a/Benchmarks/Thresholds/5.9/CertificatesBenchmark.Parse_WebPKI_Roots_from_PEM_files.p90.json b/Benchmarks/Thresholds/5.9/CertificatesBenchmark.Parse_WebPKI_Roots_from_PEM_files.p90.json index 50def2e..f3f396d 100644 --- a/Benchmarks/Thresholds/5.9/CertificatesBenchmark.Parse_WebPKI_Roots_from_PEM_files.p90.json +++ b/Benchmarks/Thresholds/5.9/CertificatesBenchmark.Parse_WebPKI_Roots_from_PEM_files.p90.json @@ -2,7 +2,7 @@ "mallocCountTotal" : 6465, "memoryLeaked" : 0, "readSyscalls" : 0, - "releaseCount" : 199007, - "retainCount" : 186648, + "releaseCount" : 199110, + "retainCount" : 186751, "writeSyscalls" : 0 } \ No newline at end of file diff --git a/Benchmarks/Thresholds/5.9/CertificatesBenchmark.Parse_WebPKI_Roots_from_multi_PEM_file.p90.json b/Benchmarks/Thresholds/5.9/CertificatesBenchmark.Parse_WebPKI_Roots_from_multi_PEM_file.p90.json index afa8ed3..e6e32d4 100644 --- a/Benchmarks/Thresholds/5.9/CertificatesBenchmark.Parse_WebPKI_Roots_from_multi_PEM_file.p90.json +++ b/Benchmarks/Thresholds/5.9/CertificatesBenchmark.Parse_WebPKI_Roots_from_multi_PEM_file.p90.json @@ -2,7 +2,7 @@ "mallocCountTotal" : 6473, "memoryLeaked" : 0, "readSyscalls" : 0, - "releaseCount" : 198336, - "retainCount" : 186240, + "releaseCount" : 198439, + "retainCount" : 186343, "writeSyscalls" : 0 } \ No newline at end of file diff --git a/Benchmarks/Thresholds/main/CertificatesBenchmark.Parse_WebPKI_Roots_from_DER.p90.json b/Benchmarks/Thresholds/main/CertificatesBenchmark.Parse_WebPKI_Roots_from_DER.p90.json index f162116..4f11bde 100644 --- a/Benchmarks/Thresholds/main/CertificatesBenchmark.Parse_WebPKI_Roots_from_DER.p90.json +++ b/Benchmarks/Thresholds/main/CertificatesBenchmark.Parse_WebPKI_Roots_from_DER.p90.json @@ -2,7 +2,7 @@ "mallocCountTotal" : 5506, "memoryLeaked" : 0, "readSyscalls" : 0, - "releaseCount" : 115024, - "retainCount" : 103446, + "releaseCount" : 121084, + "retainCount" : 109506, "writeSyscalls" : 0 } \ No newline at end of file diff --git a/Benchmarks/Thresholds/main/CertificatesBenchmark.Parse_WebPKI_Roots_from_PEM_files.p90.json b/Benchmarks/Thresholds/main/CertificatesBenchmark.Parse_WebPKI_Roots_from_PEM_files.p90.json index 8ce2ead..f5787e5 100644 --- a/Benchmarks/Thresholds/main/CertificatesBenchmark.Parse_WebPKI_Roots_from_PEM_files.p90.json +++ b/Benchmarks/Thresholds/main/CertificatesBenchmark.Parse_WebPKI_Roots_from_PEM_files.p90.json @@ -2,7 +2,7 @@ "mallocCountTotal" : 6465, "memoryLeaked" : 0, "readSyscalls" : 0, - "releaseCount" : 126949, - "retainCount" : 113590, + "releaseCount" : 134927, + "retainCount" : 121568, "writeSyscalls" : 0 } \ No newline at end of file diff --git a/Benchmarks/Thresholds/main/CertificatesBenchmark.Parse_WebPKI_Roots_from_multi_PEM_file.p90.json b/Benchmarks/Thresholds/main/CertificatesBenchmark.Parse_WebPKI_Roots_from_multi_PEM_file.p90.json index a8598ca..9d06a1f 100644 --- a/Benchmarks/Thresholds/main/CertificatesBenchmark.Parse_WebPKI_Roots_from_multi_PEM_file.p90.json +++ b/Benchmarks/Thresholds/main/CertificatesBenchmark.Parse_WebPKI_Roots_from_multi_PEM_file.p90.json @@ -2,7 +2,7 @@ "mallocCountTotal" : 6473, "memoryLeaked" : 0, "readSyscalls" : 0, - "releaseCount" : 126278, - "retainCount" : 113182, + "releaseCount" : 134256, + "retainCount" : 121160, "writeSyscalls" : 0 } \ No newline at end of file diff --git a/Benchmarks/Thresholds/main/CertificatesBenchmark.TinyArray.append.p90.json b/Benchmarks/Thresholds/main/CertificatesBenchmark.TinyArray.append.p90.json index 16b8a18..dcdfad8 100644 --- a/Benchmarks/Thresholds/main/CertificatesBenchmark.TinyArray.append.p90.json +++ b/Benchmarks/Thresholds/main/CertificatesBenchmark.TinyArray.append.p90.json @@ -5,4 +5,4 @@ "releaseCount" : 12, "retainCount" : 0, "writeSyscalls" : 0 -} +} \ No newline at end of file diff --git a/dev/update-benchmark-thresholds b/dev/update-benchmark-thresholds index 37439e2..8779099 100755 --- a/dev/update-benchmark-thresholds +++ b/dev/update-benchmark-thresholds @@ -19,7 +19,7 @@ set -o pipefail here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" target_repo=${2-"$here/.."} -for f in 57 58 59 -nightly; do +for f in 57 58 59 510 -nightly; do echo "swift$f" docker_file=$(if [[ "$f" == "-nightly" ]]; then f=main; fi && ls "$target_repo/docker/docker-compose."*"$f"*".yaml") diff --git a/docker/docker-compose.2204.510.yaml b/docker/docker-compose.2204.510.yaml new file mode 100644 index 0000000..f26c34d --- /dev/null +++ b/docker/docker-compose.2204.510.yaml @@ -0,0 +1,25 @@ +version: "3" + +services: + + runtime-setup: + image: swift-certificates:22.04-5.10 + build: + args: + base_image: "swiftlang/swift:nightly-5.10-jammy" + + test: + image: swift-certificates:22.04-5.10 + environment: + - SWIFT_VERSION=5.10 + - WARN_AS_ERROR_ARG=-Xswiftc -warnings-as-errors + - IMPORT_CHECK_ARG=--explicit-target-dependency-import-check error + # - SANITIZER_ARG=--sanitize=thread # TSan broken still + + shell: + image: swift-certificates:22.04-5.10 + + update-benchmark-baseline: + image: swift-certificates:22.04-5.10 + environment: + - SWIFT_VERSION=5.10 diff --git a/docker/docker-compose.2204.59.yaml b/docker/docker-compose.2204.59.yaml index a5c9c17..4cbca4e 100644 --- a/docker/docker-compose.2204.59.yaml +++ b/docker/docker-compose.2204.59.yaml @@ -6,7 +6,8 @@ services: image: swift-certificates:22.04-5.9 build: args: - base_image: "swiftlang/swift:nightly-5.9-jammy" + ubuntu_version: "jammy" + swift_version: "5.9" test: image: swift-certificates:22.04-5.9