Skip to content

Restore expandable /review performance comments - #39037

Merged
kubaflo merged 34 commits into
dotnet:mainfrom
kubaflo:feature/perf-analysis-ai-followup
Oct 1, 2026
Merged

kubaflo merged 34 commits into
dotnet:mainfrom
kubaflo:feature/perf-analysis-ai-followup

Conversation

@kubaflo

@kubaflo kubaflo commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

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!

Summary

Follow-up to #38324. The first production /review performance run successfully published its report, but used flat Markdown instead of the agreed expandable presentation: example on #39024.

  • Restore Performance Review Summary, the actual PR author/pinned commit notification, and truthful Scope/Result/Commit badges as the visible header.
  • Put the verdict, coverage and benchmark table inside Performance Results, and static findings, recommendations and next action inside Findings & Follow-up. Both sections are closed by default for static-only, measured and incomplete reports.
  • Pass trusted PR metadata into rendering and validation. Reject flat, expanded, nested, extra or incorrectly named sections, stray expanded narrative, mismatched authors/commits and misleading badges. Escape narrative HTML and block fences so generated prose cannot break the layout.
  • Allow img.shields.io in gh-aw's safe-output URL policy without expanding the agent network allowlist, and regenerate the workflow with gh-aw v0.86.2.

Measurement, verdict, coverage, permissions and stale-evidence rules are unchanged. This does not modify the existing production comment; the new layout takes effect for commands after this fix reaches the default branch.

GPT-6.1 Sol alignment

Includes the merged #39036 model migration, retaining gpt-6.1-sol, Responses API configuration and shared pricing for all 14 gh-aw workflows, including agent and threat-detection execution. Corrects the stale hosted-model sentence identified in this review thread, while preserving the independent configuration of local runners and evaluations.

Validation

  • All five existing perf-analysis suites pass; report-component coverage includes every verdict, both report profiles and 12 malformed-layout rejection cases. No pipeline/YAML configuration tests were added.
  • Replayed the trusted Render stage using production run 36778478869 evidence and original narrative, without posting a comment. Re-rendered the measured ABBA report from run 36765284345 with unchanged evidence and narrative.
  • GitHub's Markdown API rendered both reports with exactly two closed sibling accordions, three visible badges and the managed benchmark table inside Performance Results. The exact previously published flat report now fails presentation validation.
  • All 14 workflows compile with pinned gh-aw v0.86.2. Inspected all 28 generated agent/detection environments: gpt-6.1-sol and responses. Native actionlint passes with the documented baseline exclusions; PowerShell/JSON parsing and scoped formatting pass.
  • Fresh staged fork canary passed: run 36784039109, based on production commit b509aa2fa89c2c93fe40bfac57729e8ac20d72a5. All executed jobs succeeded, report validation is valid: true with no errors, and runtime logs confirm GPT-6.1 Sol/Responses in both agent and detection. Safe-output processing reports one staged operation with no failed operations. The report artifact contains the restored layout; no live performance comment was posted.

The canary differs only in the two workflow files: exact dedicated-fork/manual-dispatch guards, an existing personal inference secret, a fixed upstream target and forced staging. Production files are restored and clean. The known non-fatal staged-mode safe-outputs-items missing-artifact annotation remains; report validation and safe-output processing succeed.

The upstream Skill Validation check is blocked before evaluating PR content by the existing actions/checkout refusal to run fork code in pull_request_target. This PR does not weaken that guard.

morning4coffe-dev and others added 30 commits August 25, 2026 00:55
Generate the compact performance summary with author and commit context, truthful badges, and closed Performance Results and Findings & Follow-up sections. Carry author metadata through local and Helix runners, guard the format in the pipeline, and document the same layout for manual comments.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 9c4135af-95e6-472d-9309-98f5d13cb737
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 9c4135af-95e6-472d-9309-98f5d13cb737
Remove performance pipelines, Helix submission and payload helpers, and remote build metadata. Retain local scripts and the performance skill with versioned local result contracts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 9c4135af-95e6-472d-9309-98f5d13cb737
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Run pinned managed ABBA measurements separately from GPT interpretation and validated safe-output publication. Preserve local native tooling, surface incomplete coverage, and exclude the performance command from full-review recovery.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Avoid assigning the read-only PowerShell HOME variable, use the Unix SDK installer on Linux/macOS, and retain setup/build/benchmark logs separately from performance evidence.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Avoid selecting an earlier attempt’s same-named agent artifact when recovering from an inference failure.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep the removal of legacy rerun automation and move the performance-command exclusion to the shared recovery helper.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Remove native-device infrastructure, local evidence ingestion and request tooling, duplicate benchmark sources, and the history writer. Retain the isolated managed runner, trusted benchmark overlays, coverage classification, and independent report validation. Native paths remain explicit unmeasured coverage gaps.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo and others added 3 commits September 30, 2026 21:22
Keep completed partial-coverage measurements distinct from failed or missing runs. Repeating unchanged runnable filters cannot resolve excluded benchmark-input or native coverage gaps.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep the pinned author/commit and status badges visible, put reports in two closed sections, and validate the complete presentation before publication.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings September 30, 2026 22:00
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39037

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39037"

@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Skill Validation Results

@kubaflo — new skill validation results are available based on this last commit: b509aa2.
To request a fresh validation after new comments or commits, comment /evaluate-skills.

Overall Failed Static Failed LLM Needs attention Skills 0 Agents 0

❌ Skill Validation Results — b509aa2 · Restore expandable /review performance comments · 2026-09-30T22:09:13Z

❌ Static Checks Failed

Skills: 0 | Eval specs linted:

⏭️ LLM Evaluation: Skipped

No changed skills with eval specs found.

🔍 Full results and investigation steps

Preserve the merged model, Responses API and pricing configuration across all gh-aw workflows while retaining the expandable performance report fix.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Failed runs without benchmark data can incorrectly display the “Managed benchmarks” scope badge.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Restores expandable /review performance reports with trusted metadata, badges, validation, and safe rendering.

Changes:

  • Adds two collapsed report sections and status badges.
  • Validates layout, PR metadata, and escaped narrative content.
  • Allows Shields badges and regenerates the gh-aw workflow.
File Description
.github/​workflows/​copilot-review-performance.md Allows Shields badge URLs.
.github/​workflows/​copilot-review-performance.lock.yml Regenerates the compiled workflow.
.github/​skills/​perf-analysis/​tests/​Validate-PerformanceReport.Tests.ps1 Tests invalid report layouts.
.github/​skills/​perf-analysis/​tests/​New-PerformanceReport.Tests.ps1 Tests rendering and escaping.
.github/​skills/​perf-analysis/​SKILL.md Documents the report contract.
.github/​skills/​perf-analysis/​scripts/​Validate-PerformanceReport.ps1 Validates metadata, badges, and accordions.
.github/​skills/​perf-analysis/​scripts/​New-PerformanceReport.ps1 Renders the expandable report.
.github/​skills/​perf-analysis/​references/​recommendation-policy.json Defines verdict badge metadata.
.github/​scripts/​Review-Performance.ps1 Passes trusted PR metadata into rendering.
.github/​docs/​pr-review-workflow.md Documents the new presentation.

$lines.Add("> @$($pr.author) &#x2014; performance review for commit [``$shortSha``](https://github.com/$($pr.repository)/commit/$($pr.headRefOid)).")
$lines.Add("")
$lines.Add('<p align="left">')
$scope = if ($hasEmpiricalEvidence) { "Managed benchmarks" } else { "Static review only" }
Copilot AI balanced review requested due to automatic review settings September 30, 2026 22:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Credentialed publication and generated workflow changes warrant final human verification despite the coherent implementation and focused tests.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)

@kubaflo

kubaflo commented Sep 30, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stamping as requested by @kubaflo; no code review performed.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants