Skip to content

Use separate classpath JAR for JMH benchmark tests on Windows#2846

Merged
timja merged 1 commit into
jenkinsci:masterfrom
somiljain2006:Windows-jmh-length
Jun 6, 2026
Merged

Use separate classpath JAR for JMH benchmark tests on Windows#2846
timja merged 1 commit into
jenkinsci:masterfrom
somiljain2006:Windows-jmh-length

Conversation

@somiljain2006

@somiljain2006 somiljain2006 commented May 27, 2026

Copy link
Copy Markdown
Contributor

Fix Windows JMH benchmark command-line length issue by enabling jmh.separateClasspathJAR in CascJmhBenchmarkStateTest, allowing benchmark forks to run successfully without hitting an error on Windows CI, and removing the need for the previous workaround skip.

Your checklist for this pull request

🚨 Please review the guidelines for contributing to this repository.

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side) and not your master branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or in Jenkins JIRA
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Did you provide a test-case? That demonstrates feature works or fixes the issue.

@somiljain2006
somiljain2006 requested a review from a team as a code owner May 27, 2026 12:07

@timja timja left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not tested on Windows but sure

@timja timja added the test A PR that adds to testing - used by Release Drafter label May 27, 2026
@timja

timja commented May 27, 2026

Copy link
Copy Markdown
Member

To confirm, you've tested this on Windows? Have you got a screenshot?

@somiljain2006

Copy link
Copy Markdown
Contributor Author

I have not tested this locally on Windows. I assumed that if the Windows CI run passes with the change, it would confirm that the issue is resolved, since the failure was specific to the Windows CI environment.

If you want, I can also set up a Windows environment locally and verify it directly there.

@timja

timja commented May 27, 2026

Copy link
Copy Markdown
Member

yes if we see it run on Windows CI that should be fine, looks like the build didn't trigger though

@timja timja closed this May 27, 2026
@timja timja reopened this May 27, 2026
@somiljain2006
somiljain2006 requested a review from timja June 6, 2026 11:39

@timja timja left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

FWIW Windows builds are incredibly slow on this plugin and we may want to just disable them.

Looks like 5-6 times slower

@timja
timja merged commit b292339 into jenkinsci:master Jun 6, 2026
17 checks passed
@somiljain2006
somiljain2006 deleted the Windows-jmh-length branch June 6, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test A PR that adds to testing - used by Release Drafter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants