Skip to content

Commit e3bbf8b

Browse files
rustyconoverclaude
andcommitted
Release 0.54.0: blob-vendor storage externalization, vgi-serve vendor wiring, idle exit
- Storage values over a threshold go to the blob vendor (region-pinned pre-signed R2 URLs) and storage holds a small pointer: ExternalizingStorage wraps any backend (cloudflare-do always; others with VGI_STORAGE_EXTERNALIZE=1). Every cloudflare-do value now carries a 1-byte envelope (format change). - vgi-serve --http with VGI_BLOB_VENDOR_URL externalizes large results and vends client upload URLs; VGI_RPC_MAX_REQUEST_BYTES sets the request cap. - VGI_IDLE_EXIT_SECONDS: vgi-serve --http exits 0 when idle (waitress and granian); /health doesn't count as activity. - Test fix: the granian idle-exit test no longer counts _get's 10 s retry after a clean exit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent eeb29f7 commit e3bbf8b

4 files changed

Lines changed: 16 additions & 9 deletions

File tree

‎packages/vgi-fixtures/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# and the conformance suite import it by its normal `vgi._test_fixtures` path.
99
[project]
1010
name = "vgi-fixtures"
11-
version = "0.53.4"
11+
version = "0.54.0"
1212
description = "Example/test VGI worker modules and entry points (not for production use)"
1313
readme = "README.md"
1414
# Local copy of the repo-root LICENSE (kept in sync): the build can't reach

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "vgi-python"
3-
version = "0.53.4"
3+
version = "0.54.0"
44
description = "Vector Gateway Interface - Connect DuckDB to external programs via Apache Arrow"
55
readme = "README.md"
66
keywords = [

‎tests/test_idle_exit.py‎

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -305,16 +305,23 @@ def test_serve_exits_cleanly_when_idle(extra: tuple[str, ...]) -> None:
305305
assert _get(port, "/?format=json") == 200
306306
time.sleep(0.3)
307307
assert proc.poll() is None
308-
# Health checks only: they must not keep it alive.
308+
# Health checks only: they must not keep it alive. One attempt per probe:
309+
# _get retries for 10 s, which would count the time after a clean exit.
309310
started = time.monotonic()
310-
while proc.poll() is None and time.monotonic() - started < 15:
311+
exited_at: float | None = None
312+
while time.monotonic() - started < 15:
313+
if proc.poll() is not None:
314+
exited_at = time.monotonic()
315+
break
311316
try:
312-
_get(port, "/health", method="HEAD")
317+
req = urllib.request.Request(f"http://127.0.0.1:{port}/health", method="HEAD")
318+
with urllib.request.urlopen(req, timeout=2) as resp:
319+
resp.read()
313320
except OSError:
314-
break
321+
pass # shutting down or gone; poll() above decides
315322
time.sleep(0.3)
316323
code = proc.wait(timeout=15)
317-
quiet = time.monotonic() - started
324+
quiet = (exited_at or time.monotonic()) - started
318325
assert code == 0, proc.stderr.read() if proc.stderr else ""
319326
assert 1.5 <= quiet <= 12
320327
finally:

‎uv.lock‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)