Skip to content

The agent that grows with you

test(browser-tree): bypass the live-system guard in the reparented-descendant kill test

Brooklyn Nicholson1190fabf8c46
diff --git a/tests/tools/test_browser_process_tree.py b/tests/tools/test_browser_process_tree.py
index ab3d7f16bde..dce06c023c9 100644
--- a/tests/tools/test_browser_process_tree.py
+++ b/tests/tools/test_browser_process_tree.py
@@ -114,6 +114,11 @@ def test_real_shared_group_child_does_not_signal_us(monkeypatch):
@pytest.mark.platforms("posix")
[email protected]_system_guard_bypass # the grandchild reparents to init once the
+# parent dies; signalling a reparented descendant is exactly the contract under
+# test, and the guard's subtree walk races with the reparenting (blocked kills
+# surfaced as a 1-2% CI flake: psutil's os.kill routes through the guard after
+# the parent kill has landed).
def test_real_shared_group_child_descendants_are_killed(tmp_path):
"""A shared-group child's descendants can hold the capture pipe's write
end open past proc.kill() (the #68915 communicate() hang), so the