refactor: repair and polish audit vrt tools PR#9595
Conversation
- Update `scripts/audit-vrt-changes.sh` to include a missing dependency check for `gh` and `jq`. - Change `VRT_PATTERN` to a simpler string matching `.ts` files under `tests/playwright/`. - Refactor aggregation logic in `audit-vrt-changes.sh` to summarize test file diffs per-PR instead of creating a separate file for every touched test file. - Remove redundant echo statements and overly verbose comments from `audit-vrt-changes.sh`. - Remove duplicated VRT Stabilization Standards section from `.github/copilot-instructions.md` and replace with a reference to `.github/instructions/vrt-stability.instructions.md`. Co-authored-by: arii <342438+arii@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. |
👋 Welcome to HRM!Thanks for your contribution. This repository uses Gemini AI for automated triage, code review, and generation. 🤖 Gemini Manual Trigger Quick Reference
For more details and GitHub CLI examples, see the Manual Trigger Guide. |
🤖 AI Technical AuditPR Review: Repair and Polish Audit VRT ToolsSummaryThis PR streamlines the VRT auditing process by reducing output fragmentation and consolidating documentation. The shift from file-based auditing to PR-based auditing is a significant improvement for reviewer cognitive load. However, there are regression risks in the script's regex and the CI failure in Architectural Impact
Anti-AI-Slop
File-by-File Analysis
|
- Update `scripts/audit-vrt-changes.sh` to include a missing dependency check for `gh` and `jq`. - Exclude `.png` files from PR diffs in `scripts/audit-vrt-changes.sh`. - Change `VRT_PATTERN` to a simpler string matching `.ts` files under `tests/playwright/`. - Refactor aggregation logic in `audit-vrt-changes.sh` to summarize test file diffs per-PR instead of creating a separate file for every touched test file. - Remove redundant echo statements and overly verbose comments from `audit-vrt-changes.sh`. - Remove duplicated VRT Stabilization Standards section from `.github/copilot-instructions.md` and replace with a reference to `.github/instructions/vrt-stability.instructions.md`. Co-authored-by: arii <342438+arii@users.noreply.github.com>
Thank you for the review! I have addressed the points:
|
- Revert `VRT_PATTERN` to `tests/playwright/.*(spec\.ts|visual\.ts|test-helpers\.ts)` to accurately restrict matched files to the intended tests and helpers. - Optimize network performance in `audit-vrt-changes.sh` by fetching the PR patch diff exactly once per PR instead of iteratively for each changed file. Co-authored-by: arii <342438+arii@users.noreply.github.com>
🤖 Gemini Review SkippedReview was skipped for the following reason: 🤖 Gemini Manual Trigger Guide |
🤖 AI Technical AuditPR Review: Repair and Polish Audit VRT ToolsSummaryThis PR streamlines the VRT auditing process by refactoring the Anti-AI-Slop Directives
File-by-File Analysis
|
Thank you for the continued review. I have addressed the points:
|
…nstructions - Updates `.github/copilot-instructions.md` to format the `.github/instructions/vrt-stability.instructions.md` reference as a clickable markdown link. This prevents silent reference breakage and allows link-checkers to validate the file path. Co-authored-by: arii <342438+arii@users.noreply.github.com>
🤖 Gemini Review SkippedReview was skipped for the following reason: 🤖 Gemini Manual Trigger Guide |
🤖 AI Technical AuditPR Review: Repair and Polish Audit VRT ToolsSummaryThis PR successfully consolidates documentation and refactors the Anti-AI-Slop Directives
File-by-File Analysis
|
Thank you for the review. I have removed the redundant |
- Removed redundant `.png` exclusion in `audit-vrt-changes.sh` since the `VRT_PATTERN` already explicitly matches `.ts` files exclusively. - Added error handling to exit gracefully if the initial `gh pr list` fetch fails. Co-authored-by: arii <342438+arii@users.noreply.github.com>
🤖 Gemini Review SkippedReview was skipped for the following reason: 🤖 Gemini Manual Trigger Guide |
This PR implements architectural improvements and fixes identified in the previous audit of PR #9592. It repairs the
audit-vrt-changes.shscript by adding necessary dependency checks, simplifying the matching logic, removing verbose comments, and refactoring output aggregation to avoid generating hundreds of files for large repositories. It also resolves a documentation duplication issue in.github/copilot-instructions.mdby referencing the existing.github/instructions/vrt-stability.instructions.mdfile directly. No manual VRT checklists were found inCONTRIBUTING.md. Tests run and pass cleanly.PR created automatically by Jules for task 2189911283084012697 started by @arii