Skip to content

Fix semantic_text mapper tests for BFLOAT16 default element type - #145643

Closed
chrisparrinello wants to merge 5 commits into
elastic:mainfrom
chrisparrinello:bfloat16-by-default
Closed

chrisparrinello wants to merge 5 commits into
elastic:mainfrom
chrisparrinello:bfloat16-by-default

Conversation

@chrisparrinello

Copy link
Copy Markdown
Contributor

Closes #145550 and #145591

Test failure was introduced via the change made in #144236 where BFLOAT16 is now being used for the default type for semantic text. The fix is to check the IndexSettings indirectly to see what the default type is for semanic text. Previous versions of the index can still use FLOAT.

@chrisparrinello
chrisparrinello marked this pull request as ready for review April 2, 2026 19:25
@elasticsearchmachine elasticsearchmachine added the needs:triage Requires assignment of a team area label label Apr 2, 2026
@chrisparrinello chrisparrinello added >test-failure Triaged test failures from CI Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch :Search Foundations/Search Catch all for Search Foundations and removed needs:triage Requires assignment of a team area label labels Apr 2, 2026
@elasticsearchmachine

Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@elasticsearchmachine elasticsearchmachine added the needs:risk Requires assignment of a risk label (low, medium, blocker) label Apr 2, 2026

@Mikep86 Mikep86 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for taking this on @chrisparrinello! I spun up a new PR with what should be a more streamlined fix:

  • Fewer changes to prod code
  • Cleaned up some other test code for better logic reuse

Can you take a look?

@chrisparrinello

Copy link
Copy Markdown
Contributor Author

@Mikep86 I've taken a look at your PR and I've approved it. I'll go ahead and close this one. Thanks for taking care of this!

@chrisparrinello
chrisparrinello deleted the bfloat16-by-default branch April 3, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:risk Requires assignment of a risk label (low, medium, blocker) :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch >test-failure Triaged test failures from CI v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] SemanticTextFieldMapperTests testUpdateInferenceId_GivenCurrentHasNoModelSettingsAndNewIsIncompatibleTaskType_ShouldSucceed {p0=false} failing

3 participants