-
Notifications
You must be signed in to change notification settings - Fork 88
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
Set the JVM locale fix to en-US when running tests #98
Conversation
This fixes prestodb/presto#6655, as I verified the tests will succeed under Polish language setting. However, when I set the Presto root pom.xml to use
Will check if it's an issue with the current airbase pom.xml . |
The guava is a separate issue and will be fixed by prestodb/presto#6995 |
@wenleix any plans? Can we close prestodb/presto#6655 ? |
@electrum : Any suggestions? Thanks! |
Should we add properties for this? That would allow running tests multiple times for different locales. Otherwise, I’m fine to merge this. Please rebase and add CHANGES. |
It think it should remain possible to run tests with different locales. For
example, we could want to run CLI or JDBC tests with different locales.
|
@wenleix is there anything blocking from merging this and releasing a new version? |
Thanks for the reminder. I’ll merge and release when I arrive at the office.
|
Chatted with @wenleix and he's going to update it. I also wanted to know if it could use |
@electrum : Rebased. Thanks! |
CHANGES.md
Outdated
@@ -1,3 +1,6 @@ | |||
Airbase 85 | |||
* Set the JVM locale fix to en-US when running tests |
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.
Use en-US locale when running Surefire tests.
CHANGES.md
Outdated
@@ -1,3 +1,6 @@ | |||
Airbase 85 | |||
* Set the JVM locale fix to en-US when running tests |
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.
Nit: add newline after version header
I am happy to see this approved. @wenleix could you please rebase? |
CHANGES.md
Outdated
@@ -3,6 +3,7 @@ Airbase 89 | |||
* Dependency updates: | |||
- validation-api 2.0.1 (from 1.1.0) | |||
- BVal 2.0.0 (from 1.1.1) | |||
* Set the JVM locale fix to en-US when running Surefire tests. |
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.
Did you mean to leave the word “fix” there? It doesn’t sound right.
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.
"pin" ?
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.
"...fixed to en-US..." ?
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.
I think it should just say "Set the default JVM local for Surefire tests to en-US. It can be customized via the air.test.language
and air.test.region
properties".
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.
Thanks @martint . Addressed.
This avoids different exception messages under different system languages.
@electrum : Can you merge the PR ? Thanks! |
This avoids different exception messages under different system
languages.