Skip to content

🧹 Refactor: Parallelize AI and AST tasks in vibe-check-runner#269

Open
beginwebdev2002 wants to merge 1 commit intomainfrom
feat/refactor-vibe-check-runner-5509084676307699203
Open

🧹 Refactor: Parallelize AI and AST tasks in vibe-check-runner#269
beginwebdev2002 wants to merge 1 commit intomainfrom
feat/refactor-vibe-check-runner-5509084676307699203

Conversation

@beginwebdev2002
Copy link
Copy Markdown
Owner

🎯 What: Refactored vibe-check-runner.js to 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, executed node vibe-check-runner.js, ran python3 commit_verify.py and 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

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>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant