Repository navigation
Closed
Labels
Description
What is the bug?
PrometheusDataSourceCommandsIT.testSourceMetricCommandWithTimestamp integration test fails in hi-IN locale.
It first failed in commit 7554fcc but may have existed earlier.
How can one reproduce the bug?
Check out commit 7554fcc and run the following command: ./gradlew ':integ-test:integTest' --tests "org.opensearch.sql.ppl.PrometheusDataSourceCommandsIT.testSourceMetricCommandWithTimestamp" -Dtests.seed=EE70DA8B4C47EEC -Dtests.security.manager=false -Dtests.locale=hi-IN -Dtests.timezone=America/Atka -Druntime.java=11
What is the expected behavior?
All integration tests pass.
What is your host/environment?
Reproduced in both GHA runner and Intel MacBookPro.
Do you have any screenshots?
Relavant logs from GHA runner.
2023-01-11T20:10:21.8510990Z > Task :integ-test:integTest
2023-01-11T20:13:39.0511681Z
2023-01-11T20:13:39.0511697Z
2023-01-11T20:13:39.0512387Z org.opensearch.sql.ppl.PrometheusDataSourceCommandsIT > testSourceMetricCommandWithTimestamp FAILED
2023-01-11T20:13:39.0513187Z org.opensearch.client.ResponseException: method [POST], host [http://127.0.0.1:41195], URI [/_plugins/_ppl], status line [HTTP/1.1 400 Bad Request]
2023-01-11T20:13:39.0513628Z {
2023-01-11T20:13:39.0513832Z "error": {
2023-01-11T20:13:39.0514075Z "reason": "Invalid Query",
2023-01-11T20:13:39.0586771Z "details": "timestamp:२०२३-०१-११ ०९:१३:३८ in unsupported format, please use yyyy-MM-dd HH:mm:ss[.SSSSSSSSS]",
2023-01-11T20:13:39.0587289Z "type": "SemanticCheckException"
2023-01-11T20:13:39.0587560Z },
2023-01-11T20:13:39.0587789Z "status": 400
2023-01-11T20:13:39.0587990Z }
2023-01-11T20:13:39.0588324Z at __randomizedtesting.SeedInfo.seed([EE70DA8B4C47EEC:85EEEEEA4DE307AB]:0)
2023-01-11T20:13:39.0588829Z at app//org.opensearch.client.RestClient.convertResponse(RestClient.java:384)
2023-01-11T20:13:39.0589365Z at app//org.opensearch.client.RestClient.performRequest(RestClient.java:354)
2023-01-11T20:13:39.0589885Z at app//org.opensearch.client.RestClient.performRequest(RestClient.java:329)
2023-01-11T20:13:39.0590900Z at app//org.opensearch.sql.ppl.PPLIntegTestCase.executeQueryToString(PPLIntegTestCase.java:33)
2023-01-11T20:13:39.0591565Z at app//org.opensearch.sql.ppl.PPLIntegTestCase.executeQuery(PPLIntegTestCase.java:29)
2023-01-11T20:13:39.0592382Z at app//org.opensearch.sql.ppl.PrometheusDataSourceCommandsIT.testSourceMetricCommandWithTimestamp(PrometheusDataSourceCommandsIT.java:56)
2023-01-11T20:13:39.5514373Z REPRODUCE WITH: ./gradlew ':integ-test:integTest' --tests "org.opensearch.sql.ppl.PrometheusDataSourceCommandsIT.testSourceMetricCommandWithTimestamp" -Dtests.seed=EE70DA8B4C47EEC -Dtests.security.manager=false -Dtests.locale=hi-IN -Dtests.timezone=America/Atka -Druntime.java=11
Activity
[-][BUG] PrometheusDataSourceCommandsIT.testSourceMetricCommandWithTimestamp fails in Hindi locale[/-][+][BUG] Prometheus integration test fails in Hindi locale[/+]Yury-Fridlyand commentedon Jan 30, 2023
Also failed with
ja-JP-u-ca-japanese-x-lvariant-JPlocale:derek-ho commentedon Feb 17, 2023
It seems like this is a bug even on Linux, not related to windows, but still tagging with 2.7
vamsimanohar commentedon Mar 1, 2023
@MaxKsyunz @Yury-Fridlyand
when do we run in HIndi locale? Whats the trigger for this and is there an automated process to check for all locales?
Yury-Fridlyand commentedon Mar 1, 2023
ITs pick a random locale and TZ every time. Check out the block above, it contains a command to reproduce this.
MaxKsyunz commentedon Apr 20, 2023
We ran into another locale that uses non-Arabic numerals:
MaxKsyunz commentedon Jul 5, 2023
@acarbonetto I removed the v2.9.0 label since this has not been worked on this dev cycle AFAIK.
Fix Prometheus integration test availability check and locale-sensiti…
Fix Prometheus integration test availability check and locale-sensiti…