Commit Graph

9 Commits

Author SHA1 Message Date
Kavon Farvardin
646df735cf disabling flaky test to unblock CI
This Driver/lock_interface.swift test has been
spontaenously failing for the past few days.
I've decided to disable it until an investigation
and fix can happen.

rdar://82261445
2021-08-27 10:29:48 -07:00
Alexis Laferrière
daf9af43ac [Test] Make permission reset in lock_interface more reliable 2021-03-04 09:42:29 -08:00
Alexis Laferrière
09fd67e543 [Test] Fix flaky lock_interface test
Testing that the compiler rebuilds the same module more than once with
-disable-interface-lock was not reliable as some jobs could be executed
after the module was rebuilt. Just make sure the compiler accepts the
flag :/
2021-03-04 09:42:26 -08:00
Alexis Laferrière
2a1e5ed08f [Frontend] Lock the swiftmodule when rebuilding from the swiftinterface
When rebuilding a module interface from the textual interface, lock the
destination path of the created swiftmodule instead of the source
swiftinterface. The swiftinterface files are likely to be in the SDK and
may be on a read-only filesystem.

rdar://60247977
2021-03-02 11:04:00 -08:00
Rintaro Ishizaki
cf1ee044ef Disable a flaky test case
rdar://problem/59977439
2020-03-04 15:12:50 -08:00
Xi Ge
8c2a041822 Front-end: add an option to not lock interface file when building module
This could help fix a flaky test.

Related to: rdar://58578342
2020-02-25 12:13:14 -08:00
Xi Ge
e1f6e846ca Re-apply "ModuleInterface: lock .swiftinterface while generating module cache" 2020-01-10 12:25:15 -08:00
Mishal Shah
c769e491e2 Revert "ModuleInterface: lock .swiftinterface while generating module cache" 2020-01-09 22:54:41 -08:00
Xi Ge
8dda0193a6 ModuleInterface: lock .swiftinterface while generating module cache
This ensures only one process is generating module cache from an interface
file so that we don't blow up memory usage when multiple processes are
doing the same. The locking mechanism is similar to that of Clang's.

A better approach is that the build system takes care of the module building
step as a formal dependency.

rdar://52839445
2020-01-09 15:45:48 -08:00