Fix tests on Windows CI with VS2022 #66510
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While trying the migrate the CI to VS2022, some tests are failing. See https://ci-external.swift.org/job/win64-vs2022/1765/console
test/Driver/Dependencies/one-way-merge-module-fine.swift
: is using bash file path wildcard syntax which is unreliable on Windows. We use bash from the git installation and it appears that not all versions will support this syntax. The fix is to expand them.test/ModuleInterface/ModuleCache/prefer-local-module-to-sdk-framework.swift
: is using extra long paths. The VS2022 CI is using a more recent version of Python whereos.path.realpath
expands substitute drives, which we were using to avoid running intoMAX_PATH
limitations. We may need to address this inlit.py
but for here we can at least shorten some paths to see if we hit further issues.