Skip to content

Commit 4d8f649

Browse files
authored
[test_examples] Install WWB version compatible with nightly openvino-genai (#3339)
### Changes `whowhatbench` tool depends on `openvino-genai` module, but it takes it from PyPI by default, so it depends on released OpenVINO version, so it install it and we're getting this in validation cycles: ``` ImportError: libopenvino.so.2500: cannot open shared object file: No such file or directory ``` This PR hacks `test_examples.py` (`llm_tune_params` test to be exact) to install nightly versions of `openvino-genai` and `whowhatbench`
1 parent b1af5d1 commit 4d8f649

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/cross_fw/examples/test_examples.py

+6
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,13 @@ def test_examples(
9595

9696
if ov_version_override is not None:
9797
ov_version_cmd_line = f"{pip_with_venv} install {ov_version_override}"
98+
uninstall_cmd_line = f"{pip_with_venv} uninstall --yes openvino-genai openvino_tokenizers"
99+
extra_index_url = "https://storage.openvinotoolkit.org/simple/wheels/nightly"
100+
wwb_module_string = "whowhatbench@git+https://github.com/openvinotoolkit/openvino.genai.git#subdirectory=tools/who_what_benchmark"
101+
wwb_override_cmd_line = f"{pip_with_venv} install --pre --extra-index-url {extra_index_url} {wwb_module_string}"
98102
subprocess.run(ov_version_cmd_line, check=True, shell=True)
103+
subprocess.run(uninstall_cmd_line, check=True, shell=True)
104+
subprocess.run(wwb_override_cmd_line, check=True, shell=True)
99105

100106
subprocess.run(f"{pip_with_venv} list", check=True, shell=True)
101107

0 commit comments

Comments
 (0)