Commit 7448375d authored by Matthias Klose's avatar Matthias Klose

* Increase the timeouts for the LTO link builds.

parent 2625802b
gcc-8 (8.3.0-18) UNRELEASED; urgency=medium
* Increase the timeouts for the LTO link builds.
-- Matthias Klose <doko@debian.org> Thu, 04 Jul 2019 15:54:18 +0200
gcc-8 (8.3.0-17) experimental; urgency=medium
* Try to enable the LTO builds everywhere.
......
......@@ -12,11 +12,21 @@
# Remember when we started trying to acquire the lock.
count=0
@@ -18,10 +19,10 @@ until mkdir "$lockdir" 2>/dev/null; do
@@ -11,24 +12,64 @@ trap 'rm -r "$lockdir" lock-stamp.$$' 0
until mkdir "$lockdir" 2>/dev/null; do
# Say something periodically so the user knows what's up.
- if [ `expr $count % 30` = 0 ]; then
+ if [ `expr $count % 60` = 0 ]; then
# Reset if the lock has been renewed.
if [ -n "`find \"$lockdir\" -newer lock-stamp.$$`" ]; then
touch lock-stamp.$$
count=1
# Steal the lock after 5 minutes.
elif [ $count = 300 ]; then
- # Steal the lock after 5 minutes.
- elif [ $count = 300 ]; then
- echo removing stale $lockdir >&2
+ # Steal the lock after 30 minutes.
+ elif [ $count = 1800 ]; then
+ echo "removing stale $lockdir ($cmd)" >&2
rm -r "$lockdir"
else
......@@ -24,8 +34,10 @@
+ echo "waiting to acquire $lockdir ($cmd)" >&2
fi
fi
sleep 1
@@ -29,6 +30,44 @@ until mkdir "$lockdir" 2>/dev/null; do
- sleep 1
- count=`expr $count + 1`
+ sleep 6
+ count=`expr $count + 6`
done
echo $prog "$@"
......@@ -34,7 +46,9 @@
+pid=$!
+
+count=0
+max_count=$((3 * 60 * 60))
+# once the "stale" locks are released, everything runs in
+# parallel, so be gentle with the timeout
+max_count=$((10 * 60 * 60))
+
+while true; do
+ status=$(jobs -l | sed -n "/ $pid /s/^.* $pid //p")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment