Skip to content

Commit af4f5ba

Browse files
authored
Merge pull request #273 from nuclearcat/small-fixes
Small fixes
2 parents 67cd4ad + 5c3b216 commit af4f5ba

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

kcidev/libs/dashboard.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ def wrapper(
4444
logging.warning(
4545
f"Retrying request due to status {r.status_code} (attempt {retries}/{max_retries})"
4646
)
47+
# Delay before retrying, to prevent hammering the server with exponential backoff
48+
time.sleep(2**retries)
4749
continue
4850
else:
4951
logging.error(

kcidev/subcommands/bisect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def bisection_loop(state):
226226
except Exception as e:
227227
logging.error(f"Error getting return code from kci-dev: {e}")
228228
kci_err(f"Error executing kci-dev, no returncode: {e}")
229-
sys.exit
229+
sys.exit(1)
230230

231231
logging.info(f"Test completed with return code: {testret}")
232232

0 commit comments

Comments
 (0)