Skip to content

Conversation

@edsavage
Copy link
Contributor

The ml-cpp PR elastic/ml-cpp#2846 introduces changes to how memory values are calculated and reported for Linux platforms. This PR adjusts test case values accordingly.

The ml-cpp PR elastic/ml-cpp#2846 introduces
changes to how memory values are calculated and reported for Linux
platforms. This PR adjusts test case values accordingly.
@edsavage edsavage added >non-issue >test Issues or PRs that are addressing/adding tests :ml Machine learning v9.2.0 labels Jul 28, 2025
@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label Jul 28, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

Copy link
Contributor

@valeriy42 valeriy42 left a comment

Choose a reason for hiding this comment

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

LGTM

@edsavage edsavage merged commit f7e3fe1 into elastic:main Jul 31, 2025
33 checks passed
afoucret pushed a commit to afoucret/elasticsearch that referenced this pull request Jul 31, 2025
…#131981)

The ml-cpp PR elastic/ml-cpp#2846 introduces
changes to how memory values are calculated and reported for Linux
platforms. This PR adjusts test case values accordingly.
smalyshev pushed a commit to smalyshev/elasticsearch that referenced this pull request Jul 31, 2025
…#131981)

The ml-cpp PR elastic/ml-cpp#2846 introduces
changes to how memory values are calculated and reported for Linux
platforms. This PR adjusts test case values accordingly.
valeriy42 added a commit that referenced this pull request Oct 31, 2025
…nd improve model size assertions (#135526)

Previously, the upper bound for model memory checks was set in absolute terms, which is not easy to understand and is brittle. I adjusted the assertions to ensure that the memory usage does not exceed 5% of the memory limit. Additionally, on Linux, we now report the process size (see #131981), which includes approximately 20 MB of native code overhead. I made handling this overhead more explicit.

More details:

Removed muted tests for testManyDistinctOverFields and testTooManyByAndOverFields.
Introduced constants for memory limits in AutodetectMemoryLimitIT.
Updated assertions to check effective model size against calculated limits.
Closes #132308
Closes #132310
Closes #132611
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:ml Machine learning >non-issue Team:ML Meta label for the ML team >test Issues or PRs that are addressing/adding tests v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants