🧹 Refactor: Parallelize AI and AST tasks in vibe-check-runner#269
🧹 Refactor: Parallelize AI and AST tasks in vibe-check-runner#269beginwebdev2002 wants to merge 1 commit intomainfrom
Conversation
Refactored `vibe-check-runner.js` to significantly improve execution speed and resource safety: - **Sequential Context:** Deduplicated and grouped `syncBenchmarks` by technology. - **Concurrency:** Implemented `Promise.all` for parallelizing Gemini AI generation and TS-Morph AST analysis. - **Safety:** Prevented race conditions by instantiating a fresh `Project` instance per AST analysis unit with unique temp file generation. - **Side Effects:** Restructured Git auto-commits and GitHub CLI calls to execute sequentially after all analysis is complete. Co-authored-by: beginwebdev2002 <102213457+beginwebdev2002@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
🎯 What: Refactored
vibe-check-runner.jsto process tasks concurrently instead of sequentially.💡 Why: The script was extremely slow and susceptible to rate-limiting because it waited for Gemini text generation and TS-Morph AST validation one file at a time.
✅ Verification: Ran
npm install ts-morph, executednode vibe-check-runner.js, ranpython3 commit_verify.pyand manually deleted scratchpad files.✨ Result: The benchmark synchronization loop is now decoupled, and code generation/analysis operates concurrently with safe temporary AST file isolation, dramatically speeding up the CI process.
PR created automatically by Jules for task 5509084676307699203 started by @beginwebdev2002