Skip to content

ci: SQL E2E over all three VGI transports (subprocess/http/unix)#1

Merged
rustyconover merged 1 commit into
mainfrom
multi-transport
Jun 24, 2026
Merged

ci: SQL E2E over all three VGI transports (subprocess/http/unix)#1
rustyconover merged 1 commit into
mainfrom
multi-transport

Conversation

@rustyconover

Copy link
Copy Markdown
Contributor

Turn the integration job into a transport matrix so the full test/sql/*.test suite runs over subprocess (stdio), http, and unix on both ubuntu and macos.

Changes

  • ci/run-integration.sh: parameterized by $TRANSPORT (default subprocess).
    • http: boots vgi-explain --http --port 0 --port-file <f> (cwd = stage dir), discovers the port via the port-file, sets VGI_EXPLAIN_WORKER=http://127.0.0.1:<port>, and injects INSTALL httpfs FROM core; LOAD httpfs; after each LOAD vgi; (the vgi HTTP transport rides DuckDB's httpfs).
    • unix: boots vgi-explain --unix <sock>, sets VGI_EXPLAIN_WORKER=unix://<sock>.
    • Added the silent-skip guard (the runner SKIPs HTTP/Unable to connect errors as a fake green) and an EXIT-trap that preserves the real exit code. Parquet fixture staging preserved.
  • .github/workflows/ci.yml: integration job is now a transport × os matrix, named SQL E2E (<transport>) on <os>. waitress arrives transitively via the vgi-python[http] main dep, so the existing uv sync --frozen --extra dev already covers http; macOS libomp step preserved. test/lint jobs unchanged.
  • ci/README.md: documents the matrix + guard.

Streaming

All three functions (shap_values table-in-out, shap_base_value source, feature_importance buffering) work over stateless HTTP unchanged — each drains within a single tick and DrainState already extends ArrowSerializableDataclass. No tests gated.

Local: subprocess/unix = 46 assertions, http = 50 (+4 from injected httpfs).

🤖 Generated with Claude Code

Turn the integration job into a transport matrix — the same
test/sql/*.test suite now runs over subprocess (stdio), http, and unix
on both ubuntu and macos.

- ci/run-integration.sh: parameterize by $TRANSPORT (default subprocess).
  http boots `vgi-explain --http --port 0 --port-file <f>` (cwd = stage
  dir) and discovers the port via the port-file, then sets
  VGI_EXPLAIN_WORKER=http://127.0.0.1:<port>; unix boots
  `vgi-explain --unix <sock>` and sets unix://<sock>. The http leg injects
  `INSTALL httpfs FROM core; LOAD httpfs;` after each `LOAD vgi;` (the vgi
  HTTP transport rides DuckDB's httpfs). Added the silent-skip guard
  (the runner SKIPs "HTTP"/"Unable to connect" errors as a fake pass) and
  an EXIT-trap that preserves the real exit code. Fixture staging
  preserved.
- .github/workflows/ci.yml: integration job becomes
  transport x os matrix; named "SQL E2E (<transport>) on <os>". waitress
  arrives transitively via the vgi-python[http] main dep, so the existing
  `uv sync --frozen --extra dev` already covers http; libomp brew step
  preserved for macOS. test + lint jobs unchanged.
- ci/README.md: document the transport matrix + silent-skip guard.

All three legs pass locally (subprocess/unix: 46 assertions, http: 50 —
+4 from the injected httpfs INSTALL/LOAD). No streaming tests gated.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rustyconover rustyconover merged commit 38d4de6 into main Jun 24, 2026
10 checks passed
@rustyconover rustyconover deleted the multi-transport branch June 24, 2026 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant