Skip to content

Let perf-triage run against a local checkout of the perf plugin - #7708

Open
suhaibmujahid wants to merge 2 commits into
perf-plugin/bakefrom
perf-plugin/local-override
Open

suhaibmujahid wants to merge 2 commits into
perf-plugin/bakefrom
perf-plugin/local-override

Conversation

@suhaibmujahid

Copy link
Copy Markdown
Member

Part of #7610

Setting PERF_PLUGIN_LOCAL_DIR to an internal-aidev-plugins checkout's
plugins/perf mounts it at /plugins-local/perf, and plugin.py then uses it
instead of the baked-in plugin, to try a skill change without pinning it
or rebuilding. Unset, compose mounts an empty placeholder that plugin.py
never reads. An explicit choice that is not the plugin stops the run.


Stack created with GitHub Stacks CLI • Give Feedback 💬

@suhaibmujahid
suhaibmujahid requested a review from a team as a code owner November 29, 2026 18:17
@suhaibmujahid
suhaibmujahid force-pushed the perf-plugin/local-override branch from 928aaf8 to 99c7239 Compare November 29, 2026 19:00
Copilot AI balanced review requested due to automatic review settings November 29, 2026 19:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The tests no longer cover a plugin with SKILL.md but no data/top_sites.json, leaving the shared validator’s rankings requirement without regression protection.

1 open issue
What changed in this PR

Adds an opt-in local perf plugin override so perf-triage can try skill changes without rebuilding the image or changing the pinned plugin.

Changes:

  • Mounts a host checkout through PERF_PLUGIN_LOCAL_DIR, retaining the baked-in plugin by default.
  • Validates and caches the selected plugin, rejecting invalid explicit overrides.
  • Documents the workflow and updates plugin-selection and Compose tests.
File Description
agents/​perf-triage/​tests/​test_plugin.py Tests local selection, invalid overrides, and cached selection.
agents/​perf-triage/​tests/​test_compose_env.py Checks the local mount and environment passthrough.
agents/​perf-triage/​tests/​conftest.py Isolates plugin selection and environment settings.
agents/​perf-triage/​README.md Documents the local checkout workflow and variable.
agents/​perf-triage/​hackbot_agents/​perf_triage/​plugin.py Selects, validates, and caches the plugin path.
agents/​perf-triage/​compose.yml Adds the read-only local mount and opt-in variable.

Review effort: Balanced

Comment thread agents/perf-triage/tests/test_plugin.py Resolved
Comment thread agents/perf-triage/tests/test_plugin.py Resolved

@pslawless pslawless 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.

Left comment about 1 test that was removed, but overall LGTM

Setting PERF_PLUGIN_LOCAL_DIR to an internal-aidev-plugins checkout's
plugins/perf mounts it at /plugins-local/perf, and plugin.py then uses it
instead of the baked-in plugin, to try a skill change without pinning it
or rebuilding. Unset, compose mounts an empty placeholder that plugin.py
never reads. An explicit choice that is not the plugin stops the run.
@suhaibmujahid
suhaibmujahid force-pushed the perf-plugin/local-override branch from 99c7239 to 6f666e2 Compare December 3, 2026 00:25
@suhaibmujahid
suhaibmujahid force-pushed the perf-plugin/local-override branch from 92b47e5 to bde4421 Compare December 3, 2026 00:36
@suhaibmujahid
suhaibmujahid enabled stacked auto-merge (squash) December 3, 2026 00:40

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants