The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(update): the crash cells' child-argv catches name why they fail closed
Teknium1635fc7176a9
diff --git a/tests/e2e/core/windows_update/test_crash_cells.py b/tests/e2e/core/windows_update/test_crash_cells.pyindex e1944bd7380..efb80807da8 100644--- a/tests/e2e/core/windows_update/test_crash_cells.py+++ b/tests/e2e/core/windows_update/test_crash_cells.py@@ -102,7 +102,10 @@ def _git_op(proc, ops: tuple[str, ...]) -> tuple[str, int] | None:if "git" not in child.name().lower():continueargv = [a.lower() for a in child.cmdline()]- except Exception: # raced its exit+ # Fails closed: a child that exited or hides its argv is not the git op this kill point+ # waits for; skipping it only delays the point, and _kill_when's bounded wait turns a+ # point never seen into a harness verdict, never a pass.+ except Exception: # noqa: BLE001 - any psutil/OS read error of a racing childcontinueop = next((a for a in argv[1:] if a in ops), None)if op:@@ -358,7 +361,9 @@ def _update_child(proc, machine, target) -> str | None:for child in descendants(proc):try:argv = [a.lower() for a in child.cmdline()]- except Exception:+ # Fails closed: an unreadable child is not counted as the update child, so the kill+ # point waits on (bounded by _kill_when, whose timeout is a harness verdict).+ except Exception: # noqa: BLE001 - any psutil/OS read error of a racing childcontinueif "update" in argv and "--yes" in argv and "--help" not in argv:return "update child " + str(child.pid)