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

Fix and unmute org.elasticsearch.script.StatsSummaryTests:testEqualsAndHashCode #115922

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

ChrisHegarty
Copy link
Contributor

@ChrisHegarty ChrisHegarty commented Oct 30, 2024

This commit fixes and unmutes org.elasticsearch.script.StatsSummaryTests:testEqualsAndHashCode.

Previously, there was no guarantee that the doubles added to stats1 and stats2 will be different. In fact, the count may even be zero - which we seen in one particular failure. The simplest thing here, to avoid this potential situation, is to ensure that there is at least one value, and that the values added to each stats instance are different.

closes #112511
closes #112439

@ChrisHegarty ChrisHegarty added >test Issues or PRs that are addressing/adding tests Team:Search Meta label for search team :Search Relevance/Search Catch all for Search Relevance v9.0.0 v8.17.0 labels Oct 30, 2024
@elasticsearchmachine elasticsearchmachine added Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch and removed Team:Search Meta label for search team labels Oct 30, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

@ChrisHegarty ChrisHegarty enabled auto-merge (squash) October 30, 2024 11:10
@ChrisHegarty ChrisHegarty added the auto-backport Automatically create backport pull requests when merged label Oct 30, 2024
@ChrisHegarty ChrisHegarty merged commit c6f7827 into elastic:main Oct 30, 2024
14 of 17 checks passed
ChrisHegarty added a commit that referenced this pull request Oct 30, 2024
…ndHashCode (#115922)

This commit fixes and unmutes org.elasticsearch.script.StatsSummaryTests:testEqualsAndHashCode.

Previously, there was no guarantee that the doubles added to stats1 and stats2 will be different. In fact, the count may even be zero - which we seen in one particular failure. The simplest thing here, to avoid this potential situation, is to ensure that there is at least one value, and that the values added to each stats instance are different.
@ChrisHegarty ChrisHegarty deleted the fix_StatsSummaryTests branch October 30, 2024 11:40
@elastic elastic deleted a comment from elasticsearchmachine Oct 30, 2024
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request Nov 4, 2024
…ndHashCode (elastic#115922)

This commit fixes and unmutes org.elasticsearch.script.StatsSummaryTests:testEqualsAndHashCode.

Previously, there was no guarantee that the doubles added to stats1 and stats2 will be different. In fact, the count may even be zero - which we seen in one particular failure. The simplest thing here, to avoid this potential situation, is to ensure that there is at least one value, and that the values added to each stats instance are different.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged backport pending :Search Relevance/Search Catch all for Search Relevance Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch >test Issues or PRs that are addressing/adding tests v8.17.0 v9.0.0
Projects
None yet
3 participants