Skip to content

Bake the pinned perf plugin into the perf-triage image - #7707

Open
suhaibmujahid wants to merge 2 commits into
perf-plugin/build-tokensfrom
perf-plugin/bake
Open

suhaibmujahid wants to merge 2 commits into
perf-plugin/build-tokensfrom
perf-plugin/bake

Conversation

@suhaibmujahid

Copy link
Copy Markdown
Member

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 💬

@suhaibmujahid
suhaibmujahid requested a review from a team as a code owner November 29, 2026 18:17
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.

🟢 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.toml and copies only the perf plugin into the agent image.
  • Passes the local build token through a BuildKit secret and blanks GITHUB_TOKEN in 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

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

Looks good to me

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
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