Commit Graph

7628 Commits

Author SHA1 Message Date
Hamish Knight
51dcc9e0b9 [test] Temporarily remove a check from complete_sdk_platform.swift 2024-08-29 22:19:05 +01:00
swift-ci
fd6a875975 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-29 11:55:41 -07:00
Ben Langmuir
7d11d43d6d [test] Add explicit targets to tests depending on the default
Add specific deployment target versions to some tests that need to test
10.x-specific behaviours and are currently depending on the default
deployment target.

Certain tests were only checking either the stable or unstable ABI
depending on the platform the test was running. In those cases I doubled
up the checks so that we would test both cases on platforms that
supported it. This might use a bit of extra time on targets that only
support the stable ABI, but it seemed worth it for the additional
coverage in CI.
2024-08-29 07:55:14 -07:00
Mike Ash
eead3fa921 [Test] Temporarily increase large_nested_array.swift.gyb timeout to 2400 seconds while we investigate timeouts in CI. 2024-08-29 09:07:52 -04:00
swift-ci
05354cab9a Merge remote-tracking branch 'origin/main' into rebranch 2024-08-27 22:13:30 -07:00
nate-chandler
c56a313d6c Merge pull request #76114 from nate-chandler/rdar133969821_2
[DAH] Bail on pointer use if ignoring barriers.
2024-08-27 21:57:39 -07:00
Nate Chandler
74c4bc9c55 [DAH] Bail on pointer use if ignoring barriers.
Unknown uses of raw pointers should not result in bailing out when an
address is lexical--the destroy of the address will already not be
hoisted over any instructions which may access pointers.  If the address
is not lexical however (such as any address when lexical lifetimes are
disabled), that rationale does not apply, so unknown uses of raw
pointers must cause hoisting to bail.

rdar://133969821
2024-08-27 16:18:39 -07:00
swift-ci
e473b6f53b Merge remote-tracking branch 'origin/main' into rebranch 2024-08-27 15:33:41 -07:00
Erik Eckstein
c1c3f76885 tests: fix SILOptimizer/rdar114699006.swift after a mangling change
Also enable this test for all 64 bit platforms, like arm64
2024-08-27 20:04:37 +02:00
swift-ci
97f2c34604 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-27 08:14:27 -07:00
Hamish Knight
940f5f7c2a [AST] Treat platform modules as non-user
Modules defined within the SDK are considered
non-user modules, extend this to any module found
within the parent platform directory if there is
one. This ensures we include modules such as
XCTest and Testing.

rdar://131854240
2024-08-23 14:23:37 +01:00
Becca Royal-Gordon
fd84e7273d Rename module.map -> module.modulemap in tests
The legacy `module.map` spelling of module map files was deprecated by llvm/llvm-project#75142 and clang expects to remove support for them in the future. Switch all tests to use the supported spelling.

Fixes rdar://128431478.
2024-08-12 17:47:26 -07:00
Ben Barham
df81d0a450 [Tests] XFAIL the remaining test failures on rebranch
Only a few tests remaining. XFAIL so we can test the rest of the
toolchain.
2024-08-08 14:47:18 -07:00
swift-ci
6172e1dc44 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-07 17:34:15 -07:00
Alex Hoppen
8edb57c756 Merge pull request #75667 from ahoppen/build-issues-live-issues
[Sema/SourceKit] Emit same diagnostics for missing protocol requirements on the command line and in SourceKit
2024-08-07 17:24:47 -07:00
swift-ci
04d8b3e7a2 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-07 17:15:02 -07:00
Slava Pestov
2925d4659b Merge pull request #75756 from slavapestov/fix-issue-74569
SIL: Fix signature of reabstraction thunk involving parameterized existential
2024-08-07 20:14:03 -04:00
Alex Hoppen
66104395d7 [Sema/SourceKit] Emit same diagnostics for missing protocol requirements on the command line and in SourceKit
Some editors use diagnostics from SourceKit to replace build issues. This causes issues if the diagnostics from SourceKit are formatted differently than the build issues. Make sure they are rendered the same way, removing most uses of `DiagnosticsEditorMode`.

To do so, always emit the `add stubs for conformance` note (which previously was only emitted in editor mode) and remove all `; add <something>` suffixes from notes that state which requirements are missing.

rdar://129283608
2024-08-07 14:01:30 -07:00
Slava Pestov
de16ed8d27 SIL: Fix signature of reabstraction thunk involving parameterized existential
Fixes https://github.com/swiftlang/swift/issues/74569
Fixes rdar://problem/130402282
2024-08-07 15:25:52 -04:00
swift-ci
cb245d1e55 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-07 09:17:37 -07:00
Ben Barham
7bdf1e117e Merge remote-tracking branch 'origin/main' into manually-merge-main-to-rebranch
Conflicts:
  - `lib/PrintAsClang/PrintSwiftToClangCoreScaffold.cpp` not positive
    what the cause here was, just took main.
