From dcd26bbe1f480eaf42429c824655476a8b25afcf Mon Sep 17 00:00:00 2001 From: Hasan Basbunar Date: Fri, 4 Dec 2026 13:07:24 +0100 Subject: [PATCH] ci: Pillow on the runner, for the OCR lane's TIFF test tests/test_ocr_server.py draws a two-frame TIFF with Pillow, as the OCR lane's drawing container does in SGLang 1.0.0's image. The GitHub runner has no Pillow, the reference box's python3 has one: v1.62.0's pull request failed there on that test alone, in the single and the suite jobs (2026-12-04). Both install the image's Pillow, 13.0.0. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f1b3ce6..291d2eec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1451,6 +1451,9 @@ jobs: - name: The offline suite touches nothing outside itself run: | + # tests/test_ocr_server.py draws a two-frame TIFF with Pillow, as the OCR lane's drawing container does in + # SGLang 1.0.0's image, whose Pillow this is: the runner has none (v1.62.0's pull request, 2026-12-04). + pip install 'pillow==13.0.0' # This repo's tests are run on the box that serves production, so # "offline" has to be a checked property and not an intention. The # suite gets a witness tree, runs, and the tree must be identical @@ -1536,6 +1539,7 @@ jobs: # bench.sh, needle.sh and the tools), which unittest cannot discover, # so each of those has to be named by a step of its own. pip install 'jinja2==3.1.6' # tests/test_lean_level.py renders with it + pip install 'pillow==13.0.0' # tests/test_ocr_server.py draws a TIFF with it (the OCR image's Pillow) # tests/test_proxy_systemone.py's round trip through TypeSafe's own SDK. A failed # install is refused below on the runner, where the SDK is not optional. pip install 'typesafe-sdk==0.7.0' 2>/dev/null || echo "typesafe-sdk unavailable: the SDK round trip will skip"