Skip to content

1.10.0-DEV.1432 testall throws "Load error: no active project" in Pkg and SparseArrays #50055

@George9000

Description

@George9000

This is with an isolated DEPOT_PATH during build and testing.
Replicated outside of testall during gmake test-Pkg and test-SparseArrays

Error at ff23b37 is new since d2f5bbd

test summary
julia> versioninfo()
Julia Version 1.10.0-DEV.1432
Commit ff23b3769f (2023-06-04 01:27 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin21.6.0)
  CPU: 10 × Apple M1 Max
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, apple-m1)
  Threads: 5 on 8 virtual cores
Environment:
  JULIA_NUM_THREADS = 4
  JULIA_DEPOT_PATH = /Users/foo/applications/juliabuild

Error in testset SparseArrays/ambiguous:

Error During Test at /Users/foo/applications/julia/test/testdefs.jl:21
  Got exception outside of a @test
  LoadError: no active project

  Stacktrace:
    [1] pkgerror(msg::String)
      @ Pkg.Types ~/applications/julia/usr/share/julia/stdlib/v1.10/Pkg/src/Types.jl:69
    [2] find_project_file(env::Nothing)
      @ Pkg.Types ~/applications/julia/usr/share/julia/stdlib/v1.10/Pkg/src/Types.jl:209
    [3] Pkg.Types.EnvCache(env::Nothing)
      @ Pkg.Types ~/applications/julia/usr/share/julia/stdlib/v1.10/Pkg/src/Types.jl:345
    [4] Pkg.Types.EnvCache(env::Union{Nothing, String})
      @ Pkg.Types ~/applications/julia/usr/share/julia/stdlib/v1.10/Pkg/src/Types.jl:345 [inlined]
    [5] Context
      @ Pkg.Types ~/applications/julia/usr/share/julia/stdlib/v1.10/Pkg/src/Types.jl:395 [inlined]
    [6] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::IOBuffer, kwargs::@Kwargs{})
      @ Pkg.API ~/applications/julia/usr/share/julia/stdlib/v1.10/Pkg/src/API.jl:147
    [7] add(pkgs::Vector{String}; kwargs::@Kwargs{io::IOBuffer})
      @ Pkg.API ~/applications/julia/usr/share/julia/stdlib/v1.10/Pkg/src/API.jl:144 [inlined]
    [8] add(pkg::String; kwargs::@Kwargs{io::IOBuffer})
      @ Pkg.API ~/applications/julia/usr/share/julia/stdlib/v1.10/Pkg/src/API.jl:143 [inlined]
    [9] top-level scope
      @ ~/applications/julia/usr/share/julia/stdlib/v1.10/SparseArrays/test/ambiguous.jl:17
   [10] include(mod::Module, _path::String)
      @ Base ./Base.jl:489 [inlined]
   [11] macro expansion
      @ Main ~/applications/julia/test/testdefs.jl:29 [inlined]
   [12] macro expansion
      @ Main ~/applications/julia/usr/share/julia/stdlib/v1.10/Test/src/Test.jl:1547 [inlined]
   [13] macro expansion
      @ Main ~/applications/julia/test/testdefs.jl:23 [inlined]
   [14] macro expansion
      @ Main ./timing.jl:503 [inlined]
   [15] runtests(name::String, path::String, isolate::Bool; seed::UInt128)
      @ Main ~/applications/julia/test/testdefs.jl:21
   [16] invokelatest(::Any, ::Any, ::Vararg{Any}; kwargs::@Kwargs{seed::UInt128})
      @ Base ./essentials.jl:866
   [17] (::Distributed.var"#110#112"{Distributed.CallMsg{:call_fetch}})()
      @ Distributed ~/applications/julia/usr/share/julia/stdlib/v1.10/Distributed/src/process_messages.jl:285
   [18] run_work_thunk(thunk::Distributed.var"#110#112"{Distributed.CallMsg{:call_fetch}}, print_error::Bool)
      @ Distributed ~/applications/julia/usr/share/julia/stdlib/v1.10/Distributed/src/process_messages.jl:70
   [19] (::Distributed.var"#109#111"{Distributed.CallMsg{:call_fetch}, Distributed.MsgHeader, Sockets.TCPSocket})()
      @ Distributed ~/applications/julia/usr/share/julia/stdlib/v1.10/Distributed/src/process_messages.jl:285
  in expression starting at /Users/foo/applications/julia/usr/share/julia/stdlib/v1.10/SparseArrays/test/ambiguous.jl:13


