Skip to content

release(capture): 1.4.0 - #2286

Merged
abrichr merged 1 commit into
mainfrom
release/capture-1.4.0
Nov 19, 2026
Merged

abrichr merged 1 commit into
mainfrom
release/capture-1.4.0

Conversation

@abrichr

@abrichr abrichr commented Nov 19, 2026

Copy link
Copy Markdown
Member

Prepares openadapt-capture 1.4.0: the version in pyproject.toml and uv.lock, and the ## v1.4.0 (2026-11-19) section in CHANGELOG.md. After this merges, the Release package workflow run from main with package: capture publishes it.

Why now

The published 1.3.0 imports Pympler whenever openadapt_capture.recorder is imported, and pympler.util.compat imports tkinter, which loads Tcl. With Tcl loaded, a child process that Python forks on macOS 26 can stop for good before it runs its program (measured on the hosted macOS runners: 33 stalls in about 266,000 forks with only tkinter imported, none without it; details in #2282). The recorder starts several child processes at each recording start, and OpenAdapt Desktop 0.30.3 pins 1.3.0.

Commit a0d1733, on main since October 18 and not yet published, makes Pympler an opt-in extra and imports it only for LOG_MEMORY. Releasing it removes tkinter from the recording process.

What the release contains

Everything merged under packages/capture since 1.3.0; the changelog section lists it. The larger items:

  • Matplotlib, sounddevice, soundfile and Pympler move to the plot, audio and profile extras, and alembic is removed.
  • Anything sent off the machine is scrubbed by default.
  • Narration is scrubbed and stored as timed sentences.
  • Window-scoped recording pins its window by identity and keeps only input that window received.

A consumer that relied on those libraries arriving with the plain install must now name the extra. That includes Desktop when its capture pin is raised, which is a separate pull request.

Checks

  • python scripts/check_changelog.py --skip-tags passes ("verified CHANGELOG.md through v1.4.0").
  • uv lock --check passes.
  • No source changes in this pull request.

Publishes what has merged since 1.3.0, including the change that makes
Pympler an opt-in extra. The published 1.3.0 imports Pympler, and through
it tkinter and Tcl, whenever the recorder is imported; with Tcl loaded, a
child process forked on macOS 26 can stop for good before it starts.
@abrichr

abrichr commented Nov 19, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Grok
Reviewed-Head: 80c346a

The release does what it says. The change that matters (a0d1733) is already on main, and this PR only bumps the version and adds the changelog.

Evidence

  • I installed both versions into clean Python 3.12 venvs on Linux and ran import openadapt_capture.recorder. With 1.3.0 from PyPI, tkinter, _tkinter and pympler are in sys.modules afterwards. With 1.4.0 built from this head, none of them are (and neither are matplotlib or sounddevice).
  • I imported every openadapt_capture submodule one at a time in its own interpreter against 1.4.0. None loads _tkinter. The only import failures are the darwin and windows platform modules and plotting (Matplotlib isn't installed), which is expected. tkinter doesn't appear anywhere in the package source, so the macOS-only modules can't bring it back.
  • Branch base equals current main (c6748ab). The diff is pyproject.toml, uv.lock (version line only) and CHANGELOG.md. CI is green. That includes capture linux py3.12, the capture lint and release contract, "record and read without extras", install weight and smoke. The macOS and Windows capture jobs were skipped.

Can the extras change silently drop a feature?

  • LOG_MEMORY without Pympler raises an ImportError that names openadapt-capture[profile] (recorder.py:1123-1126). PLOT_PERFORMANCE without Matplotlib logs that Matplotlib is missing and skips the plot (recorder.py:3862-3866). Both are off by default.
  • In Desktop, Tray and Flow source, nothing uses audio, LOG_MEMORY, PLOT_PERFORMANCE, plotting, stats or comparison, so their plain installs lose nothing.

P3 / notes

  • Desktop and Tray declare openadapt-capture>=1.3.0, so an install that isn't from the lockfile will pick up 1.4.0 as soon as it's published, before the planned Desktop pin raise. Given the point above this looks safe, but the 1.4.0 changes ship to those installs on publish, not when Desktop raises its pin.
  • Not run: macOS. I didn't reproduce the fork stall myself. The tkinter evidence above was gathered on Linux.

Still to decide (maintainers): merging, and running the Release package workflow for capture.

@abrichr
abrichr merged commit 8776390 into main Nov 19, 2026
51 checks passed
@abrichr
abrichr deleted the release/capture-1.4.0 branch November 19, 2026 21: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