From ee2a1e7df7bd37b68b7d97a37e704394b851423b Mon Sep 17 00:00:00 2001 From: Hasan Basbunar Date: Fri, 4 Dec 2026 00:00:12 +0100 Subject: [PATCH] tests: the OCR lane's served name is no pair lane name /v1/ocr is no pair route (PAIR_ROUTES), so a request naming the OCR model never leaves the box it reached, like the embeddings lane's name (decision 966). The test resolves the unit's __OCR_SERVED__ placeholder from install-ocr.sh's OCR_SERVED and excludes that name from the pair's list. Co-Authored-By: Claude Opus 5.5 --- tests/test_proxy_pair.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_proxy_pair.py b/tests/test_proxy_pair.py index 53cfae18..9e80a70f 100644 --- a/tests/test_proxy_pair.py +++ b/tests/test_proxy_pair.py @@ -3701,6 +3701,12 @@ class TheLaneNamesAreThoseTheUnitsServe(unittest.TestCase): # the embed lane's name is not one of the pair's: /v1/embeddings is no pair route, and a # request for it never leaves the box it reached (decision 966, any other name stays here) served -= {"pplx-embed-v1-0.6b"} + # nor is the ocr lane's: /v1/ocr is no pair route either (PAIR_ROUTES), so a request for it + # never leaves the box it reached. Its unit says its name as a placeholder, install-ocr.sh + # fills it with OCR_SERVED. + ocr_served = re.search(r'^OCR_SERVED="([^"]+)"', (REPO / "install-ocr.sh").read_text(), re.M).group(1) + served = {ocr_served if s == "__OCR_SERVED__" else s for s in served} + served -= {ocr_served} self.assertEqual(names, served, "a lane's served name and the pair's list of lane names agree")