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

[🐞]DIVAnd test errored during Pkg.test("DVAnd") #145

Closed
Fanningjin opened this issue Nov 18, 2024 · 4 comments
Closed

[🐞]DIVAnd test errored during Pkg.test("DVAnd") #145

Fanningjin opened this issue Nov 18, 2024 · 4 comments
Assignees

Comments

@Fanningjin
Copy link

Environment

  • Julia version: 1.11.1
  • DIVAnd version: 2.7.12
  • Operating system: Windows 11

Describe the bug
After running the test I get the following.

DIVAnd: Error During Test at C:\Users\Lenovo\.julia\packages\DIVAnd\4UymR\test\runtests.jl:12
  Got exception outside of a @test
  LoadError: RequestError: Failed to connect to dox.ulg.ac.be port 443 after 21125 ms: Couldn't connect to server while requesting https://dox.ulg.ac.be/index.php/s/PztJfSEnc8Cr3XN/download
  Stacktrace:
    [1] (::Downloads.var"#9#19"{IOStream, Base.DevNull, Nothing, Vector{Pair{String, String}}, Float64, Nothing, Bool, Nothing, Bool, Nothing, String, Bool, Bool})(easy::Downloads.Curl.Easy)
      @ Downloads C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Downloads\src\Downloads.jl:452
    [2] with_handle(f::Downloads.var"#9#19"{IOStream, Base.DevNull, Nothing, Vector{Pair{String, String}}, Float64, Nothing, Bool, Nothing, Bool, Nothing, String, Bool, Bool}, handle::Downloads.Curl.Easy)
      @ Downloads.Curl C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Downloads\src\Curl\Curl.jl:105
    [3] #8
      @ C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Downloads\src\Downloads.jl:363 [inlined]
    [4] arg_write(f::Downloads.var"#8#18"{Base.DevNull, Nothing, Vector{Pair{String, String}}, Float64, Nothing, Bool, Nothing, Bool, Nothing, String, Bool, Bool}, arg::IOStream)
      @ ArgTools C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\ArgTools\src\ArgTools.jl:134
    [5] #7
      @ C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Downloads\src\Downloads.jl:362 [inlined]
    [6] arg_read
      @ C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\ArgTools\src\ArgTools.jl:76 [inlined]
    [7] request(url::String; input::Nothing, output::IOStream, method::Nothing, headers::Vector{Pair{String, String}}, timeout::Float64, progress::Nothing, verbose::Bool, debug::Nothing, throw::Bool, downloader::Nothing, interrupt::Nothing)
      @ Downloads C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Downloads\src\Downloads.jl:361
    [8] request
      @ C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Downloads\src\Downloads.jl:328 [inlined]
    [9] #3
      @ C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Downloads\src\Downloads.jl:259 [inlined]
   [10] arg_write(f::Downloads.var"#3#4"{Nothing, Vector{Pair{String, String}}, Float64, Nothing, Bool, Nothing, Nothing, String}, arg::Nothing)
      @ ArgTools C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\ArgTools\src\ArgTools.jl:123
   [11] #download#2
      @ C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Downloads\src\Downloads.jl:258 [inlined]
   [12] download
      @ C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Downloads\src\Downloads.jl:247 [inlined]
   [13] download(url::String)
      @ Downloads C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Downloads\src\Downloads.jl:247
   [14] top-level scope
      @ C:\Users\Lenovo\.julia\packages\DIVAnd\4UymR\test\test_average_background_profile.jl:25
   [15] include(fname::String)
      @ Main .\sysimg.jl:38
   [16] macro expansion
      @ C:\Users\Lenovo\.julia\packages\DIVAnd\4UymR\test\runtests.jl:85 [inlined]
   [17] macro expansion
      @ C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Test\src\Test.jl:1700 [inlined]
   [18] top-level scope
      @ C:\Users\Lenovo\.julia\packages\DIVAnd\4UymR\test\runtests.jl:13
   [19] include(fname::String)
      @ Main .\sysimg.jl:38
   [20] top-level scope
      @ none:6
   [21] eval
      @ .\boot.jl:430 [inlined]
   [22] exec_options(opts::Base.JLOptions)
      @ Base .\client.jl:296
   [23] _start()
      @ Base .\client.jl:531
  in expression starting at C:\Users\Lenovo\.julia\packages\DIVAnd\4UymR\test\test_average_background_profile.jl:23
Test Summary: | Pass  Error  Total     Time
DIVAnd        |  245      1    246  3m30.9s
ERROR: LoadError: Some tests did not pass: 245 passed, 0 failed, 1 errored, 0 broken.
in expression starting at C:\Users\Lenovo\.julia\packages\DIVAnd\4UymR\test\runtests.jl:12
ERROR: Package DIVAnd errored during testing
Stacktrace:
 [1] pkgerror(msg::String)
   @ Pkg.Types C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Pkg\src\Types.jl:68
 [2] test(ctx::Pkg.Types.Context, pkgs::Vector{…}; coverage::Bool, julia_args::Cmd, test_args::Cmd, test_fn::Nothing, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool)
   @ Pkg.Operations C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Pkg\src\Operations.jl:2104
 [3] test
   @ C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Pkg\src\Operations.jl:1989 [inlined]
 [4] test(ctx::Pkg.Types.Context, pkgs::Vector{…}; coverage::Bool, test_fn::Nothing, julia_args::Cmd, test_args::Cmd, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool, kwargs::@Kwargs{})
   @ Pkg.API C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Pkg\src\API.jl:475
 [5] test(pkgs::Vector{Pkg.Types.PackageSpec}; io::IOContext{IO}, kwargs::@Kwargs{})
   @ Pkg.API C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Pkg\src\API.jl:159
 [6] test(pkgs::Vector{Pkg.Types.PackageSpec})
   @ Pkg.API C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Pkg\src\API.jl:148
 [7] test
   @ C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Pkg\src\API.jl:147 [inlined]
 [8] test(pkg::String)
   @ Pkg.API C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Pkg\src\API.jl:146
 [9] top-level scope
   @ REPL[32]:1
Some type information was truncated. Use `show(err)` to see complete types.

julia> show(err)
1-element ExceptionStack:
Package DIVAnd errored during testing
Stacktrace:
 [1] pkgerror(msg::String)
   @ Pkg.Types C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Pkg\src\Types.jl:68
 [2] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, julia_args::Cmd, test_args::Cmd, test_fn::Nothing, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool)
   @ Pkg.Operations C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Pkg\src\Operations.jl:2104
 [3] test
   @ C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Pkg\src\Operations.jl:1989 [inlined]
 [4] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, test_fn::Nothing, julia_args::Cmd, test_args::Cmd, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool, kwargs::@Kwargs{io::IOContext{IO}})
   @ Pkg.API C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Pkg\src\API.jl:475
 [5] test(pkgs::Vector{Pkg.Types.PackageSpec}; io::IOContext{IO}, kwargs::@Kwargs{})
   @ Pkg.API C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Pkg\src\API.jl:159
 [6] test(pkgs::Vector{Pkg.Types.PackageSpec})
   @ Pkg.API C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Pkg\src\API.jl:148
 [7] test
   @ C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Pkg\src\API.jl:147 [inlined]
 [8] test(pkg::String)
   @ Pkg.API C:\Users\Lenovo\AppData\Local\Programs\Julia-1.11.1\share\julia\stdlib\v1.11\Pkg\src\API.jl:146
 [9] top-level scope
   @ REPL[32]:1

I browsed through other people's failure messages and didn't seem to find a similar error, I tried the following code and retested it afterward and still got the error, I also tried updating and uninstalling and reinstalling, both with the same result.

Besides, the previous message shows that these 3 packages that have not been updated to the latest version,
1
2

 Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading.

based on other issues, I ran the following code and it shows the following.

]add Expronicon
using Expronicon
]add Nettle_jll
using Nettle_jll
]add OpenMPI_jll
using OpenMPI_jll

but the results show that "no changes",and it remains the version as before.

Or is it possible to ignore this error, because it's an error not a fail?

I apologize if the question is stupid , I'm new to julia and DIVAnd, I'm really confused now.

If you know why please let me know.

Many thanks.

Jin

@ctroupin
Copy link
Member

Dear Jin,
thanks for the complete bug report.

From the error messages I believe the error can be ignored, it looks like that a data file data we use for the testing of code could not be downloaded, though it is not clear why. I don't think it is related to the packages that can be updated.

I've tested now and the file was available, so maybe it was an issue with the cloud service where the file is hosted.
Could you try again to run the test?

Thanks

@ctroupin ctroupin self-assigned this Nov 18, 2024
@Fanningjin
Copy link
Author

Dear ctroupin,

Thanks for your advice. I just tested it again, and the result is still the same. Maybe it's because of the internet, since I'm in China.

And thank you for replying so promptly, it helps me a lot and I can continue to do my research. : )

I'll close this issue after a day or two to see if there are any other people's suggestions.

@ctroupin
Copy link
Member

You're welcome!

And thank you for replying so promptly, it helps me a lot and I can continue to do my research. : )

Yes it is possible that it is due to the internet; we host the test files not on github because it's quite big overall, hopefully the code can work without problem.

@Fanningjin
Copy link
Author

I hope so too! : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants