Skip to content

armgit / sie

Public Imported from GitHub
0

Open-source inference server and production cluster for all the models your agent needs.

test(benchmarks): guard pilot checks on shallow history

svonava255ccd5d92b2
diff --git a/tools/benchmarks/cross_encoder_lora/README.md b/tools/benchmarks/cross_encoder_lora/README.md
index dac2ebff3..1482be0e5 100644
--- a/tools/benchmarks/cross_encoder_lora/README.md
+++ b/tools/benchmarks/cross_encoder_lora/README.md
@@ -296,7 +296,7 @@ preparation above, the prospective baseline-only invocation is:
```console
mise exec -- uv run --no-sync python -m tools.benchmarks.cross_encoder_lora.interleaved \
- --inputs /tmp/ce-inputs --fixtures /tmp/ce-fixtures --output /tmp/ce-baseline-pilot \
+ --inputs /tmp/ce-sources --fixtures /tmp/ce-fixtures --output /tmp/ce-baseline-pilot \
--mode baseline-pilot --deadline-s 3900 --group-work-s 600
```
diff --git a/tools/benchmarks/cross_encoder_lora/tests/test_interleaved.py b/tools/benchmarks/cross_encoder_lora/tests/test_interleaved.py
index 703720d2a..b6e8c2d78 100644
--- a/tools/benchmarks/cross_encoder_lora/tests/test_interleaved.py
+++ b/tools/benchmarks/cross_encoder_lora/tests/test_interleaved.py
@@ -28,6 +28,12 @@ from tools.benchmarks.cross_encoder_lora.runner import ROOT, source_environment
from tools.benchmarks.cross_encoder_lora.tests.test_probe import tiny_snapshot
+def require_baseline_history() -> None:
+ available = subprocess.run(["git", "cat-file", "-e", BASE_REVISION], cwd=ROOT, capture_output=True, check=False) # noqa: S607
+ if available.returncode:
+ pytest.skip("immutable archive smoke requires the documented baseline commit in git history")
+
+
def test_strict_group_admission() -> None:
assert not interleaved.admission(100, 789)["admitted"]
assert not interleaved.admission(100, 790)["admitted"]
@@ -120,6 +126,7 @@ def test_manifest_and_extracted_source_hashes_checked_before_load(tmp_path: Path
@pytest.mark.parametrize("mode", ["baseline-pilot", "qualification"])
def test_real_archived_whole_phase_triplet(tmp_path: Path, mode: str) -> None:
+ require_baseline_history()
snapshot = tiny_snapshot(tmp_path / "model")
fixtures = tmp_path / "fixtures"
fixtures_prepare(fixtures, snapshot, smoke=True)
@@ -295,6 +302,7 @@ def test_coordinator_full_file_hashes_wait_for_all_nine_timers(tmp_path: Path, m
def test_actual_coordinator_term_reaps_archived_workers_and_sdk_children(tmp_path: Path) -> None:
+ require_baseline_history()
snapshot = tiny_snapshot(tmp_path / "model")
fixtures = tmp_path / "fixtures"
fixtures_prepare(fixtures, snapshot, smoke=True)