Quantcast

parallel and splitTests questions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

parallel and splitTests questions

Tim-3
all of the examples of splitTests that I have seen are always using a JUnit or some other XML representation of the tests to determine what to split on.

I have (what I thought) was a very simple use case, but I am finding it difficult to express to jenkins how to do it.

I want to run in parallel several different long running commands that have no basis in JUnit, but I want to control the amount of parallel things that are running concurrently for a single build because I only have so many resources that I can consume.

Is there any way to do this?

For example,

I have 20 parallel tests that I want to run, that call a shell script. but those tests are going to boot compute instances on an openstack cloud. my tenant only has enough quota to boot 3 instances at a time.

I want to tell jenkins "here's 20 parallel tasks I want you to run, now only run 3 at a time"

Can anyone provide a simple example of parallel and splitTests(if necessary) that accomplishes that? Or is this not possible with Jenkins?

Thanks!
-tim

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAB0Zv8hsSxVhbHrb8LjqHzVht2T%2BMLxV%3D%3DKgOj%3DS%3DUi13xbv3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: parallel and splitTests questions

teilo
See https://issues.jenkins-ci.org/browse/JENKINS-44085 and the workaround in the comments. 

That is if you want to limit per run of a job. If you want to limit across runs of a job or across multiple jobs then look at lockable resources plugin. 

On 18 May 2017 10:12 pm, Tim <[hidden email]> wrote:
all of the examples of splitTests that I have seen are always using a JUnit or some other XML representation of the tests to determine what to split on.

I have (what I thought) was a very simple use case, but I am finding it difficult to express to jenkins how to do it.

I want to run in parallel several different long running commands that have no basis in JUnit, but I want to control the amount of parallel things that are running concurrently for a single build because I only have so many resources that I can consume.

Is there any way to do this?

For example,

I have 20 parallel tests that I want to run, that call a shell script. but those tests are going to boot compute instances on an openstack cloud. my tenant only has enough quota to boot 3 instances at a time.

I want to tell jenkins "here's 20 parallel tasks I want you to run, now only run 3 at a time"

Can anyone provide a simple example of parallel and splitTests(if necessary) that accomplishes that? Or is this not possible with Jenkins?

Thanks!
-tim

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/CAB0Zv8hsSxVhbHrb8LjqHzVht2T%2BMLxV%3D%3DKgOj%3DS%3DUi13xbv3A%40mail.gmail.com?utm_medium&#61;email&amp;utm_source&#61;footer">https://groups.google.com/d/msgid/jenkinsci-users/CAB0Zv8hsSxVhbHrb8LjqHzVht2T%2BMLxV%3D%3DKgOj%3DS%3DUi13xbv3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/da325a14-34fd-46c1-b5d6-be3d73d4ee9c%40email.android.com.
For more options, visit https://groups.google.com/d/optout.
Loading...