-
-
Notifications
You must be signed in to change notification settings - Fork 765
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
ICU-22505 Ensure default TZ remains unchanged by each test #2670
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed. Thanks.
icu4j/main/common_tests/src/test/java/com/ibm/icu/dev/test/CoreTestFmwk.java
Outdated
Show resolved
Hide resolved
icu4j/main/common_tests/src/test/java/com/ibm/icu/dev/test/CoreTestFmwk.java
Outdated
Show resolved
Hide resolved
icu4j/main/common_tests/src/test/java/com/ibm/icu/dev/test/CoreTestFmwk.java
Outdated
Show resolved
Hide resolved
icu4j/main/common_tests/src/test/java/com/ibm/icu/dev/test/CoreTestFmwk.java
Outdated
Show resolved
Hide resolved
icu4j/main/common_tests/src/test/java/com/ibm/icu/dev/test/CoreTestFmwk.java
Outdated
Show resolved
Hide resolved
icu4j/main/common_tests/src/test/java/com/ibm/icu/dev/test/CoreTestFmwk.java
Outdated
Show resolved
Hide resolved
icu4j/main/common_tests/src/test/java/com/ibm/icu/dev/test/CoreTestFmwk.java
Outdated
Show resolved
Hide resolved
icu4j/main/common_tests/src/test/java/com/ibm/icu/dev/test/format/NumberFormatTest.java
Outdated
Show resolved
Hide resolved
icu4j/main/common_tests/src/test/java/com/ibm/icu/dev/test/number/NumberParserTest.java
Show resolved
Hide resolved
It looks like this PR only adds the detection, but does not fix anything |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much!
Sorry for the delay, it was a lot bigger than I thought :-)
@markusicu @yumaoka @roubert @hugovdm I'll wait a little bit before squashing so you can have a chance to review commit by commit, if you want. Despite the number of files touched in this PR, I don't think much of it is interesting beyond Summary:
|
Please hoist this summary up to the PR description for easier discovery later.
Ticket? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
icu4j/main/core/src/test/java/com/ibm/icu/dev/test/CoreTestFmwk.java
Outdated
Show resolved
Hide resolved
icu4j/main/framework/src/test/java/com/ibm/icu/dev/test/TestFmwk.java
Outdated
Show resolved
Hide resolved
icu4j/main/framework/src/test/java/com/ibm/icu/dev/test/TestFmwk.java
Outdated
Show resolved
Hide resolved
I'm sorry to say, but I just fetched the echeran/ICU-22505 branch into my own repository and ran |
This is good... for locally reproducing! Can you load it into an IDE and debug and tell us which test fails why? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are also passing on my machine on commit 0af450b. 👍
(I did need an "mvn clean", interestingly - due to my previous build from my own branch.)
Great to hear, and thanks for the info on needing to use As @mihnita mentioned in the ICU-TC meeting on Thursday, the key to reproducing the problem was when he realized that there are 2 different systems for setting the default time zone on Linux, and Debian and Ubuntu differ on which one they prefer in their desktop UIs. He wrote:
|
Done.
|
I've now taken a closer look at what exactly fails in common_tests for me and it seems like it's unrelated to timezones and this PR, the failure is in
If I delete that test case then |
Good to know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm pse squash
Hooray! The files in the branch are the same across the force-push. 😃 ~ Your Friendly Jira-GitHub PR Checker Bot |
Summary:
TimeZone.getDefault()
always checks the latest value, but ICUTimeZone.getDefault()
gets whatever is cached.As @mihnita mentioned in the ICU-TC meeting on Thursday, the key to reproducing the problem was when he realized that there are 2 different systems for setting the default time zone on Linux, and Debian and Ubuntu differ on which one they prefer in their desktop UIs. He wrote:
Checklist