Skip to content

Pkg.test(; julia_args = ["--threads=auto"]) seems to not have effect on julia 1.12.0-beta2 #4220

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

Open
stemann opened this issue Apr 17, 2025 · 5 comments

Comments

@stemann
Copy link
Contributor

stemann commented Apr 17, 2025

It seems #4141 somehow did not have effect in 1.12.0-beta1 despite inclusion in #4203.

$ nproc 
16

$ cd Example.jl

$ echo '@show Threads.nthreads()' >> test/runtests.jl

$ rm -f Manifest.toml

$ julia +1.11 --project --eval 'using Pkg; Pkg.test(; julia_args = ["--threads=auto"])'
...
     Testing Running tests...
Threads.nthreads() = 16

$ rm -f Manifest.toml

$ julia +1.12 --project --eval 'using Pkg; Pkg.test(; julia_args = ["--threads=auto"])'
...
     Testing Running tests...
Threads.nthreads() = 1
@stemann stemann changed the title Pkg.test(; julia_args = ["--threads=auto"]) seems to not have effect on julia 1.12.0-beta1 Pkg.test(; julia_args = ["--threads=auto"]) seems to not have effect on julia 1.12.0-beta2 Apr 30, 2025
@stemann
Copy link
Contributor Author

stemann commented Apr 30, 2025

Still an issue in beta2.

@stemann
Copy link
Contributor Author

stemann commented Apr 30, 2025

@KristofferC Can we include #4203 in JuliaLang/julia#58270 ?

@KristofferC
Copy link
Member

Thanks for the ping, I forgot about that. It is on the backport branch and should be included in the next 1.12 beta.

@KristofferC
Copy link
Member

Confirmed this is working on the backport branch.

@KristofferC
Copy link
Member

KristofferC commented May 9, 2025

I had to revert the Pkg bump on 1.12 due to some weird error https://buildkite.com/julialang/julia-release-1-dot-12/builds/113#0196a54e-48d6-4de5-86a4-bf423d4cbbc2. I don't want to delay getting the next beta out and there isn't anything super important in there so I rather just revert it, release a new beta and then deal with that error for the next pre release.


Pkg                                               (2) \|         failed at 2025-05-06T12:19:20.729
--
  | Test Failed at /cache/build/tester-amdci4-13/julialang/julia-release-1-dot-12/julia-4348e89404/share/julia/stdlib/v1.12/Pkg/test/pkg.jl:982
  | Expression: ensure_resolved(Pkg.Types.Context(), Pkg.Types.Manifest(), [p])
  | Expected: Pkg.Types.PkgError("Package PackageSpec(\n  path = test_packages/Example\n  version = *\n) has neither name nor uuid")
  | Thrown: Pkg.Types.PkgError("no active project")
  | no active project
  | Stacktrace:
  | [1] pkgerror(msg::String)
  | @ Pkg.Types /cache/build/tester-amdci4-13/julialang/julia-release-1-dot-12/julia-4348e89404/share/julia/stdlib/v1.12/Pkg/src/Types.jl:68
  | [2] find_project_file(env::Nothing)
  | @ Pkg.Types /cache/build/tester-amdci4-13/julialang/julia-release-1-dot-12/julia-4348e89404/share/julia/stdlib/v1.12/Pkg/src/Types.jl:204
  | [3] Pkg.Types.EnvCache(env::Nothing)
  | @ Pkg.Types /cache/build/tester-amdci4-13/julialang/julia-release-1-dot-12/julia-4348e89404/share/julia/stdlib/v1.12/Pkg/src/Types.jl:382
  | [4] EnvCache
  | @ /cache/build/tester-amdci4-13/julialang/julia-release-1-dot-12/julia-4348e89404/share/julia/stdlib/v1.12/Pkg/src/Types.jl:382 [inlined]
  | [5] Pkg.Types.Context()
  | @ Pkg.Types /cache/build/tester-amdci4-13/julialang/julia-release-1-dot-12/julia-4348e89404/share/julia/stdlib/v1.12/Pkg/src/Types.jl:444
  | [6] top-level scope
  | @ /cache/build/tester-amdci4-13/julialang/julia-release-1-dot-12/julia-4348e89404/share/julia/stdlib/v1.12/Pkg/test/pkg.jl:981
  | [7] macro expansion
  | @ /cache/build/tester-amdci4-13/julialang/julia-release-1-dot-12/julia-4348e89404/share/julia/stdlib/v1.12/Test/src/Test.jl:1771 [inlined]
  | [8] macro expansion
  | @ /cache/build/tester-amdci4-13/julialang/julia-release-1-dot-12/julia-4348e89404/share/julia/stdlib/v1.12/Pkg/test/pkg.jl:982 [inlined]
  | [9] macro expansion
  | @ /cache/build/tester-amdci4-13/julialang/julia-release-1-dot-12/julia-4348e89404/share/julia/stdlib/v1.12/Test/src/Test.jl:773 [inlined]
  | [10] macro expansion
  | @ /cache/build/tester-amdci4-13/julialang/julia-release-1-dot-12/julia-4348e89404/share/julia/stdlib/v1.12/Pkg/test/pkg.jl:982 [inlined]
  |  
  | Error During Test at /cache/build/tester-amdci4-13/julialang/julia-release-1-dot-12/julia-4348e89404/share/julia/stdlib/v1.12/Pkg/test/pkg.jl:985
  | Got exception outside of a @test
  | MethodError: no method matching activate(::Nothing)
  | The function `activate` exists, but no method is defined for this combination of argument types.
  |  
  | Closest candidates are:
  | activate(; temp, shared, prev, io)
  | @ Pkg /cache/build/tester-amdci4-13/julialang/julia-release-1-dot-12/julia-4348e89404/share/julia/stdlib/v1.12/Pkg/src/API.jl:1305
  | activate(!Matched::Function, !Matched::AbstractString)
  | @ Pkg /cache/build/tester-amdci4-13/julialang/julia-release-1-dot-12/julia-4348e89404/share/julia/stdlib/v1.12/Pkg/src/API.jl:1385
  | activate(!Matched::AbstractString; shared, temp, io)
  | @ Pkg /cache/build/tester-amdci4-13/julialang/julia-release-1-dot-12/julia-4348e89404/share/julia/stdlib/v1.12/Pkg/src/API.jl:1341


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

No branches or pull requests

2 participants