Error in testset Pkg:

Error During Test at /Users/foo/applications/julia/test/testdefs.jl:21
  Got exception outside of a @test
  LoadError: no active project

  Stacktrace:
    [1] pkgerror(msg::String)
      @ Pkg.Types ~/applications/julia/usr/share/julia/stdlib/v1.10/Pkg/src/Types.jl:69
    [2] find_project_file(env::Nothing)
      @ Pkg.Types ~/applications/julia/usr/share/julia/stdlib/v1.10/Pkg/src/Types.jl:209
    [3] Pkg.Types.EnvCache(env::Nothing)
      @ Pkg.Types ~/applications/julia/usr/share/julia/stdlib/v1.10/Pkg/src/Types.jl:345
    [4] Pkg.Types.EnvCache(env::Union{Nothing, String})
      @ Pkg.Types ~/applications/julia/usr/share/julia/stdlib/v1.10/Pkg/src/Types.jl:345 [inlined]
    [5] Context
      @ Pkg.Types ~/applications/julia/usr/share/julia/stdlib/v1.10/Pkg/src/Types.jl:395 [inlined]
    [6] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::IOBuffer, kwargs::@Kwargs{})
      @ Pkg.API ~/applications/julia/usr/share/julia/stdlib/v1.10/Pkg/src/API.jl:147
    [7] add(pkgs::Vector{String}; kwargs::@Kwargs{io::IOBuffer})
      @ Pkg.API ~/applications/julia/usr/share/julia/stdlib/v1.10/Pkg/src/API.jl:144 [inlined]
    [8] add(pkg::String; kwargs::@Kwargs{io::IOBuffer})
      @ Pkg.API ~/applications/julia/usr/share/julia/stdlib/v1.10/Pkg/src/API.jl:143 [inlined]
    [9] top-level scope
      @ ~/applications/julia/usr/share/julia/stdlib/v1.10/Pkg/test/runtests.jl:18
   [10] include(mod::Module, _path::String)
      @ Base ./Base.jl:489 [inlined]
   [11] macro expansion
      @ Main ~/applications/julia/test/testdefs.jl:29 [inlined]
   [12] macro expansion
      @ Main ~/applications/julia/usr/share/julia/stdlib/v1.10/Test/src/Test.jl:1547 [inlined]
   [13] macro expansion
      @ Main ~/applications/julia/test/testdefs.jl:23 [inlined]
   [14] macro expansion
      @ Main ./timing.jl:503 [inlined]
   [15] runtests(name::String, path::String, isolate::Bool; seed::UInt128)
      @ Main ~/applications/julia/test/testdefs.jl:21
   [16] invokelatest(::Any, ::Any, ::Vararg{Any}; kwargs::@Kwargs{seed::UInt128})
      @ Base ./essentials.jl:866
   [17] (::Distributed.var"#110#112"{Distributed.CallMsg{:call_fetch}})()
      @ Distributed ~/applications/julia/usr/share/julia/stdlib/v1.10/Distributed/src/process_messages.jl:285
   [18] run_work_thunk(thunk::Distributed.var"#110#112"{Distributed.CallMsg{:call_fetch}}, print_error::Bool)
      @ Distributed ~/applications/julia/usr/share/julia/stdlib/v1.10/Distributed/src/process_messages.jl:70
   [19] (::Distributed.var"#109#111"{Distributed.CallMsg{:call_fetch}, Distributed.MsgHeader, Sockets.TCPSocket})()
      @ Distributed ~/applications/julia/usr/share/julia/stdlib/v1.10/Distributed/src/process_messages.jl:285
  in expression starting at /Users/foo/applications/julia/usr/share/julia/stdlib/v1.10/Pkg/test/runtests.jl:3
ERROR: LoadError: Test run finished with errors
in expression starting at /Users/foo/applications/julia/test/runtests.jl:94
gmake[1]: *** [Makefile:30: all] Error 1
gmake: *** [Makefile:611: testall] Error 2

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or unintended behaviorregressionRegression in behavior compared to a previous versionstdlibJulia's standard librarytestsystemThe unit testing framework and Test stdlib

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions