Repository navigation
Remove ensure_file from recommended practice for downstream libraries - #9171
Conversation
Previously we did this to educate users about possible configuration. But as configuration shifts really all this means is that there's lots of stale config files lying around. Historically we've found that it's better not to copy these. We've been doing this in Dask libraries for some time now. This change just changes the recommendations in the documentation.
|
Merging tomorrow if there are no further comments. |
jrbourbeau
left a comment
There was a problem hiding this comment.
Historically we've found that it's better not to copy these.
We've been doing this in Dask libraries for some time now.
FWIW this seems to be true for distributed but not other projects like dask-cloudprovider, dask-jobqueue, and dask-kubernetes. They're still all using ensure_file
IIUC this means ensure_file is no longer being used anymore (or not longer recommended for use). If that's the case, I'd like to deprecate and eventually remove ensure_file too
|
@jrbourbeau is that a blocking comment, or should I go ahead and merge here? |
|
Not blocking, but if you merge this could you please also open a quick issue about deprecating Also, FWIW I don't 100% understand the motivation for this change (or why we wanted |
|
Ensure file is useful. It's not always what you want though. It creates an optionally-commented-out version of the config file in the user's config directory that corresponds to current default, if no such file exists. This is good because it helps people to quickly see what is available to them. However, this is also somewhat shortsighted. As we change config we leave lots of these files around. Most people don't actually look at the config when they first start. When they do use config they typically only need a little bit of it, not the whole thing. It's been better to not send these things out all the time, freezing people at whatever config file when they first installed the package (possibly years ago) |
|
So I'm not sure that I would go so far as to deprecate it. (it's still a useful function) I would say that we probably shouldn't recommend it any longer, and that we should probably consider removing it from our own projects. |
|
Conversation about changing behavior here: #9179 |
Previously we did this to educate users about possible configuration.
But as configuration shifts really all this means is that there's lots
of stale config files lying around.
Historically we've found that it's better not to copy these.
We've been doing this in Dask libraries for some time now.
This change just changes the recommendations in the documentation.
cc @ntabris