Commit Graph
2 Commits
Author SHA1 Message Date
Fabian Fett 6a6f7d7c33 Centralize UnsafeTransfer in NIOCore (#3492)
We have a number of copies of `UnsafeTransfer` and two copies of
`UnsafeMutableTransferBox` in our code base. Before introducing more of
those, lets centralize to just one using a `package` access modifier.
2026-02-03 10:27:30 +00:00
Rick Newton-RogersandCory Benfield 2dbd1bf60b A script for updating Integration Tests thresholds from CI (#3443)
### Motivation:

We have a way to update Benchmarks thresholds from CI logs but not for
the older Integration Tests.

### Modifications:

A new script which pulls integration test logs and uses our existing
parsing script to pull out updated values.

### Result:

Easier threshold updates.


```
❯ ./dev/update-integration-test-thresholds.sh
Usage: ./dev/update-integration-test-thresholds.sh <url>
   or: URL=<url> ./dev/update-integration-test-thresholds.sh

Example:
  ./dev/update-integration-test-thresholds.sh https://github.com/apple/swift-nio/pull/3442
  ./dev/update-integration-test-thresholds.sh https://github.com/apple/swift-nio/actions/runs/19234929677
  URL=https://github.com/apple/swift-nio/pull/3442 ./dev/update-integration-test-thresholds.sh
```

```
❯ ./dev/update-integration-test-thresholds.sh 'https://github.com/apple/swift-nio/actions/runs/19234929677/job/54982236271?pr=3442'
** Processing run in apple/swift-nio
** Fetching integration test checks from workflow run 19234929677
** Pulling logs for Swift nightly-main (job 54982236243)
** Updated IntegrationTests/tests_04_performance/Thresholds/nightly-main.json
** Pulling logs for Swift 6.2 (job 54982236259)
** Updated IntegrationTests/tests_04_performance/Thresholds/6.2.json
** Pulling logs for Swift nightly-next (job 54982236267)
** Updated IntegrationTests/tests_04_performance/Thresholds/nightly-next.json
** Pulling logs for Swift 6.0 (job 54982236271)
** Updated IntegrationTests/tests_04_performance/Thresholds/6.0.json
** Pulling logs for Swift 6.1 (job 54982236345)
** Updated IntegrationTests/tests_04_performance/Thresholds/6.1.json
** Done! Updated 5 threshold file(s)
```

Co-authored-by: Cory Benfield <lukasa@apple.com>
2025-11-10 22:36:54 +00:00