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

AssertionError: (Base.JLOptions()).depwarn == 1 when we run the Pkg tests with Base.runtests(["Pkg"]) #2817

Closed
DilumAluthge opened this issue Nov 1, 2021 · 1 comment · Fixed by #2818
Labels
bug CI continuous integration

Comments

@DilumAluthge
Copy link
Member

ERROR: LoadError: AssertionError: (Base.JLOptions()).depwarn == 1
Stacktrace:
 [1] top-level scope
   @ /tmp/jl_kJ4snX/TestArguments/test/runtests.jl:4
 [2] include(fname::String)
   @ Base.MainInclude ./client.jl:451
 [3] top-level scope
   @ none:6
in expression starting at /tmp/jl_kJ4snX/TestArguments/test/runtests.jl:4

The full Buildkite log is here: https://buildkite.com/julialang/julia-master/builds/5345#6729df4a-5129-4510-a957-940bc1ed473c

This is a Buildkite job triggered on the following pull request: JuliaLang/julia#42885

@DilumAluthge DilumAluthge added bug CI continuous integration labels Nov 1, 2021
@DilumAluthge DilumAluthge changed the title On Buildkite, it is not the case that (Base.JLOptions()).depwarn == 1 AssertionError: (Base.JLOptions()).depwarn == 1 when we run the Pkg tests with Base.runtests(["Pkg"]) Nov 1, 2021
@DilumAluthge
Copy link
Member Author

DilumAluthge commented Nov 1, 2021

I think the reason for this is that the Base.runtests function sets the --depwarn=error function: https://github.com/JuliaLang/julia/blob/6c274ed43d9e77606017d7ea4866ba914b4c4f5b/test/testenv.jl#L19

If Julia is started with --depwarn=error, then (Base.JLOptions()).depwarn will be 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug CI continuous integration
Projects
None yet
1 participant