Skip to content

Add timeouts to Python test runs - #2577

Open
bdice wants to merge 2 commits into
NVIDIA:mainfrom
bdice:ci/python-test-timeout-40m
Open

Add timeouts to Python test runs#2577
bdice wants to merge 2 commits into
NVIDIA:mainfrom
bdice:ci/python-test-timeout-40m

Conversation

@bdice

@bdice bdice commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Description

Add a 40-minute timeout to each Python pytest invocation, followed by a forced kill after a one-minute grace period.

This prevents a wedged Python/GPU test process from consuming the full six-hour CI limit, as occurred in https://github.com/NVIDIA/cuvs/actions/runs/34318536549/job/102387735874.

Across the five most recent workflow executions where all Python test configurations passed, the slowest complete Python job took 28m13s and its Python tests step took 27m10s. A 40-minute test timeout leaves reasonable headroom for normal runtime variation.

@bdice
bdice requested a review from a team as a code owner September 9, 2026 18:30
@bdice
bdice requested a review from KyleFromNVIDIA September 9, 2026 18:30
@bdice bdice changed the title [REVIEW] Add timeouts to Python test runs Add timeouts to Python test runs Sep 9, 2026
@bdice bdice self-assigned this Sep 9, 2026
@bdice bdice added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant