-
Notifications
You must be signed in to change notification settings - Fork 314
Share module cache between test projects #1403
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
Conversation
@swift-ci Please test |
@swift-ci Please test macOS |
destination: \(String(describing: self.destinationBuildParameters.configuration)) | ||
""" | ||
) | ||
logger.fault("Preparation is assuming that tools and destination to have the same build flags") |
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.
Duplicate, but also this is going to be fairly spammy.
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.
I don’t expect this ever to be logged because we set the same build flags for the tools and destination build parameters here: https://github.com/apple/sourcekit-lsp/blob/b9c74387f297147d82716195974306384ca59c11/Sources/SKSwiftPMWorkspace/SwiftPMBuildSystem.swift#L245-L259
The intention of the log is that if that assumption is broken in the future, we’ll have a log message that’s pointing us to it.
This improves serial test execution time of eg. `DocumentTestDiscoveryTests` from 36s to 22s because we don’t need to re-build the XCTest module from its interface when using an open source toolchain. This also uncovered that we weren‘t passing the build setup flags to the prepare command. rdar://126493151
c92a045
to
259d49e
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
This improves serial test execution time of eg.
DocumentTestDiscoveryTests
from 36s to 22s because we don’t need to re-build the XCTest module from its interface when using an open source toolchain.This also uncovered that we weren‘t passing the build setup flags to the prepare command.
rdar://126493151