Improve integration test speed#1489
Merged
dcantah merged 1 commit intoapple:mainfrom Apr 30, 2026
Merged
Conversation
Contributor
Author
|
Local execution time saw a decrease of ~60s |
This improves the integration test suite speed by running all integration tests in a single `swift test` invocation. We maintain the one `@Suite` at a time behavior by introducing a new test trait that uses a single mutex to limit inter-suite parallelism.
4b8a8de to
18ed141
Compare
jglogan
approved these changes
Apr 30, 2026
1 task
katiewasnothere
added a commit
that referenced
this pull request
May 1, 2026
## Motivation and Context The `SuiteGate` actor introduced for the serial test trait in #1489 could be simplified using containerization's [AsyncLock](https://github.com/apple/containerization/blob/f2c42402e744df992fecb84eb3a82935c6fa01d3/Sources/ContainerizationExtras/AsyncLock.swift#L23). ## Testing - [ ] Tested locally Note: working on A/B performance testing to validate this approach does not significantly impact test run performance. Signed-off-by: Kathryn Baldauf <k_baldauf@apple.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.
This improves the integration test suite speed by running all integration tests in a single
swift testinvocation. We maintain the one@Suiteat a time behavior by introducing a new test trait that uses a single mutex to limit inter-suite parallelism.Type of Change
Motivation and Context
This is meant to improve the CI/CD experience by reducing execution time.
Testing