-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
[Preferences] Test ignores preferences that are not explicitly listed as test dependencies. #3389
Comments
] test
ignores global preferences (because it ignores JULIA_LOAD_PATH
)] test
doesn't get global preferences (because it ignores JULIA_LOAD_PATH
)
Maybe I'm wrong with my point 2) above. MWE: Minimal package with the following
Now, an extra
Running
So, despite the fact that (Why didn't it for MPIPreferences than?) |
breadcrumbs #3061 and JuliaParallel/MPI.jl#561 cc: @staticfloat |
What happens if you add |
That works! So I take it that only preferences of direct test dependencies are forwarded? |
Hm still smells like a bug, we use But looking at https://github.com/JuliaLang/julia/blob/b5482c82d486aaa68939871eb1d1bc71bb421096/base/loading.jl#L2608 I don't see how or why that would happen/ |
] test
doesn't get global preferences (because it ignores JULIA_LOAD_PATH
)
Line 1911 in 63e9558
Name=>Prefs but no associated Name=>UUID mapping. We then copy over the preferences Line 1742 in 63e9558
tmp_project does not contain an appropriate Name=>UUID mapping.
|
* add buildkite * precompile test env * don't require gpus to be on 1 node * print MPI versioninfo * Add pref overrides to test deps Work around JuliaLang/Pkg.jl#3389 * try overriding OpenMPI_jll * use newer version of OpenMPI_jll * try rearranging Init * remove distributed tests on tartarus --------- Co-authored-by: Simone Silvestri <[email protected]>
In case people find this, to make CUDA pick up local configurations, you need to add:
That shouldn't be necessary if the JULIA_LOAD_PATH was respected -- what causes this behavior in |
Related: JuliaPackaging/Preferences.jl#33 |
Came up over at MPI.jl here.
Currently,
] test
ignoresJULIA_LOAD_PATH
. On our cluster, we use the latter to expand the default load path to an extra directory (viaJULIA_LOAD_PATH=:/some/global/path
) that contains aProject.toml
that sets some global preferences (e.g. for MPI.jl). Consequently, the global preferences aren't respected within] test
.I see two possible ways forward:
] test
respectJULIA_LOAD_PATH
. (Why doesn't it?)Pkg.test()
drops Preferences #2500 and Improve handling of preferences for sandboxes used in Pkg #2920 which didn't cover the case of global preferences, IIUC.)(Tested with Julia 1.8.5)
The text was updated successfully, but these errors were encountered: