commit de8a0df60db3a54ff189170f090fe7c3da801ee7
parent e7ab75c01ac4495846c9f8d480100d9c0de4eaea
Author: Marco Castelluccio <mcastelluccio@mozilla.com>
Date: Wed, 29 Oct 2025 16:16:12 +0000
Bug 1996997 - Use new bugbug deployment. r=taskgraph-reviewers,bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D270425
Diffstat:
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/taskcluster/gecko_taskgraph/util/bugbug.py b/taskcluster/gecko_taskgraph/util/bugbug.py
@@ -20,7 +20,8 @@ try:
except ImportError:
from time import time as monotonic
-BUGBUG_BASE_URL = "https://bugbug.herokuapp.com"
+BUGBUG_BASE_URL = "https://bugbug.moz.tools"
+BUGBUG_BASE_FALLBACK_URL = "https://bugbug.herokuapp.com"
RETRY_TIMEOUT = 9 * 60 # seconds
RETRY_INTERVAL = 10 # seconds
@@ -108,6 +109,7 @@ def push_schedules(branch, rev):
return
url = BUGBUG_BASE_URL + f"/push/{branch}/{rev}/schedules"
+ fallback_url = url.replace(BUGBUG_BASE_URL, BUGBUG_BASE_FALLBACK_URL)
start = monotonic()
session = get_session()
@@ -120,6 +122,7 @@ def push_schedules(branch, rev):
attempts = timeout / RETRY_INTERVAL
i = 0
+ did_fallback = 0
while i < attempts:
r = session.get(url)
r.raise_for_status()
@@ -127,6 +130,14 @@ def push_schedules(branch, rev):
if r.status_code != 202:
break
+ r = session.get(fallback_url)
+ r.raise_for_status()
+
+ if r.status_code != 202:
+ did_fallback = 1
+ print("bugbug fallback answered quicker")
+ break
+
time.sleep(RETRY_INTERVAL)
i += 1
end = monotonic()
@@ -135,6 +146,7 @@ def push_schedules(branch, rev):
lower_is_better={
"bugbug_push_schedules_time": end - start,
"bugbug_push_schedules_retries": i,
+ "bugbug_push_schedules_fallback": did_fallback,
}
)