-
Notifications
You must be signed in to change notification settings - Fork 15
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
improves CI Testing #29
Conversation
…jobs Signed-off-by: David Nadoba <dnadoba@gmail.com>
Just curious ,how will this run on Linux since we use Foundation which is just for Apple platforms? |
Signed-off-by: David Nadoba <dnadoba@gmail.com>
Foundation is available on Linux too: https://github.com/apple/swift-corelibs-foundation |
Signed-off-by: David Nadoba <dnadoba@gmail.com>
Thanks, the documentation that I read was stale then. |
Foundation on Linux is not as good as the one on Apple Platforms. Some API's are not implemented or crash at runtime but we are only using |
Signed-off-by: David Nadoba <dnadoba@gmail.com>
Signed-off-by: David Nadoba <dnadoba@gmail.com>
…which are not multithreaded at all Signed-off-by: David Nadoba <dnadoba@gmail.com>
Signed-off-by: David Nadoba <dnadoba@gmail.com>
Signed-off-by: David Nadoba <dnadoba@gmail.com>
Signed-off-by: David Nadoba <dnadoba@gmail.com>
Signed-off-by: David Nadoba <dnadoba@gmail.com>
Signed-off-by: David Nadoba <dnadoba@gmail.com>
Signed-off-by: David Nadoba <dnadoba@gmail.com>
Signed-off-by: David Nadoba <dnadoba@gmail.com>
Signed-off-by: David Nadoba <dnadoba@gmail.com>
Signed-off-by: David Nadoba <dnadoba@gmail.com>
Signed-off-by: David Nadoba <dnadoba@gmail.com>
Signed-off-by: David Nadoba <dnadoba@gmail.com>
Signed-off-by: David Nadoba <dnadoba@gmail.com>
Signed-off-by: David Nadoba <dnadoba@gmail.com>
Signed-off-by: David Nadoba <dnadoba@gmail.com>
Signed-off-by: David Nadoba <dnadoba@gmail.com>
Signed-off-by: David Nadoba <dnadoba@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
improve CI Testing
Motivation:
Make sure RSocket does work on iOS & Linux too.
Modifications:
Result:
Tests now run on iOS and Linux too and should be slightly faster because of parallel building and testing
Discussion
Thread Sanitizer on Linux
On Linux, the test fail with thread sanitizer enabled. Thread santizer support on linux is new for swift and I think there is still a bug in it.
For Example,
RequestResponseTerminationBehaviourTests.testRequesterSendsCancel
fails but it just calls a pure function and does not mutate any state. I don't have a working linux environment to debug this issue further so I would just leave thread sanitizer disabled for now. It is still enabled on macOS.Thread Sanitizer Error for RequestResponseTerminationBehaviourTests.testRequesterSendsCancel
xcodebuild vs. SwiftPM
@testable import
is not supported but used in most tests targets and all butRSocketCorePerformanceTests
fail to buildBecause of the reasons above, I have decided to use xcodebuild to build & run tests for macOS & iOS but run performance tests using SwiftPM.
On Linux there was really no choice but to use SwiftPM.