feat(observatory): ship modular AI inference labs
This commit is contained in:
@@ -210,7 +210,8 @@ def test_camera_proxy_keeps_demux_time_base_and_reuses_its_own_sealed_cache(tmp_
|
||||
assert len(calls) == 1
|
||||
|
||||
|
||||
def test_replay_api_get_never_prepares_and_range_is_generation_fenced(tmp_path):
|
||||
@pytest.mark.parametrize("prefix", ["m49-tgs-portable-review", "lab-v1-eomt-ddrnet"])
|
||||
def test_replay_api_get_never_prepares_and_range_is_generation_fenced(tmp_path, prefix):
|
||||
path = tmp_path / "replay.rrd"
|
||||
path.write_bytes(b"RRF2test")
|
||||
sha = hashlib.sha256(path.read_bytes()).hexdigest()
|
||||
@@ -228,7 +229,8 @@ def test_replay_api_get_never_prepares_and_range_is_generation_fenced(tmp_path):
|
||||
)
|
||||
)
|
||||
with TestClient(app) as client:
|
||||
url = f"/api/v1/observatory/portable-results/{RESULT}/replays/{BASE}/recording.rrd"
|
||||
result_id = prefix + "-" + "a" * 64
|
||||
url = f"/api/v1/observatory/portable-results/{result_id}/replays/{BASE}/recording.rrd"
|
||||
assert client.get(url, params={"generation": sha}).status_code == 409
|
||||
assert not prepared
|
||||
response = client.head(url)
|
||||
|
||||
Reference in New Issue
Block a user