-
Notifications
You must be signed in to change notification settings - Fork 119
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
[FIXED JENKINS-15829] Don't recreate workspace when using Repository Sharing #50
Conversation
When using Repository Sharing, the working copy is always recloned (from the slave cache), which can take a long time on large repos. This fixes the logic used to detect whether a workspace copy can be reused to support Repository Sharing. JENKINS-15829
plugins » mercurial-plugin #71 SUCCESS |
If this (3173ad4) is necessary then why does
(in |
I think this is because cloning a shared repository doesn't actually call Let me see if I can write some failing specs to go along with this. |
Or rather |
EDIT: Please ignore this comment. It doesn't make sense, but I thought deleting it would be the wrong thing to do. FYI: I think this is a testing issue. Most all tests call But in reality, That explains why tests pass. The test creates the I'm having trouble figuring out how to test this properly without rewriting |
OK, then I guess this needs to rest on your word based on manual testing for now. By inspection of the code it seems that the return value can only be affected in case |
[FIXED JENKINS-15829] Don't recreate workspace when using Repository Sharing
I appreciate the merge. If I can ever figure out a proper failing test, I will submit a new PR. |
Yes, please do. Test coverage would be appreciated particularly for the corner cases like sharing mode that could easily get broken by supposedly unrelated changes. |
FWIW, I found the problem. The command used to clone with the share extension:
will create an This explains why JENKINS-15829 only re-clones on slave nodes. I think not having an |
OK, I think I have it, hold on. |
When using Repository Sharing, the working copy is always recloned (from the slave cache), which can take a long time on large repos.
This fixes the logic used to detect whether a workspace copy can be reused to support Repository Sharing.
JENKINS-15829