Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-1747] Improve parallel test execution on Android host devices #44356

Open
modocache mannequin opened this issue Jun 14, 2016 · 0 comments
Open

[SR-1747] Improve parallel test execution on Android host devices #44356

modocache mannequin opened this issue Jun 14, 2016 · 0 comments
Labels
Android Platform: Android improvement

Comments

@modocache
Copy link
Mannequin

modocache mannequin commented Jun 14, 2016

Previous ID SR-1747
Radar None
Original Reporter @modocache
Type Improvement
Additional Detail from JIRA
Votes 0
Component/s Project Infrastructure
Labels Improvement, Android
Assignee None
Priority Medium

md5: 7c0c02bafb232c85bbf60c78419e3ead

Issue Description:

The Swift test suite, when run on Android host devices, does not rate-limit itself. That is, if the test suite is configured to use 8 cores (the number of cores on the host machine), it will attempt to run 8 tests in parallel on the connected Android device, even if that device only has 4 cores.

As @gribozavr mentions in this GitHub comment, executing tests on device without limiting concurrency will usually oversubscribe the device and will lead to spurious failures (out of memory issues etc.) That's because the number of device cores is typically much smaller than the number of cores on the host where lit is running.

@gribozavr suggests adding a persistent server that would be responsible for device communication, and have %target-run be a thin client that just asks the server to run a certain command. The server would throttle (or possibly load balance over multiple devices!) as appropriate.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Platform: Android improvement
Projects
None yet
Development

No branches or pull requests

0 participants