Repository navigation
Deflake ActorQueue queue-deallocation tests by awaiting the enqueued task - #85
Merged
Merged
Conversation
…task task_executesEnqueuedTasksAfterQueueIsDeallocated and its throwing variant were the last library tests gated on a 30-second wall-clock Expectation. Since the macos-15-arm64 runner image moved to 20261028.0489 (macOS 15.8.2), the iOS simulator job intermittently stalls for 40+ seconds during one of the 100 test iterations, so the timer fires before the enqueued work is scheduled and the job fails. Apply the same fix #78 made to the FIFOQueue equivalents: await the enqueued task's value, which deterministically proves the work ran after the queue deallocated without depending on wall-clock time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQJeXTSoTddfZif3cZK
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #85 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 13 13
Lines 1313 1311 -2
=========================================
- Hits 1313 1311 -2
🚀 New features to boost your workflow:
|
dfed
enabled auto-merge (squash)
November 2, 2026 05:27
dfed
disabled auto-merge
November 2, 2026 05:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI is red on
main(weekly scheduled run) and on #84, in both cases only inBuild Xcode 26 (iOS_18,watchOS_11):Why it started
No code changed:
8087866passed on 10/26 and failed on 11/02. The macOS runner image did change, frommacos-15-arm6420260907.0337.1(macOS 15.7.9) to20261028.0489.1(macOS 15.8.2). On the new image the iOS simulator occasionally stalls the whole test process. Iterations usually take 1–2s, but one took 69.7s on main and another 57s on #84, and trivial tests in those iterations took 50s or more too. With-test-iterations 100, one stall is enough to fail the job.These two tests are the last library tests that rely on a 30-second wall-clock
Expectation, so they're the only ones a stall can fail.Fix
This applies the same change #78 made to the
FIFOQueueTestsequivalents. Each test keeps theTaskreturned byTask(on:)and awaits its value instead of the timer. Awaiting the value still proves that the enqueued work ran after the queue was deallocated, without depending on wall-clock time. The change touches tests only.Generated by Claude Code