Skip to content

Commit 9a2d3c4

Browse files
committed
Retry on flaky test failures
- indices/open.yaml: Add retry to _close prologue steps to handle transient 400 when closing a freshly created index before shards are fully initialized. - terms_aggregate_unsigned_long.yaml: Remove size limit from format chapter so all buckets are returned (avoids version-dependent sum_other_doc_count) and drop key_as_string assertions that vary by precision handling across versions. - ml/models.yaml: Restore retry on "Search model" chapter since model indexing has a delay after registration completes. Observed on: OpenSearch 2.19.5 and 3.6.0 Signed-off-by: Sean Chittenden <sean.chittenden@crowdstrike.com>
1 parent 87d9845 commit 9a2d3c4

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

tests/default/_core/search/aggregations/terms_aggregate_unsigned_long.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ chapters:
150150
metric_ids:
151151
terms:
152152
field: metric_id
153-
size: 2
154153
format: '0,000'
155154
response:
156155
status: 200
@@ -161,10 +160,8 @@ chapters:
161160
sum_other_doc_count: 0
162161
buckets:
163162
- key: 9223372036854775808
164-
key_as_string: '9223372036854776000'
165163
doc_count: 2
166164
- key: 12345678901234567890
167-
key_as_string: '12345678901234567000'
168165
doc_count: 2
169166

170167
- synopsis: Aggregate by unsigned_long field with order by count and verify max uint64 value.

tests/default/indices/open.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,21 @@ prologues:
1515
- path: /movies/_close
1616
method: POST
1717
status: [200]
18+
retry:
19+
count: 3
20+
wait: 1000
1821
- path: /games/_close
1922
method: POST
2023
status: [200]
24+
retry:
25+
count: 3
26+
wait: 1000
2127
- path: /films/_close
2228
method: POST
2329
status: [200]
30+
retry:
31+
count: 3
32+
wait: 1000
2433
epilogues:
2534
- path: /movies,games,films
2635
method: DELETE

tests/plugins/ml/ml/models.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ chapters:
4848
hits:
4949
hits:
5050
- _score: 1
51+
retry:
52+
count: 3
53+
wait: 5000
5154
- synopsis: Get model.
5255
path: /_plugins/_ml/models/{model_id}
5356
method: GET

0 commit comments

Comments
 (0)