Skip to content

Conversation

@spacelord16
Copy link

@spacelord16 spacelord16 commented Jul 25, 2025

Core fixes to address CI hanging for hours:

  1. CLI Dependencies: Add --group dev to uv sync commands

    • Prevents ModuleNotFoundError during pytest collection
    • This was the primary cause of infinite CI hangs
  2. Global Timeout Protection: Add 60s timeout to all tests

    • Prevents tests from running indefinitely
    • Add pytest-timeout>=2.1.0 dependency
  3. Windows Integration Test Strategy: Split test execution

    • Run integration tests sequentially on Windows (--numprocesses 1)
    • Run other tests in parallel (--numprocesses auto)
    • Add integration marker for multiprocessing tests
  4. CI Timeout: Increase timeout-minutes from 10 to 15

These minimal changes address the core issues without broad scope.

Motivation and Context

How Has This Been Tested?

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Core fixes to address CI hanging for hours:

1. **CLI Dependencies**: Add --group dev to uv sync commands
   - Prevents ModuleNotFoundError during pytest collection
   - This was the primary cause of infinite CI hangs

2. **Global Timeout Protection**: Add 60s timeout to all tests
   - Prevents tests from running indefinitely
   - Add pytest-timeout>=2.1.0 dependency

3. **Windows Integration Test Strategy**: Split test execution
   - Run integration tests sequentially on Windows (--numprocesses 1)
   - Run other tests in parallel (--numprocesses auto)
   - Add integration marker for multiprocessing tests

4. **CI Timeout**: Increase timeout-minutes from 10 to 15

These minimal changes address the core issues without broad scope.
@spacelord16 spacelord16 requested review from a team and Kludex July 25, 2025 22:09
@Kludex
Copy link
Member

Kludex commented Jul 26, 2025

Which jobs hang for hours?

@felixweinberger
Copy link
Contributor

@spacelord16 thanks for your contribution!

I'm closing this PR for now as it's been a while since @Kludex' review and we haven't received further information that this is an issue - as far as I can tell I haven't seen any jobs hanging in CI for hours (there are occasional flakes, but these tend to materialize quickly).

Feel free to reopen or resubmit if you believe this is still an issue - if so, would love to see links to specific CI jobs or runs where you saw this crop up!

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.

3 participants