Repository navigation
fix(ci): keep swift-packages under timeout with warm SPM cache - #5216
Merged
Merged
Conversation
Parallelize CompassData and CompassUI swift test, skip rebuild when .build artifacts are restored, and prebuild packages beside xcodebuild so merge-group swift-packages avoids cold compiles. Hidden event coordination tests use explicit tasks, bounded gate waits, and post-PUT supersede checks so xctest cannot hang until the job timeout. Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Wait for the mock replace handler to reach its gate before calling resume so an early resume cannot noop and leave xctest blocked until the job timeout. Run package tests serially again and add teardown resumes on coordination gates. Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
cursor Bot
pushed a commit
that referenced
this pull request
Nov 11, 2026
Keep #5215 pinned supersede test sequencing with gate waitForTest before rehide. Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
cursor Bot
pushed a commit
that referenced
this pull request
Nov 11, 2026
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
cursor Bot
pushed a commit
that referenced
this pull request
Nov 11, 2026
Merge current main (#5216 swift-packages cache). Restore main HiddenEventsStore tests, remove stress workflow/script, default wide viewport repeat to 1, keep wide Intel job on test-macos.yml. Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
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.
Fixes #5215 (merge-queue swift-packages cancellation)
Root cause
42900886638): XCTest blocked ~18 minutes becauseEventsStorePendingPresentationColorTestscalledapiGate.resume()before the mock replace handler reachedapiGate.wait()(resume()no-ops with no waiter). Buffered XCTest output stopped afterDemoDataSeederTests, masking the real stuck test.swift-packageshad a cache miss and recompiled CompassData (~92s) even thoughmacos-buildhad just compiled the same tree via Xcode/DerivedData.Fix
swift-pkgs-v1.buildartifacts frommacos-build(parallel to xcodebuild on miss);swift-packagesrunsswift test --skip-buildon cache hit.AsyncTestSignalbeforeresume, teardown gate resumes, explicitTask { @MainActor in ... }forEventsStoremutations, HiddenEvents post-PUT supersede + bounded gate waits.test-macos-swift-packages.sh(NSUnbufferedIO=YES).Job timing evidence
swift-packageswall42900886638/13012746614842900975928/13016378676042915039175/130181127236testReplaceInvokesCacheRefreshBeforeAPIReturns42920978512/13019901012423:24:47–23:27:44)macos-buildon the green run: 6m25s (23:10:29–23:16:54), including parallel SPM warm on miss.Verify
bun test packages/scripts/src/testing/macos-ci-contract.test.ts— 5 pass.macOS workflow run
42920978512:swift-packagessuccess (head27fb68c88).VERDICT: INCOMPLETE (Linux agent; macOS gates exercised on GitHub).