From 7b8ff5ca8e23b3da40efd12f4b758e1c96d35ac7 Mon Sep 17 00:00:00 2001 From: Bastien Orivel Date: Wed, 18 Nov 2026 17:40:39 +0100 Subject: [PATCH] fix(run-task): don't let git hang if prompted for credentials (bug 2094225) I'm suspecting that we're hitting limits on anonymous cloning on github and getting 401s from it which makes it prompt for credentials. We then block waiting for something on `/dev/tty` that never arrives and end up timing out the task after maxRunTime. This doesn't actually fix the problem but there's no reason we should ever block for credentials on input and it would at least settle whether we have something actionable or if we need to continue searching for another root cause. --- src/taskgraph/run-task/run-task | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/taskgraph/run-task/run-task b/src/taskgraph/run-task/run-task index f8ce2260b..79a3d3f34 100755 --- a/src/taskgraph/run-task/run-task +++ b/src/taskgraph/run-task/run-task @@ -1051,6 +1051,8 @@ def git_checkout( # abort if transfer speed is lower than 1kB/s for 1 minute "GIT_HTTP_LOW_SPEED_LIMIT": "1024", "GIT_HTTP_LOW_SPEED_TIME": "60", + # Don't hang forever on a credentials prompt + "GIT_TERMINAL_PROMPT": "0", "PYTHONUNBUFFERED": "1", }