From 04885c25cfb61bfa73912eec71b9baaaf4135920 Mon Sep 17 00:00:00 2001 From: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com> Date: Sun, 6 Sep 2026 14:07:50 +0530 Subject: [PATCH] test(process_registry): pin that scope argv never emits OOMPolicy The spawn_local systemd test asserted the property was present; it now asserts the invariant the fix establishes (no OOMPolicy= on a transient scope), so a reintroduction fails here instead of on older systemd hosts. --- tests/tools/test_process_registry.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/tools/test_process_registry.py b/tests/tools/test_process_registry.py index 2c09bc1413..51f86f83e0 100644 --- a/tests/tools/test_process_registry.py +++ b/tests/tools/test_process_registry.py @@ -1956,7 +1956,10 @@ class TestSystemdCgroupIsolation: if value == "--property" ] assert "MemoryAccounting=yes" in properties - assert "OOMPolicy=kill" in properties + # systemd rejects OOMPolicy= on transient --scope units across the versions + # users run (239/245/249, #102486); emitting it fails the probe and every + # cron worker dispatch. MemoryMax + MemoryAccounting carry the isolation. + assert not any(p.startswith("OOMPolicy=") for p in properties), properties memory_max = next( value for value in properties if value.startswith("MemoryMax=") )