-
-
Notifications
You must be signed in to change notification settings - Fork 15
Fix Base.StaticData renaming #67
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #67 +/- ##
=======================================
Coverage 82.47% 82.47%
=======================================
Files 3 3
Lines 97 97
=======================================
Hits 80 80
Misses 17 17 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
LGTM. The reason for the failure on nightly is not entirely clear, but it seems like the Preferences test failed on nightly. Is that related to this PR or something that has cropped up independently? |
The error seems to be caused by the second try to precompile
Is there supposed to be some connection between setting preferences and invalidating compiled cache? Otherwise this seems to be the correct behavior. |
Actually it seems that it is supposed to be the case, but apparently isn’t anymore |
Thanks @yuyichao! |
The behaviour in JuliaLang/julia#59257 is consistent with previous versions (we can debate if this is what we want.) So it would be good to understand if there is a new issue. |
Actually you are right. I did more test and it seems that the preferences wasn't loaded in the child process. |
This might mean the LocalPreferences.toml wasn't copied to the project of the child process. |
Sorry scratch that. The preference was loaded (I was manually running the test from the wrong directory so the preference wasn't saved to the correct file) and it still seems that the loading was ignoring the preference setting, even though other isolated test shows that cache invalidation with preferences still works. |
The issue is that It seems that the way preference dependencies is stored in the cache file is fundamentally flowed though, since a hash equal of course doesn't mean the values are the same, especially for |
Which is caused by JuliaLang/julia#57509 (but again I don't think that change is the issue, the use of hash function for this purpose is the issue that was exposed by the change of hash function) |
What's more the hash doesn't even encode the key and only the ordered values that are not module TestModule
using Preferences
const xyz = @load_preference("xyz", nothing)
const abc = @load_preference("abc", nothing)
end |
new release? |
julia> Base.StaticData
Base.StaticData
julia> Base.VERSION
v"1.12.0-rc1" |
Ref JuliaLang/julia#59238