swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.69k stars 10.39k forks source link

[SR-15869] Inconsistent test `ModuleInterface/ModuleCache/module-cache-diagnostics.swift` on Windows #58134

Open xymus opened 2 years ago

xymus commented 2 years ago
Previous ID SR-15869
Radar rdar://88830153
Original Reporter @xymus
Type Bug
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 665b80794b6d57d53305b74135994dd7

Issue Description:

The test at `test/ModuleInterface/ModuleCache/module-cache-diagnostics.swift` fails about once every 10 runs on a missing expected error:

```
// CHECK-ERROR: module-cache-diagnostics.swift:{{[0-9]+}}:8: error: failed to build module 'OtherModule' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
```

The same error appears to be shown on a swiftinterface instead of the test .swift file. This could be caused by a change in build order somehow.

https://ci-external.swift.org/job/swift-PR-windows/20645

xymus commented 2 years ago

Disabling on Windows in https://github.com/apple/swift/pull/41372.

@compnerd do you want to take a look? Did something change in build ordering or file management on Windows in the last month or so that could explain this?