Skip to content

Install Rosetta before CodeQL analyzes Swift - #104

Closed
dfed wants to merge 24 commits into
claude/project-thread-2aoan1from
claude/2.0-16-codeql-rosetta
Closed

dfed wants to merge 24 commits into
claude/project-thread-2aoan1from
claude/2.0-16-codeql-rosetta

Conversation

@dfed

@dfed dfed commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Requested by Dan · project thread

Part of the 2.0 stack, on top of #101.

Since the stack moved CodeQL's Swift job to the xcode-27 image, Analyze (swift) fails every run with:

posix_spawn error: Bad CPU type in executable (86)

The CodeQL tracer spawns x86_64 helpers, and that image ships without Rosetta. This PR installs Rosetta before CodeQL initializes.

🤖 Generated with Claude Code

claude and others added 22 commits November 15, 2026 14:53
Now that the platform minimums include the Synchronization module, use
`Mutex` for the state that `Delivery` and `CancellableQueue` guard
instead of hand-rolled locks built on serial dispatch queues.

`CancellableQueue` also stops deferring its bookkeeping with
`DispatchQueue.async`: reservations, registrations, and removals now
apply synchronously, in program order. This is safe because no task is
cancelled while the lock is held.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLsTNvRnyh155N25UM
A `CancellableQueue` reserves an identifier for each task, creates the
task on the underlying queue, and only then registers the task's cancel
closure. `cancelTasks()` cancelled only registered tasks. A task that was
reserved but not yet registered when `cancelTasks()` ran was skipped,
and nothing cancelled it later unless `cancelTasks()` was called again.
Such a task can already be executing, for example when its own operation
calls `cancelTasks()`.

`cancelTasks()` now marks such reservations, and registering a marked
task's cancel closure cancels the task immediately, after releasing the
lock.

Every `Task(on:)` initializer of `CancellableQueue` now tracks its task
through one internal method, `trackTask(performing:createdBy:)`, which
reserves the identifier, creates the task, and registers its cancel
closure, in that order. Tests call it directly to finish a task, or to
call `cancelTasks()`, while the task is being created, which the
initializers cannot be made to do on demand. The method is always
inlined, so enqueuing a task costs what it did before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLsTNvRnyh155N25UM
Previously a drain loop created a separate task for each operation and
the returned task waited on a continuation for its result. That caused
three bugs:

- Tasks with different priorities began executing out of order. The
  drain loop enqueued each operation's task on the adopted actor without
  waiting for it to start, and a default actor runs higher-priority jobs
  first, so a later `.high` task overtook an earlier `.low` one.
- Operations saw the task-local values bound when the queue was created
  rather than the caller's. Since `MainActor.queue` is created lazily, it
  handed its first caller's task-local values to every later caller.
- Operations ran at the drain loop's priority rather than the caller's,
  and awaiting the returned task did not escalate the operation.

Now each `Task(on:)` runs its operation in the task it returns, so
task-local values, priority, escalation, and cancellation behave as they
do for `Task`. Tasks take turns in the order in which they are enqueued:
each waits for its predecessor to become isolated to the adopted actor,
and ends its own turn as soon as it is isolated, which lets the next
task hop to the actor but not run until the current operation suspends
or returns.

The queue's `name` named the drain task, which no longer exists, so
`ActorQueue(name:)` is removed in favor of `ActorQueue()`.

`ManualTaskExecutor` and `ManualSerialExecutor` keep themselves alive
while `enqueue(_:)` runs. The runtime calls `enqueue(_:)` without
keeping the executor alive. When another thread enqueues the job that
lets a test finish, `yield()` resumes the test, and the test can run the
job and release the executor before `yield()` returns, so `yield()`
would go on to use freed memory. Tests added later in this series
crashed this way on Linux about once in 300,000 runs, in
`_dispatch_queue_dispose` or in `AsyncStream`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLsTNvRnyh155N25UM
Previously each operation ran in a task created by the queue's detached
drain loop, and the returned task waited on a continuation for the
result. As a result:

- Operations never saw the caller's task-local values.
- Operations ran at the drain loop's priority rather than the caller's,
  and three of the four `Task(on:)` initializers dropped `priority` from
  the returned task.
- Awaiting the returned task did not escalate the operation.

Now each `Task(on:)` runs its operation in the task it returns, so
task-local values, priority, escalation, and cancellation behave as they
do for `Task`. Tasks take turns in the order in which they are enqueued:
each waits for its predecessor to finish, runs, and then lets its
successor begin.

A queue's priority is now a floor: a task enqueued with, or from a
context with, a lower priority executes at the queue's priority. The
comparison uses the priority `Task` would give the new task: the
enqueuing task's base priority, ignoring escalation, or outside of a
task the thread's priority, which defaults to `.medium`; an inherited
user-interactive priority is lowered to user-initiated, and a priority
with a raw value of zero counts as no priority. A queue without a
priority no longer raises every task to the drain loop's priority.

The queue's `name` named the drain task, which no longer exists, so
`FIFOQueue(name:priority:)` is removed in favor of
`FIFOQueue(priority:)`. Its doc comment is reworded to say plainly which
priority each task runs at.

`Delivery` is no longer used, so it and its tests are deleted.
`Semaphore` is now used only by tests, so it moves to the test target.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLsTNvRnyh155N25UM
- Rewrite the `Task(on:)` documentation to describe what each initializer
  actually does: the operation's isolation, its ordering, that it
  inherits the caller's task-local values and priority, that awaiting it
  escalates its priority, and that cancelling a pending task does not
  remove it from its queue.
- Document that a `FIFOQueue`'s priority is a floor.
- Add the `priority:` parameter that the two `CancellableQueue<FIFOQueue>`
  initializers without `isolatedTo:` were missing.
- Fix the README's `CancellableQueue` sample, which did not compile: it
  used `try` in a nonthrowing task and called an async method without
  `await`.
- Remove references to `enqueue` and `enqueueAndWait`, and to the queue's
  own task, none of which exist anymore.

Rewrite the README so that it is easy to follow, in the voice and
vocabulary of the Concurrency chapter of The Swift Programming Language.
It now opens with a short guide to choosing a queue, gives each queue
its own section around the existing examples, and describes behavior in
the guide's terms (tasks, actors, suspension points, task priority,
task-local values, and cooperative cancellation) instead of terms the
library made up, such as nonisolated and isolated contexts, adopted
execution contexts, and FIFO order. It corrects the claim that
`MainActor.queue` runs tasks in FIFO order: it is an `ActorQueue`, so
the next task can start once a task suspends. It also points the guide
links at sections that still exist. The installation section keeps its
wording, with the version raised to 2.0.0; what changed in 2.0 and what
to do belongs in the release notes. Apart from the
`CancellableQueue` fix, the examples' code is unchanged except for
comments. Describe the queues in the same plain terms in the public doc
comments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLsTNvRnyh155N25UM
A task waiting for its turn could not make the tasks ahead of it run any
sooner: a `.high` task enqueued behind a `.background` task waited at
`.background` speed.

Where the runtime supports SE-0462 (the 26 releases of Apple platforms
and later, and other platforms with a Swift 6.2 or later runtime), a task
waiting for its turn now escalates the task holding the current turn to
its own priority, both when it starts waiting and whenever it is itself
escalated while it waits. The current turn is held by the earliest turn
that has not ended, even if its task has not started running yet. When
a turn ends, the next turn's task is escalated to the highest priority of
the tasks still waiting before it is resumed, so it is scheduled at that
priority rather than at its own.

Only the task holding the current turn is escalated, and the queue
tracks waiting priorities in a per-priority count, so escalation is
constant-time however many tasks are waiting. Escalating through a chain
of predecessors instead recurses once per waiting task: an earlier
prototype that awaited each predecessor's task crashed once 30,000 or
more tasks were waiting.

As with any escalation, an escalated task keeps its priority until it
completes. On an `ActorQueue`, that includes the rest of its operation,
not only its wait for the actor. The documentation and README say so.
One visible consequence: on a shared queue such as `MainActor.queue`, a
higher-priority task enqueued by unrelated code escalates the tasks
ahead of it, so work those tasks do after their first suspension can
overtake work of earlier tasks that were not escalated. An `ActorQueue`
only orders tasks up to their first suspension, so this is within its
documented behavior, but two existing tests relied on stricter ordering
on the shared `MainActor.queue`; they now use a queue of their own.

