Repository navigation
mac tests: stop assert-then-trap crashes from killing the whole xctest run (#773) - #787
Merged
Merged
Conversation
…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
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 #773.
Problem: a non-halting
XCTAssertfollowed 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):
:314site is left to mac: CompletionTests no longer traps on an empty suggestions array (#773) #782, which uses the same.first?idiom.waitUntilandlines(atLeast:)now throw instead of only recordingXCTFail. This was the source of theNearbyBoundedTransportTestsindex-out-of-range crash under machine load.Verification (lane-reported):
swift build --build-testsis clean.swift test: 1431 tests, 0 failures. 137 tests skipped because they need a helper or environment.DesignSnapshotsfails 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