aboutsummaryrefslogtreecommitdiffstats
path: root/etc/taskcluster/mock.py
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2019-11-22 14:58:40 -0500
committerGitHub <noreply@github.com>2019-11-22 14:58:40 -0500
commitef192c6b362421bd632ba9384a469ff3f29add85 (patch)
tree1a9d05b7859b5103f1d94913d84b8e32d1a337a2 /etc/taskcluster/mock.py
parent10a63cc9d41acb535353436cf276eac5fdebb971 (diff)
parent77089ef44e8766b3d5366b0db4e8a608ee799657 (diff)
downloadservo-homu-tmp.tar.gz
servo-homu-tmp.zip
Auto merge of #24811 - servo:fail-fast, r=jdmhomu-tmp
Fix updating the GitHub Status as soon as any TC task fails … rather than only when the entire task group is resolved. This allows Homu to more quickly be notified of a failure, and move on to the next PR in the queue sooner. (Plus drive-by Brewfile fix.)
Diffstat (limited to 'etc/taskcluster/mock.py')
-rwxr-xr-xetc/taskcluster/mock.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/taskcluster/mock.py b/etc/taskcluster/mock.py
index 9299c7c84df..cbc495ee5b5 100755
--- a/etc/taskcluster/mock.py
+++ b/etc/taskcluster/mock.py
@@ -39,7 +39,7 @@ class Index:
stringDate = str
slugId = b"<new id>".lower
-Queue = fromNow = MagicMock()
+sys.exit = Queue = fromNow = MagicMock()
sys.modules["taskcluster"] = sys.modules[__name__]
sys.dont_write_bytecode = True
os.environ.update(**{k: k for k in "TASK_ID TASK_OWNER TASK_SOURCE GIT_URL GIT_SHA".split()})
@@ -48,6 +48,7 @@ os.environ["TASKCLUSTER_ROOT_URL"] = "https://community-tc.services.mozilla.com"
os.environ["TASKCLUSTER_PROXY_URL"] = "http://taskcluster"
os.environ["NEW_AMI_WORKER_TYPE"] = "-"
import decision_task
+decision_task.decisionlib.subprocess = MagicMock()
print("\n# Push:")
decision_task.main("github-push")