Skip to content

[8.19] Fix size of the bulks used in BulkInferenceExecutorTests (#129640) #129687

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

Merged
merged 1 commit into from
Jun 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void shutdownThreadPool() {
}

public void testSuccessfulExecution() throws Exception {
List<InferenceAction.Request> requests = randomInferenceRequestList(between(1, 10_000));
List<InferenceAction.Request> requests = randomInferenceRequestList(between(1, 1000));
List<InferenceAction.Response> responses = randomInferenceResponseList(requests.size());

InferenceRunner inferenceRunner = mockInferenceRunner(invocation -> {
Expand Down Expand Up @@ -93,7 +93,7 @@ public void testSuccessfulExecutionOnEmptyRequest() throws Exception {
}

public void testInferenceRunnerAlwaysFails() throws Exception {
List<InferenceAction.Request> requests = randomInferenceRequestList(between(1, 10_000));
List<InferenceAction.Request> requests = randomInferenceRequestList(between(1, 1000));

InferenceRunner inferenceRunner = mock(invocation -> {
runWithRandomDelay(() -> {
Expand All @@ -115,7 +115,7 @@ public void testInferenceRunnerAlwaysFails() throws Exception {
}

public void testInferenceRunnerSometimesFails() throws Exception {
List<InferenceAction.Request> requests = randomInferenceRequestList(between(1, 10_000));
List<InferenceAction.Request> requests = randomInferenceRequestList(between(1, 1000));

InferenceRunner inferenceRunner = mockInferenceRunner(invocation -> {
ActionListener<InferenceAction.Response> listener = invocation.getArgument(1);
Expand Down