Fix /review tests comment formatting#35828
Conversation
Update the /review tests output contract so the attribution and badges stay visible while the detailed analysis is collapsed. Remove the Data badge and avoid raw anchor tags in gh-aw output because the safe-output handler sanitizes them before posting. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 35828Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 35828" |
🔍 Skill Validation Results✅ Static Checks PassedSkills checked: 19 | Agents checked: 4 Full validator output⏭️ LLM Evaluation: SkippedNo changed skills with eval tests found. |
Multi-Model Adversarial ReviewMethodology: 3 independent reviewers analyzed the PR in parallel with adversarial consensus (unanimous findings included at highest severity, 2/3 at lower severity, 1/3 sent for cross-validation or discarded). Inline findings posted on
|
Restore a distinct local comment marker so Review-Tests.ps1 does not update gh-aw bot comments and does not skip the local wrapper when the agent emits the gh-aw marker. Keep legacy local marker lookup for migration, use Markdown commit links locally, and remove unused PR metadata fields. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
@PureWeen thanks, addressed the high-signal items from #35828 (comment) in 71ec6dd. Applied:
I intentionally did not match legacy non-local gh-aw markers from the local script, because that would reintroduce the risk of the local runner updating bot-owned comments. gh-aw hide-older-comments still handles workflow comments independently via its own workflow metadata. |
Multi-Model Adversarial Review — Round 2Re-reviewed commit ✅ Round-1 fixes verified (3/3)
❌ NEW: Backtick escape regression (3/3) —
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Multi-Model Adversarial Review — Round 3Re-reviewed commit ✅ Round-2 backtick fix — VERIFIED (3/3 reviewers + empirical pwsh test)Round-3 change at This is the intended Markdown —
|
|
/review tests |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
/review tests |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Round-4 review (post-
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Round-4 follow-up —
|
| Item | Status |
|---|---|
Round-1 marker collision, early-return bypass, raw <a> tags, unused JSON fields |
✅ Resolved (71ec6dde) |
Round-2 backtick-escape regression (commitSha7) |
✅ Resolved (b4da1c8c) |
Round-3 backtick escaping for $ReportPath / $ContextJsonPath / $ContextMarkdownPath / static strings |
✅ Resolved (05f1d9b8) |
| Round-4 emoji removal completeness | ✅ Clean (24ecc5fa) |
| Round-4 SKILL.md L147 color-list gap | ✅ Resolved (f8c37b4b) |
Round-2 duplicate-chrome / nested <details> |
🔁 Deferred by author |
Round-4 Get-VerdictColor missing 'No failures found' case in Review-Tests.ps1 (L163–172) |
workflow.md L202). Can ship and follow up, or fold in as a 2-line tweak. |
Verdict — no blockers from code review
The only open finding is a local-wrapper-only badge-color polish that does not affect the CI / production posting path. PR is ready from a review standpoint pending a CODEOWNER approving review.
This skill never APPROVEs / REQUEST_CHANGES — comments only.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
@PureWeen I folded in the local-wrapper polish in $(git rev-parse --short HEAD): |
Round-5 confirmation —
|
| # | Round | Finding | Status |
|---|---|---|---|
| 1 | R1 | Local PS1 marker collision with gh-aw bot marker | ✅ 71ec6dde |
| 2 | R1 | Early-return bypass in normal local path | ✅ 71ec6dde |
| 3 | R1 | Raw <a> tag vs Markdown links |
✅ 71ec6dde |
| 4 | R1 | Unused JSON fields | ✅ 71ec6dde |
| 5 | R2 | Backtick escape regression on commitSha7 link |
✅ b4da1c8c |
| 6 | R3 | Backtick escaping for $ReportPath / $ContextJsonPath / $ContextMarkdownPath / static strings |
✅ 05f1d9b8 |
| 7 | R4 | Emoji removal completeness | ✅ 24ecc5fa |
| 8 | R4 | SKILL.md color-list missing No failures found |
✅ f8c37b4b |
| 9 | R4 | Get-VerdictColor missing 'No failures found' case (local wrapper) |
✅ 129f6533 |
| — | R2 | Duplicate-chrome / nested <details> |
🔁 Deferred by author (acceptable) |
Verdict — ✅ ready to merge from code review
No open code findings. Methodology: 3 independent reviewers per round (Opus + GPT-5.5 + Gemini) with adversarial consensus; 1/3 disputed findings went through follow-up rounds.
Merge button gating is REVIEW_REQUIRED — needs a CODEOWNER approval (this skill posts comments only — never APPROVE / REQUEST_CHANGES).
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description of Change
Updates the
/review testsfailure-analysis comment shape so the marker, title, author/commit attribution, and badges are visible before the collapsed analysis details.This removes the invalid/noisy Data badge, changes the top-level marker to
<!-- Tests Failure -->, and keeps only the detailed analysis inside the collapsed<details>block with aclick to expandsummary.The gh-aw prompt now uses Markdown commit links instead of raw
<a>tags because the gh-aw safe-output handler sanitizes raw anchors into visible(a href=...)text before posting. The localReview-Tests.ps1formatter is updated to the same visible shape.Validation
gh aw compile copilot-review-tests --validate.github/scripts/Review-Tests.ps1git diff --check