Skip to content

Add extra info to debug an unexpected warning in tests#143217

Merged
elasticsearchmachine merged 6 commits intoelastic:mainfrom
gmarouli:add-extra-info-for-test-debugging
Mar 2, 2026
Merged

Add extra info to debug an unexpected warning in tests#143217
elasticsearchmachine merged 6 commits intoelastic:mainfrom
gmarouli:add-extra-info-for-test-debugging

Conversation

@gmarouli
Copy link
Copy Markdown
Contributor

@gmarouli gmarouli commented Feb 27, 2026

In #141877, we deprecated the default_metric of an aggregate_metric_double. However, the following tests (#142544, #142964, #142410 & #142477) seem to encounter this warning even if they are not expected to set the default_metric.

In this PR, we did the following:

  • For [CI] EsqlClientYamlIT test {p0=esql/40_tsdb/TS Command grouping on text field} failing #142544, we added the api group information in the warning failure exception, so that a yaml test will not only log the warning but it will also share more info about the api call.
  • For the other two, we catch the exception in FieldExtractorTestCase and log the mapping of the index, we hope that this can help us trace if there was a template used or not.
  • We also unmute the test because we cannot reproduce them locally.

@gmarouli gmarouli added >test Issues or PRs that are addressing/adding tests :StorageEngine/Mapping The storage related side of mappings labels Feb 27, 2026
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

@gmarouli gmarouli requested a review from limotova February 27, 2026 15:14
@gmarouli gmarouli added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Mar 2, 2026
@elasticsearchmachine elasticsearchmachine merged commit e1e67c9 into elastic:main Mar 2, 2026
35 checks passed
@gmarouli gmarouli deleted the add-extra-info-for-test-debugging branch March 2, 2026 10:24
tballison pushed a commit to tballison/elasticsearch that referenced this pull request Mar 3, 2026
In elastic#141877, we deprecated
the `default_metric` of an `aggregate_metric_double`. However, the
following tests (elastic#142544,
elastic#142964,
elastic#142410 &
elastic#142477) seem to
encounter this warning even if they are not expected to set the
`default_metric`. 

In this PR, we did the following: - For elastic#142544, we added the api group
information in the warning failure exception, so that a yaml test will
not only log the warning but it will also share more info about the api
call. - For the other two, we catch the exception in
`FieldExtractorTestCase` and log the mapping of the index, we hope that
this can help us trace if there was a template used or not. - We also
unmute the test because we cannot reproduce them locally.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :StorageEngine/Mapping The storage related side of mappings Team:StorageEngine >test Issues or PRs that are addressing/adding tests v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants