Skip to content

[presets] Add clang install to bots that test indexstore-db/sourcekit-lsp #26300

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
merged 2 commits into from
Aug 1, 2019

Conversation

benlangmuir
Copy link
Contributor

At a minimum, we need to install libIndexStore to enable testing the indexer, but it's better to also include clang, clangd, and libcxx, since (a) this makes these bots closer to the config of the "package" bots, and (b) this lets us enable all of our indexer tests that require clang[d]. This commit copies the swift-install-components and llvm-install-components from the 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.

…-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.
@benlangmuir
Copy link
Contributor Author

@swift-ci please smoke test

@benlangmuir
Copy link
Contributor Author

@swift-ci please build toolchain

@benlangmuir
Copy link
Contributor Author

@swift-ci please test

@benlangmuir
Copy link
Contributor Author

Heads up @hyp and @shahmishal.

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 284650b

@swift-ci
Copy link
Contributor

macOS Toolchain
Download Toolchain
Git Sha - 284650b

Install command
tar -zxf swift-PR-26300-340-osx.tar.gz --directory ~/

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 284650b

@swift-ci
Copy link
Contributor

Linux Toolchain (Ubuntu 16.04)
Download Toolchain
Git Sha - 284650b

Install command
tar zxf swift-PR-26300-261-ubuntu16.04.tar.gz
More info

@benlangmuir
Copy link
Contributor Author

@swift-ci please smoke test

@benlangmuir
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 284650b

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 284650b

@hyp
Copy link
Contributor

hyp commented Jul 25, 2019

@benlangmuir do you think we can get away without installing libcxx? I'm not sure what kind of tests you have in mind though.

@benlangmuir
Copy link
Contributor Author

@hyp if we install clang in the toolchain it will get used when building sourcekit-lsp/indexstore-db, which needs the c++ headers. Just for testing we could maybe find a workaround, but it's simpler and probably more robust for our bots to behave more like the package bots.

@benlangmuir
Copy link
Contributor Author

@swift-ci please test

@benlangmuir
Copy link
Contributor Author

@swift-ci please smoke test

@benlangmuir benlangmuir merged commit 482d062 into swiftlang:master Aug 1, 2019
@benlangmuir benlangmuir deleted the preset-clang branch August 1, 2019 15:59
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