Skip to content

Conversation

@javanna
Copy link
Member

@javanna javanna commented Mar 31, 2025

We have some tolerance wound how many bytes we report for these completion fields. But the values depend on the distribution of the random values that determine how many docs get an option field. This commit makes the test more precise by computing the real ratio between docs that have the optional field and the total number of docs, so that we can base assertion on more realistic expectations.

Closes #123269

…Fields (elastic#125849)

We have some tolerance wound how many bytes we report for these completion fields. But the
values depend on the distribution of the random values that determine how many docs get
an option field. This commit makes the test more precise by computing the real ratio
between docs that have the optional field and the total number of docs, so that we
can base assertion on more realistic expectations.

Closes elastic#123269
@javanna javanna added >test Issues or PRs that are addressing/adding tests backport :Search Foundations/Search Catch all for Search Foundations labels Mar 31, 2025
@javanna javanna added v8.18.1 v8.17.5 auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) auto-backport Automatically create backport pull requests when merged labels Mar 31, 2025
@elasticsearchmachine elasticsearchmachine merged commit eec4189 into elastic:8.x Mar 31, 2025
15 checks passed
@javanna javanna deleted the backport/8x/125849 branch March 31, 2025 15:21
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.18
8.17

javanna added a commit to javanna/elasticsearch that referenced this pull request Mar 31, 2025
…Fields (elastic#125849) (elastic#125951)

We have some tolerance wound how many bytes we report for these completion fields. But the
values depend on the distribution of the random values that determine how many docs get
an option field. This commit makes the test more precise by computing the real ratio
between docs that have the optional field and the total number of docs, so that we
can base assertion on more realistic expectations.

Closes elastic#123269
elasticsearchmachine pushed a commit that referenced this pull request Mar 31, 2025
…Fields (#125849) (#125951) (#125963)

We have some tolerance wound how many bytes we report for these completion fields. But the
values depend on the distribution of the random values that determine how many docs get
an option field. This commit makes the test more precise by computing the real ratio
between docs that have the optional field and the total number of docs, so that we
can base assertion on more realistic expectations.

Closes #123269
javanna added a commit that referenced this pull request Apr 1, 2025
…Fields (#125849) (#125951) (#125962)

We have some tolerance wound how many bytes we report for these completion fields. But the
values depend on the distribution of the random values that determine how many docs get
an option field. This commit makes the test more precise by computing the real ratio
between docs that have the optional field and the total number of docs, so that we
can base assertion on more realistic expectations.

Closes #123269
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 auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Search Foundations/Search Catch all for Search Foundations >test Issues or PRs that are addressing/adding tests v8.17.5 v8.18.1 v8.19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants