Skip to content

Commit 7865bce

Browse files
authored
test(vertexai): mark some MAAS tests flaky (#1543)
1 parent 5ef8705 commit 7865bce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libs/vertexai/tests/integration_tests/test_maas.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
@pytest.mark.extended
3131
@pytest.mark.parametrize("model_name", model_names)
32+
@pytest.mark.flaky(retries=3)
3233
def test_generate(model_name: str) -> None:
3334
llm = get_vertex_maas_model(
3435
model_name=model_name, location=model_locations.get(model_name, "us-central1")
@@ -39,6 +40,7 @@ def test_generate(model_name: str) -> None:
3940

4041
@pytest.mark.extended
4142
@pytest.mark.parametrize("model_name", model_names)
43+
@pytest.mark.flaky(retries=3)
4244
async def test_agenerate(model_name: str) -> None:
4345
llm = get_vertex_maas_model(
4446
model_name=model_name, location=model_locations.get(model_name, "us-central1")
@@ -49,6 +51,7 @@ async def test_agenerate(model_name: str) -> None:
4951

5052
@pytest.mark.extended
5153
@pytest.mark.parametrize("model_name", model_names)
54+
@pytest.mark.flaky(retries=3)
5255
def test_stream(model_name: str) -> None:
5356
# streaming currently fails with mistral-nemo@2407
5457
if "stral" in model_name:
@@ -63,6 +66,7 @@ def test_stream(model_name: str) -> None:
6366

6467
@pytest.mark.extended
6568
@pytest.mark.parametrize("model_name", model_names)
69+
@pytest.mark.flaky(retries=3)
6670
async def test_astream(model_name: str) -> None:
6771
# streaming currently fails with mistral-nemo@2407
6872
if "stral" in model_name:

0 commit comments

Comments
 (0)