Skip to content

File tree

6 files changed

+11
-2
lines changed

6 files changed

+11
-2
lines changed

tests/python_tests/samples/test_benchmark_image_gen.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import os
55
import pytest
66
import sys
7+
import subprocess # nosec B404
78

89
from conftest import SAMPLES_PY_DIR, SAMPLES_CPP_DIR, download_test_content
910
from test_utils import run_sample
@@ -26,6 +27,7 @@ class TestBenchmarkImageGen:
2627
pytest.param("images/image.png", "mask_image.png"),
2728
], indirect=["download_test_content", "download_mask_image"],
2829
)
30+
@pytest.mark.xfail(reason="Failed to open model_index.json. Ticket 171245", raises=subprocess.CalledProcessError)
2931
def test_sample_benchmark_image_gen(self, download_model, pipeline_type, prompt, download_test_content, download_mask_image):
3032
inference_steps = "3"
3133
# Run C++ benchmark sample

tests/python_tests/samples/test_heterogeneous_stable_diffusion.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import os
55
import pytest
66
import sys
7+
import subprocess # nosec B404
78

89
from conftest import SAMPLES_PY_DIR, SAMPLES_CPP_DIR
910
from test_utils import run_sample
@@ -18,6 +19,7 @@ class TestHeterogeneousStableDiffusion:
1819
],
1920
indirect=["download_model"],
2021
)
22+
@pytest.mark.xfail(reason="Failed to open model_index.json. Ticket 171245", raises=subprocess.CalledProcessError)
2123
def test_sample_heterogeneous_stable_diffusion(self, download_model, prompt):
2224
# Run Python sample
2325
py_script = os.path.join(SAMPLES_PY_DIR, "image_generation/heterogeneous_stable_diffusion.py")

tests/python_tests/samples/test_image2image.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import os
55
import pytest
66
import sys
7+
import subprocess # nosec B404
78

89
from conftest import SAMPLES_PY_DIR, SAMPLES_CPP_DIR
910
from test_utils import run_sample
@@ -19,6 +20,7 @@ class TestImage2Image:
1920
indirect=["download_model"],
2021
)
2122
@pytest.mark.parametrize("download_test_content", ["images/image.png"], indirect=True)
23+
@pytest.mark.xfail(reason="Failed to open model_index.json. Ticket 171245", raises=subprocess.CalledProcessError)
2224
def test_sample_image2image(self, download_model, prompt, download_test_content):
2325
# Run Python sample
2426
py_script = os.path.join(SAMPLES_PY_DIR, "image_generation/image2image.py")
@@ -44,6 +46,7 @@ def test_sample_image2image(self, download_model, prompt, download_test_content)
4446
indirect=["download_model"],
4547
)
4648
@pytest.mark.parametrize("download_test_content", ["images/image.png"], indirect=True)
49+
@pytest.mark.xfail(reason="Failed to open model_index.json. Ticket 171245", raises=subprocess.CalledProcessError)
4750
def test_sample_image2image_concurrency(self, download_model, prompts, download_test_content):
4851
# Run C++ sample
4952
cpp_sample = os.path.join(SAMPLES_CPP_DIR, 'image2image_concurrency')

tests/python_tests/samples/test_inpainting.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import os
55
import pytest
66
import sys
7+
import subprocess # nosec B404
78

89
from conftest import SAMPLES_PY_DIR, SAMPLES_CPP_DIR, download_test_content
910
from test_utils import run_sample
@@ -27,6 +28,7 @@ class TestInpainting:
2728
],
2829
indirect=["download_test_content", "download_mask_image"],
2930
)
31+
@pytest.mark.xfail(reason="Failed to open model_index.json. Ticket 171245", raises=subprocess.CalledProcessError)
3032
def test_sample_inpainting(self, download_model, prompt, download_test_content, download_mask_image):
3133
# Run Python sample
3234
py_script = os.path.join(SAMPLES_PY_DIR, "image_generation/inpainting.py")

tests/python_tests/test_llm_pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ def test_perf_metrics(generation_config, prompt):
703703
durations = np.array(raw_metrics.m_durations) / 1000
704704
# Check that prefill is not included in durations for TPOT calculation.
705705
# For the very long prompt prefill is slow and TTFT is much larger than any other token generation duration.
706-
assert np.all(mean_ttft > durations * 2)
706+
assert np.all(mean_ttft > durations)
707707

708708
mean_tpot, std_tpot = perf_metrics.get_tpot()
709709
assert (mean_tpot, std_tpot) == (perf_metrics.get_tpot().mean, perf_metrics.get_tpot().std)

tests/python_tests/test_llm_pipeline_static.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def generate_chat_history(model_path, device, pipeline_config, questions):
5353
@pytest.mark.parametrize("generation_config", generation_configs)
5454
@pytest.mark.parametrize("config", pipeline_configs)
5555
@pytest.mark.parametrize("model_id", get_models_list())
56-
@pytest.mark.xfail("win32" == sys.platform, reason="Generation result mismatch. Ticket 171117", raises=AssertionError)
56+
@pytest.mark.xfail(reason="Generation result mismatch. Ticket 171117", raises=AssertionError)
5757
def test_generation_compare_with_stateful(generation_config, config, model_id):
5858
prompt = 'What is OpenVINO?'
5959
_, _, model_path = download_and_convert_model(model_id)

0 commit comments

Comments
 (0)