Skip to content

Fix test to use date-time strings at corresponding precision for from and to. #127899

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

Merged
merged 2 commits into from
May 8, 2025

Conversation

mosche
Copy link
Contributor

@mosche mosche commented May 8, 2025

Prior to switching to Java time, Joda's LocalTime#toString() consistently formatted time using HH:mm:ss.SSS.
Java's LocalTime#toString(), however, outputs the shortest possible representation and might omit seconds, milliseconds, etc. This might cause from and to to have a different precision once stringified.

When passed through the roundup parsers, from and to might be rounded up differently due to that.

This PR fixes the test to use datetime strings at a consistent precision for from and to.

Fixes #86284

@mosche mosche requested a review from rjernst May 8, 2025 08:09
@mosche mosche added :Core/Infra/Core Core issues without another label >test-failure Triaged test failures from CI labels May 8, 2025
@elasticsearchmachine elasticsearchmachine added v9.1.0 Team:Core/Infra Meta label for core/infra team labels May 8, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@elasticsearchmachine elasticsearchmachine added the needs:risk Requires assignment of a risk label (low, medium, blocker) label May 8, 2025
@mosche mosche added >test Issues or PRs that are addressing/adding tests and removed >test-failure Triaged test failures from CI needs:risk Requires assignment of a risk label (low, medium, blocker) labels May 8, 2025
Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mosche mosche merged commit 7713ba1 into elastic:main May 8, 2025
17 checks passed
ywangd pushed a commit to ywangd/elasticsearch that referenced this pull request May 9, 2025
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Core Core issues without another label Team:Core/Infra Meta label for core/infra team >test Issues or PRs that are addressing/adding tests v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] RangeFieldTypeTests testRangeQueryIntersectsAdjacentValues failing
3 participants