This repository was archived by the owner on Jul 16, 2026. It is now read-only.
Conversation
Contributor
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job ci / test (3.14, windows-latest)
fix(tests): resolve Python 3.14 Windows CI failures caused by subprocess DLL issues
Jul 15, 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Two independent Windows-only failures on Python 3.14 caused by subprocess pipe handles incompatible with the MinGW64 git runtime and uv-managed venv DLL isolation.
Changes
Root cause 1 —
_ctypesDLL load failure intest_main.py(2 FAILED)sys.executablein a uv temp venv can't load_ctypesin child processes becauseos.add_dll_directory()entries are not inherited across process boundaries. Replaced subprocess-spawning tests with in-process equivalents:test_main_entry_point→typer.testing.CliRunnertest_main_direct_execution→runpy.run_path()(matches existingtest_main_if_name_main_blockpattern)Root cause 2 —
STATUS_DLL_INIT_FAILED(0xC0000142) from MinGW64 git (86 ERRORS)shutil.which("git")resolves toC:\Program Files\Git\mingw64\bin\git.EXEon this runner. That binary fails DLL init when spawned withcapture_output=True(PIPE handles) on Python 3.14 Windows. Production code uses bare"git"(which resolves to the Windows-nativecmd\git.exewrapper) and has no such issue.Changes across
conftest.py,test_e2e_bump_release.py,test_bump_command.py:GIT = shutil.which("git") or "git"— use bare"git"to match production codecapture_output=True→stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULLfor all fixture git calls that discard output (belt-and-suspenders; calls that read stdout retaincapture_output=True)Testing
make testpasses locallymake fmthas been runChecklist
CHANGELOG.mdentry added (or not needed for this change)make deptrypasses (no unused or missing dependencies)