Skip to content

Merging swift-DEVELOPMENT-SNAPSHOT-2019-06-06-a into tensorflow #25376

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 190 commits into from
Jun 13, 2019

Conversation

dan-zheng
Copy link
Contributor

@dan-zheng dan-zheng commented Jun 12, 2019

For apple/swift: merge 58827bb (from 2019-06-11).
For all other repositories: merge swift-DEVELOPMENT-SNAPSHOT-2019-06-06-a .

vgorloff and others added 30 commits May 28, 2019 23:26
…e variable to allow users to specify a subset of architectures they wish to build.
…wift_target_library to export targets for all the defined archs rather than _just_ the last one processed in the foreach loop above.
…ariable which allows users to specify architectures they wish to configure and build _just_ the .swiftmodule content, even if they are not 'supported' via SWIFT_DARWIN_SUPPORTED_ARCHS.
…DARWIN_MODULE_ARCHS into semicolon-separated lists rather than space-separated.
…le architectures lists are mutually exclusive.
…supported architectures and module-only architectures on Darwin platforms.
Improve a little the build script to not have to change the version in
two places of the URL.
The embedded shell script in the RUN command for lit is problematic for
non-sh shell environments (i.e. Windows).  This adjusts the tests to
uniformly build the code for the ObjC runtime.  However, the Objective-C
code is only built under the same circumstances that it is currently
enabled - the availability of the needed frameworks.  The empty object
on other runtimes will have no material impact.  The swift side of it
checks whether the runtime is built with ObjC interop.  This allows us
to largely use the same command line for all the targets.  The last
missing piece is that the `-fobjc-runtime` requires that we run a modern
ObjC runtime.  We enable this unconditionally in lit for the non-Apple
targets.

This improves the validation test coverage for the standard library on
Windows.
The `rth` tool is a python script and relied on the execution via the
shebang.  However, not all targets support the shebang to invoke the
interpreter.  Explicitly launch the resilience test helper with the
interpreter (python).  Ideally, we would use the `%rth` substitution,
but that does not seem to function for the nested case here.
Add a llvm_unreachable to indicate to MSVC that the switch is covered.
Split up the commands into multiple RUN lines.  Use a temporary to
actually capture the output of multiple invocations to compose them into
a single stream.

Replace the `export` usage with `env` which the lit interpreter is able
to process even on Windows.

This makes HashingRandomization pass on Windows.
Simplify the implementation of ClusteredBitVector by using an APInt
to represent the raw bits. This simplification will make it easier
to incrementally move to a representation of bit vectors that works
on both big- and little-endian machines.

This commit also removes reserve and reserveExtra from the API
since they were only used in one place and no longer have any effect
because memory allocation is now handled by the APInt class.
…eFieldType

IRGen: getSingletonAggregateFieldType must not return field if its ac…
validation-test: avoid shell in HashingRandomization
Windows does not support the concept of RPATH.  As a result, we must
change the working directory for the test.  This extends the support
for the tests to work with PE/COFF on Windows.  Use the newly minted
`self.triple` property to drive the host detection.  This means that
the test coverage on Windows is able to test most of the resilience
functionality.
The scale-test utility is a python script which was relying on the
shebang to invoke the interpreter.  However, not all targets support
such an invocation mechanism (i.e. Windows doesn't support this).
Explicitly invoke the interpreter to ensure that the tool is executed
properly.
The C library functions used here do not appear without the C runtime
being imported (ucrt or MSVCRT).  Adjust the test as such.  This exposes
a stack corruption in the test which needs to be resolved.
…e-compatibility-autolink

Reinstate "Use autolinking to pull in compatibility libraries."
This just uses the `%target-build-swift-dylib` instead of
`%target-build-swift` substitution along with `%target-library-name` to
ensure that we are target independent.
test: add a workaround for `rth` invocation
Android Intel 32/64 bit (i.e. Android Simulator) support.
slavapestov and others added 17 commits June 11, 2019 11:41
Convert ObjectLiteralExpr to not use tc.callWitness() or generate a SemanticExpr
[Foundation] Bridge difference APIs between Foundation and swift stdlib
…fAvailable_docs

[Doc] [SR-10094]  Add missing documentation for SE-0237
…t assignment

While trying to fetch owner type for generic requirement failures
anchored at assignment expression, use assignment source as an anchor
because that's where requirements come from - conversion from source
type to destination.

Resolves: rdar://problem/51587755
SourceKit/Indentation: avoid indenting the end of subscript expressions in call chain.
[TSan] Add positive test for TSan + Dispatch on Linux
[Diagnostics] Clarify requirement failure source when it's anchored a…
…ak-fix

Simpler fix for Foundation overlay ABI break
[Runtime] swift_demangle: Update buffer size after copying
…erge

Tag build swift-DEVELOPMENT-SNAPSHOT-2019-06-06-a
Sourcekit/Indentation: avoid indenting dot member access appearing after trailing closure
@dan-zheng dan-zheng added the tensorflow This is for "tensorflow" branch PRs. label Jun 12, 2019
@dan-zheng
Copy link
Contributor Author

Current status:

  • All compiler tests pass (swift/utils/build-script --preset tensorflow_test).
  • A bunch of LLDB tests fail:
Failing Tests (25):
    LLDB :: Swift/No.swiftmodule.test
    LLDB :: Swift/global.test
    LLDB :: SwiftREPL/Basic.test
    LLDB :: SwiftREPL/BreakpointSimple.test
    LLDB :: SwiftREPL/Class.test
    LLDB :: SwiftREPL/ComputedProperties.test
    LLDB :: SwiftREPL/Deadlock.test
    LLDB :: SwiftREPL/Dict.test
    LLDB :: SwiftREPL/ErrorReturn.test
    LLDB :: SwiftREPL/ExclusivityREPL.test
    LLDB :: SwiftREPL/GenericTypealias.test
    LLDB :: SwiftREPL/Generics.test
    LLDB :: SwiftREPL/MetatypeRepl.test
    LLDB :: SwiftREPL/Optional.test
    LLDB :: SwiftREPL/OptionalUnowned.test
    LLDB :: SwiftREPL/RecursiveClass.test
    LLDB :: SwiftREPL/SimpleExpressions.test
    LLDB :: SwiftREPL/Struct.test
    LLDB :: SwiftREPL/Subclassing.test
    LLDB :: SwiftREPL/SwiftInterface.test
    LLDB :: SwiftREPL/SwiftInterfaceForceModuleLoadMode.test
    LLDB :: SwiftREPL/SwiftTypeLookup.test
    LLDB :: SwiftREPL/UninitVariables.test
    LLDB :: SwiftREPL/ZeroSizeStruct.test
    LLDB :: SwiftREPL/rdar30147367.test

@marcrasi: could you please help look into the lldb failures?
swift-lldb friend merge PR: apple/swift-lldb#1672

@marcrasi
Copy link

All LLDB tests pass for me (and in fact, all toolchain tests pass for me) at commit e2b06ef.

Maybe you were getting flakiness? Or maybe it's that the LLDB tests are very sensitive to the python version that you have on your system.

@dan-zheng
Copy link
Contributor Author

All LLDB tests pass for me (and in fact, all toolchain tests pass for me) at commit e2b06ef.

Maybe you were getting flakiness? Or maybe it's that the LLDB tests are very sensitive to the python version that you have on your system.

Thank you for verifying that LLDB tests pass! I assume the failures I encountered are environment-related.


Running tests now, then merging.

- Remove deprecated `TARGET_SDKS ALL_POSIX_PLATFORMS`.
- Specify DARWIN_INSTALL_NAME_DIR.
@dan-zheng
Copy link
Contributor Author

@swift-ci Please clean test tensorflow

@dan-zheng
Copy link
Contributor Author

Tested manually on macOS. There's only one failure, which is known.

********************
Testing Time: 1001.12s
********************
Failing Tests (1):
    Swift(macosx-x86_64) :: ClangImporter/cxx_interop.swift

  Expected Passes    : 11896
  Expected Failures  : 26
  Unsupported Tests  : 210
  Unexpected Failures: 1

@dan-zheng dan-zheng merged commit 4d59a3c into tensorflow Jun 13, 2019
@dan-zheng dan-zheng deleted the tensorflow-merge branch June 13, 2019 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tensorflow This is for "tensorflow" branch PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.