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

Test failure on a clean install #200

Open
ViralBShah opened this issue Oct 16, 2024 · 2 comments
Open

Test failure on a clean install #200

ViralBShah opened this issue Oct 16, 2024 · 2 comments

Comments

@ViralBShah
Copy link
Member

ViralBShah commented Oct 16, 2024

On a machine where I had not developed PETSc.jl, where I just updated to Julia 1.11, and did dev PETSc and then test PETSc all at the pkg > prompt, the MPI tests in options.jl failed. It is puzzling because MPI.jl is clearly in Project.toml and does get installed. :

Test Summary: | Total   Time
mpi examples  |     0  17.4s
Test Summary: | Pass  Total  Time
options tests |  144    144  0.6s
ERROR: LoadError: ArgumentError: Package MPI [da04e1cc-30fd-572f-bb4f-1f8673147195] is required but does not seem to be installed:
 - Run `Pkg.instantiate()` to install all recorded dependencies.
julia> versioninfo()
Julia Version 1.11.0
Commit 501a4f25c2b (2024-10-07 11:40 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 8 × Apple M1 Pro
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, apple-m1)
Threads: 1 default, 0 interactive, 1 GC (on 6 virtual cores)
@ViralBShah
Copy link
Member Author

ViralBShah commented Oct 16, 2024

The issue seems to arise because a new Julia process is spun up and doesn't have the same package environment presumably with the required packages:

parse_options tests: Error During Test at /Users/viralshah/.julia/dev/PETSc/test/options.jl:89
  Test threw exception
  Expression: begin
    #= /Users/viralshah/.julia/dev/PETSc/test/options.jl:90 =#
    julia = joinpath(Sys.BINDIR, Base.julia_exename())
    #= /Users/viralshah/.julia/dev/PETSc/test/options.jl:91 =#
    run(`$(julia) --startup-file=no --project -e "using PETSc
                                 using Test
                                 opts = PETSc.parse_options(ARGS)
                                 @test length(opts) == 4
                                 @test opts.ksp_monitor === nothing
                                 @test opts.ksp_view === nothing
                                 @test opts.pc_type === \"mg\"
                                 @test opts.da_grid_x === \"100\"
                                 @test_throws ErrorException opts.bad_opt
                                 "
                                 --
                                 -ksp_monitor
                                 -da_grid_x 100
                                 -ksp_view
                                 -pc_type mg`)
    #= /Users/viralshah/.julia/dev/PETSc/test/options.jl:106 =#
    true
end

@ViralBShah
Copy link
Member Author

Same Test failure also happens on registered version of the package - v0.2.0.

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

1 participant