Skip to content

[5.1] Installation support for sourcekit-lsp #26703

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

Merged

Conversation

benlangmuir
Copy link
Contributor

Cherry-pick to 5.1:

Add --install-sourcekit-lsp option to build-script and update presets for package bots to install it. Also adds missing install actions to a few test presets to make it possible to test sourcekit-lsp.

The smoke test preset tests sourcekit-lsp, and the full test should too.
Note: on Linux this was already working.
…-lsp

At a minimum, we need to install libIndexStore to enable testing the
indexer, but it's better to also include clang/clangd, since this lets
us enable all of our tests on these bots. This commit uses the
swift-install-components and llvm-install-components from the Package
bots, which increases the similarity between our PR tests and package
bots.

In addition to the sourcekit-lsp/indexstore-db PR test bots, this
affects the following bots that test indexstore-db and didn't already
install clang:

* Linux
  * incremental
  * incremental long test
  * swiftpm PR test

* macOS
  * PR test
  * PR smoke test
  * incremental
  * swiftpm PR test

Based on looking at recent build logs for the package bots, this should
only add <5 seconds to the incremental build.
Add --install-sourcekit-lsp option to build-script and update presets
for package bots to install it.

Conflicts:
	utils/build-script
	utils/build_swift/driver_arguments.py
	utils/build_swift/tests/expected_options.py
@benlangmuir
Copy link
Contributor Author

@benlangmuir
Copy link
Contributor Author

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - ecd7d9d

@swift-ci
Copy link
Contributor

macOS Toolchain
Download Toolchain
Git Sha - ecd7d9d

Install command
tar -zxf swift-PR-26703-354-osx.tar.gz --directory ~/

@benlangmuir
Copy link
Contributor Author

macOS failure is from pylint: ./utils/build-script:278:13: W503 line break before binary operator

@swift-ci
Copy link
Contributor

Linux Toolchain (Ubuntu 16.04)
Download Toolchain
Git Sha - ecd7d9d

Install command
tar zxf swift-PR-26703-267-ubuntu16.04.tar.gz
More info

@benlangmuir
Copy link
Contributor Author

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - ecd7d9d

@benlangmuir
Copy link
Contributor Author

@benlangmuir benlangmuir merged commit 3b0cf9e into swiftlang:swift-5.1-branch Aug 17, 2019
@benlangmuir benlangmuir deleted the install-sourcekit-lsp-51 branch August 17, 2019 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants