Repository navigation
Add GitHub Actions summary section selection - #10697
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Note
🤖 Automated review by GitHub Copilot. Generated by the Expert Code Review workflow. To request a follow-up action, reply by tagging @copilot directly.
Review Summary
This PR adds a --report-gh-step-summary-sections CLI option to independently select which sections (test-results, slow-tests, or all) are included in the GitHub Actions step summary. The implementation is well-structured and thoroughly tested.
Verdict Table
| # | Dimension | Result |
|---|---|---|
| 1 | Algorithmic Correctness | ✅ Clean |
| 2 | Threading & Concurrency | ✅ N/A — _sections is readonly, set in ctor |
| 3 | Security & IPC Contract Safety | ✅ N/A |
| 4 | Public API & Binary Compatibility | ✅ All internal; InternalAPI.Unshipped.txt updated |
| 5 | Performance & Allocations | ✅ Clean — not a hot path |
| 6 | Cross-TFM Compatibility | ✅ N/A |
| 7 | Resource & IDisposable Management | ✅ N/A |
| 8 | Defensive Coding at Boundaries | ✅ Validation done in command-line provider |
| 9 | Error Handling & Diagnostics | ✅ Clean — localized error messages |
| 10 | Naming & Readability | ✅ Clean |
| 11 | Test Quality | ✅ Comprehensive tests covering parsing, validation, round-trip, aggregation, and section filtering |
| 12 | Localization | ✅ New resources added, xlf regenerated |
| 13 | Documentation | ✅ Glossary, PACKAGE.md, and --help expectations updated |
| 14 | Configuration & Build | ✅ N/A |
| 15 | Backward Compatibility | ✅ Legacy modules without the field gracefully default to All |
| 16 | Extensibility | ✅ N/A |
| 17 | Logging & Observability | ✅ N/A |
| 18 | Code Duplication | ✅ Clean |
| 19 | Scope Discipline | ✅ Single-concern PR |
| 20 | CLI Options Guidelines | ✅ Help/info tests updated; description ends with period |
| 21 | Dependency Management | ✅ N/A |
| 22 | PowerShell & Script Hygiene | ✅ N/A |
Notes
- The
JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)onCiRunSummaryModule.GitHubActionsStepSummarySectionscorrectly ensures backward-compatible serialization — older consumers that don't know this property won't see it in the JSON. GetAggregateSectionscorrectly unions selections across modules and falls back toAllwhen any module lacks the field (legacy payload), preserving full output for mixed old/new runs.- Test coverage is thorough: parsing edge cases (empty, unknown, case-insensitive, duplicate), section filtering in
BuildMarkdown, aggregate union logic, and round-trip through fragment serialization.
No blocking issues found.
There was a problem hiding this comment.
Pull request overview
Adds configurable GitHub Actions job-summary sections while preserving full output by default and supporting aggregated runs.
Changes:
- Adds parsing and validation for
test-results,slow-tests, andall. - Applies selections to direct and aggregated summaries, including legacy fragment compatibility.
- Updates tests, localization resources, API baselines, help, and documentation.
Show a summary per file
| File | Description |
|---|---|
GitHubActionsSummaryReporterTests.cs |
Tests selected and aggregated sections. |
GitHubActionsSlowTestReporterTests.cs |
Verifies notices remain independent. |
GitHubActionsCommandLineProviderTests.cs |
Tests option parsing and validation. |
CiRunSummaryAggregationTests.cs |
Tests fragment persistence and compatibility. |
HelpInfoAllExtensionsTests.cs |
Updates help and info expectations. |
CiRunSummaryAggregation.cs |
Persists section selections. |
GitHubActionsResources.zh-Hant.xlf |
Adds localized resource entries. |
GitHubActionsResources.zh-Hans.xlf |
Adds localized resource entries. |
GitHubActionsResources.tr.xlf |
Adds localized resource entries. |
GitHubActionsResources.ru.xlf |
Adds localized resource entries. |
GitHubActionsResources.pt-BR.xlf |
Adds localized resource entries. |
GitHubActionsResources.pl.xlf |
Adds localized resource entries. |
GitHubActionsResources.ko.xlf |
Adds localized resource entries. |
GitHubActionsResources.ja.xlf |
Adds localized resource entries. |
GitHubActionsResources.it.xlf |
Adds localized resource entries. |
GitHubActionsResources.fr.xlf |
Adds localized resource entries. |
GitHubActionsResources.es.xlf |
Adds localized resource entries. |
GitHubActionsResources.de.xlf |
Adds localized resource entries. |
GitHubActionsResources.cs.xlf |
Adds localized resource entries. |
GitHubActionsResources.resx |
Defines option and validation messages. |
PACKAGE.md |
Documents summary selection. |
InternalAPI.Unshipped.txt |
Updates internal API baseline. |
GitHubActionsSummaryReporter.Markdown.cs |
Filters generated summary sections. |
GitHubActionsSummaryReporter.cs |
Applies and persists selections. |
GitHubActionsCommandLineProvider.cs |
Registers and validates the option. |
GitHubActionsCommandLineOptions.cs |
Implements section flags and parsing. |
docs/glossary.md |
Documents selection behavior. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 27/27 changed files
- Comments generated: 1
- Review effort level: Balanced
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 68b49221-e76a-4356-a5ac-5e839b04930c
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 68b49221-e76a-4356-a5ac-5e839b04930c
🧵 Parallel-safety audit — PR #10697Parallelization — audited both test assemblies touched by this PR:
No Findings: A (global-state) 0 · B (paths) 0 · C (declaration) 0 · D (over-serialization) 0 — by severity: Critical 0 · High 0 · Warning 0 · Info 0. All five changed test files add only new
Nothing to flag for parallel-safety. Advisory only — heuristic, non-blocking. Re-run with
|
🧪 Expert test review — PR #10697
This advisory comment was generated automatically. Grades are heuristic
|
Summary
--report-gh-step-summary-sectionswith composabletest-results,slow-tests,coverage, andallvalues--report-gh-step-summary on|offremains the emission-policy option. The new selector independently controls rendered content, so future sections can be added additively without changing the emission-policy option.Validation
net9.0): 1,188 total, 0 failed.\\build.cmd -pack -blHelpInfoAllExtensionsTestsandGitHubActionsReportTests: 24 total, 0 failed