From 04ce380a658a2a1b603dc80dd0227889e8ce8eb4 Mon Sep 17 00:00:00 2001 From: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> Date: Wed, 6 Nov 2024 11:21:33 -0500 Subject: [PATCH] Log PID of run_bot process (#4382) This should allow us to figure out why certain processes are OOMing. Related: b/376094981 --- src/python/bot/startup/run_bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/python/bot/startup/run_bot.py b/src/python/bot/startup/run_bot.py index 95721c21ec1..686b00a6feb 100644 --- a/src/python/bot/startup/run_bot.py +++ b/src/python/bot/startup/run_bot.py @@ -30,7 +30,7 @@ from clusterfuzz._internal.base import dates from clusterfuzz._internal.base import errors from clusterfuzz._internal.base import task_utils -from clusterfuzz._internal.base import tasks as taskslib +from clusterfuzz._internal.base import tasks as thoaskslib from clusterfuzz._internal.base import untrusted from clusterfuzz._internal.base import utils from clusterfuzz._internal.bot.fuzzers import init as fuzzers_init @@ -192,6 +192,8 @@ def main(): fuzzers_init.run() + logs.info(f'PID is {os.getpid()}') + if environment.is_trusted_host(ensure_connected=False): from clusterfuzz._internal.bot.untrusted_runner import host host.init()