Commit graph

3 commits

Author SHA1 Message Date
google-labs-jules[bot]
11856f63e8 Bolt: optimize CI automation scripts performance
This commit introduces two key performance and safety improvements to the repository's maintenance scripts:

1. **Optimize `scripts/test_automation.py`**:
   - Replaced `concurrent.futures.ProcessPoolExecutor` with sequential execution for the integration test suite.
   - For short-lived subprocess calls, the overhead of starting multiple Python processes for isolation was significantly higher than the execution time of the tests themselves.
   - **Impact**: Reduced total execution time by ~26% (from 4.0s to 2.9s) and ensured deterministic, ordered output.

2. **Optimize `scripts/ci_validate_repo.py`**:
   - Consolidated two separate file iteration loops into a single `validate_files` pass.
   - Implemented a "size-before-read" check using `path.stat().st_size` before calling `path.read_bytes()`.
   - **Impact**: Improved memory efficiency and prevented potential Out-Of-Memory (OOM) errors by ensuring large files are rejected before being read into memory. Consolidating the loop also reduces redundant file system operations.

Verified both changes by running the integration tests and the validator manually.
2026-02-15 11:45:11 +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