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
datetime_test fails in 2019-11 #8702
Comments
|
We use a fake time zone database, not an actual one, where ranges are hard coded. So as long as you modify the fake database, you should be good to go: https://github.com/elixir-lang/elixir/blob/master/lib/elixir/test/elixir/calendar/fakes.exs |
|
Was this meant to be closed? If so, a link to the fix would be nice... |
|
Hi @bmwiedemann! There is no fix because this is not an issue per se. We don't use an actual timezone database and instead we use a fake one. So if you want to change the test, you also have to change the fake timezone database. However, maybe there is another issue that led you to open this one? Maybe that's what we should focus on? |
|
The issue is that today's elixir will stop building in 11 months. It is an issue that is just not very visible right now, so most people are happy with the current state. |
|
Also all the background and reasoning from #8688 applies. I just did not catch it there because the test probably was not part of elixir-1.7.4 |
|
@bmwiedemann perfect. That's the context I was missing. Can you please link to the part that will fail to build in 11 months so we can check it? |
|
Oh, nevermind. I can infer that from the failed test. DateTime.now is using a timezone database and that will fail eventually. Fix coming out soon. |
|
likely from https://github.com/elixir-lang/elixir/blob/master/lib/elixir/test/elixir/calendar/fakes.exs#L70 not covering anything after 2019-10-28 |
|
@bmwiedemann btw, can you show the commands you are using to make the build "run in the future"? I wonder if we should add that as an entry in our travis matrix. |
The FakeTimeZoneDatabase doesn't have all timezone entries, which means it would be just a matter of time for this test to start failing. Closes #8702. Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
|
In openSUSE I use kvm's clock fiddling with but in travis you might have an easier time with libfaketime could maybe even integrated into the 2nd build of #8701 - if that includes running tests |
|
Tested with latest master and all tests pass now (and in 2034). |
|
@bmwiedemann faketime doesn't work, we are getting around 50 tests not passing. |
|
It seems, faketime indeed has its problems. |
Environment
Current behavior
similar to #8688
one test fails after 2019-11-01 but passes 2019-10-26
Might this be related to the EU intentions to give up DST?
Expected behavior
Tests should keep working until at least 2037-01
The text was updated successfully, but these errors were encountered: