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

Specify a reference job for timing data #132

Closed
krishnawhite opened this issue Nov 5, 2020 · 3 comments
Closed

Specify a reference job for timing data #132

krishnawhite opened this issue Nov 5, 2020 · 3 comments

Comments

@krishnawhite
Copy link

krishnawhite commented Nov 5, 2020

When a new Jenkins job is created in order to run tests against a feature branch, the first test run against that branch is always extremely slow.

Because there are no previous builds from which to gather timing data, everything runs in serial on a single node.

It should be possible to specify a reference job (eg master), so that test runs against short-lived feature branches take their timing data from the reference job instead of running everything in serial the first time round.

The very reason for this plugin's existence is to parallelise test runs that would otherwise take a very long time to run in serial. It is therefore very unsatisfying that when a new job is created to run tests against a branch (a common use case), the benefits of this plugin are entirely lost and users must wait hours or days for the initial run to complete.

A number of other users have made the same or similar requests in the past (eg https://issues.jenkins-ci.org/browse/JENKINS-33169 and https://issues.jenkins-ci.org/browse/JENKINS-22896), so I believe this is a problem affecting many people.

Previous users who requested this feature were pointed towards https://issues.jenkins-ci.org/browse/JENKINS-33274 as a possible resolution, but this work since was abandoned in 2017.

Please can we have some means of dealing with this problem?

@imavroukakis
Copy link

Hi @krishnawhite , have you tried using estimateTestsFromFiles ?

@krishnawhite
Copy link
Author

Hey @imavroukakis thanks for this, I wasn't aware of that feature.

Unfortunately it doesn't work for me because I'm using this plugin to run Python tests, and it seems to only detect Java classes, but for others using this with Java it looks like it would solve this problem.

@jglick
Copy link
Member

jglick commented Jan 17, 2023

Should be handled automatically at least for the common case of a GitHub pull request or similar: #226.

@jglick jglick closed this as completed Jan 17, 2023
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

No branches or pull requests

3 participants