-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
improve cache loading behaviors #45861
Conversation
So to be explicit, what's the status with #45704 after this? Does it now pass tests or give a more descriptive error etc? |
This fixed the iteration order for |
I've tried this on 1.8 and it does indeed resolve #45704 |
end | ||
@assert found.uuid !== nothing | ||
return locate_package(found) # restart search now that we know the uuid for pkg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can locate_package(found)
be added back in? As is, this change results in Base.locate_package(Base.PkgId("Pkg"))
returning nothing
:
❯ ~/julia/julia --startup-file=no
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.9.0-DEV.893 (2022-07-05)
_/ |\__'_|_|_|\__'_| | Commit 8a776bda4c (0 days old master)
|__/ |
julia> Base.locate_package(Base.PkgId("Pkg"))
julia>
Vs.
❯ julia --startup-file=no
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.7.3 (2022-05-06)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> Base.locate_package(Base.PkgId("Pkg"))
"/home/awadell/.local/opt/spack/opt/spack/linux-opensuse_leap15-zen3/gcc-11.2.0/julia-1.7.3-fkmbucihyf3jb3jx7plzg6eoqglmh7uz/share/julia/stdlib/v1.7/Pkg/src/Pkg.jl"
julia>
Or is the correct move to use Base.locate_package(Base.identify_package("Pkg"))
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neither is "correct" In that both are ambiguous about what they are supposed to return. There is find_package("Pkg")
for "internal-Pkg-use" (according to the comment), and other places are usually expected to load a Manifest.toml and locate packages by their [deps]
section
Also generally clean up / add more asserts to the `benchmark_dir` code See: JuliaLang/julia#45861 (comment)
This appears to have removed the nesting expected in @vtjnash is that real? Has nested loading been removed? or has the report printing regressed?
Previously we saw something like:
|
Nested loading was a bug and is gone now |
@IanButterworth I am unclear on what the individual EDIT my bad, saw the comment over at #46072
Might be worth adding to the docstring? |
loading: add missing deadlock causing Testing ProbNumDiffEq errors on 1.8 with Unreachable reached, signal (4): Illegal instruction #45704
Does not explicitly close issue # 45704, as perhaps the deserialized
module should still be valid after the replacement warning.
loading: valid all cache files before loading any
Ensures we do not get easily wedged into bad states.
loading: stop corrupting memory all over the place
Regressions introduced by Add
pkgversion(m::Module)
to get the version of the package that loaded a given module #45607