Skip to content

Add Maven configuration warm-path benchmark - #9

Merged
brunoborges merged 1 commit into
mainfrom
brunoborges-move-maven-warm-benchmark
Jul 30, 2026
Merged

Add Maven configuration warm-path benchmark#9
brunoborges merged 1 commit into
mainfrom
brunoborges-move-maven-warm-benchmark

Conversation

@brunoborges

Copy link
Copy Markdown
Collaborator

Summary

  • add a Maven configuration warm-path benchmark workflow moved from actions/setup-java PR #1182
  • make setup-java repository, baseline ref, and candidate ref configurable for benchmark dispatches
  • add the benchmark helper under scripts/ and document the new workflow

Validation

  • bash -n scripts/benchmark-maven-configuration.sh
  • shellcheck scripts/benchmark-maven-configuration.sh
  • npm test
  • ruby YAML parse for .github/workflows/*.yml
  • functional dry run of scripts/benchmark-maven-configuration.sh summary and size reporting

Move the Maven configuration warm-path benchmark into the benchmarks repository with a configurable setup-java repository and refs, local helper script, and README coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9187715c-3092-4f20-b10a-070980b669e7
Copilot AI review requested due to automatic review settings July 30, 2026 19:05
@brunoborges
brunoborges merged commit 3192195 into main Jul 30, 2026
1 check passed

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.

🟡 Not ready to approve

The new workflow executes a user-specified repository as an action, so the workflow_dispatch input should clearly indicate it must reference a trusted repo to avoid accidental execution of untrusted code.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

This PR adds a new GitHub Actions benchmark workflow to measure the warm-path performance of actions/setup-java’s Maven configuration logic across multiple OS/cache/toolchain scenarios, along with a helper script to record timings and bundle-size metrics and documentation describing the workflow.

Changes:

  • Added scripts/benchmark-maven-configuration.sh to prepare fixtures, record setup timings, record dist/setup size metrics, and write a Markdown summary.
  • Added .github/workflows/maven-configuration-warm-path.yml to run baseline vs candidate setup-java refs across a matrix of OS/cache/version/toolchains combinations.
  • Updated README.md to document the new benchmark workflow and recommend basic script linting commands.
File summaries
File Description
scripts/benchmark-maven-configuration.sh Adds benchmark helper for timing, size recording, and summary generation.
.github/workflows/maven-configuration-warm-path.yml Introduces the dispatchable benchmark workflow comparing two setup-java refs across a matrix.
README.md Documents the new workflow and adds script validation commands.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Low

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Comment on lines +6 to +10
setup-java-repository:
description: Repository containing the setup-java action
required: true
default: actions/setup-java
type: string
@brunoborges
brunoborges deleted the brunoborges-move-maven-warm-benchmark branch July 30, 2026 20:12
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.

2 participants