Commit Graph

4111 Commits

Author SHA1 Message Date
Saleem Abdulrasool
df208b370c build: honour the libdispatch build type
When configuring libdispatch as part of the swift build on Linux with SourceKit
enabled, we would default to a release build.  However, that results in known
leaks being reported with LSAN when building with a debug standard library.
Pass along the `LIBDISPATCH_BUILD_TYPE` into the CMake build and map that to the
CMAKE_BUILD_TYPE for the project.
2018-08-22 11:16:03 -07:00
Alex Hoppen
7720f55688 Merge pull request #18735 from ahoppen/incremental-serialization
[libSyntax] Add support for incremental (de)serialisation of ByteTree syntax trees
2018-08-21 20:28:29 -07:00
Alex Hoppen
b735673e97 Merge pull request #18848 from ahoppen/remove-reuse-regions
[SourceKit] Remove option to regions reused as part of incremental parsing
2018-08-21 13:52:11 -07:00
Alex Hoppen
da7cdbb122 [libSyntax] Add test cases for ByteTree serialization and deserialization 2018-08-21 10:55:15 -07:00
swift-ci
26b972e2f7 Merge pull request #18653 from JohnCoatesOSS/pkg_config-clobber-fix 2018-08-20 12:29:49 -07:00
Alex Hoppen
750e7e8f73 [SourceKit] Remove option to regions reused as part of incremental parsing 2018-08-20 11:15:50 -07:00
Adrian Prantl
f3ca06342d Remove accidentally committed debugging code 2018-08-20 10:27:38 -07:00
Jordan Rose
810b240354 [remote-run] Add support for custom ssh_config options with -o (#18814)
This has precedent in 'sftp', which also forwards anything passed with
-o through to ssh.
2018-08-20 08:40:13 -07:00
swift-ci
93e9b1d922 Merge pull request #18810 from adrian-prantl/36031890 2018-08-17 19:55:45 -07:00
Adrian Prantl
2f33dfa5e6 Add build-script support for the Swift LLDB backwards-compatibility tests.
rdar://problem/36031890
2018-08-17 17:35:11 -07:00
Erik Eckstein
fc44ec8e28 Re-enable check for deterministic compilation in the tools=R,stdlib=RD job.
Let's give it another try since the (known) non-deterministic behaviors are fixed now.
2018-08-17 15:55:03 -07:00
Erik Eckstein
6ee1a77fa2 For checking deterministic compilation, do an initial "warm-up" compilation for the clang module cache.
This is a workaround for rdar://problem/43442957 and rdar://problem/43439465.
2018-08-17 15:47:23 -07:00
Jordan Rose
1f9ef88ec1 [test] Check for sftp-server for remote-run --debug-as-local tests (#18759)
Not all systems have sftp-server installed.
2018-08-16 13:05:40 -07:00
Alex Hoppen
e8dc5055d6 Merge pull request #18715 from ahoppen/gen-tokenkinds
[libSyntax] Generate TokenKinds.def from gyb_syntax_support
2018-08-15 13:27:43 -07:00
Alex Hoppen
e9e7d5cf68 [libSyntax] Generate TokenKinds.def from gyb_syntax_support 2018-08-15 11:11:27 -07:00
Vedant Kumar
b98667dc55 [build-script] Disable the 'swiftpr' lldb test whitelist (#18714)
This change makes the bots run all swift lldb tests during PR testing
instead of only running a whitelisted set of tests. This will increase
coverage of lldb during PR testing and catch breaking changes earlier.

When this change lands, it's possible that flaky lldb tests may block
swift PRs from landing. We plan on filing bugs for these tests, skipping
them, and re-enabling them as soon as possible.

rdar://42984532
2018-08-14 16:51:14 -07:00
Jordan Rose
04b27e0caa Merge pull request #18584 from jrose-apple/remote-run
[test] Add 'remote-run', a tool to run executable tests over SSH
2018-08-14 12:26:04 -07:00
Alex Hoppen
79e9113a58 Merge pull request #18677 from ahoppen/ref-counted-owned-string
[libSyntax] Add a reference counted version of OwnedString
2018-08-14 11:37:40 -07:00
Alex Hoppen
4cda5cbeb0 [libSyntax] Support serializing the syntax tree as ByteTree 2018-08-13 20:03:47 -07:00
Alex Hoppen
4369b36f21 Merge pull request #18497 from ahoppen/bytetree-infrastructure
[libSyntax] Add a binary serialization format for syntax trees
2018-08-13 15:41:30 -07:00
Alex Hoppen
ac512d4341 [libSyntax] Add a reference counted version of OwnedString
We cannot use unowned strings for token texts of incrementally parsed
syntax trees since the source buffer to which reused nodes refer will
have been freed for reused nodes. Always copying the token text whenever
OwnedString is passed is too expensive. A reference counted copy of the
string allows us to keep the token's string alive across incremental
parses while eliminating unnecessary copies.
2018-08-13 15:37:53 -07:00
Arnold Schwaighofer
8134920f6d Codesign validation-test/Evolution 2018-08-13 08:00:48 -07:00
John Coates
d60ce235d9 [build-script] Don't clobber PKG_CONFIG_PATH
Overwriting this variable can cause the build to break when pkg-config tries to find packages that aren't ICU. Prepending the ICU path so it takes precedence is a less fragile solution.
2018-08-11 21:19:31 +03:00
Alex Hoppen
280b186fa0 [libSyntax] Add a binary serialization format for syntax trees 2018-08-10 10:13:00 -07:00
Alex Hoppen
7355492db3 Merge pull request #18503 from ahoppen/comment-classification
[swiftSyntax] Add syntax classification infrastructure for comments
2018-08-09 13:48:20 -07:00
Fred Riss
afba7cd2c0 Force teh deployment target of LLDB to 10.13
instead of infering 10.14 from the used SDK.

rdar://43011380
2018-08-09 09:51:52 -07:00
Bob Wilson
e23c681142 Merge pull request #18582 from bob-wilson/cleanup-checkout-configs
[update-checkout] Remove some old configs that are no longer used.
2018-08-08 21:42:49 -07:00
Jordan Rose
feb8cb8538 [remote-run] Look for sftp-server in both /usr/libexec/ and /usr/lib/
This only matters for --debug-as-local mode anyway, but it looks like
Ubuntu OpenSSH doesn't use 'libexec'. (Maybe it's a Linux vs. BSD
thing.)
2018-08-08 20:20:07 -07:00
Jordan Rose
dd8c85ef81 [remote-run] Add help text to the options
(and reorder them so that the help text looks better)
2018-08-08 17:44:28 -07:00
Jordan Rose
15920eaa7b [remote-run] Reformat for 80 cols, use main() function for scoping
No functionality change.
2018-08-08 17:44:28 -07:00
Jordan Rose
b69f003489 [remote-run] Add -i/--identity to provide an SSH private key 2018-08-08 17:44:28 -07:00
Jordan Rose
b6bb375d5a [remote-run] Allow specifying the SSH port using 'host:port' syntax
ssh itself doesn't support this for its primary hostname, but it's
pretty standard elsewhere.
2018-08-08 17:44:28 -07:00
Jordan Rose
0aed9e05cc [remote-run] Add a -n/--dry-run mode that /just/ dumps commands
Like -v, but doesn't actually run anything.
2018-08-08 17:44:28 -07:00
Jordan Rose
a64ac39af0 [remote-run] Add -v/--verbose to dump shell and SFTP commands 2018-08-08 17:44:28 -07:00
Jordan Rose
d625e08479 [remote-run] Allow custom input/output prefixes on the remote side
This is mostly important to allow remote-run to be used to upload
files generally, while still using the same interface and arguments
that will be used to actually run executables.
2018-08-08 17:44:28 -07:00
Jordan Rose
1a0912c9b7 [remote-run] Pass stdout through directly too
This makes sure it's still printed when the remote process exits
abnormally.
2018-08-08 17:44:28 -07:00
Jordan Rose
9947e6f1c6 [remote-run] Pass through stderr for sftp failures
(mostly for human debugging)
2018-08-08 17:44:28 -07:00
Jordan Rose
a10be46488 [remote-run] --source-dir/test-dir to --input-prefix/output-prefix
This handles things like "%t.dylib" that some tests use.
2018-08-08 17:42:55 -07:00
Jordan Rose
10259e181f [remote-run] Send environment variables to the remote process
Taking a cue from Apple's 'simctl' tool, send over any variables
prefixed with REMOTE_RUN_CHILD_ (after stripping the prefix).
2018-08-08 17:42:55 -07:00
Jordan Rose
e147a4fc1b [remote-run] Pass stderr output through directly
Also, handle early exit codes
2018-08-08 17:42:55 -07:00
Jordan Rose
74da057e13 [test] Start work on 'remote-run', to run executable tests over SSH
(instead of locally)

The primary use case I'm looking at is easier testing across macOS
versions, but it could also be used for cross-compilation tests in
general (someday).
2018-08-08 17:42:55 -07:00
Bob Wilson
312bdb2032 [update-checkout] Remove some old configs that are no longer used.
The checkout configs included some old dated branches that are no longer
used. They are unlikely to work well anyway because the corresponding
Clang/LLVM branches moved forward independently. Remove those config entries.
Also re-order the 4.0 and 4.1 configs to be consistent.
2018-08-08 17:01:29 -07:00
Mark Lacey
4bd632f009 Merge pull request #18568 from rudkx/fix-typo
Fix typo.
2018-08-08 11:05:45 -07:00
swift-ci
60dbc55098 Merge pull request #18566 from JDevlieghere/lldb-xunit-xml-output 2018-08-08 11:02:19 -07:00
Mark Lacey
5bd94a9fc7 Fix typo. 2018-08-08 08:58:22 -07:00
Jonas Devlieghere
1b6d8d0318 [build-script] Generate JUnit results from lit for LLDB
By switching to lit to run the LLDB tests we need to specify where to
generate the results.
2018-08-08 08:29:39 -07:00
swift-ci
81ae03dc97 Merge pull request #18561 from apple/revert-18524-check-dt 2018-08-07 23:23:23 -07:00
eeckstein
41b49ef110 Revert "Check for deterministic compilation in the tools=R,stdlib=RD job." 2018-08-07 21:51:23 -07:00
Davide Italiano
7e93927b08 [build-script-presets] Build llvm backends required to run lldb test
<rdar://problem/42920398>
2018-08-07 16:38:44 -07:00
eeckstein
601997a087 Merge pull request #18524 from eeckstein/check-dt
Check for deterministic compilation in the tools=R,stdlib=RD job.
2018-08-07 13:14:29 -07:00