Skip to content

test: allow Python startup before timeout#2195

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

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

Conversation

@Byron

@Byron 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 AI review requested due to automatic review settings July 26, 2026 07:53

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.

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
Byron merged commit 04960cf into main Jul 26, 2026
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants