From a8212bb2be2cf223baca6d716ff6f63d71bc8f7b Mon Sep 17 00:00:00 2001 From: Thomas Desveaux Date: Tue, 6 Aug 2024 16:41:25 +0200 Subject: [PATCH] worker: use command with resolved obfuscation as command_id --- worker/buildbot_worker/runprocess.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/worker/buildbot_worker/runprocess.py b/worker/buildbot_worker/runprocess.py index e111ff77b9fc..828e0c68aa81 100644 --- a/worker/buildbot_worker/runprocess.py +++ b/worker/buildbot_worker/runprocess.py @@ -308,8 +308,6 @@ def __init__( @param useProcGroup: (default True) use a process group for non-PTY process invocations """ - self.command_id = command - if logfiles is None: logfiles = {} @@ -321,6 +319,9 @@ def obfus(w): return w command = [obfus(w) for w in command] + + self.command_id = command + # We need to take unicode commands and arguments and encode them using # the appropriate encoding for the worker. This is mostly platform # specific, but can be overridden in the worker's buildbot.tac file.