]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
run: Send PID to paddles 2134/head
authorZack Cerza <zack@cerza.org>
Tue, 20 Jan 2026 22:54:27 +0000 (15:54 -0700)
committerZack Cerza <zack@cerza.org>
Tue, 20 Jan 2026 23:07:10 +0000 (16:07 -0700)
This is a follow-up to bf0242c5599c861d855d13925a565cf437b7a41b

Signed-off-by: Zack Cerza <zack@cerza.org>
teuthology/run.py
teuthology/test/test_run.py

index 383a74c932c93942e8ae6dab63246b85550f372e..be5c2029ae8e567493bbc1f014d945b9ff8d7798 100644 (file)
@@ -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
index fbb74403a4b059c6f2220bb856bfe71d4f85c57c..50a9e22583315713e4360c4ab938cc57405f091a 100644 (file)
@@ -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")