index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-09-13 10:45:02 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-09-13 10:45:02 +0200 |
commit | cea5727be1cd69dd721afccdba462ee5e242df44 (patch) | |
tree | c9c7f6c0bd6c5c2e75b1436e8102425006bfcdbe /bin | |
parent | ef1582777fff756ed391b403266b3bbbabb182a0 (diff) |
-rwxr-xr-x | bin/build-packages | 9 | ||||
-rwxr-xr-x | bin/get-assignment | 13 |
diff --git a/bin/build-packages b/bin/build-packages index 0ba4a57..c0e69d8 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -428,15 +428,6 @@ while [ "${count}" -ne 0 ]; do ;; - 4) - - >&2 echo 'get-assignment told me:' - >&2 echo " come back, when you've done your work - you hit the limit on" - >&2 echo ' maximum allowed parallel jobs per ip' - exit 1 - - ;; - *) >&2 echo "ERROR: Unknown exit code ${err} from 'get-assignment'." diff --git a/bin/get-assignment b/bin/get-assignment index bb9cb40..fb35c0c 100755 --- a/bin/get-assignment +++ b/bin/get-assignment @@ -10,8 +10,6 @@ # but currently none has all its dependencies ready # 3: come back after the next run of get-package-updates - currently # there are no pending packages -# 4: come back, when you've done your work - you hit the limit on -# maximum allowed parallel jobs per ip # TODO: @@ -75,9 +73,8 @@ clean_up() { trap clean_up EXIT # Check if there are any pending packages at all and if the requester -# has already hit its max_parallel_build_per_client limit. +# has already got an assignment. -num_jobs=0 pending_packages=false while read -r package git_revision mod_git_revision repository; do @@ -96,7 +93,8 @@ while read -r package git_revision mod_git_revision repository; do if [ -f "${work_dir}/package-states/${package}.${git_revision}.${mod_git_revision}.${repository}.locked" ]; then if [ "${slave}" = "$(head -n1 "${work_dir}/package-states/${package}.${git_revision}.${mod_git_revision}.${repository}.locked")" ]; then - num_jobs=$((num_jobs+1)); + echo "${package} ${git_revision} ${mod_git_revision} ${repository}" + exit fi else pending_packages=true @@ -109,11 +107,6 @@ if ! ${pending_packages}; then exit 3 fi -if [ ${num_jobs} -ge ${max_parallel_build_per_client} ]; then - >&2 echo "come back, when you've done your work - you hit the limit on maximum allowed parallel jobs per ip" - exit 4 -fi - # Find first package of build-list whose dependencies are all met for hand_out_broken in false true; do |