-
Notifications
You must be signed in to change notification settings - Fork 712
Comparing changes
Open a pull request
base repository: apple/swift-nio
base: 2.86.2
head repository: apple/swift-nio
compare: 2.87.0
- 11 commits
- 53 files changed
- 6 contributors
Commits on Sep 24, 2025
-
Add
InlineArrayhelpers toByteBuffer(#3252)### Motivation: Useful for parsing packets, for example `ipv4: InlineArray<4, UInt8>` and `ipv6: InlineArray<16, UInt8>`. ### Modifications: For now I've only added a `readInlineArray` function. I know some other functions are missing, such as `writeInlineArray`. I wanted to first open up a discussion and see if these changes are acceptable. I can add those functions too if required, in this PR or other PRs. ### Result: Users can read `ByteBuffer` into stack-allocated memory, which can be more performant than the other alternatives like `Array`, or more convenient than reading as a tuple like `(UInt8, UInt8, UInt8, UInt8)`. ### Caveats: Swift 6.2 is required so I've used `#if compiler(>=6.2)`. Furthermore, `InlineArray` is marked as available on `macOS(9999)` since the Swift team have yet to update that mark, although `InlineArray` is planned for Swift 6.2 per the [proposal](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0453-vector.md). Edit: to be clear things work fine on Linux and that's where I've been using this same `readInlineArray` function that I've proposed. --------- Co-authored-by: Cory Benfield <lukasa@apple.com>
Configuration menu - View commit details
-
Copy full SHA for 2e22c89 - Browse repository at this point
Copy the full SHA 2e22c89View commit details
Commits on Oct 2, 2025
-
update: set explicit permissions for GitHub workflows - cxx-interop (#…
…3387) See #3386 CC @FranzBusch @ktoso @Lukasa Signed-off-by: Melissa Kilby <mkilby@apple.com>
Configuration menu - View commit details
-
Copy full SHA for 662d3dd - Browse repository at this point
Copy the full SHA 662d3ddView commit details -
update: set explicit permissions for GitHub workflows - benchmarks (#…
…3389) See #3386 CC @FranzBusch @ktoso @Lukasa Signed-off-by: Melissa Kilby <mkilby@apple.com> Co-authored-by: Rick Newton-Rogers <rnro@apple.com>
Configuration menu - View commit details
-
Copy full SHA for f5a2e75 - Browse repository at this point
Copy the full SHA f5a2e75View commit details -
update: set explicit permissions for GitHub workflows - release-builds (
#3390) See #3386 CC @FranzBusch @ktoso @Lukasa Signed-off-by: Melissa Kilby <mkilby@apple.com>
Configuration menu - View commit details
-
Copy full SHA for 8c359a1 - Browse repository at this point
Copy the full SHA 8c359a1View commit details -
update: set explicit permissions for GitHub workflows - execute-matri… (
#3391) See #3386 CC @FranzBusch @ktoso @Lukasa Signed-off-by: Melissa Kilby <mkilby@apple.com>
Configuration menu - View commit details
-
Copy full SHA for 0c2869d - Browse repository at this point
Copy the full SHA 0c2869dView commit details -
update: set explicit permissions for GitHub workflows - unit-tests (#…
…3388) See #3386 CC @FranzBusch @ktoso @Lukasa Signed-off-by: Melissa Kilby <mkilby@apple.com> Co-authored-by: Rick Newton-Rogers <rnro@apple.com>
Configuration menu - View commit details
-
Copy full SHA for 2b3140a - Browse repository at this point
Copy the full SHA 2b3140aView commit details
Commits on Oct 4, 2025
-
Tweak test availability to avoid segfaults (#3397)
Motivation Availability guards on test functions don't work the way we'd want them to: in particular, xctest still ends up calling these functions even on platforms that are less available than the functions in question. We need to move these to checks in in the function themselves. Modifications Replace @available with guard available Result No more segfaults in tests.
Configuration menu - View commit details
-
Copy full SHA for 2143eb9 - Browse repository at this point
Copy the full SHA 2143eb9View commit details
Commits on Oct 6, 2025
-
This PR drops Swift 5.10 and enables Swift 6 language mode. --------- Co-authored-by: Cory Benfield <lukasa@apple.com>
Configuration menu - View commit details
-
Copy full SHA for a3ed8e1 - Browse repository at this point
Copy the full SHA a3ed8e1View commit details -
Fix flakiness in testWithConfiguredStreamSocket (#3399)
Motivation: This test occasionally fails in our ongoing continuous CI solution. Flaky tests are bad, and we should aim not to have them, so let's fix it. My diagnosis of the most likely race here (which leads to `alreadyClosed`) being thrown _somewhere_ from this code is that the client channel got closed unexpectedly. This would happen if an unusual series of events occurs: 1. The client connection succeeds and the channel starts up 2. The server close then goes through and the server channel is closed _before_ it actually accepts the connection. 3. This causes the client connection to be reset. 4. The client channel observes this and handles that close. 5. We then close the client from the outside. Modifications: Add a ConditionLock we can use to wait for a connection to be established. Make the use of this ConditionLock resilient to weird test behaviour by always using timeouts for blocking operations. Result: Less flaky tests.
Configuration menu - View commit details
-
Copy full SHA for 97c3f28 - Browse repository at this point
Copy the full SHA 97c3f28View commit details
Commits on Oct 7, 2025
-
set explicit permissions for GitHub workflows - all remaining workflo…
Configuration menu - View commit details
-
Copy full SHA for dee7095 - Browse repository at this point
Copy the full SHA dee7095View commit details
Commits on Oct 9, 2025
-
Enable Xcode beta by default in macos_tests.yml (#3401)
26.1 Beta 2 has been released so we have an Xcode beta to be testing, we should enable it by default again. It was previously disabled under the impression that there was no current beta.
Configuration menu - View commit details
-
Copy full SHA for 4e8f4b1 - Browse repository at this point
Copy the full SHA 4e8f4b1View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 2.86.2...2.87.0