Skip to content

Conversation

@timgrein
Copy link
Contributor

Noticed that components.add(calculator) was just needed to make InferenceServiceNodeLocalRateLimitCalculatorTests work as these tests explicitly requested a concrete implementation of InferenceServiceRateLimitCalculator, so it had to be explicitly known to Guice. I've adapted the tests to request the interface instead and check, if it's the correct instance for the test and cast it accordingly (we want to test with the real calculator and not the noop one). This removes the need for adding the calculator two times.

I feel like this should be backported? Otherwise we've two cluster state listeners doing the same thing and only one gets injected?

…s and cast to concrete instance and make sure it's the correct one for the test.
@timgrein timgrein added >non-issue :ml Machine learning Team:ML Meta label for the ML team auto-backport Automatically create backport pull requests when merged v9.0.0 v8.18.0 labels Jan 30, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Hi @timgrein, I've created a changelog YAML for you.

@timgrein timgrein added >non-issue >test Issues or PRs that are addressing/adding tests and removed >bug >non-issue labels Jan 30, 2025
@timgrein timgrein merged commit 2993998 into elastic:main Jan 31, 2025
17 checks passed
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.18 Commit could not be cherrypicked due to conflicts
8.x Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 121284

@timgrein
Copy link
Contributor Author

timgrein commented Feb 3, 2025

💚 All backports created successfully

Status Branch Result
8.x
9.0
8.18

Questions ?

Please refer to the Backport tool documentation

timgrein added a commit that referenced this pull request Feb 3, 2025
timgrein added a commit that referenced this pull request Feb 3, 2025
timgrein added a commit that referenced this pull request Feb 3, 2025
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 :ml Machine learning Team:ML Meta label for the ML team >test Issues or PRs that are addressing/adding tests v8.18.0 v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants