Reduce xdist worker count to 2 on Windows #243
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Plan: Reduce xdist worker count on Windows ✅ COMPLETE
The goal is to improve test reliability on Windows GitHub Runners by reducing the pytest-xdist worker count from
autoto2.-n=autoin pyproject.toml files)-nparameter for Windows platformsChanges Made
Modified
.github/workflows/test.ymlto conditionally set-n 2for Windows platforms using a cleaner approach:test_quickandtest_alljobs${{ steps.pytest-workers.outputs.count }}instead of duplicating the conditionalImplementation Details
Behavior
-n 2)-n auto)-n auto)Benefits
✅ Cleaner implementation with no command duplication
✅ Single source of truth for worker count per platform
✅ Easier to maintain and modify in the future
✅ No impact on local development workflow
✅ Maintains optimal performance on Linux/macOS with auto worker count
✅ Improves Windows test reliability by reducing resource contention
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.