Skip to content
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

update: remove COMPAT locale provider, change to CLDR #11551

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

hurutoriya
Copy link

@hurutoriya hurutoriya commented Dec 10, 2023

Description

remove COMPAT locale provider, change to CLDR

Related Issues

Resolves #11550

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)
  • Public documentation issue/PR created

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

opensearch-project#11550

Signed-off-by: Shunya Ueta <hurutoriya@users.noreply.github.com>
Signed-off-by: Shunya Ueta <hurutoriya@users.noreply.github.com>
Copy link
Contributor

github-actions bot commented Dec 10, 2023

Compatibility status:

Checks if related components are compatible with change 137e887

Incompatible components

Incompatible components: [https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/performance-analyzer-rca.git]

Skipped components

Compatible components

Compatible components: [https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/alerting.git]

Copy link
Contributor

❌ Gradle check result for b262aae: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

❌ Gradle check result for f450005: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@hurutoriya
Copy link
Author

https://build.ci.opensearch.org/job/gradle-check/31064/testReport/org.opensearch.index.mapper/DateFieldMapperTests/testChangeLocale/

org.opensearch.index.mapper.DateFieldMapperTests.testChangeLocale
MapperParsingException[failed to parse field [field] of type [date] in document with id '1'. Preview of field's value: 'Mi, 06 Dez 2000 02:55:00 -0800']; nested: IllegalArgumentException[failed to parse date field [Mi, 06 Dez 2000 02:55:00 -0800] with format [E, d MMM yyyy HH:mm:ss Z]]; nested: DateTimeParseException[Text 'Mi, 06 Dez 2000 02:55:00 -0800' could not be parsed at index 0];

Hmm, It seems this test error not related to my PR?

Test error point

public void testChangeLocale() throws IOException {

@dblock
Copy link
Member

dblock commented Dec 13, 2023

@hurutoriya iterate to green, if you're hitting flaky tests, see https://github.com/opensearch-project/OpenSearch/blob/main/DEVELOPER_GUIDE.md#flaky-tests for how to deal with those

@dblock
Copy link
Member

dblock commented Dec 13, 2023

Are there any downsides of this change?

@hurutoriya
Copy link
Author

@dblock
Thank you for commenting 🙇

Are there any downsides of this change?

Actually, I am a super beginner in OpenSearch and Java. I need to study this downside effect.

@reta
Copy link
Collaborator

reta commented Dec 15, 2023

Actually, I am a super beginner in OpenSearch and Java. I need to study this downside effect.

@dblock @hurutoriya this change, as per https://openjdk.org/jeps/252, has the following impact:

Locale-sensitive services such as date, time, and number formatting may behave differently for locales not supported in JDK 8. Existing tests and applications will need to be modified.

The tests which are failing are consequences of that (at least it looks like such)

@github-actions github-actions bot added Build Build Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement. CI CI related good first issue Good for newcomers Plugins labels Dec 18, 2023
Copy link
Contributor

❌ Gradle check result for 137e887: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@opensearch-trigger-bot
Copy link
Contributor

This PR is stalled because it has been open for 30 days with no activity.

@opensearch-trigger-bot opensearch-trigger-bot bot added the stalled Issues that have stalled label Jan 23, 2024
@andrross
Copy link
Member

@hurutoriya Looks like the tests are still failing here. Can you take another look?

@opensearch-trigger-bot opensearch-trigger-bot bot removed the stalled Issues that have stalled label Jan 24, 2024
@bbarani
Copy link
Member

bbarani commented Jan 30, 2024

@hurutoriya Can you please look in to the failing tests?

@opensearch-trigger-bot
Copy link
Contributor

This PR is stalled because it has been open for 30 days with no activity.

@opensearch-trigger-bot opensearch-trigger-bot bot added the stalled Issues that have stalled label Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Build Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement. CI CI related good first issue Good for newcomers Plugins stalled Issues that have stalled
Projects
None yet
Development

Successfully merging this pull request may close these issues.

COMPAT locale provider will be removed in a future release
5 participants