« Back to Search  |  Reader Mode  |  Switch to Full Retro Site View Links: Stay in Reader  |  Retro Mode: ON  |  Original »
GitHub · Extracted in 1481 ms

test: allow Python startup before timeout by Byron · Pull Request #2195 · gitpython-developers/GitPython

Source: https://github.com/gitpython-developers/GitPython/pull/2195

Repository navigation

test: allow Python startup before timeout - #2195


Merged
Byron merged 1 commit into main from fix-ci Jul 26, 2026
Merged

test: allow Python startup before timeout #2195 Byron merged 1 commit into main from fix-ci

Conversation

Byron commented Jul 26, 2026



Copy link Copy Markdown
Member

Tasks

This section is for Byron only. Models continuing this PR must not add, remove, check, uncheck, rename, or reorder checkboxes here.

  • refackiew

Everything below this line was generated by Codex.

Created by Codex on behalf of Byron. Byron will review before this is ready to merge.

Reported issue

$issue-full-auto https://github.com/gitpython-developers/GitPython/actions/runs/30193022939/job/89769540615 fails as flake, and only that. Fix it one way or another, exluding it is also fine if there is no alternative.

Change

Increase the timeout regression test deadline from 100 ms to one second so it tests GitPython timeout behavior instead of Python interpreter startup speed. Production code is unchanged.

Validation

  • Focused test passed five consecutive times on Python 3.8.
  • Ruff check and format passed for test/test_git.py.
  • Codex commit review found no actionable defects.
Copilot PR reviewer Copilot
AI
review requested due to automatic review settings July 26, 2026 07:53 Copilot started reviewing on behalf of Byron July 26, 2026 07:54
View session
Copilot PR reviewer Copilot
AI
reviewed Jul 26, 2026
View reviewed changes

Copilot
AI
left a comment



Copy link Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more .

Pull request overview

This PR adjusts a regression test to be resilient to Python interpreter startup latency, so it validates GitPython's kill_after_timeout behavior rather than intermittently failing due to a too-aggressive deadline. Production code is unchanged.

Changes:

  • Increased kill_after_timeout in test_it_honors_kill_after_timeout_with_output_stream from 0.1s to 1s to reduce flakiness and better target the intended behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started .

test: allow Python startup before timeout f824fde
The macOS Python 3.8 Actions job intermittently killed the helper process
before it could start and flush its expected output. The 100 ms deadline tested
interpreter startup speed rather than GitPython timeout behavior.

Keep the timeout regression coverage while allowing one second for process startup.

Validation: five focused runs with Python 3.8; Ruff check and format.

Co-authored-by: Sebastian Thiel <sebastian.thiel@icloud.com>
Byron force-pushed the fix-ci branch from 408371e to f824fde
Compare
July 26, 2026 08:08 Byron merged commit 04960cf into main Jul 26, 2026 48 checks passed Byron deleted the fix-ci branch October 5, 2026 03:24 Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

None yet

3 participants