Merge bitcoin/bitcoin#34785: ci: remove TODOs from retry

c08f0c3c29b58223822c3fbf0ced69a886bfbf0d ci: remove TODOs from retry (fanquake)

Pull request description:

  TODOs are good targets for LLMs to generate PRs. Remove these TODOs, which aren't needed, to prevent that.

ACKs for top commit:
  maflcko:
    lgtm ACK c08f0c3c29b58223822c3fbf0ced69a886bfbf0d
  hebasto:
    ACK c08f0c3c29b58223822c3fbf0ced69a886bfbf0d.

Tree-SHA512: 4561cd3221b06bc877c4dadd79c9be02839c8ce7dee924d118897bb0a96d223ce60e3f1c2dfb8b6eecf9abe96c188dc875134395ed15cac669b5ae1435fc1e5f
This commit is contained in:
Hennadii Stepanov 2026-03-10 13:01:54 +00:00
commit 195306c359
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

View File

@ -4,8 +4,6 @@ __sleep_amount() {
if [ -n "$constant_sleep" ]; then
sleep_time=$constant_sleep
else
#TODO: check for awk
#TODO: check if user would rather use one of the other possible dependencies: python, ruby, bc, dc
sleep_time=`awk "BEGIN {t = $min_sleep * $(( (1<<($attempts -1)) )); print (t > $max_sleep ? $max_sleep : t)}"`
fi
}
@ -43,7 +41,6 @@ retry()
P="$1"
for param in "${@:2}"; do P="$P '$param'"; done
#TODO: replace single quotes in each arg with '"'"' ?
export RETRY_ATTEMPT=$attempts
bash -c "$P"
return_code=$?