To escalate another task, the queue retains the task's handle from the
moment `Task(on:)` creates it until its turn ends. `Turns` can be created
without escalation so that tests cover the path that older runtimes
take.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLsTNvRnyh155N25UM
`begin_whenWaitingTaskIsEscalated_recordsEscalationAndEscalatesTaskHoldingTurn`
escalates a task that is already waiting for its turn, so only the
task's escalation handler can deliver the escalation. It checks that
`Turns` then records the task as waiting at the new priority, without
counting it twice, escalates the task holding the current turn to that
priority, and stops recording the task once its turn begins.

The test reads the recorded priority through a new test-only accessor,
`highestWaitingPriority`, alongside the existing `waitingTaskCount`.

`Turns.waitingTicket(_:wasEscalatedTo:)`, which a waiting task's
escalation handler calls, is now internal rather than private. Two new
tests call it directly to deliver escalations in orders that the
runtime allows but cannot be made to produce on demand: an escalation
that arrives before the task is recorded as waiting, and an escalation
to a lower priority that arrives after one to a higher priority.
`Turns` ignores both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLsTNvRnyh155N25UM
The runtime holds a task's status lock while it runs the task's
cancellation and escalation handlers. A waiting task's escalation
handler escalated the task holding the current turn before returning,
and escalating a task takes that task's status lock, so the handler
held the waiting task's lock while it waited for the holder's. A
cancellation handler of the task holding the turn runs under the
holder's lock. If it cancels the waiting task, or calls `cancelTasks()`
on a queue that holds the waiting task, it takes the waiting task's
lock. The two tasks then take the same two locks in opposite orders,
and they can deadlock.

`Turns.waitingTicket(_:wasEscalatedTo:)` still records the escalation
before it returns, but it now escalates the task holding the turn from a
new task, created at the escalated priority, so the escalation handler
never waits for another task's status lock. A task is created only when
an escalation raises the holder's priority. Escalation of the holder is
now asynchronous: it happens when the new task runs, not before
`escalatePriority(to:)` returns. If the turn ends first, `end()`
escalates the next task to the highest recorded waiting priority, as
before, so no escalation is lost. A late escalation can reach a task
whose turn has already ended, which only raises that task's priority.

Plain tasks that await each other have the same hazard in the runtime,
which escalates an awaited task while it holds the waiting task's
status lock. This change removes the library's part of it.

Two new tests, one on `Turns` and one through `cancelTasks()`, escalate
a waiting task while the holder's cancellation handler holds the
holder's status lock until that escalation returns. They are
deterministic, and they hang if the escalation handler escalates the
holder before returning. Tests that checked the holder's priority right
after escalating a waiting task now wait for the escalation to arrive,
with a new `suspendUntilEscalated(to:)` helper that suspends until the
task reaches a priority and hangs if it never does. New tests of the
helper run it on a manual executor, so they cover each of its paths
whatever the timing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLsTNvRnyh155N25UM
…k is held

The two lock-order regression tests hold the first task's status lock in
its cancellation handler until escalating the waiting task returns. Two
things in that window needed a thread from the cooperative thread pool.

The first task ran on the pool and announced that its cancellation
handler was installed before it suspended. The test could cancel it in
between, and a task that suspends or resumes while another thread holds
its status lock blocks its thread until the lock is released. The test
task then had to resume from an `AsyncStream` before it could escalate
the waiting task and release the lock. With enough copies running at
once on a slow machine, every pool thread could be blocked by a first
task while every test task waited for a thread, so whether the tests
finish depended on load.

The first task now waits on a `ManualTaskExecutor`, so it is suspended
before it is cancelled. In the `Turns` test it prefers the executor for
its whole life. In the `CancellableQueue` test, `Task(on:)` creates an
unstructured task, which doesn't inherit a task executor preference, so
the operation waits inside `withTaskExecutorPreference(_:)`, and the
test runs it once it moves to the executor. Neither task is running once
`runUntilIdle()` returns, and only then does the test cancel.

The test now escalates the waiting task on a dispatch queue of its own,
and dispatches that work before it cancels the first task, so the test
task has nothing left to do once the cancellation handler runs. The
cancellation handler signals a `DispatchSemaphore`. The escalation's
queue waits for it, escalates the waiting task, signals the handler to
return, and then resumes the test, so nothing in the window waits for a
pool thread. A pool thread may still wait for the first task's status
lock for a moment, as when the library escalates the first task from a
new task, but the thread that holds the lock is a dispatch thread that
never needs the pool. The tests still hang if the waiting task's
escalation handler escalates the task holding the turn before it
returns, or never escalates it.

`ManualTaskExecutor.runUntil(_:)` runs the executor each time a job is
enqueued until a condition holds. It replaces the private helper in
`TestHelpersTests`, and the two tests use it to run both tasks to the
end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLsTNvRnyh155N25UM
Code that keeps one queue per key creates each queue on demand, and
needs to know when it can remove a queue without breaking the order of
the work enqueued on it. `isIdle` tells it.

- `FIFOQueue.isIdle` is true when every task enqueued on the queue has
  finished: its operation has returned or thrown. A task that is
  suspended at an `await` hasn't finished, and neither has a cancelled
  task, which keeps its place and whose operation still runs.
- `ActorQueue.isIdle` is true when every task enqueued on the queue has
  started running on the actor, so the operations of its tasks might
  not have finished. `MainActor.queue` gets it as an `ActorQueue`.

A task counts from the moment `Task(on:)` enqueues it, before
`Task(on:)` returns, and the value can change as soon as it is read.
If one actor enqueues every task on a queue, it can read `isIdle`
and then remove an idle queue, without suspending between the read and
the removal: no task can be enqueued in between. For a `FIFOQueue`,
work enqueued afterward on a new queue then runs after every task on
the removed queue. The documentation and a new README section show
this with an actor that keeps one `FIFOQueue` per document.

The property adds no state and no work to the enqueue path. `Turns`
already records the most recently reserved ticket, and a turn ends only
after every earlier turn has ended, so `Turns.isIdle` reads
`lastTicket?.hasEnded ?? true` under the lock that `reserve()` and
`end()` take.

`CancellableQueue` gets no `isIdle`. The caller creates the queue it
wraps, so the caller can keep a reference to that queue and read its
`isIdle`.

The tests force each ordering with semaphores, an actor whose executor
runs only when the test runs it, or by holding the main actor. They
cover a new queue, a task that was just enqueued, a suspended operation
in each of the four `FIFOQueue` initializers, a cancelled `FIFOQueue`
task, several tasks, and an `ActorQueue` whose last operation hasn't
finished, including on the main actor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLsTNvRnyh155N25UM
In 1.x, an `ActorQueue` ran every operation inside one long-lived task,
at the priority of the code that created the queue. In 2.0, each
`Task(on: actorQueue)` is its own task, so an operation enqueued from
low-priority code runs at low priority, and an `ActorQueue` had no way
to give its tasks a priority of its own.

`ActorQueue(priority:)` works like `FIFOQueue(priority:)`: it gives
each of the queue's tasks at least that priority. A task that would run
at a lower priority runs at the queue's priority instead, and a task
enqueued at a higher priority keeps it. All four `Task(on:)`
initializers for `ActorQueue` use it, and so do the four for a
`CancellableQueue` that wraps an `ActorQueue`; their documentation now
says so. `ActorQueue()` still compiles and gives its tasks no minimum
priority. `MainActor.queue` has none either, which its documentation
now says. The README's priority section now points `ActorQueue` users
to `ActorQueue(priority:)`.

`FIFOQueue`'s code that works out a task's priority moves unchanged
into an internal `MinimumPriority` type that both queues use, so
`FIFOQueue` behaves exactly as before and its tests are unchanged.
Without a minimum priority, the `ActorQueue` enqueue path adds one
check of an optional.

A task that runs at the queue's priority is escalated like any other
task. New tests cover the minimum priority in each `ActorQueue`
initializer, the priority a task inherits inside and outside of a task,
and escalation of a task that runs at the queue's priority. The
existing test of an explicit priority on an `ActorQueue` now covers
four priorities in all four initializers, as `FIFOQueue`'s does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLsTNvRnyh155N25UM
No CI job ran Thread Sanitizer. On Linux it flags
`Synchronization.Mutex` even in correct code, so a Linux job would
fail on every run. A new job on the xcode-27 runner builds the tests
with Thread Sanitizer and runs them on macOS instead. When Thread
Sanitizer reports a data race, the test run exits with an error and
the job fails. In three trial runs on GitHub's runners the job took
about a minute and a half and reported nothing.

Like the other jobs that run the tests outside a simulator, it stops
after 15 minutes so that a deadlocked test can't hold the runner for
GitHub's six-hour default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLsTNvRnyh155N25UM
The package supports iOS 18, but CI tested only on the iOS 27.2
simulator. Before iOS 26, a queue's tasks wait for their turns without
escalating priority. Tests reached that path in `Turns` only through
`Turns(escalatesPriority: false)`, and no queue's tests ran on it.

Xcode 27 can't download the iOS 18 simulator runtime:
`xcodebuild -downloadPlatform iOS -buildVersion 22F77` fails with
"iOS 22F77 is not available for download". The `macos-15` runner has
iOS 18.5 installed as a disk image, so a new job there copies the image
and uploads it as an artifact. Exporting the runtime with
`xcodebuild -downloadPlatform -exportPath` instead fails at random with
"Unable to connect to simulator."

A second job, on the `xcode-27` runner, downloads the image and
installs it. Adding the 9 GB image to the runner's simulator runtimes
fails with "Cannot copy the image because the disk is almost full", so
it first deletes every runtime but the 27.2 runtime of each platform.
It then creates an iPad (10th generation) on iOS 18.5, and runs and
uploads coverage for the tests there with Xcode 27.2, like the other
simulator jobs. Tests that need iOS 26 are skipped. The two scripts in
Scripts/ explain each step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLsTNvRnyh155N25UM
The simulator jobs ran the suite up to 100 times and stopped at the
first failure, so that a test which fails only on some interleavings
had more chances to fail. Every test should instead give the same
result on every run: pass every run on correct code, and fail every
run, or hang until the job's timeout, on the regression it guards. The
simulator jobs now run the suite once, which also makes them shorter.

A new CLAUDE.md records that rule for people and agents working on the
package: force interleavings with semaphores, manual executors, and
test hooks, never with sleeps, wall-clock timeouts, polling, or
repetition. It names the few older loop tests that stay as backstops
until a deterministic test fails 10 of 10 runs for every bug each
catches. It also records the package's other rules: 100% code
coverage; never cancel, resume, or escalate a task while holding a
lock, including the runtime's own lock on a task while it runs the
task's handlers; faster code over shorter code on the path that
enqueues a task; `guard` but no early return from an `if` without an
`else`; and documentation in the plain style of The Swift Programming
Language.

Those loop tests now get one run per simulator job instead of up to
100, so they are less likely to catch a rare bad interleaving there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLsTNvRnyh155N25UM
ManualTaskExecutor and ManualSerialExecutor ran their jobs inside
`DispatchQueue.sync` on a private serial queue, which only serialized
calls to `runUntilIdle()`. No test needs that. Each test makes its own
executors, and calls `runUntilIdle()` from its own task, one call after
another. No job calls `runUntilIdle()` on the executor that runs it.

So run the jobs directly on the calling thread, as `DispatchQueue.sync`
already did, and say in the documentation comments that a test calls
`runUntilIdle()` from one task at a time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLsTNvRnyh155N25UM
A test process that crashes, such as one in a simulator, fails the job
without saying why in the log. When the Xcode jobs fail, upload the
result bundles that xcodebuild writes under .build/derivedData and the
crash reports in ~/Library/Logs/DiagnosticReports. When the macOS
swift test jobs fail, upload the crash reports. The artifacts expire
after 7 days.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLsTNvRnyh155N25UM
Put the problem before the API, so a newcomer sees why the library
exists before learning how to use it. The actorTaskOrdering example now
comes right after the intro under "Task ordering in Swift concurrency",
with a lead-in that says what the test expects, and ends on a bridge
into "Choosing a queue". The example code is unchanged.

Say each thing once:
- Define "operation" where it is first used, in the FIFOQueue section,
  and shorten the "Choosing a queue" opening.
- Tighten the FIFOQueue opening and compare it with a serial
  DispatchQueue. List the deadlock warning first.
- Fold the ActorQueue "await the task's value" paragraph into the
  bullet that contrasts it with a FIFOQueue.
