Repository navigation
Bake the pinned perf plugin into the perf-triage image - #7707
Open
suhaibmujahid wants to merge 2 commits into
Open
suhaibmujahid wants to merge 2 commits into
suhaibmujahid wants to merge 2 commits into
Conversation
suhaibmujahid
force-pushed
the
perf-plugin/bake
branch
from
November 29, 2026 19:00
febd9a1 to
02aceb4
Compare
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the change moving plugin installation to image build time and removing the runtime GitHub credential requirement.
No open issues 🎉
What changed in this PR
Moves perf-triage’s private plugin download from startup to image build time, advancing #7610 and removing the job’s need for a runtime GitHub credential.
Changes:
- Pins the plugin repository in
hackbot.tomland copies only the perf plugin into the agent image. - Passes the local build token through a BuildKit secret and blanks
GITHUB_TOKENin the agent container and model shell. - Updates plugin validation, tests, and local setup documentation for the baked-in plugin.
| File | Description |
|---|---|
agents/perf-triage/tests/test_triage.py |
Tests token blanking in model options. |
agents/perf-triage/tests/test_plugin.py |
Tests baked-in plugin validation and rankings paths. |
agents/perf-triage/tests/test_compose_env.py |
Checks build-secret wiring and repository configuration. |
agents/perf-triage/tests/conftest.py |
Adapts shared fixtures to the baked-in plugin. |
agents/perf-triage/README.md |
Documents build credentials and revised local setup. |
agents/perf-triage/hackbot.toml |
Declares the private repository and pinned commit. |
agents/perf-triage/hackbot_agents/perf_triage/triage/task.py |
Blanks the GitHub token in the model environment. |
agents/perf-triage/hackbot_agents/perf_triage/plugin.py |
Replaces runtime cloning with baked-in plugin lookup. |
agents/perf-triage/Dockerfile |
Adds a secret-backed fetch stage and copies the perf plugin. |
agents/perf-triage/compose.yml |
Supplies the build secret, blanks the runtime token, and removes the checkout mount. |
Review effort: Balanced
perf-triage used to clone the private mozilla/internal-aidev-plugins at start-up with a runtime GitHub token, which deployments never provided. Its hackbot.toml now pins the repository in a [build] table, the Dockerfile fetches it in a build-deps stage and keeps only plugins/perf at /opt/perf-plugin, and the job needs no GitHub credential. Locally the build secret is the developer's GITHUB_TOKEN; it is blanked in the agent container and in the model's shell.
Follows the rename of the build stage that fetches internal repositories, now at /repos/<name>.
suhaibmujahid
force-pushed
the
perf-plugin/bake
branch
from
December 3, 2026 00:25
02aceb4 to
fb6208b
Compare
suhaibmujahid
enabled stacked auto-merge (squash)
December 3, 2026 00:40
This branch has not been deployed
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.
Part of #7610
perf-triage used to clone the private mozilla/internal-aidev-plugins at
start-up with a runtime GitHub token, which deployments never provided.
Its hackbot.toml now pins the repository in a [build] table, the
Dockerfile fetches it in a build-deps stage and keeps only plugins/perf
at /opt/perf-plugin, and the job needs no GitHub credential. Locally the
build secret is the developer's GITHUB_TOKEN; it is blanked in the agent
container and in the model's shell.
Stack created with GitHub Stacks CLI • Give Feedback 💬