From 392c41d160127f69f01416286c84347685e5f6b5 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Wed, 2 Nov 2022 19:34:56 +0000 Subject: [PATCH] ci: Ignore WALinuxAgent processes in Azure Piplines CI runner --- .ci/ci_lib.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.ci/ci_lib.py b/.ci/ci_lib.py index 31bee804..47a8ddf3 100644 --- a/.ci/ci_lib.py +++ b/.ci/ci_lib.py @@ -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))