- Cut the CancellableQueue cancellation bullet and point to the
  Cancellation section instead.
- Fold the one-sentence "Task-local values" subsection into its
  section intro, and cut the Priority list from five bullets to three.
- Trim "Checking whether a queue is idle" and move it below "Task-local
  values, priority, and cancellation".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLsTNvRnyh155N25UM
`isIdle` meant something different on each queue: a FIFOQueue is idle once
every task has finished, while an ActorQueue was "idle" once every task had
only started running on the actor. Give the ActorQueue property a name that
says what it checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A task enqueued on `MainActor.queue`, or on a `FIFOQueue` with an operation
isolated to the main actor, started on the global concurrent executor and
then hopped to the main actor, which costs a job on the main queue plus one
on the global executor. A FIFO task also hopped back off of the main actor
to end its turn.

When a task's turn is current at the moment it is enqueued, start it on the
main actor directly. `Turn.begin()` is now `nonisolated(nonsending)` so that
a current turn begins without hopping off. FIFO tasks with main-actor
operations end their turn on the main actor. A task that has to wait for its
turn still starts on the global executor, because a continuation always
resumes there whichever executor it waited on.

Tasks on other actors are unchanged: a task switches from the global
executor to an idle default actor without enqueuing a job, and benchmarks
showed starting those tasks on the actor made them slower.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tests that checked a FIFO task ends its turn on the main actor passed
on the old code too, so they could not fail every run on the regression
they guard. Remove them, and cover the throwing FIFO path for a main-actor
operation that waits for its turn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add a debug-only hook to `Turns` that is called each time a turn ends, and
a debug-only `FIFOQueue.init(turns:)` to inject it. Tests record whether
each turn ended on the main thread: a task that hopped off of the main
actor before ending its turn fails every run.

Release builds compile neither the hook nor the tests that use it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The xcode-27 runner image has no Rosetta, and the CodeQL tracer spawns
x86_64 helpers, so the Swift build under CodeQL failed with "Bad CPU type
in executable".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dfed dfed self-assigned this Nov 16, 2026
@dfed
dfed added this pull request to stack #103 November 16, 2026 22:49
@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (cf39e86) to head (35aefaa).
⚠️ Report is 22 commits behind head on claude/project-thread-2aoan1.

Additional details and impacted files

Impacted file tree graph

@@                       Coverage Diff                        @@
##           claude/project-thread-2aoan1      #104     +/-   ##
================================================================
  Coverage                        100.00%   100.00%             
================================================================
  Files                                12        15      +3     
  Lines                              1509      3605   +2096     
================================================================
+ Hits                               1509      3605   +2096     
Files with missing lines Coverage Δ
Sources/AsyncQueue/ActorQueue.swift 100.00% <100.00%> (ø)
Sources/AsyncQueue/CancellableQueue.swift 100.00% <100.00%> (ø)
Sources/AsyncQueue/FIFOQueue.swift 100.00% <100.00%> (ø)
Sources/AsyncQueue/Utilities/MinimumPriority.swift 100.00% <100.00%> (ø)
Sources/AsyncQueue/Utilities/Turns.swift 100.00% <100.00%> (ø)
Tests/AsyncQueueTests/ActorQueueTests.swift 100.00% <100.00%> (ø)
Tests/AsyncQueueTests/CancellableQueueTests.swift 100.00% <100.00%> (ø)
Tests/AsyncQueueTests/FIFOQueueTests.swift 100.00% <100.00%> (ø)
Tests/AsyncQueueTests/SemaphoreTests.swift 100.00% <100.00%> (ø)
Tests/AsyncQueueTests/TestHelpersTests.swift 100.00% <100.00%> (ø)
... and 4 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

dfed and others added 2 commits November 16, 2026 15:11
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dfed

dfed commented Nov 16, 2026

Copy link
Copy Markdown
Owner Author

Folded into #88, which is where the stack moved CodeQL to the xcode-27 image. Every branch above it now has the fix.

@dfed dfed closed this Nov 16, 2026
@dfed
dfed deleted the claude/2.0-16-codeql-rosetta branch November 16, 2026 23:40
An error occurred while trying to automatically change base from claude/project-thread-2aoan1 to main November 17, 2026 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants