Skip to content

Commit 73faed9

Browse files
committed
[CI] Increase retries for 409 on Serverless tests
This test still takes longer on Serverless, 20 retries worked for `9.0`, so hopefully will work on main too. Error: ``` Test: machine_learning/20_trained_model_serverless.yml Action: ["do", {"ml.infer_trained_model" => {"model_id" => "test_model", "body" => "{\n \"docs\": [\n { \"input\": \"words\" }\n ]\n}\n"}}] Hash - [409] {"error":{"root_cause":[{"type":"status_exception","reason":"Trained model deployment [test_model] is not allocated to any nodes"}],"type":"status_exception","reason":"Trained model deployment [test_model] is not allocated to any nodes"},"status":409} ```
1 parent 2e05d31 commit 73faed9

File tree

1 file changed

+1
-1
lines changed
  • elasticsearch-api/spec/yaml-test-runner

1 file changed

+1
-1
lines changed

elasticsearch-api/spec/yaml-test-runner/run.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def serverless?
6363
options.merge!(
6464
{
6565
retry_on_status: [409, 400, 503],
66-
retry_on_failure: 10,
66+
retry_on_failure: 20,
6767
delay_on_retry: 10_000,
6868
request_timeout: 120
6969
}

0 commit comments

Comments
 (0)