-
Notifications
You must be signed in to change notification settings - Fork 922
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
Try to read timezone file from $CONDA_PREFIX
dir before trying the system dir
#15214
Conversation
I'd love to know if this has any impact on #7314. 🤔 |
$CONDA_PREFIX
dir before trying the system dir
@vuule is this PR waiting on anything? Just noticed it from #12926. For testing, one (somewhat drastic) option would be to run a separate test where you delete the system timezone file and then try running the tests. You'd want to isolate that test run so that you don't bork anything else that actually relies on that file existing, though, so it may not be worth the effort. |
This is... very weird. You seem to have gotten extraordinarily unlucky because all of the failures that I can see appear to be either unrelated issues that have since been fixed, or connectivity issues. The number of network issues is the especially weird part. Let's try again... |
Unless I'm misremembering, there were also ORC test failures with the change. Let's see :) |
Ah OK I looked at like 4 different runs and didn't see anything that looked real, but there were multiple merges and reruns that I could have missed it. So we'll see this time :) |
There it is |
From reading the code it looks like this PR changes things to make the conda-installed files the highest priority. Perhaps what we want is to use the conda files as backup if there isn't a system installation? It looks like you chose this order because of me, so sorry about that! I was going off of how we normally deal with conda, but maybe for timezones this isn't safe. @karthikeyann @bdice WDYT? I've spent a lot less time on the tz work to know if this is a safe thing to do. If it's not, then we should just close the associated issue and this PR. |
The most-correct answer is probably to respect If we respected Would it be helpful to adjust this error message:
... to say Given the complexity of this topic and the relatively low number of issue reports we've seen, I'm inclined to say we should continue to rely on only system-installed timezone information. I would vote to close this PR and the corresponding issue. We could revisit this in this future if it is misaligned with how other conda packages handle things. |
@bdice should I modify the PR to try $TZDIR (if set) before the system dir? |
We could do that. If we do, I would want to make sure of two things:
|
Closing based on the above comment
We can revisit if necessary in the future. |
Description
Closes #12926
Modified the logic when opening TZ files to try multiple paths before giving up. Without user-specified path, we try
$CONDA_PREFIX/share/zoneinfo
and then/usr/share/zoneinfo/
.Testing is limited to consistency with previous logic. We don't have tests for the
$CONDA_PREFIX
path.Checklist