melt-umn / silver

An attribute grammar-based programming language for composable language extensions
http://melt.cs.umn.edu/silver/
GNU Lesser General Public License v3.0
57 stars 7 forks source link

Avoid build congestion by waiting for a free executor to spawn downstream builds #772

Closed krame505 closed 1 year ago

krame505 commented 1 year ago

Changes

This should (hopefully) fix the issue with multiple Silver builds started close to the same time causing all executor slots to get filled with builds waiting for other downstream builds to complete.

Documentation

Added comments in Jenkinsfile and jenkins-lib.

krame505 commented 1 year ago

Yeah there still might technically be a race here, but waitUntil backs off to poll every 15 seconds, so the chances of multiple builds starting their downstream phase at once are small. And in the worst case we fall back to the previous behavior, of just having downstream tasks from multiple builds in the queue.