2024-08-06 13:44:27 -07:00
Ryan Mansfield
35fb08790b Use num_extra_inhabitants_64bit to fix reflect_CheckedContinuation.swift and
reflect_UnsafeContinuation.swift on non-Darwin platforms.
2024-08-06 16:05:55 -04:00
Holly Borla
93191020bc Merge pull request #75687 from hborla/sendable-param-diagnostics
[Concurrency] Split up the non-`Sendable` diagnostics and improve wording.
2024-08-05 21:21:33 -07:00
Holly Borla
7dbec846f7 [NFC] Update a few tests for concurrency diagnostics changes. 2024-08-05 17:26:07 -07:00
Tim Kientzle
1aae57a93f Suppress these tests under "asan", not "ASAN" 2024-08-05 14:24:23 -07:00
Tim Kientzle
661f368c6b Merge pull request #75620 from tbkka/tbkka-remotemirror-checkedcontinuation
Basic test for RemoteMirror reflecting checked continuations
2024-08-05 11:33:28 -07:00
swift-ci
2a7957d0f0 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-04 10:14:37 -07:00
Slava Pestov
293a36c052 SIL: Pass SubstFlags::PreservePackExpansionLevel in a spot in SILVerifier 2024-08-03 22:40:49 -04:00
swift-ci
c61c38c920 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-03 15:14:42 -07:00
Slava Pestov
cee13f8a9c Merge pull request #75653 from slavapestov/regression-test-70429
Add regression test for bug already fixed
2024-08-03 18:08:32 -04:00
Slava Pestov
ccc206d8c4 Add regression test for bug already fixed 2024-08-03 15:06:43 -04:00
swift-ci
b58607e45e Merge remote-tracking branch 'origin/main' into rebranch 2024-08-02 13:17:16 -07:00
Tim Kientzle
4e81902958 Disable these tests under ASAN 2024-08-01 16:35:58 -07:00
swift-ci
b54f5f263f Merge remote-tracking branch 'origin/main' into rebranch 2024-08-01 13:54:39 -07:00
Tim Kientzle
9debfbc08c Merge pull request #75607 from tbkka/tbkka-remotemirror-unsafecontinuation
[RemoteMirror] Handle UnsafeContinuation
2024-08-01 13:46:09 -07:00
Tim Kientzle
76adead918 Basic test for RemoteMirror reflecting checked continuations 2024-08-01 09:15:01 -07:00
Tim Kientzle
8935510bcc Do not test with back deployment since this is a new-ish feature area 2024-08-01 07:27:11 -07:00
swift-ci
1c96ae8186 Merge remote-tracking branch 'origin/main' into rebranch 2024-07-31 21:14:11 -07:00
Tim Kientzle
71f010ead4 Merge pull request #75516 from tbkka/tbkka-new-actor-reflection-test
New reflect_Actor test
2024-07-31 21:01:29 -07:00
Tim Kientzle
9e1dcd6c9f [RemoteMirror] Handle UnsafeContinuation
UnsafeContinuations can be stored in variables or properties,
so it's important for RemoteMirror to be able to at least minimally
recognize them.

This just treats an UnsafeContinuation as a refcounted pointer.
Which might be "good enough" for now.

Working towards rdar://110351406
2024-07-31 18:15:27 -07:00
swift-ci
1f997bc19d Merge remote-tracking branch 'origin/main' into rebranch 2024-07-31 18:15:05 -07:00
Tim Kientzle
725dc3c011 Merge pull request #75587 from tbkka/tbkka-remotemirror-generic-depth
[RemoteMirror] Fix generic depth calculation
2024-07-31 17:56:27 -07:00
Tim Kientzle
47de3339bb Only run this test on suitably new systems 2024-07-31 15:25:11 -07:00
Tim Kientzle
039e78d31a [RemoteMirror] Fix generic depth calculation
The "generic depth" is used to match up generic type variables.
For example:
```
struct Foo<T> { // `T` at generic depth 0
  struct Bar {
    struct Baz<U> { // 'U' at generic depth 1
      ...
}}}
```

Note in the above that `Bar` is not counted in the
generic depth.  The previous logic did count `Bar` in
the generic depth calculation, leading to mismatches
when trying to associate references to generic variables.

This adds a new test with cases like the above and of course
corrects the calculation.

Resolves rdar://127450037
2024-07-31 07:08:08 -07:00
swift-ci
0698c30ef9 Merge remote-tracking branch 'origin/main' into rebranch 2024-07-31 01:06:10 -07:00
Erik Eckstein
221ac85216 tests: disable a test in execution/interpret-with-dependencies.swift because it fails on some CI jobs 2024-07-31 10:00:00 +02:00
swift-ci
7e1a6ac487 Merge remote-tracking branch 'origin/main' into rebranch 2024-07-29 16:35:39 -07:00
LamTrinh.Dev
751a9d0127 Update reflect_multiple_types.swift
Adding comment for "// REQUIRES: reflection_test_support"
2024-07-29 23:12:12 +07:00
LamTrinh.Dev
a5b4f69f8e Update reflect_NSString.swift
Adding comment for "// REQUIRES: reflection_test_support"
2024-07-29 23:10:53 +07:00
LamTrinh.Dev
0d8d6070a7 Update reflect_NSSet.swift
Adding comment for "// REQUIRES: reflection_test_support"
2024-07-29 23:10:32 +07:00