Commit graph

3 commits

Author SHA1 Message Date
google-labs-jules[bot]
b788edea17 Bolt: optimize branch metadata retrieval in review script
Optimized scripts/review_pull_requests.py by implementing bulk metadata
retrieval using git for-each-ref and the %(ahead-behind:main) atom.

Key changes:
- Reduced subprocess calls from O(N) to O(1) for branch status and metadata.
- Implemented global BRANCH_METADATA_CACHE for efficient retrieval.
- Added git version check for 2.41+ (ahead-behind support).
- Filtered out generic 'origin' and 'HEAD' refs from the branch list.
- Added integration test for the PR reviewer in scripts/test_automation.py.

Performance impact:
- Reduced execution time by ~40% in the current environment (~0.64s to ~0.38s).
- Significant scalability improvement for repositories with many branches.
2026-02-24 20:03:38 +00:00
google-labs-jules[bot]
e4c6d277a0 Parallelize test execution in test_automation.py
Refactored `scripts/test_automation.py` to run independent integration tests in parallel using `concurrent.futures.ProcessPoolExecutor`.

* 💡 **What:** Used `ProcessPoolExecutor` to run tests concurrently.
* 🎯 **Why:** To improve test suite performance.
* 📊 **Measured Improvement:** ~30% faster (3.3s -> 2.25s).
* **Details:** Used processes instead of threads to ensure `contextlib.redirect_stdout` works correctly for each test without interference.
2026-01-18 19:24:02 +00:00
copilot-swe-agent[bot]
c11eb0c373 Add automation features documentation and integration tests
- AUTOMATION_FEATURES.md with comprehensive feature overview
- Integration test suite for verifying all scripts
- Logs directory README for documentation
- All tests passing successfully

Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-01-06 04:25:48 +00:00