-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
[windows][toolchain] Run non-executable Swift Runtime tests for aarch64 Android #79185
[windows][toolchain] Run non-executable Swift Runtime tests for aarch64 Android #79185
Conversation
@swift-ci please test Windows |
The build failed with an unrelated error and didn't reach the test stage. Investigating whether this is existing or due to my config adjustments for testing:
|
461698b
to
7856bac
Compare
Rebased and skipped build of ExperimentalRuntime for Android for the moment. Let's see if that gets us to the test stage. @swift-ci please test Windows |
The build failed because the NEW setting for CMake policy CMP0157 isn't compatible with Swift's legacy driver. This is a known issue. Let's try again with the OLD setting in the respective dependencies. swiftlang/swift-testing#944 |
With the CMake policy workaround we successfully avoided the CMP0157 issue. However, the build had test failures for Swift Windows and thus didn't reach the test stage for Android:
|
7856bac
to
e53973c
Compare
@swift-ci please test Windows |
swiftlang/swift-testing#944 |
The Overall pass-rate is now above 50% for android-aarch64
|
swiftlang/swift-testing#944 |
We didn't reach the test phase due to an unrelated build error in swift-corelibs-foundation:
swiftlang/swift-testing#944 |
swiftlang/swift-testing#944 |
Down to 187 failures
|
Do you know why so many fewer tests are discovered on the Windows CI compared to the linux CI, around 8k less? I also see that 2k more tests are unsupported when cross-compiling for Android on the Windows CI, though that is true for the community Android CI which runs on linux also, ie almost 2k more are unsupported. |
Thanks for sharing your observation! After Checking again, it turns out that the latter includes the former and I switched to use that now (there is yet another target |
swiftlang/swift-testing#944 |
Nice work, that looks pretty similar to the community Android CI results, which are run on a linux host instead. |
28e13f1
to
e2dc4da
Compare
Rebased, sorted out patches, trying again swiftlang/swift-testing#944 |
The issue on Windows remains. Let's track this down in a separate PR #79738 On Linux 3 tests failed. That's likely related to my changes:
|
Let's see if the above patch is effective as a workaround. Also, it appears that swift-testing has the same issue as swiftlang/swift-corelibs-foundation#5180 Let's see if we can reproduce it in CI. @swift-ci please test Windows |
CI bot confused the ticket link with a PR link so checkout failed. Let's try again. @swift-ci please test Windows |
aeeb793
to
da580fe
Compare
Split off the target-specific substitutions changes into #79998 Once the test is green, I will remove them here together with the utility patches. |
Yet another unrelated error prevented the build from reaching the Android Swift Runtime tests.. When building swift-foundation with SPM for testing, we pull in a WinSDK header that defines 128-bit integers. Apparently, the (outdated?) Clang we ship can't process them. Error is:
The issue was discussed a while ago in https://forums.swift.org/t/128bit-types-on-windows/65013, but it appears that the resulting fix never landed https://reviews.llvm.org/D121497 @compnerd Do you remember if that was the last state of affairs here? |
Apparently a fix for this is in the works in LLVM upstream: llvm/llvm-project#130993 |
swiftlang/swift-installer-scripts#400 |
swiftlang/swift-installer-scripts#400 |
9c6c541
to
f43d829
Compare
PR-test reached Android tests. It took 5hr 46min in total. Validation tests failed to resolve, because I missed this patch. Trying again. swiftlang/swift-installer-scripts#400 |
Much better now. PR-test took 5hr 38min in total.
|
f43d829
to
c740703
Compare
@swift-ci please smoke test |
The x64 mainline bot is configured to run these tests as soon as they land. However, should wait until we got a successful build after #80007. In a next step we might want to enable them as pre-merge tests as well via #79997. |
@swift-ci please smoke test Linux |
We are see test failures on nightly Windows bot: https://ci-external.swift.org/job/swift-main-windows-toolchain/1155/
|
We cross-compile the Swift runtime libs for the Android SDKs in the Windows toolchain. This patch adds a build step that runs non-executable tests for them.