Skip to content

fix: Resolve critical CI hanging issues with minimal changes #1199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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 a review from a team as a code owner July 25, 2025 22:09
@spacelord16 spacelord16 requested a review from Kludex July 25, 2025 22:09
@Kludex
Copy link
Member

Kludex commented Jul 26, 2025

Which jobs hang for hours?

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.

2 participants