lldb test_attach_to_process_by_id CI failure is unrelated
unrelated CI failres in https://github.com/llvm/llvm-project/actions/runs/38662242337
======================================================================
FAIL: test_attach_to_process_by_id (TestProcessAttach.ProcessAttachTestCase.test_attach_to_process_by_id)
Test attach by process id
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 221, in wrapper
return func(*args, **kwargs)
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/commands/process/attach/TestProcessAttach.py", line 35, in test_attach_to_process_by_id
self.runCmd("process attach -p " + str(popen.pid))
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 1149, in runCmd
self.assertTrue(self.res.Succeeded(), msg + output)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: False is not true : Command 'process attach -p 1288060' did not return successfully
Error output:
error: attach failed: The current value of ptrace_scope is 1, which can cause ptrace to fail to attach to a running process. To fix this, run:
sudo sysctl -w kernel.yama.ptrace_scope=0
For more information, see: https://www.kernel.org/doc/Documentation/security/Yama.txt.
Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
----------------------------------------------------------------------
Ran 5 tests in 3.235s
FAILED (failures=1)
@llvm/issue-subscribers-infrastructure
Author: Chen Zheng (chenzheng1030)
======================================================================
FAIL: test_attach_to_process_by_id (TestProcessAttach.ProcessAttachTestCase.test_attach_to_process_by_id)
Test attach by process id
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 221, in wrapper
return func(*args, **kwargs)
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/commands/process/attach/TestProcessAttach.py", line 35, in test_attach_to_process_by_id
self.runCmd("process attach -p " + str(popen.pid))
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 1149, in runCmd
self.assertTrue(self.res.Succeeded(), msg + output)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: False is not true : Command 'process attach -p 1288060' did not return successfully
Error output:
error: attach failed: The current value of ptrace_scope is 1, which can cause ptrace to fail to attach to a running process. To fix this, run:
sudo sysctl -w kernel.yama.ptrace_scope=0
For more information, see: https://www.kernel.org/doc/Documentation/security/Yama.txt.
Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
----------------------------------------------------------------------
Ran 5 tests in 3.235s
FAILED (failures=1)
@llvm/issue-subscribers-lldb
Author: Chen Zheng (chenzheng1030)
======================================================================
FAIL: test_attach_to_process_by_id (TestProcessAttach.ProcessAttachTestCase.test_attach_to_process_by_id)
Test attach by process id
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 221, in wrapper
return func(*args, **kwargs)
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/commands/process/attach/TestProcessAttach.py", line 35, in test_attach_to_process_by_id
self.runCmd("process attach -p " + str(popen.pid))
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 1149, in runCmd
self.assertTrue(self.res.Succeeded(), msg + output)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: False is not true : Command 'process attach -p 1288060' did not return successfully
Error output:
error: attach failed: The current value of ptrace_scope is 1, which can cause ptrace to fail to attach to a running process. To fix this, run:
sudo sysctl -w kernel.yama.ptrace_scope=0
For more information, see: https://www.kernel.org/doc/Documentation/security/Yama.txt.
Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
----------------------------------------------------------------------
Ran 5 tests in 3.235s
FAILED (failures=1)
This is a configuration issue on that machine - https://docs.kernel.org/admin-guide/LSM/Yama.html.
2026-10-15T00:50:04.8750000Z Job is about to start running on the runner: llvm-premerge-linux-runners
<...>
2026-10-15T00:51:08.9694426Z Current runner version: '2.338.0'
2026-10-15T00:51:08.9701338Z Runner name: 'llvm-premerge-linux-runners-rkk4w-runner-h8lxn'
2026-10-15T00:51:08.9702420Z Runner group name: 'llvm-premerge-cluster-us-west'
2026-10-15T00:51:08.9703685Z Machine name: 'llvm-premerge-linux-runners-rkk4w-runner-h8lxn'
I assume since this isn't being reported every day the other machines do have kernel.yama.ptrace_scope=0.
@boomanaiden154 I think you might know what to do here.
I think the machines should be consistent anyway but because this is only one test, we could add a predicate to skip it in this case. Might be useful for others.
Came up again on https://github.com/llvm/llvm-project/pull/232038 / https://github.com/llvm/llvm-project/actions/runs/38783608558?pr=232038.
Different runner name this time:
2026-10-15T18:13:26.4173931Z Runner name: 'llvm-premerge-linux-runners-rkk4w-runner-j9z6v'
2026-10-15T18:13:26.4175115Z Runner group name: 'llvm-premerge-cluster-us-west'
2026-10-15T18:13:26.4176293Z Machine name: 'llvm-premerge-linux-runners-rkk4w-runner-j9z6v'
See also https://github.com/llvm/llvm-project/issues/203853 which includes compiler-rt. Again - not against adding a test predicate to check the setting, but first I want to make sure the CI machines are consistently one or the other value.