Cherry-pick GH actions script from TrinoDB#15649
Conversation
a4c602e to
7deb53f
Compare
eb5d58b to
823c3c6
Compare
presto-main/src/test/java/com/facebook/presto/block/TestBlockBuilder.java
Outdated
Show resolved
Hide resolved
wenleix
left a comment
There was a problem hiding this comment.
LGTM % nits. Thanks for the work!
|
I am still fixing some things so give me a bit. Some really annoying time zone issues. |
823c3c6 to
4848c68
Compare
|
@wenleix I updated edb3289fafe0b23ec9f1295315908a2f145f822e 'Add America/Nuuk time zone' and it's more substantial now so worth reviewing. The issue was that I was getting test failures and I found a PR from PrestoSQL that addresses them and also adds a modernizer rule to prohibit using an API for TimeZone and DateTimeZone that can result in unrecognized time zones silently defaulting to GMT. |
b632759 to
d8f38c1
Compare
Co-authored-by: Anu Sudarsan <anu.at.infy@gmail.com> Co-authored-by: David Phillips <david@acz.org> Co-authored-by: Bin Fan <fanbin103@gmail.com> Co-authored-by: Grzegorz Kokosiński <grzegorz@starburstdata.com> Co-authored-by: Jacob I. Komissar <jacob.komissar@starburstdata.com> Co-authored-by: yashaswaj <jainyashaswa2@gmail.com> Co-authored-by: Karol Sobczak <karol.sobczak@karolsobczak.com> Co-authored-by: Łukasz Osipiuk <lukasz@osipiuk.net> Co-authored-by: Mateusz Gajewski <mateusz.gajewski@gmail.com> Co-authored-by: Piotr Findeisen <piotr.findeisen@gmail.com> Co-authored-by: Michał Ślizak <michal.slizak+github@gmail.com>
Cherrypick of trinodb/trino#4463 Cherrypick of trinodb/trino#5676 Co-authored-by: David Phillips <david@acz.org> Co-authored-by: Piotr Findeisen <piotr.findeisen@gmail.com>
d8f38c1 to
a99ecf5
Compare
| @Test | ||
| public void testNewBlockBuilderLikeForLargeBlockBuilder() | ||
| { | ||
| if (true) { |
There was a problem hiding this comment.
can you instead disable it in the @Test annotation like@Test(enabled = false). That's how we usually disable things
There was a problem hiding this comment.
Then it doesn't show up in the count as skipped?
Originally that is what I did, but then it hid the fact we were skipping a test.
There was a problem hiding this comment.
interesting. maybe we should be doing that in general then.
|
Unfortunately this seems to have broken a query in timezone 'America/Dawson'. We have an instance where it is returning different results after the upgrade. Haven't root caused why exactly yet, but I hope to be able to share a reproducer soon. 0.247 0.248 So they wouldn't group the same way, but this also suggests that the predicates will be slightly off as well. These are off by an hour. The predicate that is inconsistent, Lookup.timezone_name is always 'America/Dawson'. time_stop is either 0 or a value like 1615100879 and one example is of time start (paired with the non-zero time stop) is 1614668884. https://pastebin.com/FjemTqE4 is the values. Every instance of these was present in 0.247, but was not materialized by the query in 0.248. It's also possible it's not actually this predicate, but the grouping being different on these two columns: I should add it cuts both ways and there are values (215) that appeared in 0.248 that didn't appear in 0.247 |
|
Switching from 2.10.6 to 2.10.7 upgrades the time zone data from 2020a to 2020c which impacts https://www.joda.org/joda-time/changes-report.html#a2.10.7 |
Test plan
Look at the test results and see that they are good.
You can see it in action in my repo here https://github.com/aweisberg/presto/pull/3/checks?check_run_id=1965794614 - Finally got a passing run!
It doesn't seem to run in Presto yet, maybe it won't until we have at least one workflow landed.
I think we should run both for a little bit and see how GH actions does.
depends on https://github.com/facebookexternal/presto-facebook/pull/1430