Skip to content

The agent that grows with you

test(process_registry): pin that scope argv never emits OOMPolicy

kshitijk4poor04885c25cfb6
diff --git a/tests/tools/test_process_registry.py b/tests/tools/test_process_registry.py
index 2c09bc14134..51f86f83e0f 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=")
)