-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing test timeouts #1663
Fixing test timeouts #1663
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1663 +/- ##
===========================================
+ Coverage 68.49% 79.56% +11.06%
===========================================
Files 26 23 -3
Lines 1479 1414 -65
===========================================
+ Hits 1013 1125 +112
+ Misses 466 289 -177
Continue to review full report at Codecov.
|
@yebai @mohamed82008 @devmotion you guys got a clue? |
I figured out the issue @yebai : deprecations are slow. With julia> using Distributions, BenchmarkTools
julia> @benchmark $(MvNormal)($(zeros(1)), $(ones(1)))
┌ Warning: `MvNormal(μ::AbstractVector{<:Real}, σ::AbstractVector{<:Real})` is deprecated, use `MvNormal(μ, Diagonal(map(abs2, σ)))` instead.
│ caller = ip:0x0
└ @ Core :-1
BenchmarkTools.Trial:
memory estimate: 27.44 KiB
allocs estimate: 363
--------------
minimum time: 64.617 ms (0.00% GC)
median time: 67.703 ms (0.00% GC)
mean time: 68.065 ms (0.00% GC)
maximum time: 85.660 ms (0.00% GC)
--------------
samples: 74
evals/sample: 1 without julia> @benchmark $(MvNormal)($(zeros(1)), $(ones(1)))
BenchmarkTools.Trial:
memory estimate: 192 bytes
allocs estimate: 2
--------------
minimum time: 81.207 ns (0.00% GC)
median time: 84.698 ns (0.00% GC)
mean time: 96.957 ns (10.22% GC)
maximum time: 3.617 μs (96.73% GC)
--------------
samples: 10000
evals/sample: 962 |
That's a bit surprising - does disable deprecations messages fix the time outs? |
Yes, that's what the above is showing. So endusers won't see any issues when running their models because |
Distributions@0.12.11 makes tests grind to a halt. I still don't know why, but it's undoubtably related to
MvNormal
. I'm struggling to figure out exactly where things go wrong, but I've noticed the following:--depwarn=yes
.model()
, is fine, but sampling causes it to halt.depwarn=yes
: