Skip to content

Commit 31a4354

Browse files
authored
Disable transparent compiler tests (#16850)
1 parent f2fcad0 commit 31a4354

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

tests/FSharp.Compiler.ComponentTests/FSharpChecker/TransparentCompiler.fs

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ open OpenTelemetry.Trace
2828

2929
#nowarn "57"
3030

31-
[<Fact>]
31+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
3232
let ``Use Transparent Compiler`` () =
3333

3434
let size = 20
@@ -58,7 +58,7 @@ let ``Use Transparent Compiler`` () =
5858
checkFile last expectSignatureChanged
5959
}
6060

61-
[<Fact>]
61+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
6262
let ``Parallel processing`` () =
6363

6464
let project = SyntheticProject.Create(
@@ -76,7 +76,7 @@ let ``Parallel processing`` () =
7676
checkFile "E" expectSignatureChanged
7777
}
7878

79-
[<Fact>]
79+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
8080
let ``Parallel processing with signatures`` () =
8181

8282
let project = SyntheticProject.Create(
@@ -111,29 +111,29 @@ let makeTestProject () =
111111
let testWorkflow () =
112112
ProjectWorkflowBuilder(makeTestProject(), useTransparentCompiler = true)
113113

114-
[<Fact>]
114+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
115115
let ``Edit file, check it, then check dependent file`` () =
116116
testWorkflow() {
117117
updateFile "First" breakDependentFiles
118118
checkFile "First" expectSignatureChanged
119119
checkFile "Second" expectErrors
120120
}
121121

122-
[<Fact>]
122+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
123123
let ``Edit file, don't check it, check dependent file`` () =
124124
testWorkflow() {
125125
updateFile "First" breakDependentFiles
126126
checkFile "Second" expectErrors
127127
}
128128

129-
[<Fact>]
129+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
130130
let ``Check transitive dependency`` () =
131131
testWorkflow() {
132132
updateFile "First" breakDependentFiles
133133
checkFile "Last" expectSignatureChanged
134134
}
135135

136-
[<Fact>]
136+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
137137
let ``Change multiple files at once`` () =
138138
testWorkflow() {
139139
updateFile "First" (setPublicVersion 2)
@@ -142,7 +142,7 @@ let ``Change multiple files at once`` () =
142142
checkFile "Last" (expectSignatureContains "val f: x: 'a -> (ModuleFirst.TFirstV_2<'a> * ModuleSecond.TSecondV_2<'a>) * (ModuleFirst.TFirstV_2<'a> * ModuleThird.TThirdV_2<'a>) * TLastV_1<'a>")
143143
}
144144

145-
[<Fact>]
145+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
146146
let ``Files depend on signature file if present`` () =
147147
let project = makeTestProject() |> updateFile "First" addSignatureFile
148148

@@ -152,7 +152,7 @@ let ``Files depend on signature file if present`` () =
152152
checkFile "Second" expectNoChanges
153153
}
154154

155-
[<Fact>]
155+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
156156
let ``Project with signatures`` () =
157157

158158
let project = SyntheticProject.Create(
@@ -167,7 +167,7 @@ let ``Project with signatures`` () =
167167
checkFile "Second" expectOk
168168
}
169169

170-
[<Fact>]
170+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
171171
let ``Signature update`` () =
172172

173173
let project = SyntheticProject.Create(
@@ -183,22 +183,22 @@ let ``Signature update`` () =
183183
checkFile "Second" expectSignatureChanged
184184
}
185185

186-
[<Fact>]
186+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
187187
let ``Adding a file`` () =
188188
testWorkflow() {
189189
addFileAbove "Second" (sourceFile "New" [])
190190
updateFile "Second" (addDependency "New")
191191
checkFile "Last" (expectSignatureContains "val f: x: 'a -> (ModuleFirst.TFirstV_1<'a> * ModuleNew.TNewV_1<'a> * ModuleSecond.TSecondV_1<'a>) * (ModuleFirst.TFirstV_1<'a> * ModuleThird.TThirdV_1<'a>) * TLastV_1<'a>")
192192
}
193193

194-
[<Fact>]
194+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
195195
let ``Removing a file`` () =
196196
testWorkflow() {
197197
removeFile "Second"
198198
checkFile "Last" expectErrors
199199
}
200200

201-
[<Fact>]
201+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
202202
let ``Changes in a referenced project`` () =
203203
let library = SyntheticProject.Create("library", sourceFile "Library" [])
204204

@@ -217,7 +217,7 @@ let ``Changes in a referenced project`` () =
217217

218218
}
219219

220-
[<Fact>]
220+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
221221
let ``File is not checked twice`` () =
222222

223223
let cacheEvents = ConcurrentQueue()
@@ -241,7 +241,7 @@ let ``File is not checked twice`` () =
241241
Assert.Equal<JobEvent list>([Weakened; Requested; Started; Finished], intermediateTypeChecks["FileFirst.fs"])
242242
Assert.Equal<JobEvent list>([Weakened; Requested; Started; Finished], intermediateTypeChecks["FileThird.fs"])
243243

244-
[<Fact>]
244+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
245245
let ``If a file is checked as a dependency it's not re-checked later`` () =
246246
let cacheEvents = ConcurrentQueue()
247247

@@ -265,7 +265,7 @@ let ``If a file is checked as a dependency it's not re-checked later`` () =
265265
Assert.Equal<JobEvent list>([Weakened; Requested; Started; Finished; Requested], intermediateTypeChecks["FileThird.fs"])
266266

267267

268-
// [<Fact>] TODO: differentiate complete and minimal checking requests
268+
// [<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>] TODO: differentiate complete and minimal checking requests
269269
let ``We don't check files that are not depended on`` () =
270270
let project = SyntheticProject.Create(
271271
sourceFile "First" [],
@@ -295,7 +295,7 @@ let ``We don't check files that are not depended on`` () =
295295
Assert.Equal<JobEvent list>([Started; Finished], intermediateTypeChecks["FileThird.fs"])
296296
Assert.False (intermediateTypeChecks.ContainsKey "FileSecond.fs")
297297

298-
// [<Fact>] TODO: differentiate complete and minimal checking requests
298+
// [<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>] TODO: differentiate complete and minimal checking requests
299299
let ``Files that are not depended on don't invalidate cache`` () =
300300
let project = SyntheticProject.Create(
301301
sourceFile "First" [],
@@ -336,7 +336,7 @@ let ``Files that are not depended on don't invalidate cache`` () =
336336

337337
Assert.Equal<string * JobEvent list>([], intermediateTypeChecks |> Map.toList)
338338

339-
// [<Fact>] TODO: differentiate complete and minimal checking requests
339+
// [<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>] TODO: differentiate complete and minimal checking requests
340340
let ``Files that are not depended on don't invalidate cache part 2`` () =
341341
let project = SyntheticProject.Create(
342342
sourceFile "A" [],
@@ -376,7 +376,7 @@ let ``Files that are not depended on don't invalidate cache part 2`` () =
376376
Assert.Equal<string * JobEvent list>(["FileE.fs", [Started; Finished]], graphConstructions)
377377
Assert.Equal<string * JobEvent list>(["FileE.fs", [Started; Finished]], intermediateTypeChecks)
378378

379-
[<Fact>]
379+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
380380
let ``Changing impl files doesn't invalidate cache when they have signatures`` () =
381381
let project = SyntheticProject.Create(
382382
{ sourceFile "A" [] with SignatureFile = AutoGenerated },
@@ -405,7 +405,7 @@ let ``Changing impl files doesn't invalidate cache when they have signatures`` (
405405

406406
Assert.Equal<string * JobEvent list>([], intermediateTypeChecks)
407407

408-
[<Fact>]
408+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
409409
let ``Changing impl file doesn't invalidate an in-memory referenced project`` () =
410410
let library = SyntheticProject.Create("library", { sourceFile "A" [] with SignatureFile = AutoGenerated })
411411

@@ -789,7 +789,7 @@ module Stuff =
789789
let fileName, snapshot, checker = singleFileChecker source
790790
checker.ParseFile(fileName, snapshot) |> Async.RunSynchronously
791791

792-
//[<Fact>]
792+
//[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
793793
let ``Hash stays the same when whitespace changes`` () =
794794

795795
//let parseResult = getParseResult source
@@ -845,7 +845,7 @@ let ``TypeCheck last file in project with transparent compiler`` useTransparentC
845845
checkFile lastFile expectOk
846846
}
847847

848-
[<Fact>]
848+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
849849
let ``LoadClosure for script is computed once`` () =
850850
let project = SyntheticProject.CreateForScript(
851851
sourceFile "First" [])
@@ -870,7 +870,7 @@ let ``LoadClosure for script is computed once`` () =
870870

871871
Assert.Empty(closureComputations)
872872

873-
[<Fact>]
873+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
874874
let ``LoadClosure for script is recomputed after changes`` () =
875875
let project = SyntheticProject.CreateForScript(
876876
sourceFile "First" [])
@@ -899,7 +899,7 @@ let ``LoadClosure for script is recomputed after changes`` () =
899899

900900
Assert.Equal<JobEvent list>([Weakened; Requested; Started; Finished; Weakened; Requested; Started; Finished], closureComputations["FileFirst.fs"])
901901

902-
[<Fact>]
902+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
903903
let ``TryGetRecentCheckResultsForFile returns None before first call to ParseAndCheckFileInProject`` () =
904904
let project = SyntheticProject.Create(
905905
sourceFile "First" [])
@@ -909,7 +909,7 @@ let ``TryGetRecentCheckResultsForFile returns None before first call to ParseAnd
909909
tryGetRecentCheckResults "First" expectNone
910910
} |> ignore
911911

912-
[<Fact>]
912+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
913913
let ``TryGetRecentCheckResultsForFile returns result after first call to ParseAndCheckFileInProject`` () =
914914
let project = SyntheticProject.Create(
915915
sourceFile "First" [] )
@@ -918,7 +918,7 @@ let ``TryGetRecentCheckResultsForFile returns result after first call to ParseAn
918918
tryGetRecentCheckResults "First" expectSome
919919
} |> ignore
920920

921-
[<Fact>]
921+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
922922
let ``TryGetRecentCheckResultsForFile returns no result after edit`` () =
923923
let project = SyntheticProject.Create(
924924
sourceFile "First" [])
@@ -931,7 +931,7 @@ let ``TryGetRecentCheckResultsForFile returns no result after edit`` () =
931931
tryGetRecentCheckResults "First" expectSome
932932
} |> ignore
933933

934-
[<Fact>]
934+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
935935
let ``TryGetRecentCheckResultsForFile returns result after edit of other file`` () =
936936
let project = SyntheticProject.Create(
937937
sourceFile "First" [],
@@ -945,7 +945,7 @@ let ``TryGetRecentCheckResultsForFile returns result after edit of other file``
945945
tryGetRecentCheckResults "Second" expectSome // file didn't change so we still want to get the recent result
946946
} |> ignore
947947

948-
[<Fact>]
948+
[<Fact(Skip="Flaky. See https://github.com/dotnet/fsharp/issues/16766")>]
949949
let ``Background compiler and Transparent compiler return the same options`` () =
950950
async {
951951
let backgroundChecker = FSharpChecker.Create(useTransparentCompiler = false)

0 commit comments

Comments
 (0)