Files
felhom.eu/documentation/audits/readback-2026-10-07/F/red-oomkilled-false.txt
T

33 lines
1.7 KiB
Plaintext

R-528 red-proof red-oomkilled-false: pass decided on the oom event alone (OOMKilled not required)
mutation: replace
---
if res["oom_killed"] and res["oom_event"]:---
with
---
if res["oom_event"]:---
$ OSAPPLY_UNDER_TEST=/tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/da0e2df0-3072-4d3e-bf10-c475ac1e5ae4/scratchpad/r528-mut/red-oomkilled-false-felhom-os-apply python3 -W ignore /tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/da0e2df0-3072-4d3e-bf10-c475ac1e5ae4/scratchpad/agent-r528/configs/test_felhom_os_apply.py OOMCheck.test_oomkilled_false_is_fail
rc=1
F
======================================================================
FAIL: test_oomkilled_false_is_fail (__main__.OOMCheck.test_oomkilled_false_is_fail)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/da0e2df0-3072-4d3e-bf10-c475ac1e5ae4/scratchpad/agent-r528/configs/test_felhom_os_apply.py", line 1257, in test_oomkilled_false_is_fail
self.assertEqual(oc["result"], "fail", oc)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'pass' != 'fail'
- pass
+ fail
: {'detail': 'the engine reported the memory kill: OOMKilled=true and the oom event', 'exit_code': 0, 'image': 'gitea.dooplex.hu/admin/felhom-controller:0.300.0', 'oom_event': True, 'oom_killed': False, 'result': 'pass'}
----------------------------------------------------------------------
Ran 1 test in 0.014s
FAILED (failures=1)
=== control: the same test against the real wrapper ===
$ python3 -W ignore /tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/da0e2df0-3072-4d3e-bf10-c475ac1e5ae4/scratchpad/agent-r528/configs/test_felhom_os_apply.py OOMCheck.test_oomkilled_false_is_fail
rc=0
OK
VERDICT: RED as expected, GREEN on the real wrapper