mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-05 12:24:28 +01:00
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
3f88f415c0
commit
ee2a1e7df7
1 file changed
+6
@@ -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")
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user