Skip to content

sourcekitd does not use the same module cache as the compiler on Windows #86930

@hnrklssn

Description

@hnrklssn

Description

While updating test/SourceKit/Misc/match-module-cache-with-compiler.swift to support lit's internal shell in #86497, it was discovered that the test would still fail on Windows, with two different versions of the same module cached:

T:\PythonAMD64-3.10.1\tools\python.exe C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\swift\utils\find_files T:\5\tools\swift\test-windows-x86_64\SourceKit\Misc\Output\match-module-cache-with-compiler.swift.tmp\mcp 'mymod-*.pcm'
# executed command: 'T:\PythonAMD64-3.10.1\tools\python.exe' 'C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\swift\utils\find_files' 'T:\5\tools\swift\test-windows-x86_64\SourceKit\Misc\Output\match-module-cache-with-compiler.swift.tmp\mcp' 'mymod-*.pcm'
# .---command stdout------------
# | T:\5\tools\swift\test-windows-x86_64\SourceKit\Misc\Output\match-module-cache-with-compiler.swift.tmp\mcp\38FPXZKVUOEK1\mymod-8AB50BUA7E9R.pcm
# | T:\5\tools\swift\test-windows-x86_64\SourceKit\Misc\Output\match-module-cache-with-compiler.swift.tmp\mcp\D1G12H4QWQN5\mymod-8AB50BUA7E9R.pcm
# `-----------------------------

For now the test is disabled on Windows.

Reproduction

Remove // REQUIRES: windows-msvc from test/SourceKit/Misc/match-module-cache-with-compiler.swift

Expected behavior

the test should behave the same on Windows

Environment

swift-ci Windows container

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    SourceKitArea → source tooling: SourceKitWindowsPlatform: Windowssource toolingArea: IDE support, SourceKit, and other source toolingtest failuretest suiteArea: test suite

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions