26 Commits
Author SHA1 Message Date
Si Beaumont 84f03fafec Widen accepted versions of swift-crypto dependency (#323)
## Motivation:

Swift Crypto 5 is released, but this package only accepts Swift Crypto
versions below 5.0.0, so projects cannot use the two together.

## Modifications:

Widen the accepted Swift Crypto versions to `..<"6.0.0"`, keeping the
existing lower bound.

## Result:

Projects can use Swift Crypto 5 with this package.
2026-10-26 10:47:18 +00:00
Raphael Hiesgen daf628a263 Update benchmarks package name and thresholds (#303)
### Motivation

The benchmark package got renamed and changed the allocator. Benchmarks
thresholds passed with [version
1.34](https://github.com/apple/swift-certificates/actions/runs/28015378822/job/82918309837#step:6:198)
and then failed with [version
1.35](https://github.com/apple/swift-certificates/actions/runs/28055879634/job/83057967622#step:6:149).

### Modifications

* Follow benchmark package name change.
* Update failing thresholds.

### Results

6.3 benchmark CI pipeline passes.
2026-07-01 10:14:00 +01:00
Rick Newton-Rogers 5aa1c0d1bc Drop Swift 6.0 (#294)
Motivation:

Swift 6.0 is no longer supported, we should bump the tools version and
remove it from our CI.

Modifications:

* Bump the Swift tools version to Swift 6.1
* Remove Swift 6.0 jobs where appropriate in main.yml, pull_request.yml

Result:

Code reflects our support window.
2026-04-08 15:08:50 +01:00
Rick Newton-Rogers 1f8592e508 Enable Swift 6.3 jobs in CI (#293)
Motivation:

Swift 6.3 has been released, we should add it to our CI coverage.

Modifications:

Add additional Swift 6.3 jobs where appropriate in main.yml,
pull_request.yml

Result:

Improved test coverage.
2026-04-01 13:53:28 +01:00
Rick Newton-Rogers 0ad242d196 switch from main to 0.0.7 for swiftlang workflows (#290)
Motivation

* `@main` references to `swiftlang/github-workflows` are deprecated.

Modifications

* Replace `@main` with `@0.0.7` in all workflow files.

Result

* Workflow files reference a pinned version of
`swiftlang/github-workflows`.
2026-02-20 14:50:51 +00:00
aryan-25 66a8512c4e Drop Swift 5.10 (#283)
Motivation:

Swift 5.10 is no longer supported. We should raise the minimum Swift
tools version to 6.0, fix consequent build warnings/errors, and remove
5.10 CI jobs.

Modifications:
- Raised the Swift tools version to 6.0 in both the main
`swift-certificates` package and the Benchmark package.
- Removed the now redundant `StrictConcurrency=complete` flag in
`swift-certificates`' `Package.swift`.
- Removed 5.10 CI job arguments.
- Removed 5.10 benchmark thresholds.
- Added an explicit type annotation to the `package-benchmark` setup
closure to address a build error.
- Updated `VerifierBenchmark` to use newer, non-deprecated
`RFC5280Policy` initializers (as a result of #276).
- Updated a test case in `Tests/X509Tests/PEMTests.swift` to no longer
use a deprecated `String` initializer.

Result:

Code reflects our support window.
2025-11-18 14:55:30 +00:00
Cory Benfield 80052da803 Allow the 4.0 series of Crypto releases (#275) 2025-10-06 17:16:25 +01:00
Rick Newton-Rogers a556ec262c Enable Swift 6.2 jobs in CI (#274)
Motivation:

Swift 6.2 has been released, we should add it to our CI coverage.

Modifications:

Add additional Swift 6.2 jobs where appropriate in main.yml,
pull_request.yml

Result:

Improved test coverage.
2025-09-22 13:37:43 +00:00
Raphael 4b092f1516 Introduce a validated certificate chain type (#272)
### Motivation:

The certificate chain returned by validation has properties that are
currently not expressed in the API. Introducing a type that does so
allows other APIs to build on these properties.

### Modifications:

* Add a new `ValidatedCertificateChain` type and use it as a result type
for certificate validation. Since a validated chain always has at least
a leaf and a root, the type gives direct access to them.
* Deprecate the previous validate function and introduce a replacement.
Update use of the now-deprecated API and duplicate tests to include both
APIs.

### Result:

Certificate validation returns a type that conceptually holds meaning.
2025-09-12 12:49:58 +01:00
Cory Benfield 0b5a9f2e84 Re-core the benchmarks (#271)
With the release of swift-crypto 3.13.3, our benchmark numbers should
have improved. Let's lock those in.
2025-07-30 15:14:23 +00:00
Gus Cairo 70297c3d42 Improve the performance of Certificate's equal and hash implementations (#267)
Right now, `Certificate` uses the default implementations of `hash` and
`==`, which are member-wise.

We can make this more efficient by only comparing the raw bytes for the
TBS certificate, the signature, and the signature's algorithm.
2025-07-18 15:07:07 +01:00
Rick Newton-Rogers e7db922740 Drop Swift 5.9 (#250)
Motivation:

Swift 5.9 is no longer supported, we should bump the tools version and
remove it from our CI.

Modifications:

* Bump the Swift tools version to Swift 5.10
* Remove Swift 5.9 jobs where appropriate in main.yml, pull_request.yml

Result:

Code reflects our support window.
2025-05-05 12:21:20 +01:00
Rick Newton-Rogers 86eca75828 add thresholds for Swift 6.1 from 6.0 thresholds (#247) 2025-04-14 16:26:05 +01:00
Rick Newton-Rogers db0f068fb7 Delete Thresholds/nightly-6.1 symlink (#230)
Following on from https://github.com/apple/swift-certificates/pull/229
delete `Thresholds/nightly-6.1` which is no longer needed now that the
shared benchmarks workflow has been updated
2025-03-07 12:11:09 +00:00
Rick Newton-Rogers 18d5c3acf8 move nightly-next thresholds and add legacy symlink (#229)
Move nightly-next thresholds and add legacy symlink; see
https://github.com/apple/swift-nio/pull/3122
2025-03-03 15:49:38 +00:00
David Nadoba 2c25efadd6 Move nightly-6.0 benchmark thresholds to 6.1 (#224)
6.0 nightly is gone. 6.1 was added somehow. Haven't found a PR for that
though. Not sure how that has changed.
2025-01-25 08:30:52 +00:00
Franz Busch c0b6a47ffe [CI] Adopt GitHub actions (#193) 2024-10-21 16:01:05 +01:00
Cory Benfield 17ef172a2a Up our scaling factor to kilo (#189)
This should help with our thresholds moving around so much.
2024-08-15 14:56:32 +01:00
Cory Benfield 4688f24281 Our perf thresholds have changed (#178)
* Our perf thresholds have changed

* Apparently local runs don't match

* Stop using retain/release thresholds

* Remove retain/release counts
2024-06-07 16:27:37 +01:00
George Barnett 074848243e Raise minimum Swift version to 5.8 (#164) 2024-03-11 08:52:35 +00:00
Rick Newton-Rogers efc568c52c 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
2023-10-04 17:42:02 +01:00
Franz Busch 01d7664523 Rename TinyArray.append benchmark (#142) 2023-09-25 10:11:14 -07:00
David Nadoba aa83add828 Update to swift-asn1 1.0.0 (#140)
and use `.git` suffix consistently for dependencies
2023-09-25 02:12:38 -07:00
David Nadoba fa95d35a65 Parse all WebPKI trust roots in Benchmarks (#138)
* Parse all WebPKI trust roots in Benchmarks

* swift-format
2023-09-25 08:09:22 +01:00
David Nadoba 2876baab8a Update allowed swift-crypto version range to 2.5.0..<4.0.0 (#137) 2023-09-22 16:00:34 +02:00
David Nadoba 7815247199 Adopt package-benchmark (#125)
* Add `package-benchmark`

* use local dependencies

* split into multiple targets

* fix benchmark plugin

* refactor file structure

* self review

* Fix review comment

* Apply review feedback

* use `scaledIterations`

* don’t require the parent folder to be named `swift-certificates`

* install jemalloc

* use new `metricP90AbsoluteThresholds` export format

* update metrics

* use automated threshold import

* merge main and update allocation counters

* adopt `swift-format` for benchmarks

* add license headers

* use latest threshold file format

* delete old integration tests

* use released version

* revork folder structure

and add BlackHole module

* crash in debug configuration

* swift-format

* update baselines

* Move to single target

* update swift-format script

* enable arc for `Verifier`

* update to `package-benchmark` `1.11.0`

* update to `package-benchmark` `1.11.1`

* update benchmark metrics

* update metrics captured

* include release count

* move `.benchmarkBaselines` to nested `.gitignore`

* swift-format

* Fix `.gitignore`

* Add documentation

* change wording

* remove version number

* remove benchmarks folder

* add uppercase Benchmarks folder

* fix formatting script

* update readme with new uppercase folder name

* update Benchmarks folder name in docker compose

* drop allocation limits
2023-09-21 14:17:49 +01:00