Repository navigation
[None][fix] revert git pin in 8f04d3a #21128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,6 +59,9 @@ | |
| LMBENCHMARK_SCRIPT = "" | ||
| _LMBENCHMARK_PACKAGE = "benchmark" | ||
| _LMBENCHMARK_SCRIPT_IN_PACKAGE = "synthetic-multi-round-qa/multi-round-qa.py" | ||
| _LMBENCHMARK_INSTALL_SPEC = ( | ||
| f"{_LMBENCHMARK_PACKAGE} @ git+https://github.com/LMCache/LMBenchmark.git@{LMBENCHMARK_SHA}" | ||
| ) | ||
| CsvMetrics: TypeAlias = dict[str, int | float] | ||
| _SERVER_HOST = "0.0.0.0" | ||
| _SERVER_START_MAX_ATTEMPTS = 5 | ||
|
|
@@ -993,7 +996,7 @@ def _resolve_lmbenchmark_install(llm_venv: PythonVenvRunnerImpl) -> str: | |
| dist = importlib.metadata.distribution(package) | ||
| except importlib.metadata.PackageNotFoundError: | ||
| raise SystemExit( | ||
| "LMBenchmark package is not installed. Install requirements-dev.txt before running tests. " | ||
| "LMBenchmark package is not installed after fixture setup. " | ||
| f"Expected {{script_in_package}}." | ||
| ) | ||
|
|
||
|
|
@@ -1022,9 +1025,10 @@ def _resolve_lmbenchmark_install(llm_venv: PythonVenvRunnerImpl) -> str: | |
|
|
||
| @pytest.fixture(scope="module") | ||
| def ensure_lmbenchmark(llm_venv: PythonVenvRunnerImpl) -> PythonVenvRunnerImpl: | ||
| """Verify and resolve the preinstalled LMBenchmark script used by this module.""" | ||
| """Install and resolve the pinned LMBenchmark script used by this module.""" | ||
| global LMBENCHMARK_SCRIPT | ||
|
|
||
| llm_venv.run_cmd(["-m", "pip", "install", _LMBENCHMARK_INSTALL_SPEC], timeout=600) | ||
| LMBENCHMARK_SCRIPT = _resolve_lmbenchmark_install(llm_venv) | ||
| return llm_venv | ||
|
|
||
|
|
@@ -1163,8 +1167,8 @@ def test_multi_round_qa_shared_prefix( | |
| * the CSV contains no NaN ttft values | ||
| * the server log is free of error patterns | ||
|
|
||
| This is a correctness stress test; request latency is reported but is | ||
| not a pass/fail threshold. | ||
| NOTE: This test is intended for post-merge / nightly CI due to its | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This revert brings back the "intended for post-merge / nightly CI" note, but |
||
| ~10 min runtime per config. | ||
| """ | ||
| config_path = _write_config(tmp_path, sched_cfg) | ||
| server_log_base = str(tmp_path / "server.log") | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tburt-nv Could we add retries around this install to tolerate transient network failures during Git checkout or dependency installation? The existing timeout already handles stalled installs; a small retry would help with temporary failures that exit early.