Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Inference API] Make AzureOpenAiSecretSettingsTests BWC ready #109928

Merged

Conversation

timgrein
Copy link
Contributor

We should guard against potential BWC issues in the future by explicitly implementing AbstractBWCWireSerializationTestCase beforehand

@timgrein timgrein added >test Issues or PRs that are addressing/adding tests :ml Machine learning Team:ML Meta label for the ML team v8.15.0 labels Jun 19, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@@ -143,6 +144,11 @@ protected AzureOpenAiSecretSettings mutateInstance(AzureOpenAiSecretSettings ins
return randomValueOtherThan(instance, AzureOpenAiSecretSettingsTests::createRandom);
}

@Override
protected AzureOpenAiSecretSettings mutateInstanceForVersion(AzureOpenAiSecretSettings instance, TransportVersion version) {
return instance;
Copy link
Member

Choose a reason for hiding this comment

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

is the idea here that we only have one version, so there is no mutation to do?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes exactly, it kinda acts as a reminder to implement mutation tests, if something on the transport level changes

Copy link
Member

@davidkyle davidkyle left a comment

Choose a reason for hiding this comment

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

LGTM

@timgrein timgrein merged commit 32aece6 into elastic:main Jun 21, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:ml Machine learning Team:ML Meta label for the ML team >test Issues or PRs that are addressing/adding tests v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants