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

Use of parallel in Jenkinsfile causes deadlock on Jenkins #55

Closed
jonahgraham opened this issue Aug 21, 2022 · 3 comments
Closed

Use of parallel in Jenkinsfile causes deadlock on Jenkins #55

jonahgraham opened this issue Aug 21, 2022 · 3 comments

Comments

@jonahgraham
Copy link
Member

We are using parallel to run tests + code cleanliness in parallel. But this is causing deadlock on the build machine.

parallel {

The reason is that the outer agent request:

agent any
allocates an executor, and then that executor tries to allocate 2 additional executors to do the two in parallel parts. However if multiple builds allocate the executor requested at Line 2, then the Eclipse CDT project runs out of executors and all of them are waiting.

jonahgraham added a commit to jonahgraham/cdt that referenced this issue Aug 21, 2022
Until we can resolve the resource deadlock, stop
building in parallel.
@jonahgraham
Copy link
Member Author

#56 turns off the parallel. I have had to kill all jobs on Jenkins to unblock everything. Once I merge #56 the active PRs will all be rebuilt merged to the current head so that should resolve the issue without needing contributors to rebase.

jonahgraham added a commit to jonahgraham/cdt that referenced this issue Aug 21, 2022
Until we can resolve the resource deadlock, stop
building in parallel.
@jonahgraham
Copy link
Member Author

jonahgraham added a commit that referenced this issue Aug 22, 2022
Until we can resolve the resource deadlock, stop
building in parallel.
jonahgraham added a commit to jonahgraham/cdt that referenced this issue Aug 22, 2022
Until we can resolve the resource deadlock, stop
building in parallel.
jonahgraham added a commit to jonahgraham/cdt that referenced this issue Aug 22, 2022
Until we can resolve the resource deadlock, stop
building in parallel.
jonahgraham added a commit that referenced this issue Aug 22, 2022
Until we can resolve the resource deadlock, stop
building in parallel.
@jonahgraham
Copy link
Member Author

Deadlock issues resolved. If/when someone tries to revisit this hopefully they will know more that I did and enable the parallel in a way that can't deadlock. Alternative really is just use github actions.

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

1 participant