Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INFRA-2118] Add function to run JMH benchmarks #91

Merged
merged 3 commits into from
Jun 12, 2019

Conversation

AbhyudayaSharma
Copy link
Contributor

@AbhyudayaSharma AbhyudayaSharma commented Jun 10, 2019

Uses the added Maven profile from jenkinsci/plugin-pom#206 and jenkinsci/jenkins-test-harness#135
and adds a utility function to run benchmarks in Jenkinsfiles.

@oleg-nenashev @runzexia @Supun94

* @since TODO
*/
def call(String artifacts = null) {
// TODO: Use Lockable Resources plugin
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure we can merge it without it. Maybe it makes sense to create an INFRA ticket to @olblak to get it set up. Maybe 2 parallel runs is a good limit for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

the lockable plugin is already installed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@olblak We need you to create a resource that we can use for throttling benchmarks running on highmem nodes.

Copy link
Member

Choose a reason for hiding this comment

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

so something like lock('runBenchmarks') {
}

should be fine

}

stage('Archive reports') {
if (artifacts != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Undefined variable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

artifacts is a parameter to the function


stage('Archive reports') {
if (artifacts != null) {
archiveArtifacts artifacts: artifacts
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it also make sense to generate a http://jmh.morethan.io/ viewer link and put it to the console log for now?

vars/runBenchmarks.groovy Show resolved Hide resolved
@AbhyudayaSharma
Copy link
Contributor Author

AbhyudayaSharma commented Jun 11, 2019 via email

Copy link
Contributor

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

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

Looks good to me. IMHO we can ship it once JTH and Plugin POM patches are out

@olblak olblak merged commit 0a04853 into jenkins-infra:master Jun 12, 2019
@AbhyudayaSharma AbhyudayaSharma deleted the benchmarks branch June 12, 2019 08:38
@oleg-nenashev
Copy link
Contributor

" IMHO we can ship it once JTH and Plugin POM patches are out" @olblak They are not :) No worries, we will get there soon

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.

None yet

3 participants