From 5eeef940dd79964aacfd194ee64136375cba7701 Mon Sep 17 00:00:00 2001 From: Franz Busch Date: Mon, 28 Oct 2024 11:13:19 +0100 Subject: [PATCH] Fix checks --- .github/workflows/main.yml | 4 ++- .github/workflows/scheduled.yml | 32 ------------------- .../HTTPFieldsBenchmarks/Benchmarks.swift | 2 +- ...TPFields.init(dictionaryLiteral).p90.json} | 0 ...TPFields.init(dictionaryLiteral).p90.json} | 0 ...TPFields.init(dictionaryLiteral).p90.json} | 0 ...TPFields.init(dictionaryLiteral).p90.json} | 0 ...TPFields.init(dictionaryLiteral).p90.json} | 0 Sources/HTTPTypes/NIOLock.swift | 13 ++++++++ 9 files changed, 17 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/scheduled.yml rename Benchmarks/Thresholds/5.10/{Benchmarks.HTTPFields.init(dictionaryLiteral:).p90.json => Benchmarks.HTTPFields.init(dictionaryLiteral).p90.json} (100%) rename Benchmarks/Thresholds/5.9/{Benchmarks.HTTPFields.init(dictionaryLiteral:).p90.json => Benchmarks.HTTPFields.init(dictionaryLiteral).p90.json} (100%) rename Benchmarks/Thresholds/6.0/{Benchmarks.HTTPFields.init(dictionaryLiteral:).p90.json => Benchmarks.HTTPFields.init(dictionaryLiteral).p90.json} (100%) rename Benchmarks/Thresholds/nightly-6.0/{Benchmarks.HTTPFields.init(dictionaryLiteral:).p90.json => Benchmarks.HTTPFields.init(dictionaryLiteral).p90.json} (100%) rename Benchmarks/Thresholds/nightly-main/{Benchmarks.HTTPFields.init(dictionaryLiteral:).p90.json => Benchmarks.HTTPFields.init(dictionaryLiteral).p90.json} (100%) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f28f262..9f0282f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,6 +3,8 @@ name: Main on: push: branches: [main] + schedule: + - cron: "0 8,20 * * *" jobs: unit-tests: @@ -19,7 +21,7 @@ jobs: windows_nightly_main_enabled: true windows_6_0_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable" windows_nightly_6_0_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable" - windows_nightly_main_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable + windows_nightly_main_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable" benchmarks: name: Benchmarks diff --git a/.github/workflows/scheduled.yml b/.github/workflows/scheduled.yml deleted file mode 100644 index f074166..0000000 --- a/.github/workflows/scheduled.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Scheduled - -on: - schedule: - - cron: "0 8,20 * * *" - -jobs: - unit-tests: - name: Unit tests - uses: apple/swift-nio/.github/workflows/unit_tests.yml@main - with: - linux_5_9_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" - linux_5_10_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" - linux_6_0_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" - linux_nightly_6_0_arguments_override: "--explicit-target-dependency-import-check error" - linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error" - windows_6_0_enabled: true - windows_nightly_6_0_enabled: true - windows_nightly_main_enabled: true - windows_6_0_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable" - windows_nightly_6_0_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable" - windows_nightly_main_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable - - benchmarks: - name: Benchmarks - uses: apple/swift-nio/.github/workflows/benchmarks.yml@main - with: - benchmark_package_path: "Benchmarks" - - cxx-interop: - name: Cxx interop - uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main diff --git a/Benchmarks/Benchmarks/HTTPFieldsBenchmarks/Benchmarks.swift b/Benchmarks/Benchmarks/HTTPFieldsBenchmarks/Benchmarks.swift index 8fb9e34..b882c7c 100644 --- a/Benchmarks/Benchmarks/HTTPFieldsBenchmarks/Benchmarks.swift +++ b/Benchmarks/Benchmarks/HTTPFieldsBenchmarks/Benchmarks.swift @@ -21,7 +21,7 @@ let benchmarks = { ] Benchmark( - "HTTPFields.init(dictionaryLiteral:)", + "HTTPFields.init(dictionaryLiteral)", configuration: .init( metrics: defaultMetrics, scalingFactor: .kilo, diff --git a/Benchmarks/Thresholds/5.10/Benchmarks.HTTPFields.init(dictionaryLiteral:).p90.json b/Benchmarks/Thresholds/5.10/Benchmarks.HTTPFields.init(dictionaryLiteral).p90.json similarity index 100% rename from Benchmarks/Thresholds/5.10/Benchmarks.HTTPFields.init(dictionaryLiteral:).p90.json rename to Benchmarks/Thresholds/5.10/Benchmarks.HTTPFields.init(dictionaryLiteral).p90.json diff --git a/Benchmarks/Thresholds/5.9/Benchmarks.HTTPFields.init(dictionaryLiteral:).p90.json b/Benchmarks/Thresholds/5.9/Benchmarks.HTTPFields.init(dictionaryLiteral).p90.json similarity index 100% rename from Benchmarks/Thresholds/5.9/Benchmarks.HTTPFields.init(dictionaryLiteral:).p90.json rename to Benchmarks/Thresholds/5.9/Benchmarks.HTTPFields.init(dictionaryLiteral).p90.json diff --git a/Benchmarks/Thresholds/6.0/Benchmarks.HTTPFields.init(dictionaryLiteral:).p90.json b/Benchmarks/Thresholds/6.0/Benchmarks.HTTPFields.init(dictionaryLiteral).p90.json similarity index 100% rename from Benchmarks/Thresholds/6.0/Benchmarks.HTTPFields.init(dictionaryLiteral:).p90.json rename to Benchmarks/Thresholds/6.0/Benchmarks.HTTPFields.init(dictionaryLiteral).p90.json diff --git a/Benchmarks/Thresholds/nightly-6.0/Benchmarks.HTTPFields.init(dictionaryLiteral:).p90.json b/Benchmarks/Thresholds/nightly-6.0/Benchmarks.HTTPFields.init(dictionaryLiteral).p90.json similarity index 100% rename from Benchmarks/Thresholds/nightly-6.0/Benchmarks.HTTPFields.init(dictionaryLiteral:).p90.json rename to Benchmarks/Thresholds/nightly-6.0/Benchmarks.HTTPFields.init(dictionaryLiteral).p90.json diff --git a/Benchmarks/Thresholds/nightly-main/Benchmarks.HTTPFields.init(dictionaryLiteral:).p90.json b/Benchmarks/Thresholds/nightly-main/Benchmarks.HTTPFields.init(dictionaryLiteral).p90.json similarity index 100% rename from Benchmarks/Thresholds/nightly-main/Benchmarks.HTTPFields.init(dictionaryLiteral:).p90.json rename to Benchmarks/Thresholds/nightly-main/Benchmarks.HTTPFields.init(dictionaryLiteral).p90.json diff --git a/Sources/HTTPTypes/NIOLock.swift b/Sources/HTTPTypes/NIOLock.swift index b670565..b2e00ed 100644 --- a/Sources/HTTPTypes/NIOLock.swift +++ b/Sources/HTTPTypes/NIOLock.swift @@ -1,5 +1,18 @@ //===----------------------------------------------------------------------===// // +// This source file is part of the Swift open source project +// +// Copyright (c) 2024 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of Swift project authors +// +// SPDX-License-Identifier: Apache-2.0 +// +//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------===// +// // This source file is part of the SwiftNIO open source project // // Copyright (c) 2017-2024 Apple Inc. and the SwiftNIO project authors