Skip to content

switch from main to 0.0.7 for swiftlang workflows#227

Merged
rnro merged 8 commits intoapple:mainfrom
rnro:update_swiftlang_workflow_version
Feb 27, 2026
Merged

switch from main to 0.0.7 for swiftlang workflows#227
rnro merged 8 commits intoapple:mainfrom
rnro:update_swiftlang_workflow_version

Conversation

@rnro
Copy link
Copy Markdown
Contributor

@rnro rnro commented Feb 20, 2026

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.

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`.
@rnro rnro added the semver/none No version bump required. label Feb 20, 2026
@rnro rnro enabled auto-merge (squash) February 20, 2026 10:54
rnro added 3 commits February 20, 2026 13:42
Motivation

* `let benchmarks` is a global with inferred type `() -> ()`, which is
  non-`Sendable`, causing a build error under `-require-explicit-sendable`.

Modifications

* Annotate `benchmarks` as `@Sendable () -> Void`.

Result

* Benchmark target builds cleanly under strict concurrency checking.
Motivation

* `ServerHandler` and `ClientHandler` in benchmark functions are local
  classes captured in isolated closures, causing errors under strict
  concurrency checking.

Modifications

* `ServerHandler` has no mutable state so conforms to `Sendable` directly.
* `ClientHandler` has mutable state but is only ever accessed on the
  `EmbeddedEventLoop`, which is single-threaded, so uses
  `@unchecked Sendable` with a comment explaining why.

Result

* Benchmark targets build cleanly under strict concurrency checking.
@rnro rnro force-pushed the update_swiftlang_workflow_version branch from 5dff346 to c7febb9 Compare February 20, 2026 15:39
final class ClientHandler: ChannelInboundHandler {
// ClientHandler has mutable state (didSend, readBytes) but is only ever
// accessed on the EmbeddedEventLoop, which is single-threaded.
final class ClientHandler: ChannelInboundHandler, @unchecked Sendable {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't needed: we can change the usage site to create the ClientHandler inside the closure and then insert it using syncOperations.

final class ClientHandler: ChannelInboundHandler {
// ClientHandler has mutable state (didSend, readBytes) but is only ever
// accessed on the EmbeddedEventLoop, which is single-threaded.
final class ClientHandler: ChannelInboundHandler, @unchecked Sendable {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same note here.

final class ClientHandler: ChannelInboundHandler {
// ClientHandler has mutable state (didSend, readBytes, chunkSize) but is
// only ever accessed on the EmbeddedEventLoop, which is single-threaded.
final class ClientHandler: ChannelInboundHandler, @unchecked Sendable {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same note here

@rnro rnro force-pushed the update_swiftlang_workflow_version branch from 59aaa3e to 81dd80e Compare February 27, 2026 14:19
@rnro rnro requested a review from Lukasa February 27, 2026 14:29
@rnro rnro merged commit 89d695f into apple:main Feb 27, 2026
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants