Skip to content
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

EBUSY in Pkg tests on appveyor #27982

Closed
JeffBezanson opened this issue Jul 7, 2018 · 8 comments · Fixed by #27985 or #28030
Closed

EBUSY in Pkg tests on appveyor #27982

JeffBezanson opened this issue Jul 7, 2018 · 8 comments · Fixed by #27985 or #28030
Labels
domain:ci Continuous integration domain:packages Package management and loading kind:bug Indicates an unexpected problem or unintended behavior system:windows Affects only Windows test This change adds or pertains to unit tests

Comments

@JeffBezanson
Copy link
Sponsor Member

E.g. https://ci.appveyor.com/project/JuliaLang/julia/build/1.0.28603/job/9m2s936htgjishts

Error in testset Pkg/pkg:
Error During Test at C:\projects\julia\julia-394968b9cb\share\julia\stdlib\v0.7\Pkg\test\pkg.jl:335
  Got exception unlink: resource busy or locked (EBUSY) outside of a @test
  unlink: resource busy or locked (EBUSY)
  Stacktrace:
   [1] uv_error at .\libuv.jl:80 [inlined]
   [2] unlink(::String) at .\file.jl:715
   [3] #rm#9(::Bool, ::Bool, ::Function, ::String) at .\file.jl:253
   [4] #rm at .\none:0 [inlined]
   [5] #rm#9(::Bool, ::Bool, ::Function, ::String) at .\file.jl:263
   [6] #rm at .\none:0 [inlined]
   [7] #rm#9(::Bool, ::Bool, ::Function, ::String) at .\file.jl:263
   [8] #rm at .\none:0 [inlined]
   [9] mktempdir(::getfield(Main.Test82Main_Pkg_pkg.OperationsTest, Symbol("##51#57")), ::String) at .\file.jl:573
   [10] mktempdir at .\file.jl:567 [inlined]
   [11] #50 at C:\projects\julia\julia-394968b9cb\share\julia\stdlib\v0.7\Pkg\test\pkg.jl:349 [inlined]
   [12] cd(::getfield(Main.Test82Main_Pkg_pkg.OperationsTest, Symbol("##50#56")), ::String) at .\file.jl:85
   [13] macro expansion at C:\projects\julia\julia-394968b9cb\share\julia\stdlib\v0.7\Pkg\test\pkg.jl:1090 [inlined]
   [14] (::getfield(Main.Test82Main_Pkg_pkg.OperationsTest, Symbol("##49#54")))(::String) at C:\projects\julia\julia-394968b9cb\share\julia\stdlib\v0.7\Pkg\test\pkg.jl:336
   [15] #2 at C:\projects\julia\julia-394968b9cb\share\julia\stdlib\v0.7\Pkg\test\utils.jl:22 [inlined]
   [16] mktempdir(::getfield(Main.Test82Main_Pkg_pkg.OperationsTest, Symbol("##2#4")){String,getfield(Main.Test82Main_Pkg_pkg.OperationsTest, Symbol("##49#54"))}, ::String) at .\file.jl:569
   [17] mktempdir at .\file.jl:567 [inlined]
   [18] #1 at C:\projects\julia\julia-394968b9cb\share\julia\stdlib\v0.7\Pkg\test\utils.jl:19 [inlined]
   [19] mktempdir(::getfield(Main.Test82Main_Pkg_pkg.OperationsTest, Symbol("##1#3")){getfield(Main.Test82Main_Pkg_pkg.OperationsTest, Symbol("##49#54"))}, ::String) at .\file.jl:569
   [20] mktempdir at .\file.jl:567 [inlined]
   [21] temp_pkg_dir(::getfield(Main.Test82Main_Pkg_pkg.OperationsTest, Symbol("##49#54"))) at C:\projects\julia\julia-394968b9cb\share\julia\stdlib\v0.7\Pkg\test\utils.jl:18
@JeffBezanson JeffBezanson added kind:bug Indicates an unexpected problem or unintended behavior system:windows Affects only Windows test This change adds or pertains to unit tests domain:packages Package management and loading domain:ci Continuous integration labels Jul 7, 2018
@KristofferC
Copy link
Sponsor Member

Ill look at it.

@vtjnash
Copy link
Sponsor Member

vtjnash commented Jul 8, 2018

Note that the error message and stacktrace are wrong due to #27487, although it should be apparent still which block of tests are failing

@KristofferC
Copy link
Sponsor Member

This seems fixed now but these errors can sometimes be intermittent so we'll have to see if it comes back.

@KristofferC
Copy link
Sponsor Member

@diegozea
Copy link
Contributor

Hi! I'm getting this error using rm(...) in AppVeyor for Julia 0.6: https://ci.appveyor.com/project/diegozea/mitos-jl/branch/master/job/igtp4lq4qrgvo2rj

File input/output: Error During Test
  Got an exception of type Base.UVError outside of a @test
  unlink: resource busy or locked (EBUSY)
  Stacktrace:
   [1] uv_error at .\libuv.jl:68 [inlined]
   [2] unlink at .\file.jl:500
   [3] #rm#7(::Bool, ::Bool, ::Function, ::String) at .\file.jl:145
   [4] macro expansion at C:\Users\appveyor\.julia\v0.6\MIToS\test\MSA\IO.jl:249 [inlined]
   [5] macro expansion at .\test.jl:860 [inlined]

