Skip to content

Conversation

@trivialfis
Copy link
Member

No description provided.

@trivialfis trivialfis requested a review from Copilot November 7, 2025 09:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves code quality in the distributed testing suite through better variable naming and import handling. The changes make the test code clearer and remove unnecessary exception handling for imports that are already protected by pytest marks.

  • Renamed variable from f to tf to better indicate thread futures from ThreadPoolExecutor
  • Replaced try-except import block with direct imports for GPU-related Dask dependencies

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
tests/test_distributed/test_with_dask/test_with_dask.py Improved variable naming by renaming f to tf for thread futures
tests/test_distributed/test_gpu_with_dask/test_gpu_with_dask.py Simplified import structure by removing try-except block that was redundant with pytest skip marks

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@trivialfis trivialfis merged commit bd54840 into dmlc:master Nov 7, 2025
85 of 86 checks passed
@trivialfis trivialfis deleted the fix-mypy branch November 7, 2025 12:30
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