Address PR #182 review feedback: refactor batch handling and fix test issues#183
Closed
Copilot wants to merge 2 commits intobolt/optimize-thread-pool-overhead-10412449787616114386from
Closed
Conversation
|
Merging to
|
… imports, and improve test coverage Co-authored-by: abhimehro <84992105+abhimehro@users.noreply.github.com>
|
👋 Development Partner is reviewing this PR. Will provide feedback shortly. |
Copilot
AI
changed the title
[WIP] Update code based on comments from pull request 182
Address PR #182 review feedback: refactor batch handling and fix test issues
Feb 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Addresses review feedback from PR #182 which introduced conditional thread pool usage for small rule batches.
Changes
Extract duplicate batch result handling logic
The single-batch and multi-batch paths duplicated counter updates and progress bar rendering. Extracted into
_handle_batch_result():Fix import-time side effects in
test_push_rules_perf.pyMoved
import mainfrom module level into test methods to prevent import-time execution ofload_dotenv()andUSE_COLORScomputation. Matches pattern intest_plan_details.py.Fix mock future reuse in
test_multi_batch_uses_thread_poolTest was returning identical mock future for each
submit()call, causing all batches to collapse into single dict entry. Now uses distinct futures:Documentation and linting
test_push_rules_perf.py.jules/bolt.mdOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.