Surface plugins in GitHub Actions and console run summaries - #763
Merged
Sun Haoran (haoranpb) merged 3 commits intoJul 31, 2026
Merged
Conversation
Co-authored-by: haoranpb <27280733+haoranpb@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Surface loaded plugins in run summaries
Surface plugins in GitHub Actions and console run summaries
Jul 30, 2026
Sun Haoran (haoranpb)
marked this pull request as ready for review
July 30, 2026 14:01
Sun Haoran (haoranpb)
approved these changes
Jul 30, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Surfaces configured plugins in console and GitHub Actions run summaries.
Changes:
- Adds plugin lists to both summary formats.
- Adds GitHub summary assertions for configured and absent plugins.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/bcbench/results/display.py |
Renders plugin configuration in summaries. |
tests/test_result_hierarchy.py |
Tests GitHub plugin summary output. |
Sun Haoran (haoranpb)
enabled auto-merge (squash)
July 30, 2026 14:05
Wenjie Fan (gggdttt)
approved these changes
Jul 31, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
Suppressed comments (2)
src/bcbench/results/display.py:34
PluginConfig.nameis unrestricted, so a valid plugin record may contain Rich markup such as[red]. Interpolating it inside a markup-enabled string makes Rich interpret the name; unknown or mismatched tags can raiseMarkupErrorand prevent the console summary from being emitted, while valid tags alter the displayed identifier. Render the dynamic value with markup disabled (or escape it) instead.
console.print(f"Plugins: [bold]{', '.join(results[0].experiment.plugins) if results[0].experiment and results[0].experiment.plugins else 'None'}[/bold]")
src/bcbench/results/display.py:102
- Plugin names are not constrained to Markdown-safe single-line text. For example, a valid local plugin name containing a newline ends this list item and creates arbitrary additional Markdown, so the job summary no longer shows the recorded plugin identifier faithfully. Escape Markdown/HTML metacharacters and normalize line breaks before adding plugin records to the summary.
f"- Plugins: {', '.join(results[0].experiment.plugins) if results[0].experiment and results[0].experiment.plugins else 'None'}",
Sun Haoran (haoranpb)
approved these changes
Jul 31, 2026
Magnus Hartvig Grønbech (Groenbech96)
approved these changes
Jul 31, 2026
Sun Haoran (haoranpb)
deleted the
copilot/surface-loaded-plugins-in-summaries
branch
July 31, 2026 09:38
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.
ExperimentConfiguration.pluginswas populated by PR #753 but never rendered in run summaries — reviewers had no way to see which plugins were loaded from the job summary or console output.Changes
src/bcbench/results/display.py- Plugins:line tocreate_github_job_summaryheader, placed after- Custom Agent:, treatingpluginsas a list exactly likemcp_servers(,-joined, falls back toNone)Plugins:line tocreate_console_summaryfor parityf"- Plugins: {', '.join(results[0].experiment.plugins) if results[0].experiment and results[0].experiment.plugins else 'None'}",tests/test_result_hierarchy.pytest_github_summary_renders_markdown: split the"- Custom Agent: N/A\n\n## Result Summary"adjacency assertion since- Plugins:is now the last header line; also asserts- Plugins: Nonewhen no plugins are settest_github_summary_shows_plugins_when_present: verifies both plugin entries ("<name>@<sha>"/"<name>@local") appear joined in the rendered content