@@ -11,31 +11,18 @@ open Utils
1111
1212let codebases =
1313 [
14- //@"$CODE_ROOT$\tests\FSharp.Compiler.ComponentTests", @"$CODE_ROOT$\tests\ParallelTypeCheckingTests\ComponentTests_args.txt"
15- //@"$CODE_ROOT$\src\compiler", @"$CODE_ROOT$\tests\ParallelTypeCheckingTests\Tests\FCSArgs.txt"
16- @" $CODE_ROOT$\src\compiler" , @" c:\projekty\fsharp\heuristic\tests\ParallelTypeCheckingTests\Tests\FCS.txt" , Some 360
1714 @" $CODE_ROOT$\src\compiler" , @" c:\projekty\fsharp\heuristic\tests\ParallelTypeCheckingTests\Tests\FCS.txt" , None
18- //@"$CODE_ROOT$\src\compiler", @"c:\projekty\fsharp\heuristic\tests\ParallelTypeCheckingTests\Tests\FCS_no_fsi.txt", Some 227
19- // @"$CODE_ROOT$\src\compiler", @"c:\projekty\fsharp\heuristic\tests\ParallelTypeCheckingTests\Tests\FCS.txt", Some 227
20- // @"$CODE_ROOT$\src\compiler", @"c:\projekty\fsharp\heuristic\tests\ParallelTypeCheckingTests\Tests\FCS.txt", Some 239
21- // @"$CODE_ROOT$\src\compiler", @"c:\projekty\fsharp\heuristic\tests\ParallelTypeCheckingTests\Tests\FCS.txt", Some 256
22- // @"$CODE_ROOT$\src\compiler", @"c:\projekty\fsharp\heuristic\tests\ParallelTypeCheckingTests\Tests\FCS.txt", Some 308
23- // @"$CODE_ROOT$\src\compiler", @"c:\projekty\fsharp\heuristic\tests\ParallelTypeCheckingTests\Tests\FCS.txt", Some 407
24- // @"$CODE_ROOT$\src\compiler", @"c:\projekty\fsharp\heuristic\tests\ParallelTypeCheckingTests\Tests\FCS.txt", Some 502
25- // // @"$CODE_ROOT$\src\compiler", @"$CODE_ROOT$\tests\ParallelTypeCheckingTests\Tests\FCS_323.txt"
26- // // @"$CODE_ROOT$\src\compiler", @"$CODE_ROOT$\tests\ParallelTypeCheckingTests\Tests\FCS_434.txt"
27- // @"$CODE_ROOT$\src\compiler", @"c:\projekty\fsharp\heuristic\tests\ParallelTypeCheckingTests\Tests\FCS.txt", None
2815 ]
2916
3017let configs =
31- [ Method.Sequential ; Method.ParallelFs ; Method. Graph; Method.Nojaf ]
18+ [ Method.Graph]
3219 |> List.allPairs codebases
3320 |> List.map ( fun (( workDir , path , lineLimit : int option ), method ) ->
3421 {
3522 Path = path
3623 LineLimit = lineLimit
3724 WorkingDir = Some workDir
38- Mode = method
25+ Method = method
3926 }
4027 )
4128
@@ -57,19 +44,20 @@ let setupArgsMethod (method: Method) (args: string[]): string[] =
5744 Array.append args [| " --test:ParallelCheckingWithSignatureFilesOn" |]
5845
5946let setupParsed config =
60- let { Path = path ; LineLimit = lineLimit ; Mode = mode ; WorkingDir = workingDir } = config
47+ let { Path = path ; LineLimit = lineLimit ; Method = method ; WorkingDir = workingDir } = config
6148 let args =
6249 System.IO.File.ReadAllLines( path |> replacePaths)
6350 |> fun lines -> match lineLimit with Some limit -> Array.take ( Math.Min( limit, lines.Length)) lines | None -> lines
6451 |> Array.map replacePaths
6552
6653 printfn $" WorkingDir = {workingDir}"
67- let args = setupArgsMethod mode args
54+ let args = setupArgsMethod method args
6855 workingDir |> Option.iter ( fun dir -> Environment.CurrentDirectory <- replaceCodeRoot dir)
6956 args
7057
7158[<TestCaseSource( nameof( configs)) >]
7259let TestCompilerFromArgs ( config : Args ) : unit =
60+ use _ = FSharp.Compiler.Diagnostics.Activity.start " Compile codebase" [ " method" , config.Method.ToString()]
7361 let oldWorkDir = Environment.CurrentDirectory
7462
7563 let exiter =
0 commit comments