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

Changed to use WorkspaceList.allocate instead of acquire. #90

Merged
merged 1 commit into from
May 19, 2016

Conversation

mellowplace
Copy link
Contributor

@mellowplace mellowplace commented May 12, 2016

Acquiring a quick lock causes parallelised builds to back up waiting for
the workspace to become available. This is because WorkspaceList.allocate
will give executing jobs the first workspace as the given lock is a quick
lock. Then builds will wait in WorkspaceList.acquire all trying to get
the same workspace.


This change is Reviewable

@oleg-nenashev
Copy link
Member

Please remove whitespace changes. They complicate merges of parallel PRs

Acquiring a quick lock causes parallelised builds to back up waiting for
the workspace to become available.  This is because WorkspaceList.allocate
will give executing jobs the first workspace as the given lock is a quick
lock.  Then builds will wait in WorkspaceList.acquire all trying to get
the same workspace.
@mellowplace
Copy link
Contributor Author

Whitespace changes made - I notice 3 tests timed out - is that related to this change @oleg-nenashev ?

@oleg-nenashev
Copy link
Member

@mellowplace No, it's a CI infra issue AFAIK. Thanks for cleaning up the code

@oleg-nenashev
Copy link
Member

Looks good to me

@oleg-nenashev oleg-nenashev merged commit af0cb71 into jenkinsci:master May 19, 2016
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.

2 participants