From: Zack Cerza Date: Tue, 20 Jan 2026 22:54:27 +0000 (-0700) Subject: run: Send PID to paddles X-Git-Tag: 1.2.3~2^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2134%2Fhead;p=teuthology.git run: Send PID to paddles This is a follow-up to bf0242c5599c861d855d13925a565cf437b7a41b Signed-off-by: Zack Cerza --- diff --git a/teuthology/run.py b/teuthology/run.py index 383a74c93..be5c2029a 100644 --- a/teuthology/run.py +++ b/teuthology/run.py @@ -342,7 +342,13 @@ def main(args): set_up_logging(verbose, archive) write_initial_metadata(archive, config, name, description, owner) - report.try_push_job_info(config, dict(status='running')) + report.try_push_job_info( + config, + { + 'status': 'running', + 'pid': os.getpid(), + }, + ) machine_type = get_machine_type(machine_type, config) args["--machine-type"] = machine_type diff --git a/teuthology/test/test_run.py b/teuthology/test/test_run.py index fbb74403a..50a9e2258 100644 --- a/teuthology/test/test_run.py +++ b/teuthology/test/test_run.py @@ -1,3 +1,4 @@ +import os import pytest import docopt @@ -193,7 +194,7 @@ class TestRun(object): "the_description", "the_owner" ) - m_try_push_job_info.assert_called_with(config, dict(status='running')) + m_try_push_job_info.assert_called_with(config, dict(status='running', pid=os.getpid())) m_get_machine_type.assert_called_with(None, config) m_get_summary.assert_called_with("the_owner", "the_description") m_get_initial_tasks.assert_called_with(True, config, "machine_type")