ci: Ignore WALinuxAgent processes in Azure Piplines CI runner

pull/969/head
Alex Willmer 2 years ago
parent 0af2ce8c30
commit 392c41d160

@ -300,6 +300,9 @@ def proc_is_docker(pid):
def get_interesting_procs(container_name=None):
"""
Return a list of (pid, line) tuples for processes considered interesting.
"""
args = ['ps', 'ax', '-oppid=', '-opid=', '-ocomm=', '-ocommand=']
if container_name is not None:
args = ['docker', 'exec', container_name] + args
@ -312,6 +315,9 @@ def get_interesting_procs(container_name=None):
any(comm.startswith(s) for s in INTERESTING_COMMS) or
'mitogen:' in rest
) and
(
'WALinuxAgent' not in rest
) and
(
container_name is not None or
(not proc_is_docker(pid))

Loading…
Cancel
Save