-
-
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
Fix manifest_usage.toml and Registry process concurrency via pid locking #2793
Fix manifest_usage.toml and Registry process concurrency via pid locking #2793
Conversation
I think this is success, but one issue remains that seems to be a Windows bug that's intermittent and unrelated, but the new tests seem to make it more likely to happen..
which looks like JuliaLang/julia#29658 and JuliaLang/julia#39457 |
You also might wish to enable stale_age for automatic lock breaking |
Ok! I allowed 30 seconds for writing the env usage file, given it might in a bad case take ~1 second. For registry download/update I allowed 1 hr, given its download dependent. I'm less certain of that being the correct setting because exorbitantly slow registry updates could happen on a slow connection. |
That is good. It will also check the pid validity and wait 25x longer if it still seems to exist |
Oh I'll walk them back a bit then given the 25x. Perhaps now would be a good time to move Pidfile.jl to the JuliaLang org, if you wouldn't mind doing that? |
Can we rename the module to |
8bb5742
to
d553225
Compare
61ea77e
to
fc8748e
Compare
The MacOS failure is #2596 |
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.
Great! Could Pkg also use a lockfile for precompilation?
@IanButterworth Could you update the manifest file at |
@IanButterworth Would this be a good opportunity to upgrade the |
party_parrot.jpg |
Could be, but there's a currently a bug with Perhaps that could be a followup PR, ideally after that bug has been squashed? |
5a5d0c0
to
efa9e73
Compare
Needs to wait for JuliaLang/julia#44367 to land on the nightlies cc. @vtjnash |
Co-Authored-By: Fredrik Ekre <[email protected]>
Could this be backported to 1.8? |
I don't think we have PID locking available in Base on 1.8. |
Implements pidfile locking for manifest_usage.toml and Registry add/update operations
Fixes #2875
Fixes #2346
Fixes #684
Fixes #2746
Fixes #1664
Includes the process concurrency test from #2732 which would cause Pkg master to error in two ways
cc. @vtjnash