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 <noreply@anthropic.com>
This commit is contained in:
Hasan BasbunarandClaude Opus 5.5 committed 2026-12-04 13:07:24 +01:00
1 parent 06d00e6ef5
commit dcd26bbe1f
1 file changed
+4
+4
View File
@@ -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"