Skip to content

[code-infra] Benchmark GHA revisited#21349

Closed
Janpot wants to merge 143 commits into
mui:masterfrom
Janpot:hackathon/gh-action-security-fix
Closed

[code-infra] Benchmark GHA revisited#21349
Janpot wants to merge 143 commits into
mui:masterfrom
Janpot:hackathon/gh-action-security-fix

Conversation

@Janpot

@Janpot Janpot commented Feb 16, 2026

Copy link
Copy Markdown
Member

On top of #21222, which had some problems

Use pull_request + workflow_run two-workflow pattern instead of
pull_request_target which grants base-repo privileges to untrusted
PR code. Split into three workflows:

  • benchmark-baseline.yml: push to master only, stores results in data repo
  • benchmark-pr.yml: pull_request trigger (safe for forks, no secrets)
  • benchmark-comparison.yml: workflow_run trigger, downloads artifact and
    posts PR comment using trusted code from default branch

Tests reworked to use vitest browser mode and reuse the page. I didn't touch the benchmark code itself. Leaving that up to the teams as an exercise

Copilot AI 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.

Pull request overview

Copilot reviewed 31 out of 32 changed files in this pull request and generated 10 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/benchmark-tool/ci-scripts/compare-benchmarks.ts Outdated
Comment thread .github/workflows/benchmark-comparison.yml
Comment thread test/benchmark-tool/ci-scripts/compare-benchmarks.ts Outdated
Comment thread test/benchmark-tool/ci-scripts/store-baseline.ts
Comment thread test/benchmark-tool/utils/goToPage.ts Outdated
Comment thread test/benchmark-tool/utils/benchmarkReporter.ts Outdated
Comment thread test/benchmark-tool/utils/Profiler.tsx Outdated
Comment thread test/benchmark-tool/ci-scripts/compare-benchmarks.ts Outdated
Comment thread .github/workflows/benchmark-comparison.yml
Comment thread .github/workflows/benchmark-comparison.yml
Janpot and others added 13 commits February 23, 2026 17:05
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Jan Potoms <2109932+Janpot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Jan Potoms <2109932+Janpot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Jan Potoms <2109932+Janpot@users.noreply.github.com>
@github-actions github-actions Bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Mar 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@Janpot Janpot closed this Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: out-of-date The pull request has merge conflicts and can't be merged. scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). type: new feature Expand the scope of the product to solve a new problem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants