-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Re-enable disabled tests #6422
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
Re-enable disabled tests #6422
Conversation
@swift-ci please smoke test |
Sources/PackageDescription/PackageDescriptionSerialization.swift
Outdated
Show resolved
Hide resolved
@@ -78,6 +78,8 @@ class DependencyResolutionTests: XCTestCase { | |||
} | |||
|
|||
func testMirrors() throws { | |||
try XCTSkipIf(true, "test is broken and needs investigation rdar://107970938") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test has broken while FunctionalTests
were disabled and it wasn't clear to me what to do, so it remains disabled for now.
@@ -1022,7 +1024,7 @@ class PluginTests: XCTestCase { | |||
let (stdout, _) = try executeSwiftBuild( | |||
fixturePath.appending(component: "MySourceGenPlugin"), | |||
configuration: .Debug, | |||
extraArgs: ["--product", "MyLocalTool", "-Xbuild-tools-swiftc", "-DUSE_CREATING"] | |||
extraArgs: ["--product", "MyLocalTool", "-Xbuild-tools-swiftc", "-DUSE_CREATE"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test was not working, the source code uses USE_CREATE
.
#else | ||
XCTAssertBuilds(packageRoot) | ||
#endif | ||
XCTAssertBuilds(packageRoot) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Executable templates no longer contain tests.
@@ -4948,8 +4948,6 @@ final class WorkspaceTests: XCTestCase { | |||
|
|||
// This verifies that the simplest possible loading APIs are available for package clients. | |||
func testSimpleAPI() throws { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This uses an executable template which doesn't contain tests anymore, so the original flaky failure should not be possible anymore regardless of whether the newer superior Xcode fixed it or not.
|
This actually looks familiar, IIRC this was an issue when using inferior Swift libs but Foundation from the OS? |
@swift-ci please smoke test |
@swift-ci please smoke test windows |
@swift-ci please smoke test |
@swift-ci please smoke test windows |
¯\_(ツ)_/¯ |
|
Changes in swift-crypto 2.4.1 cause the issue. Might need to force exact version 2.4.0 until we figure out how to fix it. |
We're still hitting the rpath/dyld issue :/ |
Oh, I wonder whether we may need the macOS 12 deployment target update first? |
I should probably use |
This re-enables a bunch of disabled tests, the hope is that they should now work that we have a newer superior Xcode installed on CI. If that happens to not be the case, we have `SWIFTCI_DISABLE_SDK_DEPENDENT_TESTS` to disable these tests specifically for the macOS CI if needed. This change introduces the variable where expected to be needed, but doesn't set it. rdar://96920453
A macOS that contains the dyld issue worked around by swiftlang/swift#37978 has been deployed by Swift CI, so we can't do this anymore on Darwin.
@swift-ci please smoke test |
@swift-ci please smoke test windows |
@swift-ci please smoke test windows |
Looks like deployment target didn't make a difference, so I'll update this to set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for applying the cleanups as well!
Actually found one more way how the inferior Swift runtime could be sneaking in on macOS, so trying to run tests once more. |
@swift-ci please smoke test |
@swift-ci please smoke test windows |
@swift-ci please smoke test |
@swift-ci please smoke test windows |
Looks like
and I wonder if this might explain why I had to make a change to |
I also introduced an issue in
|
@swift-ci please smoke test |
@swift-ci please smoke test windows |
Tests are passing 🎉 |
\o/ |
@@ -799,26 +793,6 @@ def get_swiftpm_flags(args): | |||
"-Xlinker", "@executable_path/../lib/swift/pm/llbuild", | |||
]) | |||
|
|||
# Add a relative rpath to find Swift libraries in toolchains. | |||
# On non-Darwin platforms, a relative rpath is necessary because Swift | |||
# libraries are not part of the OS. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this comment should actually stay since we're only changing this for Darwin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I had automerge enabled, going to restore this comment in a follow up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, we moved the non-Darwin part out of bootstrap and put it behind SWIFTCI_INSTALL_RPATH_OS
, so this it is correct for the comment to be gone.
@swift-ci please test Windows platform |
This re-enables a bunch of disabled tests, the hope is that they should now work that we have a newer superior Xcode installed on CI. If that happens to not be the case, we have
SWIFTCI_DISABLE_SDK_DEPENDENT_TESTS
to disable these tests specifically for the macOS CI if needed. This change introduces the variable where expected to be needed, but doesn't set it.rdar://96920453