* [ruby-core:111220] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
@ 2022-12-06 11:33 coolo (Stephan Kulow)
2022-12-07 10:41 ` [ruby-core:111230] " nagachika (Tomoyuki Chikanaga)
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: coolo (Stephan Kulow) @ 2022-12-06 11:33 UTC (permalink / raw)
To: ruby-core
Issue #19187 has been reported by coolo (Stephan Kulow).
----------------------------------------
Bug #19187: Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
https://bugs.ruby-lang.org/issues/19187
* Author: coolo (Stephan Kulow)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux-gnu]
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
The timezone database changed incompatible to what ruby's testsuite expects.
See the announcement here: http://mm.icann.org/pipermail/tz-announce/2022-November/000076.html and note the little detail
Singapore's 1981-12-31 change was at 16:00 UTC (23:30 local time),
not 24:00 local time. (Thanks to Geoff Clare via Robert Elz.)
Problem is that test/ruby/test_time_tz.rb tests this very detail in 3 places - and breaks.
1) Failure:
TestTimeTZ#test_asia_singapore [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:143]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
2) Failure:
TestTimeTZ#test_gen_Asia_Singapore_22 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:382]:
TZ=Asia/Singapore Time.utc(1981, 12, 31, 16, 29, 59).localtime.
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
3) Failure:
TestTimeTZ#test_gen_Asia_Singapore_45 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:400]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
I can see no other option than not to test this detail - because relying on correct timezone data (either way) is barely possible.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* [ruby-core:111230] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
2022-12-06 11:33 [ruby-core:111220] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied coolo (Stephan Kulow)
@ 2022-12-07 10:41 ` nagachika (Tomoyuki Chikanaga)
2022-12-07 12:47 ` [ruby-core:111231] " nobu (Nobuyoshi Nakada)
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: nagachika (Tomoyuki Chikanaga) @ 2022-12-07 10:41 UTC (permalink / raw)
To: ruby-core
Issue #19187 has been updated by nagachika (Tomoyuki Chikanaga).
Status changed from Open to Closed
Backport changed from 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN to 2.7: REQUIRED, 3.0: REQUIRED, 3.1: REQUIRED
The workaround was committed to master branch at 58cc3c9f387dcf8f820b43e043b540fa06248da3.
----------------------------------------
Bug #19187: Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
https://bugs.ruby-lang.org/issues/19187#change-100518
* Author: coolo (Stephan Kulow)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux-gnu]
* Backport: 2.7: REQUIRED, 3.0: REQUIRED, 3.1: REQUIRED
----------------------------------------
The timezone database changed incompatible to what ruby's testsuite expects.
See the announcement here: http://mm.icann.org/pipermail/tz-announce/2022-November/000076.html and note the little detail
Singapore's 1981-12-31 change was at 16:00 UTC (23:30 local time),
not 24:00 local time. (Thanks to Geoff Clare via Robert Elz.)
Problem is that test/ruby/test_time_tz.rb tests this very detail in 3 places - and breaks.
1) Failure:
TestTimeTZ#test_asia_singapore [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:143]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
2) Failure:
TestTimeTZ#test_gen_Asia_Singapore_22 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:382]:
TZ=Asia/Singapore Time.utc(1981, 12, 31, 16, 29, 59).localtime.
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
3) Failure:
TestTimeTZ#test_gen_Asia_Singapore_45 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:400]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
I can see no other option than not to test this detail - because relying on correct timezone data (either way) is barely possible.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* [ruby-core:111231] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
2022-12-06 11:33 [ruby-core:111220] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied coolo (Stephan Kulow)
2022-12-07 10:41 ` [ruby-core:111230] " nagachika (Tomoyuki Chikanaga)
@ 2022-12-07 12:47 ` nobu (Nobuyoshi Nakada)
2022-12-08 3:35 ` [ruby-core:111236] " usa (Usaku NAKAMURA)
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: nobu (Nobuyoshi Nakada) @ 2022-12-07 12:47 UTC (permalink / raw)
To: ruby-core
Issue #19187 has been updated by nobu (Nobuyoshi Nakada).
coolo (Stephan Kulow) wrote:
> I can see no other option than not to test this detail - because relying on correct timezone data (either way) is barely possible.
I agree that we should not test tzdata itself.
https://github.com/nobu/ruby/tree/tzdata-nitpick
----------------------------------------
Bug #19187: Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
https://bugs.ruby-lang.org/issues/19187#change-100520
* Author: coolo (Stephan Kulow)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux-gnu]
* Backport: 2.7: REQUIRED, 3.0: REQUIRED, 3.1: REQUIRED
----------------------------------------
The timezone database changed incompatible to what ruby's testsuite expects.
See the announcement here: http://mm.icann.org/pipermail/tz-announce/2022-November/000076.html and note the little detail
Singapore's 1981-12-31 change was at 16:00 UTC (23:30 local time),
not 24:00 local time. (Thanks to Geoff Clare via Robert Elz.)
Problem is that test/ruby/test_time_tz.rb tests this very detail in 3 places - and breaks.
1) Failure:
TestTimeTZ#test_asia_singapore [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:143]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
2) Failure:
TestTimeTZ#test_gen_Asia_Singapore_22 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:382]:
TZ=Asia/Singapore Time.utc(1981, 12, 31, 16, 29, 59).localtime.
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
3) Failure:
TestTimeTZ#test_gen_Asia_Singapore_45 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:400]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
I can see no other option than not to test this detail - because relying on correct timezone data (either way) is barely possible.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* [ruby-core:111236] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
2022-12-06 11:33 [ruby-core:111220] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied coolo (Stephan Kulow)
2022-12-07 10:41 ` [ruby-core:111230] " nagachika (Tomoyuki Chikanaga)
2022-12-07 12:47 ` [ruby-core:111231] " nobu (Nobuyoshi Nakada)
@ 2022-12-08 3:35 ` usa (Usaku NAKAMURA)
2022-12-08 3:35 ` [ruby-core:111237] " usa (Usaku NAKAMURA)
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: usa (Usaku NAKAMURA) @ 2022-12-08 3:35 UTC (permalink / raw)
To: ruby-core
Issue #19187 has been updated by usa (Usaku NAKAMURA).
Backport changed from 2.7: REQUIRED, 3.0: REQUIRED, 3.1: REQUIRED to 2.7: DONE, 3.0: REQUIRED, 3.1: REQUIRED
ruby_2_7 36cadad6434bc31bc2d60697698cd5b930c097ce merged revision(s) 58cc3c9f.
----------------------------------------
Bug #19187: Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
https://bugs.ruby-lang.org/issues/19187#change-100525
* Author: coolo (Stephan Kulow)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux-gnu]
* Backport: 2.7: DONE, 3.0: REQUIRED, 3.1: REQUIRED
----------------------------------------
The timezone database changed incompatible to what ruby's testsuite expects.
See the announcement here: http://mm.icann.org/pipermail/tz-announce/2022-November/000076.html and note the little detail
Singapore's 1981-12-31 change was at 16:00 UTC (23:30 local time),
not 24:00 local time. (Thanks to Geoff Clare via Robert Elz.)
Problem is that test/ruby/test_time_tz.rb tests this very detail in 3 places - and breaks.
1) Failure:
TestTimeTZ#test_asia_singapore [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:143]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
2) Failure:
TestTimeTZ#test_gen_Asia_Singapore_22 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:382]:
TZ=Asia/Singapore Time.utc(1981, 12, 31, 16, 29, 59).localtime.
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
3) Failure:
TestTimeTZ#test_gen_Asia_Singapore_45 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:400]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
I can see no other option than not to test this detail - because relying on correct timezone data (either way) is barely possible.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* [ruby-core:111237] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
2022-12-06 11:33 [ruby-core:111220] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied coolo (Stephan Kulow)
` (2 preceding siblings ...)
2022-12-08 3:35 ` [ruby-core:111236] " usa (Usaku NAKAMURA)
@ 2022-12-08 3:35 ` usa (Usaku NAKAMURA)
2022-12-09 12:12 ` [ruby-core:111245] " nagachika (Tomoyuki Chikanaga)
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: usa (Usaku NAKAMURA) @ 2022-12-08 3:35 UTC (permalink / raw)
To: ruby-core
Issue #19187 has been updated by usa (Usaku NAKAMURA).
Backport changed from 2.7: DONE, 3.0: REQUIRED, 3.1: REQUIRED to 2.7: DONE, 3.0: DONE, 3.1: REQUIRED
ruby_3_0 a0a99185577794b1915eba0dc5154f09cc95e81d merged revision(s) 58cc3c9f.
----------------------------------------
Bug #19187: Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
https://bugs.ruby-lang.org/issues/19187#change-100526
* Author: coolo (Stephan Kulow)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux-gnu]
* Backport: 2.7: DONE, 3.0: DONE, 3.1: REQUIRED
----------------------------------------
The timezone database changed incompatible to what ruby's testsuite expects.
See the announcement here: http://mm.icann.org/pipermail/tz-announce/2022-November/000076.html and note the little detail
Singapore's 1981-12-31 change was at 16:00 UTC (23:30 local time),
not 24:00 local time. (Thanks to Geoff Clare via Robert Elz.)
Problem is that test/ruby/test_time_tz.rb tests this very detail in 3 places - and breaks.
1) Failure:
TestTimeTZ#test_asia_singapore [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:143]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
2) Failure:
TestTimeTZ#test_gen_Asia_Singapore_22 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:382]:
TZ=Asia/Singapore Time.utc(1981, 12, 31, 16, 29, 59).localtime.
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
3) Failure:
TestTimeTZ#test_gen_Asia_Singapore_45 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:400]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
I can see no other option than not to test this detail - because relying on correct timezone data (either way) is barely possible.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* [ruby-core:111245] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
2022-12-06 11:33 [ruby-core:111220] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied coolo (Stephan Kulow)
` (3 preceding siblings ...)
2022-12-08 3:35 ` [ruby-core:111237] " usa (Usaku NAKAMURA)
@ 2022-12-09 12:12 ` nagachika (Tomoyuki Chikanaga)
2022-12-21 14:09 ` [ruby-core:111360] " vo.x (Vit Ondruch) via ruby-core
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: nagachika (Tomoyuki Chikanaga) @ 2022-12-09 12:12 UTC (permalink / raw)
To: ruby-core
Issue #19187 has been updated by nagachika (Tomoyuki Chikanaga).
Backport changed from 2.7: DONE, 3.0: DONE, 3.1: REQUIRED to 2.7: DONE, 3.0: DONE, 3.1: DONE
ruby_3_1 a1124dc162810f86cb0bff58cde24064cfc561bc merged revision(s) 58cc3c9f387dcf8f820b43e043b540fa06248da3.
----------------------------------------
Bug #19187: Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
https://bugs.ruby-lang.org/issues/19187#change-100536
* Author: coolo (Stephan Kulow)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux-gnu]
* Backport: 2.7: DONE, 3.0: DONE, 3.1: DONE
----------------------------------------
The timezone database changed incompatible to what ruby's testsuite expects.
See the announcement here: http://mm.icann.org/pipermail/tz-announce/2022-November/000076.html and note the little detail
Singapore's 1981-12-31 change was at 16:00 UTC (23:30 local time),
not 24:00 local time. (Thanks to Geoff Clare via Robert Elz.)
Problem is that test/ruby/test_time_tz.rb tests this very detail in 3 places - and breaks.
1) Failure:
TestTimeTZ#test_asia_singapore [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:143]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
2) Failure:
TestTimeTZ#test_gen_Asia_Singapore_22 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:382]:
TZ=Asia/Singapore Time.utc(1981, 12, 31, 16, 29, 59).localtime.
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
3) Failure:
TestTimeTZ#test_gen_Asia_Singapore_45 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:400]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
I can see no other option than not to test this detail - because relying on correct timezone data (either way) is barely possible.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* [ruby-core:111360] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
2022-12-06 11:33 [ruby-core:111220] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied coolo (Stephan Kulow)
` (4 preceding siblings ...)
2022-12-09 12:12 ` [ruby-core:111245] " nagachika (Tomoyuki Chikanaga)
@ 2022-12-21 14:09 ` vo.x (Vit Ondruch) via ruby-core
2022-12-22 4:53 ` [ruby-core:111378] " mame (Yusuke Endoh) via ruby-core
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: vo.x (Vit Ondruch) via ruby-core @ 2022-12-21 14:09 UTC (permalink / raw)
To: ruby-core; +Cc: vo.x (Vit Ondruch)
Issue #19187 has been updated by vo.x (Vit Ondruch).
nobu (Nobuyoshi Nakada) wrote in #note-2:
> coolo (Stephan Kulow) wrote:
> > I can see no other option than not to test this detail - because relying on correct timezone data (either way) is barely possible.
>
> I agree that we should not test tzdata itself.
> https://github.com/nobu/ruby/tree/tzdata-nitpick
Was this proposal forgotten or is this going to land?
----------------------------------------
Bug #19187: Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
https://bugs.ruby-lang.org/issues/19187#change-100736
* Author: coolo (Stephan Kulow)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux-gnu]
* Backport: 2.7: DONE, 3.0: DONE, 3.1: DONE
----------------------------------------
The timezone database changed incompatible to what ruby's testsuite expects.
See the announcement here: http://mm.icann.org/pipermail/tz-announce/2022-November/000076.html and note the little detail
Singapore's 1981-12-31 change was at 16:00 UTC (23:30 local time),
not 24:00 local time. (Thanks to Geoff Clare via Robert Elz.)
Problem is that test/ruby/test_time_tz.rb tests this very detail in 3 places - and breaks.
1) Failure:
TestTimeTZ#test_asia_singapore [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:143]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
2) Failure:
TestTimeTZ#test_gen_Asia_Singapore_22 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:382]:
TZ=Asia/Singapore Time.utc(1981, 12, 31, 16, 29, 59).localtime.
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
3) Failure:
TestTimeTZ#test_gen_Asia_Singapore_45 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:400]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
I can see no other option than not to test this detail - because relying on correct timezone data (either way) is barely possible.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* [ruby-core:111378] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
2022-12-06 11:33 [ruby-core:111220] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied coolo (Stephan Kulow)
` (5 preceding siblings ...)
2022-12-21 14:09 ` [ruby-core:111360] " vo.x (Vit Ondruch) via ruby-core
@ 2022-12-22 4:53 ` mame (Yusuke Endoh) via ruby-core
2022-12-22 6:00 ` [ruby-core:111379] " duerst via ruby-core
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: mame (Yusuke Endoh) via ruby-core @ 2022-12-22 4:53 UTC (permalink / raw)
To: ruby-core; +Cc: mame (Yusuke Endoh)
Issue #19187 has been updated by mame (Yusuke Endoh).
I disagree with simply erasing the tests depending on tzdata.
We need to test our logic to handle leap seconds, etc.
If we remove the dependency on tzdata, I think we need to mock tzdata and test our logic.
But we don't have to go that far. I think using tzdata is good enough.
Following changes in tzdata is a bit annoying, but I don't think it's happening so frequently.
----------------------------------------
Bug #19187: Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
https://bugs.ruby-lang.org/issues/19187#change-100753
* Author: coolo (Stephan Kulow)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux-gnu]
* Backport: 2.7: DONE, 3.0: DONE, 3.1: DONE
----------------------------------------
The timezone database changed incompatible to what ruby's testsuite expects.
See the announcement here: http://mm.icann.org/pipermail/tz-announce/2022-November/000076.html and note the little detail
Singapore's 1981-12-31 change was at 16:00 UTC (23:30 local time),
not 24:00 local time. (Thanks to Geoff Clare via Robert Elz.)
Problem is that test/ruby/test_time_tz.rb tests this very detail in 3 places - and breaks.
1) Failure:
TestTimeTZ#test_asia_singapore [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:143]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
2) Failure:
TestTimeTZ#test_gen_Asia_Singapore_22 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:382]:
TZ=Asia/Singapore Time.utc(1981, 12, 31, 16, 29, 59).localtime.
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
3) Failure:
TestTimeTZ#test_gen_Asia_Singapore_45 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:400]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
I can see no other option than not to test this detail - because relying on correct timezone data (either way) is barely possible.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* [ruby-core:111379] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
2022-12-06 11:33 [ruby-core:111220] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied coolo (Stephan Kulow)
` (6 preceding siblings ...)
2022-12-22 4:53 ` [ruby-core:111378] " mame (Yusuke Endoh) via ruby-core
@ 2022-12-22 6:00 ` duerst via ruby-core
2022-12-22 6:27 ` [ruby-core:111380] " nobu (Nobuyoshi Nakada) via ruby-core
2022-12-22 8:19 ` [ruby-core:111382] " vo.x (Vit Ondruch) via ruby-core
9 siblings, 0 replies; 11+ messages in thread
From: duerst via ruby-core @ 2022-12-22 6:00 UTC (permalink / raw)
To: ruby-core; +Cc: duerst
Issue #19187 has been updated by duerst (Martin Dürst).
mame (Yusuke Endoh) wrote in #note-7:
> I disagree with simply erasing the tests depending on tzdata.
> Following changes in tzdata is a bit annoying, but I don't think it's happening so frequently.
I agree. In particular, this test was for 1981. Data about 1981 should only change very infrequently, essentially only when a mistake in tzdata is detected and fixed.
----------------------------------------
Bug #19187: Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
https://bugs.ruby-lang.org/issues/19187#change-100754
* Author: coolo (Stephan Kulow)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux-gnu]
* Backport: 2.7: DONE, 3.0: DONE, 3.1: DONE
----------------------------------------
The timezone database changed incompatible to what ruby's testsuite expects.
See the announcement here: http://mm.icann.org/pipermail/tz-announce/2022-November/000076.html and note the little detail
Singapore's 1981-12-31 change was at 16:00 UTC (23:30 local time),
not 24:00 local time. (Thanks to Geoff Clare via Robert Elz.)
Problem is that test/ruby/test_time_tz.rb tests this very detail in 3 places - and breaks.
1) Failure:
TestTimeTZ#test_asia_singapore [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:143]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
2) Failure:
TestTimeTZ#test_gen_Asia_Singapore_22 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:382]:
TZ=Asia/Singapore Time.utc(1981, 12, 31, 16, 29, 59).localtime.
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
3) Failure:
TestTimeTZ#test_gen_Asia_Singapore_45 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:400]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
I can see no other option than not to test this detail - because relying on correct timezone data (either way) is barely possible.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* [ruby-core:111380] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
2022-12-06 11:33 [ruby-core:111220] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied coolo (Stephan Kulow)
` (7 preceding siblings ...)
2022-12-22 6:00 ` [ruby-core:111379] " duerst via ruby-core
@ 2022-12-22 6:27 ` nobu (Nobuyoshi Nakada) via ruby-core
2022-12-22 8:19 ` [ruby-core:111382] " vo.x (Vit Ondruch) via ruby-core
9 siblings, 0 replies; 11+ messages in thread
From: nobu (Nobuyoshi Nakada) via ruby-core @ 2022-12-22 6:27 UTC (permalink / raw)
To: ruby-core; +Cc: nobu (Nobuyoshi Nakada)
Issue #19187 has been updated by nobu (Nobuyoshi Nakada).
mame (Yusuke Endoh) wrote in #note-7:
> We need to test our logic to handle leap seconds, etc.
> If we remove the dependency on tzdata, I think we need to mock tzdata and test our logic.
I understand your concern, but the changes in [GH-6990] should be unrelated to leap seconds.
[GH-6990]: https://github.com/ruby/ruby/pull/6990
----------------------------------------
Bug #19187: Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
https://bugs.ruby-lang.org/issues/19187#change-100755
* Author: coolo (Stephan Kulow)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux-gnu]
* Backport: 2.7: DONE, 3.0: DONE, 3.1: DONE
----------------------------------------
The timezone database changed incompatible to what ruby's testsuite expects.
See the announcement here: http://mm.icann.org/pipermail/tz-announce/2022-November/000076.html and note the little detail
Singapore's 1981-12-31 change was at 16:00 UTC (23:30 local time),
not 24:00 local time. (Thanks to Geoff Clare via Robert Elz.)
Problem is that test/ruby/test_time_tz.rb tests this very detail in 3 places - and breaks.
1) Failure:
TestTimeTZ#test_asia_singapore [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:143]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
2) Failure:
TestTimeTZ#test_gen_Asia_Singapore_22 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:382]:
TZ=Asia/Singapore Time.utc(1981, 12, 31, 16, 29, 59).localtime.
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
3) Failure:
TestTimeTZ#test_gen_Asia_Singapore_45 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:400]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
I can see no other option than not to test this detail - because relying on correct timezone data (either way) is barely possible.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* [ruby-core:111382] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
2022-12-06 11:33 [ruby-core:111220] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied coolo (Stephan Kulow)
` (8 preceding siblings ...)
2022-12-22 6:27 ` [ruby-core:111380] " nobu (Nobuyoshi Nakada) via ruby-core
@ 2022-12-22 8:19 ` vo.x (Vit Ondruch) via ruby-core
9 siblings, 0 replies; 11+ messages in thread
From: vo.x (Vit Ondruch) via ruby-core @ 2022-12-22 8:19 UTC (permalink / raw)
To: ruby-core; +Cc: vo.x (Vit Ondruch)
Issue #19187 has been updated by vo.x (Vit Ondruch).
I have opened #19251 to discuss the followup.
----------------------------------------
Bug #19187: Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
https://bugs.ruby-lang.org/issues/19187#change-100757
* Author: coolo (Stephan Kulow)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux-gnu]
* Backport: 2.7: DONE, 3.0: DONE, 3.1: DONE
----------------------------------------
The timezone database changed incompatible to what ruby's testsuite expects.
See the announcement here: http://mm.icann.org/pipermail/tz-announce/2022-November/000076.html and note the little detail
Singapore's 1981-12-31 change was at 16:00 UTC (23:30 local time),
not 24:00 local time. (Thanks to Geoff Clare via Robert Elz.)
Problem is that test/ruby/test_time_tz.rb tests this very detail in 3 places - and breaks.
1) Failure:
TestTimeTZ#test_asia_singapore [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:143]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
2) Failure:
TestTimeTZ#test_gen_Asia_Singapore_22 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:382]:
TZ=Asia/Singapore Time.utc(1981, 12, 31, 16, 29, 59).localtime.
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
3) Failure:
TestTimeTZ#test_gen_Asia_Singapore_45 [/home/abuild/rpmbuild/BUILD/ruby-3.1.3/test/ruby/test_time_tz.rb:400]:
TZ=Asia/Singapore Time.local(1981, 12, 31, 23, 59, 59).
<"1981-12-31 23:59:59 +0730"> expected but was
<"1982-01-01 00:29:59 +0800">.
I can see no other option than not to test this detail - because relying on correct timezone data (either way) is barely possible.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2022-12-22 8:19 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-06 11:33 [ruby-core:111220] [Ruby master Bug#19187] Ruby 3.1.3 testsuite fails after timezone 2022g update is applied coolo (Stephan Kulow)
2022-12-07 10:41 ` [ruby-core:111230] " nagachika (Tomoyuki Chikanaga)
2022-12-07 12:47 ` [ruby-core:111231] " nobu (Nobuyoshi Nakada)
2022-12-08 3:35 ` [ruby-core:111236] " usa (Usaku NAKAMURA)
2022-12-08 3:35 ` [ruby-core:111237] " usa (Usaku NAKAMURA)
2022-12-09 12:12 ` [ruby-core:111245] " nagachika (Tomoyuki Chikanaga)
2022-12-21 14:09 ` [ruby-core:111360] " vo.x (Vit Ondruch) via ruby-core
2022-12-22 4:53 ` [ruby-core:111378] " mame (Yusuke Endoh) via ruby-core
2022-12-22 6:00 ` [ruby-core:111379] " duerst via ruby-core
2022-12-22 6:27 ` [ruby-core:111380] " nobu (Nobuyoshi Nakada) via ruby-core
2022-12-22 8:19 ` [ruby-core:111382] " vo.x (Vit Ondruch) via ruby-core
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).