chore: bump invoke 2.2.0 -> 2.2.1 for Python 3.14 compatibility#992
Merged
chore: bump invoke 2.2.0 -> 2.2.1 for Python 3.14 compatibility#992
Conversation
invoke 2.2.0 raises SystemError on Python 3.14: 3.14 tightened fcntl buffer-overflow detection, and invoke's termios.TIOCGWINSZ probe was reading too few fields of a 4-field winsize struct. Any uv run invoke <task> aborts before the task body when stdout is a TTY. invoke 2.2.1 (2025-10-10) unpacks all four fields and discards the unused two -- pure compat fix, no behavior change. See opsmill/infrahub#9128 for the equivalent bump on opsmill/infrahub. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Deploying infrahub-sdk-python with
|
| Latest commit: |
c789ae4
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://603950ba.infrahub-sdk-python.pages.dev |
| Branch Preview URL: | https://pmi-20260504-bump-invoke.infrahub-sdk-python.pages.dev |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## stable #992 +/- ##
=======================================
Coverage 81.41% 81.41%
=======================================
Files 134 134
Lines 11347 11347
Branches 1703 1703
=======================================
Hits 9238 9238
Misses 1566 1566
Partials 543 543
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
ogenstad
approved these changes
May 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
invoke2.2.0 raisesSystemError: buffer overflowon Python 3.14: 3.14 tightenedfcntlbuffer-overflow detection, and invoke'stermios.TIOCGWINSZprobe interminals.pywas reading too few fields of the 4-fieldwinsizestruct. Whensys.stdoutis a TTY, anyuv run invoke <task>(or--list/--help) aborts before the task body.invoke 2.2.1 (2025-10-10) unpacks all four fields and discards the unused two — pure compat fix, no behavior change. Upstream fix: pyinvoke/invoke#1040. Equivalent bump on the main repo: opsmill/infrahub#9128.
What changed
pyproject.toml:invoke>=2.2.0→invoke>=2.2.1uv.lock: regenerated;invokeresolves to2.2.1How to test
uv sync --all-groups uv run invoke --list # was failing on Python 3.14 with SystemError; now succeeds uv run invoke format uv run invoke lintReproduce the original bug (before the bump) on Python 3.14 with a real TTY:
uv pip install invoke==2.2.0 .venv/bin/invoke --list # SystemError: buffer overflow at terminals.py:96Impact & rollout