Stop hybrid GPU mode queries from hanging (#6738)
* Bound hybrid GPU mode queries * Test blocked hybrid GPU queries * Give the blocked-client test headroom over its 12s of kill cycles The third case spends ~12s of real TERM/KILL escalation against its own 15s watchdog, which can tip to a spurious 124 on a loaded machine. Also drop the TEST_LOG plumbing no stub ever wrote. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: David Heinemeier Hansson <david@hey.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
David Heinemeier Hansson
parent
ce21845407
commit
860503f56a
@@ -22,7 +22,20 @@ CONF
|
||||
sudo systemctl enable --now supergfxd
|
||||
fi
|
||||
|
||||
gpu_mode=$(supergfxctl -g)
|
||||
gpu_mode=""
|
||||
for attempt in {1..3}; do
|
||||
if gpu_mode=$(timeout --kill-after=1s 3s supergfxctl -g 2>/dev/null) && [[ -n $gpu_mode ]]; then
|
||||
break
|
||||
fi
|
||||
|
||||
gpu_mode=""
|
||||
(( attempt < 3 )) && sleep 1
|
||||
done
|
||||
|
||||
if [[ -z $gpu_mode ]]; then
|
||||
echo "supergfxd is not responding. Try again, or check: systemctl status supergfxd" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case "$gpu_mode" in
|
||||
"Integrated")
|
||||
|
||||
Reference in New Issue
Block a user