-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Fix or suppress some noisy tests ποΈββοΈ #44444
Fix or suppress some noisy tests ποΈββοΈ #44444
Conversation
fd77d40
to
564a78e
Compare
Are you saying we should forgo printing the output from these tests? |
564a78e
to
f5ad556
Compare
The large majority of tests are silent, and that's good because when there is a problem it's easy to find in the log. Thanks for taming the stragglers! |
I worry that my comment about FORgoing the output was perhaps too subtle. |
Or should I say, FOURgoing? |
@timholy is this one noise? I'm guessing not because the test that should trigger that catches the log, so this seems like it's an error?
|
It is noise. That said, we could also remove the deliberately-errorring callback earlier in the test. See Lines 229 to 236 in b63ae3b
Line 735 in b63ae3b
You could Thanks again for doing this! |
8e262ed
to
4d1090a
Compare
Ok, I think this is ready to go. There's room for improvement in the way the logs are suppressed in Pidfile, as I ended up just using a NullLogger because I couldn't figure out which lines were causing the logs, such that a I marked this for 1.8 backport, but it will need manual intervention because Pidfile isn't on 1.8 |
I just found another case in LibGit2 where Base.runtests wasn't able to intercept the printing of testset reports because they were generated in a subprocess. Changing them to begin blocks is a simple fix, otherwise each test file would need to know how to suppress them. |
8b52814
to
02c5d1d
Compare
This has grown a bit and is now in a place where I believe all unnecessary noise is fixed or suppressed, with the help of:
Given its size I'd appreciate a review, so requested you @timholy if you don't mind |
(cherry picked from commit 7287e64)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for doing this, we'll all appreciate it.
(cherry picked from commit d971465)
This warning was un-ironically introduced by "Fix or suppress some noisy tests". ``` β Error: mktemp cleanup β exception = β IOError: unlink("C:\\Windows\\TEMP\\jl_A49B.tmp"): resource busy or locked (EBUSY) β Stacktrace: β [1] uv_error β @ .\libuv.jl:100 [inlined] β [2] unlink(p::String) β @ Base.Filesystem .\file.jl:968 β [3] rm(path::String; force::Bool, recursive::Bool) β @ Base.Filesystem .\file.jl:283 β [4] rm β @ .\file.jl:274 [inlined] β [5] mktemp(fn::Main.Test49Main_misc.var"#110#113", parent::String) β @ Base.Filesystem .\file.jl:736 β [6] mktemp(fn::Function) β @ Base.Filesystem .\file.jl:730 β [7] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\misc.jl:1065 [inlined] β [8] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\stdlib\v1.9\Test\src\Test.jl:1360 [inlined] β [9] top-level scope β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\misc.jl:1060 β [10] include β @ .\Base.jl:427 [inlined] β [11] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\testdefs.jl:24 [inlined] β [12] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\stdlib\v1.9\Test\src\Test.jl:1360 [inlined] β [13] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\testdefs.jl:23 [inlined] β [14] macro expansion β @ .\timing.jl:440 [inlined] β [15] runtests(name::String, path::String, isolate::Bool; seed::UInt128) β @ Main C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\testdefs.jl:21 β [16] invokelatest(::Any, ::Any, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, UInt128, Tuple{Symbol}, NamedTuple{(:seed,), Tuple{UInt128}}}) β @ Base .\essentials.jl:798 β [17] (::Distributed.var"#110#112"{Distributed.CallMsg{:call_fetch}})() β @ Distributed C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\stdlib\v1.9\Distributed\src\process_messages.jl:285 β [18] run_work_thunk(thunk::Distributed.var"#110#112"{Distributed.CallMsg{:call_fetch}}, print_error::Bool) β @ Distributed C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\stdlib\v1.9\Distributed\src\process_messages.jl:70 β [19] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\stdlib\v1.9\Distributed\src\process_messages.jl:285 [inlined] β [20] (::Distributed.var"#109#111"{Distributed.CallMsg{:call_fetch}, Distributed.MsgHeader, Sockets.TCPSocket})() β @ Distributed .\task.jl:490 β @ Base.Filesystem file.jl:738 ```
This warning was un-ironically introduced by "Fix or suppress some noisy tests". ``` β Error: mktemp cleanup β exception = β IOError: unlink("C:\\Windows\\TEMP\\jl_A49B.tmp"): resource busy or locked (EBUSY) β Stacktrace: β [1] uv_error β @ .\libuv.jl:100 [inlined] β [2] unlink(p::String) β @ Base.Filesystem .\file.jl:968 β [3] rm(path::String; force::Bool, recursive::Bool) β @ Base.Filesystem .\file.jl:283 β [4] rm β @ .\file.jl:274 [inlined] β [5] mktemp(fn::Main.Test49Main_misc.var"#110#113", parent::String) β @ Base.Filesystem .\file.jl:736 β [6] mktemp(fn::Function) β @ Base.Filesystem .\file.jl:730 β [7] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\misc.jl:1065 [inlined] β [8] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\stdlib\v1.9\Test\src\Test.jl:1360 [inlined] β [9] top-level scope β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\misc.jl:1060 β [10] include β @ .\Base.jl:427 [inlined] β [11] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\testdefs.jl:24 [inlined] β [12] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\stdlib\v1.9\Test\src\Test.jl:1360 [inlined] β [13] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\testdefs.jl:23 [inlined] β [14] macro expansion β @ .\timing.jl:440 [inlined] β [15] runtests(name::String, path::String, isolate::Bool; seed::UInt128) β @ Main C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\testdefs.jl:21 β [16] invokelatest(::Any, ::Any, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, UInt128, Tuple{Symbol}, NamedTuple{(:seed,), Tuple{UInt128}}}) β @ Base .\essentials.jl:798 β [17] (::Distributed.var"#110#112"{Distributed.CallMsg{:call_fetch}})() β @ Distributed C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\stdlib\v1.9\Distributed\src\process_messages.jl:285 β [18] run_work_thunk(thunk::Distributed.var"#110#112"{Distributed.CallMsg{:call_fetch}}, print_error::Bool) β @ Distributed C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\stdlib\v1.9\Distributed\src\process_messages.jl:70 β [19] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\stdlib\v1.9\Distributed\src\process_messages.jl:285 [inlined] β [20] (::Distributed.var"#109#111"{Distributed.CallMsg{:call_fetch}, Distributed.MsgHeader, Sockets.TCPSocket})() β @ Distributed .\task.jl:490 β @ Base.Filesystem file.jl:738 ```
This warning was un-ironically introduced by "Fix or suppress some noisy tests". ``` β Error: mktemp cleanup β exception = β IOError: unlink("C:\\Windows\\TEMP\\jl_A49B.tmp"): resource busy or locked (EBUSY) β Stacktrace: β [1] uv_error β @ .\libuv.jl:100 [inlined] β [2] unlink(p::String) β @ Base.Filesystem .\file.jl:968 β [3] rm(path::String; force::Bool, recursive::Bool) β @ Base.Filesystem .\file.jl:283 β [4] rm β @ .\file.jl:274 [inlined] β [5] mktemp(fn::Main.Test49Main_misc.var"#110#113", parent::String) β @ Base.Filesystem .\file.jl:736 β [6] mktemp(fn::Function) β @ Base.Filesystem .\file.jl:730 β [7] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\misc.jl:1065 [inlined] β [8] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\stdlib\v1.9\Test\src\Test.jl:1360 [inlined] β [9] top-level scope β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\misc.jl:1060 β [10] include β @ .\Base.jl:427 [inlined] β [11] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\testdefs.jl:24 [inlined] β [12] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\stdlib\v1.9\Test\src\Test.jl:1360 [inlined] β [13] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\testdefs.jl:23 [inlined] β [14] macro expansion β @ .\timing.jl:440 [inlined] β [15] runtests(name::String, path::String, isolate::Bool; seed::UInt128) β @ Main C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\testdefs.jl:21 β [16] invokelatest(::Any, ::Any, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, UInt128, Tuple{Symbol}, NamedTuple{(:seed,), Tuple{UInt128}}}) β @ Base .\essentials.jl:798 β [17] (::Distributed.var"#110#112"{Distributed.CallMsg{:call_fetch}})() β @ Distributed C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\stdlib\v1.9\Distributed\src\process_messages.jl:285 β [18] run_work_thunk(thunk::Distributed.var"#110#112"{Distributed.CallMsg{:call_fetch}}, print_error::Bool) β @ Distributed C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\stdlib\v1.9\Distributed\src\process_messages.jl:70 β [19] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\stdlib\v1.9\Distributed\src\process_messages.jl:285 [inlined] β [20] (::Distributed.var"#109#111"{Distributed.CallMsg{:call_fetch}, Distributed.MsgHeader, Sockets.TCPSocket})() β @ Distributed .\task.jl:490 β @ Base.Filesystem file.jl:738 ``` (cherry picked from commit d28a0dd)
This warning was un-ironically introduced by "Fix or suppress some noisy tests". ``` β Error: mktemp cleanup β exception = β IOError: unlink("C:\\Windows\\TEMP\\jl_A49B.tmp"): resource busy or locked (EBUSY) β Stacktrace: β [1] uv_error β @ .\libuv.jl:100 [inlined] β [2] unlink(p::String) β @ Base.Filesystem .\file.jl:968 β [3] rm(path::String; force::Bool, recursive::Bool) β @ Base.Filesystem .\file.jl:283 β [4] rm β @ .\file.jl:274 [inlined] β [5] mktemp(fn::Main.Test49Main_misc.var"#110#113", parent::String) β @ Base.Filesystem .\file.jl:736 β [6] mktemp(fn::Function) β @ Base.Filesystem .\file.jl:730 β [7] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\misc.jl:1065 [inlined] β [8] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\stdlib\v1.9\Test\src\Test.jl:1360 [inlined] β [9] top-level scope β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\misc.jl:1060 β [10] include β @ .\Base.jl:427 [inlined] β [11] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\testdefs.jl:24 [inlined] β [12] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\stdlib\v1.9\Test\src\Test.jl:1360 [inlined] β [13] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\testdefs.jl:23 [inlined] β [14] macro expansion β @ .\timing.jl:440 [inlined] β [15] runtests(name::String, path::String, isolate::Bool; seed::UInt128) β @ Main C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\testdefs.jl:21 β [16] invokelatest(::Any, ::Any, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, UInt128, Tuple{Symbol}, NamedTuple{(:seed,), Tuple{UInt128}}}) β @ Base .\essentials.jl:798 β [17] (::Distributed.var"#110#112"{Distributed.CallMsg{:call_fetch}})() β @ Distributed C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\stdlib\v1.9\Distributed\src\process_messages.jl:285 β [18] run_work_thunk(thunk::Distributed.var"#110#112"{Distributed.CallMsg{:call_fetch}}, print_error::Bool) β @ Distributed C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\stdlib\v1.9\Distributed\src\process_messages.jl:70 β [19] macro expansion β @ C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\stdlib\v1.9\Distributed\src\process_messages.jl:285 [inlined] β [20] (::Distributed.var"#109#111"{Distributed.CallMsg{:call_fetch}, Distributed.MsgHeader, Sockets.TCPSocket})() β @ Distributed .\task.jl:490 β @ Base.Filesystem file.jl:738 ``` (cherry picked from commit d28a0dd) Co-authored-by: Jameson Nash <[email protected]>
The noise from these in the CI logs seemed unnecessary