Skip to content

ci: Remove pytest-timeout from requirements-testing.txt#6613

Draft
alexander-alderman-webb wants to merge 1 commit into
masterfrom
webb/requirements-testing/pytest-timeout
Draft

ci: Remove pytest-timeout from requirements-testing.txt#6613
alexander-alderman-webb wants to merge 1 commit into
masterfrom
webb/requirements-testing/pytest-timeout

Conversation

@alexander-alderman-webb

@alexander-alderman-webb alexander-alderman-webb commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Description

The package doesn't seem to be used.

Issues

Reminders

@alexander-alderman-webb alexander-alderman-webb marked this pull request as ready for review June 22, 2026 07:05
@alexander-alderman-webb alexander-alderman-webb requested a review from a team as a code owner June 22, 2026 07:05
@alexander-alderman-webb alexander-alderman-webb changed the title ci: Remove pytest-timeout from requirements-testing.txt ci: Remove pytest-timeout from requirements-testing.txt Jun 22, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0103ee3. Configure here.

Comment thread requirements-testing.txt
Comment thread requirements-testing.txt
pytest-forked
pytest-localserver
pytest-timeout
pytest-watch

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bug: Removing pytest-timeout breaks a deadlock regression test which relies on the @pytest.mark.timeout decorator to prevent it from hanging.
Severity: MEDIUM

Suggested Fix

Do not remove the pytest-timeout package from requirements-testing.txt. It is a necessary dependency for the regression test test_reentrant_add_does_not_deadlock to function correctly and prevent CI hangs.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: requirements-testing.txt#L7

Potential issue: The pull request removes the `pytest-timeout` package from
`requirements-testing.txt`, but this package is actively used. Specifically, the test
`test_reentrant_add_does_not_deadlock` in `tests/test_logs.py` uses the
`@pytest.mark.timeout(5)` decorator to guard against a known deadlock regression.
Without the `pytest-timeout` package, pytest will ignore this decorator, causing the
test to hang indefinitely if the deadlock reoccurs. This would disable a critical
regression test and could block the CI pipeline instead of providing a fast failure.

Did we get this right? 👍 / 👎 to inform future reviews.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

duplicate of #6613 (comment)

@alexander-alderman-webb alexander-alderman-webb marked this pull request as draft June 22, 2026 07:08
@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

91382 passed | ⏭️ 6136 skipped | Total: 97518 | Pass Rate: 93.71% | Execution Time: 315m 13s

📊 Comparison with Base Branch

Metric Change
Total Tests
Passed Tests
Failed Tests
Skipped Tests

✨ No test changes detected

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2409 uncovered lines.
✅ Project coverage is 89.85%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    89.84%    89.85%    +0.01%
==========================================
  Files          192       192         —
  Lines        23745     23745         —
  Branches      8198      8198         —
==========================================
+ Hits         21334     21336        +2
- Misses        2411      2409        -2
- Partials      1344      1343        -1

Generated by Codecov Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant