Skip to content

Verify the Python engine and test installed release artifacts - #4

Merged
timsehn merged 2 commits into
mainfrom
fix/python-consumer-release
Nov 20, 2026
Merged

timsehn merged 2 commits into
mainfrom
fix/python-consumer-release

Conversation

@timsehn

@timsehn timsehn commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Changes

  • Verify that stdlib sqlite3 actually opened DoltLite before marking bootstrap complete. An unsupported standalone interpreter now raises DoltliteLoadError with a shared-library Python workaround.
  • Keep bootstrap completion process-local and consume the marker used to resume an interpreter re-exec. A spawned process starts with its own bootstrap state.
  • Exercise both import orders against the installed wheel, assert the exact engine version, and verify bound values, rollback, a Dolt commit, and persistent rows and history from a fresh child process.
  • Gate PyPI publication on the existing wheel matrix plus a clean source-distribution install with the matching native library. Linux CI also exercises a uv virtual environment over distro Python and the expected error under uv-managed Python.
  • Clear the inherited shim from the environment passed to otool and install_name_tool so child consumers can bootstrap without injecting DoltLite into the macOS tools.

Verification

The released v0.51.14 wheel failed before the fix in two ways. Its import silently reached stock SQLite with uv-managed CPython, and a supported Linux app spawned a child that incorrectly inherited its parent's bootstrap marker. Rebuilt candidate packages passed the wheel and source-distribution tests in Linux arm64 Docker and both import orders and the existing shim tests on Homebrew macOS. The local wheels used the matching native library from the v0.51.14 release. The unit suite and workflow lint passed.

The first hosted macOS smoke run exposed an otool abort in a child process that had inherited the shim. A test executable that aborts when it inherits the shim reproduced the failure locally. Both import orders and the concurrent shim tests passed with that executable and the updated CI-built wheel on Homebrew Python. The new loader regression test fails before the fix and passes afterward. Linux x86_64 and arm64 wheel tests and the installed wheel and sdist job passed on the updated commit. Updated CI run

Co-Authored-By: OpenAI Codex noreply@openai.com

Tim and others added 2 commits November 19, 2026 19:18
Use process-local bootstrap state and verify that stdlib sqlite3 opened the Prolly engine. Exercise both import orders, child-process reopen, uv-managed Python rejection, and source installs before publishing.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
Child consumers inherit DYLD_INSERT_LIBRARIES from their parents. Keep it out of otool and install_name_tool invocations so the loader can inspect and prepare a shim without injecting it into those tools.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@timsehn
timsehn merged commit 96e418d into main Nov 20, 2026
7 checks passed
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