Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
31ee3a4
relax indentations
dsyme Mar 9, 2019
3fb2e72
fix baseline
dsyme Mar 9, 2019
d1b1389
add diagnostics
dsyme Mar 10, 2019
0f89711
add diagnostics
dsyme Mar 10, 2019
7da6aff
diagnostics
dsyme Mar 11, 2019
871489b
diagnostics
dsyme Mar 11, 2019
27d00a0
diagnostics
dsyme Mar 11, 2019
7d98d16
add diagnostics and possible fix for tp smoke tests
dsyme Mar 11, 2019
cc6e992
fix build
dsyme Mar 11, 2019
e13b385
fix build
dsyme Mar 11, 2019
8832b48
Merge branch 'diag4' into indents5
dsyme Mar 11, 2019
ce0961e
more diagnostics
dsyme Mar 11, 2019
2bb15ce
integrate master
dsyme Mar 11, 2019
5111d4e
Merge branch 'master' of http://github.com/Microsoft/visualfsharp int…
dsyme Mar 11, 2019
51e2012
try to fix flaky test
dsyme Mar 12, 2019
1b12929
Update neg77.fsx
dsyme Mar 12, 2019
26e05dd
fix build
dsyme Mar 12, 2019
434810a
try to fix dodgy test
dsyme Mar 13, 2019
71f51b9
Merge branch 'diag4' into indents5
dsyme Mar 13, 2019
cbd1cf9
Merge branch 'master' of http://github.com/Microsoft/visualfsharp int…
dsyme Mar 13, 2019
49ad748
Merge branch 'indents5' of https://github.com/dsyme/visualfsharp into…
dsyme Mar 13, 2019
9aad485
Merge branch 'master' of http://github.com/Microsoft/visualfsharp int…
dsyme Mar 20, 2019
c921eff
Merge branch 'master' of https://github.com/Microsoft/visualfsharp in…
dsyme Mar 21, 2019
c6b1c8c
merge master
dsyme Mar 26, 2019
7b00422
Merge branch 'master' of http://github.com/Microsoft/visualfsharp int…
dsyme Apr 1, 2019
44790ee
Merge branch 'master' of http://github.com/Microsoft/visualfsharp int…
dsyme Apr 14, 2019
7651e86
Merge branch 'master' of http://github.com/Microsoft/visualfsharp int…
dsyme Apr 16, 2019
705f5d8
Merge branch 'master' of http://github.com/Microsoft/visualfsharp int…
dsyme May 22, 2019
7c3b250
Merge pull request #6826 from dotnet/merges/master-to-feature/relax-i…
May 23, 2019
0325034
Fix unused opens false positive for record fields (#6846)
auduchinok May 24, 2019
4f50cd6
add CI leg to verify assemblies aren't unnecessarily being rebuilt (#…
brettfo May 24, 2019
25560f4
Removing option from Tuple active pattern (#6772)
fangyi-zhou May 24, 2019
d257c8f
Merge pull request #6839 from dotnet/merges/master-to-feature/relax-i…
May 24, 2019
73869ce
Merge pull request #6857 from dotnet/merges/master-to-feature/relax-i…
May 25, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,10 @@ type CancellationType() =
} |> Async.Start

try
let res = t.Wait(1000)
Assert.Fail (sprintf "Excepted TimeoutException wrapped in an AggregateException, but got %A" res)
let res = t.Wait(2000)
let msg = sprintf "Excepted TimeoutException wrapped in an AggregateException, but got %A" res
printfn "failure msg: %s" msg
Assert.Fail (msg)
with :? AggregateException as agg -> ()

[<Test>]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ module GlobalCounters =
let AddConfig c = lock counterLock (fun () -> configs <- c :: configs)
let GetConfigs() = lock counterLock (fun () -> configs)
let CheckAllConfigsDisposed() =
for c in GetConfigs() do
let cs = GetConfigs()
lock counterLock (fun () ->
configs <- [])
for c in cs do
try
c.SystemRuntimeContainsType("System.Object") |> ignore
failwith "expected configuration object to be disposed"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1623,28 +1623,44 @@ type UsingMSBuild() as this =
let file1 = OpenFile(project,fileName)

// The disposals should be at least one less
Assert.IsTrue(countDisposals() < i, "Check1, countDisposals() < i, iteration " + string i)
let c = countCreations()
let d = countDisposals()
Assert.IsTrue(c >= countDisposals(), "Check2, countCreations() >= countDisposals(), iteration " + string i + ", countCreations() = " + string c + ", countDisposals() = " + string d)
Assert.IsTrue((c = i), "Check3, countCreations() = i, iteration " + string i + ", countCreations() = " + string c)

// Creations should always be greater or equal to disposals
Assert.IsTrue(c >= d, "Check2, countCreations() >= countDisposals(), iteration " + string i + ", countCreations() = " + string c + ", countDisposals() = " + string d)

// Creations can run ahead of iterations if the background checker resurrects the builder for a project
// even after we've moved on from it.
Assert.IsTrue((c >= i), "Check3, countCreations() >= i, iteration " + string i + ", countCreations() = " + string c)

if not clearing then
// By default we hold 3 build incrementalBuilderCache entries and 5 typeCheckInfo entries, so if we're not clearing
// there should be some roots to project builds still present
if i >= 3 then
Assert.IsTrue(i >= countDisposals() + 3, "Check4a, i >= countDisposals() + 3, iteration " + string i + ", i = " + string i + ", countDisposals() = " + string (countDisposals()))
Assert.IsTrue(c >= d + 3, "Check4a, c >= countDisposals() + 3, iteration " + string i + ", i = " + string i + ", countDisposals() = " + string d)
printfn "Check4a2, i = %d, countInvaldiationHandlersRemoved() = %d" i (countInvaldiationHandlersRemoved())

// If we forcefully clear out caches and force a collection, then we can say much stronger things...
if clearing then
ClearLanguageServiceRootCachesAndCollectAndFinalizeAllTransients(this.VS)
Assert.IsTrue((i = countDisposals()), "Check4b, countCreations() = countDisposals(), iteration " + string i)
Assert.IsTrue(countInvaldiationHandlersAdded() - countInvaldiationHandlersRemoved() = 0, "Check4b2, all invlidation handlers removed, iteration " + string i)
let c = countCreations()
let d = countDisposals()

// Creations should be equal to disposals after a `ClearLanguageServiceRootCachesAndCollectAndFinalizeAllTransients`
Assert.IsTrue((c = d), "Check4b, countCreations() = countDisposals(), iteration " + string i)
Assert.IsTrue((countInvaldiationHandlersAdded() = countInvaldiationHandlersRemoved()), "Check4b2, all invlidation handlers removed, iteration " + string i)

Assert.IsTrue(countCreations() = 50, "Check5, at end, countCreations() = 50")
let c = countCreations()
let d = countDisposals()
Assert.IsTrue(c >= 50, "Check5, at end, countCreations() >= 50")

ClearLanguageServiceRootCachesAndCollectAndFinalizeAllTransients(this.VS)
Assert.IsTrue(countDisposals() = 50, "Check6b, at end, countDisposals() = 50 after explicit clearing")
Assert.IsTrue(countInvaldiationHandlersAdded() - countInvaldiationHandlersRemoved() = 0, "Check6b2, at end, all invalidation handlers removed after explicit cleraring")

let c = countCreations()
let d = countDisposals()
// Creations should be equal to disposals after a `ClearLanguageServiceRootCachesAndCollectAndFinalizeAllTransients`
Assert.IsTrue((c = d), "Check6b, at end, countCreations() = countDisposals() after explicit clearing")
Assert.IsTrue((countInvaldiationHandlersAdded() = countInvaldiationHandlersRemoved()), "Check6b2, at end, all invalidation handlers removed after explicit cleraring")
checkConfigsDisposed()

[<Test;Category("TypeProvider"); Category("Expensive")>]
Expand Down