Open
Conversation
E2E Collect must-gather runs go build ./hack/db but the pipeline never installed Go, relying on 1es-aro-ci-pool agents having go on PATH. Add GoTool@0 (1.25.3, matching go.mod) after checkout for CSP and MIWI jobs. Made-with: Cursor
- Add template-install-go.yml: grep version from go.mod under ARO_CHECKOUT_PATH, then GoTool@0 with goDownloadUrl (vars.yml) for MS golang endpoint. - Wire both E2E jobs via template; extend vars.yml with GO_TOOL_DOWNLOAD_URL. Made-with: Cursor
Implement reusable PR scan workflow with Claude Code agent for systematic code review of pull requests. New files: - .claude/agents/pr-scan.md: Agent definition with 7-category review checklist (correctness, API compatibility, security, reliability, tests, observability, performance) - .claude/agents/README.md: Agent directory index - docs/agent-guides/pr-scan-agent.md: Complete usage guide with examples, troubleshooting, and integration patterns - hack/pr-scan.sh: Context gathering script supporting --pr, --branch, --base, --mode, and --list-open options Modified files: - Makefile: Added pr-scan target forwarding to hack/pr-scan.sh Features: - Four review modes: full, quick, security, pipeline - Works with or without gh CLI (graceful fallback) - Structured output: Summary, Findings (Blocker/High/Medium/Low), Questions for Author, Not Reviewed scope - ARO-RP specific checks: VMSize types, async mutations, multi-module builds, admin API patterns - Complements CI by catching logic issues, breaking changes, and architectural concerns Usage: make pr-scan PR=1234 make pr-scan BRANCH=fix/feature MODE=quick ./hack/pr-scan.sh --list-open Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
When no PR= or BRANCH= is specified, automatically scan the current git branch against master. This makes it easier to quickly check work-in-progress without specifying branch names. Usage: make pr-scan # Auto: scan current branch make pr-scan MODE=quick # Auto with mode ./hack/pr-scan.sh # Same via script Changes: - hack/pr-scan.sh: Add --auto flag and auto-detection logic - Makefile: Default to --auto when no PR/BRANCH specified - docs: Updated all examples to show auto-detection first Auto mode detects current branch via 'git rev-parse --abbrev-ref HEAD' and prevents scanning master/main directly (must be on feature branch).
Collaborator
|
Heads up, there's significant overlap with Azure/ARO-HCP#4638, which adds an in-repo PR reviewer agent with domain routing, review fixtures, and validation. That effort has an architecture ADR behind it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Scan Agent for ARO-RP
Adds a reusable PR scan workflow with Claude Code agent for systematic code review of pull requests.
Overview
This PR introduces a PR scan agent that performs production-safety-focused code review across 7 categories: correctness, API compatibility, security, reliability, tests, observability, and performance. The agent understands ARO-RP specific patterns (VMSize types,
async mutations, multi-module builds, admin API patterns) and complements CI checks by catching logic issues, breaking changes, and architectural concerns that automated tests miss.
What's Included
New Files
.claude/agents/pr-scan.md(240 lines) - Agent definition with 7-category review checklist and ARO-RP specific checks.claude/agents/README.md(62 lines) - Agent directory indexdocs/agent-guides/pr-scan-agent.md(473 lines) - Complete usage guide with examples, troubleshooting, and FAQhack/pr-scan.sh(232 lines) - Context gathering script with auto-detection, multiple modes, gh CLI integrationModified Files
Makefile- Addedpr-scantarget with auto-detection supportTotal: 5 files, 1,087 lines added
Key Features
🚀 Zero-Config Auto-Detection