Skip to content

Skip testJumpToSatisfiedProtocolRequirementInExtension if the toolchain does not mark overridable function declarations as dynamic #1480

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 1 commit into from
Jun 17, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jun 17, 2024

This test requires swiftlang/swift#74080 and should be skipped if the host toolchain does not have that change.

Fixes a test failure when running SourceKit-LSP tests using Xcode 15.4.

…hain does not mark overridable function declarations as dynamic

This test requires swiftlang/swift#74080 and should be skipped if the host toolchain does not have that change.
@ahoppen ahoppen requested review from bnbarham and hamishknight June 17, 2024 16:35
@ahoppen ahoppen requested a review from benlangmuir as a code owner June 17, 2024 16:35
@ahoppen
Copy link
Member Author

ahoppen commented Jun 17, 2024

@swift-ci Please test

@@ -233,6 +233,37 @@ public actor SkipUnless {
}
}

/// Checks if the toolchain contains https://github.com/apple/swift/pull/74080.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not really sure what to do about this, but the skip test is really the test itself 😅

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I know. The key point here is that it won’t skip the test if the toolchain is ≥6.1 or if we are on Swift CI (SWIFTCI_USE_LOCAL_DEPS is set – https://github.com/apple/sourcekit-lsp/blob/main/Documentation/Environment%20Variables.md#build-time)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, my point was more that it would skip if the original test would fail, though depends on the failure (ie. if more results are returned then it wouldn't skip, but if the result is missing at all then it will). Anyway, I think it's fine 👍

@ahoppen ahoppen merged commit f995cb9 into swiftlang:main Jun 17, 2024
3 checks passed
@ahoppen ahoppen deleted the skip-protocol-dynamic-test branch June 17, 2024 21:54
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.

2 participants