Skip to content

Commit

Permalink
ci: Ignore WALinuzAgent processes in Azure Piplines CI runner
Browse files Browse the repository at this point in the history
  • Loading branch information
moreati committed Nov 2, 2022
1 parent 7a15ff4 commit 7c27551
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .ci/ci_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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))
Expand Down

0 comments on commit 7c27551

Please sign in to comment.