Repository navigation
test(cmux-next): the XCTest-phase regression test also starts xctest without -XCTest (follow-up of #33013) - #33276
Merged
Conversation
…Test A whole-package swift test starts its XCTest phase as plain 'xctest <bundle>' (swift-package-manager release/6.3, Sources/Commands/SwiftTestCommand.swift: xctestArgs returns no arguments with no filter, line 402; args(forTestAt:), lines 1008-1014); -XCTest is added only for a filter (line 938). #33023's argv check did not cover that start, so the regression test now runs its child both ways. Red at feat 145c5a3 (#33023, without #33013) plus this test (f54406d): the no -XCTest case fails at 120 s on aws-m4pro-6 (step 10ce589a) and aws-m4pro-8 (step 95f2953d).
Bugbot needs on-demand usage enabledBugbot uses usage-based billing for this team and requires on-demand usage to be enabled. A team admin can enable on-demand usage in the Cursor dashboard. |
lawrencecchen
temporarily deployed
to
ci-routing-agent
November 3, 2026 07:31 — with
GitHub Actions
Inactive
Contributor
|
cmux status (one comment, edited in place; each line is updated by the job that owns it) Review App of this head (app.zip, kept 1 day)
Shipped in:
|
lawrencecchen
temporarily deployed
to
ci-routing-agent
November 3, 2026 07:34 — with
GitHub Actions
Inactive
|
Found 1 test failure on Blacksmith runners: Failure
|
Contributor
Author
|
Review (independent subagent): SHIP at e21feea
|
This branch was previously deployed
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.
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-3x.png)
Summary
Follow-up of #33013 (the xctest signal 6 base red).
XCTestPhaseTests.anXCTestWaitInTheXCTestPhaseReturnsnow starts its childxctestin both of the ways SwiftPM starts the XCTest phase, not only with-XCTest.Where SwiftPM decides (swift-package-manager
release/6.3, commit f096e728bff0,Sources/Commands/SwiftTestCommand.swift):--filter(a whole-packageswift test),xctestArgsreturns no arguments:return ([], nil)at line 402.args(forTestAt:)then starts[xctestPath](line 1008), then the additional arguments, which are empty here (line 1013), then the bundle path (line 1014). The result is plainxctest <bundle>.xctestArgumentsadds["-XCTest", <tests>](line 938).#33023 stopped the guard's hold only when the command line has
-XCTest, so it did not cover the whole-package start. #33013 limits the guard toswiftpm-testing-helper, which covers both. This test now shows that difference.XCTestPhaseRunLoopProbeis the only XCTestCase in the bundle, so the child without-XCTestalso runs exactly one test. A comment says that it must stay the only one.Testing
Focused command (fleet):
cmux-ci run --class light --script scripts/ci/package-test-lane.sh --arg suite --arg Packages/macOS/CmuxNext --arg XCTestPhaseTests --ref SHA --target-worker WORKERf54406d7500b(feat145c5a35b809: has #33023, not #33013; plus this test without the one unit test that needs #33013's C function; never merge)selection → []fails: child killed at 120 s, its only output is the guard's "holding the main run loop open" line; the-XCTestcase passes; exit 1f54406d7500be21feea(this head)e21feeaObserved / Not run
Observed: the steps above.
prepush-gate.py: no new violations. I read the SwiftPM source at the lines above.Not run: a real whole-package
swift teston a slow host. The child test runs the samexctest <bundle>start.Changelog
none
Proof
No capture: test code only.