Repository navigation
Test Quality Review on PR (on open / sync) #2162
Agentic Workflow file for this run
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
| --- | |
| name: "Test Quality Review on PR (on open / sync)" | |
| description: >- | |
| Reports revision-bound test-value evidence when a non-draft PR is opened, | |
| reopened, marked ready-for-review, or pushed to, including source-only changes. | |
| Grades changed tests, audits cross-test parallel-safety, and publishes one | |
| consolidated advisory COMMENT review with inline suggestions for verified | |
| findings. Static predictions are distinguished from executed proof. | |
| # Triggers: | |
| # - pull_request `opened` / `reopened` / `ready_for_review` — initial | |
| # review on the PR's first appearance as a non-draft. | |
| # - pull_request `synchronize` — re-review when new commits are pushed so the | |
| # result stays current. `concurrency.cancel-in-progress` cancels superseded | |
| # runs; the review records the exact head SHA. | |
| # | |
| # Do not filter to test paths: source-only changes need evidence too, and | |
| # non-behavioral PRs receive an explicit not-applicable assessment. | |
| # | |
| # The companion `/review-tests` slash command lives in `test-reviewer.agent.md`. | |
| # They must remain separate workflows because mixing `slash_command` with | |
| # other triggers makes gh-aw's activation gate always require a command | |
| # position match, silently skipping the agent on every `pull_request` | |
| # invocation. | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize, ready_for_review] | |
| # Skip draft PRs and OneLocBuild localization check-in PRs (authored by | |
| # dotnet-bot) — only run for human-authored PRs in a reviewable state. | |
| if: > | |
| github.event.pull_request.draft == false | |
| && !( | |
| github.event.pull_request.user.login == 'dotnet-bot' | |
| && startsWith(github.event.pull_request.title, 'Localized file check-in') | |
| ) | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| copilot-requests: write | |
| imports: | |
| - shared/test-reviewer-shared.md | |
| # The combined review includes a bounded parallel-safety specialist task in | |
| # addition to per-test grading, so retain the same per-run headroom as the broad | |
| # expert review. Source-only changes do not launch the parallel-safety specialist. | |
| max-ai-credits: 2000 | |
| # This replaces two automatic workflows that each carried a 20K daily allowance. | |
| # Preserve their aggregate admission capacity so consolidation does not halve | |
| # throughput on busy PR days (see issues #9086 and #9053). | |
| max-daily-ai-credits: 40K | |
| safe-outputs: | |
| report-failure-as-issue: false | |
| messages: | |
| footer: "> 🤖 **Automated content by GitHub Copilot.** Generated by the [{workflow_name}]({agentic_workflow_url}) workflow.{ai_credits_suffix}{history_link}" | |
| noop: | |
| report-as-issue: false | |
| concurrency: | |
| group: test-quality-review-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| timeout-minutes: 40 | |
| --- | |
| <!-- Body provided by shared/test-reviewer-shared.md --> |