@c42f
Copy link
Member

c42f commented Sep 18, 2018

Just got EBUSY over at https://ci.appveyor.com/project/JuliaLang/julia/build/1.0.30766/job/wnxk1pxa27xte6un with mktempdir

┌ Error: mktempdir cleanup
│   exception =
│    IOError: unlink: resource busy or locked (EBUSY)
│    Stacktrace:
│     [1] uv_error at .\libuv.jl:85 [inlined]
│     [2] unlink(::String) at .\file.jl:722
│     [3] #rm#9(::Bool, ::Bool, ::Function, ::String) at .\file.jl:253
│     [4] #rm at .\none:0 [inlined]
│     [5] #rm#9(::Bool, ::Bool, ::Function, ::String) at .\file.jl:263
│     [6] #rm at .\none:0 [inlined]
│     [7] mktempdir(::getfield(Main.Test43Main_cmdlineargs, Symbol("##7#14")){Cmd}, ::String) at .\file.jl:580
│     [8] mktempdir(::Function) at .\file.jl:574
│     [9] top-level scope at C:\projects\julia\julia-fb05ce82ac\share\julia\test\cmdlineargs.jl:322
│     [10] include at .\boot.jl:317 [inlined]
│     [11] include_relative(::Module, ::String) at .\loading.jl:1041
│     [12] include at .\sysimg.jl:29 [inlined]
│     [13] include(::String) at C:\projects\julia\julia-fb05ce82ac\share\julia\test\testdefs.jl:13
│     [14] top-level scope at C:\projects\julia\julia-fb05ce82ac\share\julia\test\testdefs.jl:22
│     [15] top-level scope at C:\projects\julia\usr\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
│     [16] top-level scope at C:\projects\julia\julia-fb05ce82ac\share\julia\test\testdefs.jl:21
│     [17] top-level scope at util.jl:289
│     [18] top-level scope at C:\projects\julia\julia-fb05ce82ac\share\julia\test\testdefs.jl:19
│     [19] eval at .\boot.jl:319 [inlined]
│     [20] #runtests#3(::UInt128, ::Function, ::String, ::String, ::Bool) at C:\projects\julia\julia-fb05ce82ac\share\julia\test\testdefs.jl:25
│     [21] #runtests at .\none:0 [inlined] (repeats 2 times)
│     [22] (::getfield(Distributed, Symbol("##112#114")){Distributed.CallMsg{:call_fetch}})() at C:\projects\julia\usr\share\julia\stdlib\v1.1\Distributed\src\process_messages.jl:269
│     [23] run_work_thunk(::getfield(Distributed, Symbol("##112#114")){Distributed.CallMsg{:call_fetch}}, ::Bool) at C:\projects\julia\usr\share\julia\stdlib\v1.1\Distributed\src\process_messages.jl:56
│     [24] macro expansion at C:\projects\julia\usr\share\julia\stdlib\v1.1\Distributed\src\process_messages.jl:269 [inlined]
│     [25] (::getfield(Distributed, Symbol("##111#113")){Distributed.CallMsg{:call_fetch},Distributed.MsgHeader,Sockets.TCPSocket})() at .\task.jl:259
└ @ Base.Filesystem file.jl:582


[...]

Worker 11 failed running test spawn:
Some tests did not pass: 123 passed, 1 failed, 0 errored, 4 broken.spawn: Test Failed at C:\projects\julia\julia-fb05ce82ac\share\julia\test\spawn.jl:523
  Expression: occursin("Info: Hello", output)
Stacktrace:
 [1] record(::Test.DefaultTestSet, ::Test.Fail) at C:\projects\julia\usr\share\julia\stdlib\v1.1\Test\src\Test.jl:745
 [2] (::getfield(Main, Symbol("##42#48")))() at C:\projects\julia\julia-fb05ce82ac\share\julia\test\runtests.jl:237
 [3] cd(::getfield(Main, Symbol("##42#48")), ::String) at .\file.jl:85
 [4] top-level scope at none:0
 [5] include at .\boot.jl:317 [inlined]
 [6] include_relative(::Module, ::String) at .\loading.jl:1041
 [7] include(::Module, ::String) at .\sysimg.jl:29
 [8] exec_options(::Base.JLOptions) at .\client.jl:229
 [9] _start() at .\client.jl:421

[...]

Error in testset spawn:
Test Failed at C:\projects\julia\julia-fb05ce82ac\share\julia\test\spawn.jl:523
  Expression: occursin("Info: Hello", output)
ERROR: LoadError: Test run finished with errors
in expression starting at C:\projects\julia\julia-fb05ce82ac\share\julia\test\runtests.jl:61
      From worker 33:	ArgumentError: stream is closed or unusable

@vtjnash
Copy link
Sponsor Member

vtjnash commented Sep 18, 2018

@c42f that seems to be a new one. very cool that it happened on #28878 — I was about to comment here that I don't think we can trust that error message until we could repro it after #28878 got merged!

@c42f
Copy link
Member

c42f commented Sep 19, 2018

Good point Jameson. Though it's reoccurred after a CI restart which is mysterious - perhaps this is a true failure due to #28878 changes. Will restart CI again and then dig deeper if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:ci Continuous integration domain:packages Package management and loading kind:bug Indicates an unexpected problem or unintended behavior system:windows Affects only Windows test This change adds or pertains to unit tests
Projects
None yet
5 participants