paralelize test discovery#264
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
8f1d85a to
77e7053
Compare
|
Looks like there are a few issues preventing this PR from being merged!
If you'd like me to help, just leave a comment, like
Feel free to include any additional details that might help me get this PR into a better state. You can manage your notification settings |
cecf857 to
1eb54df
Compare
User description
note: max_workers is
os.cpu_count() or 1, for GitHub Actions that means the min is 2 cores.PR Type
Enhancement, Tests
Description
Parallelize test file discovery with multiple processes
Refactor into
process_single_test_filehelperImplement caching to skip unchanged test files
Strengthen type assertion and simplify insertion logic
Changes walkthrough 📝
discover_unit_tests.py
Parallelize and optimize test discoverycodeflash/discovery/discover_unit_tests.py
ProcessPoolExecutorfor concurrent test processingtest_typeand streamline DB insertion