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

36 lines
1.8 KiB
Plaintext

R-528 red-proof red-image-error: an unreadable image does not stop the check (the early 'error' return removed)
mutation: replace
---
log(f"os-apply: OOM-CHECK error — {res['detail']}")
return res
---
with
---
log(f"os-apply: OOM-CHECK error — {res['detail']}")
---
$ OSAPPLY_UNDER_TEST=/tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/da0e2df0-3072-4d3e-bf10-c475ac1e5ae4/scratchpad/r528-mut/red-image-error-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_image_unreadable_is_error
rc=1
F
======================================================================
FAIL: test_image_unreadable_is_error (__main__.OOMCheck.test_image_unreadable_is_error)
----------------------------------------------------------------------
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 1272, in test_image_unreadable_is_error
self.assertEqual(oc["result"], "error", oc)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'pass' != 'error'
- pass
+ error
: {'detail': 'the engine reported the memory kill: OOMKilled=true and the oom event', 'exit_code': 137, 'image': '', 'oom_event': True, 'oom_killed': True, 'result': 'pass'}
----------------------------------------------------------------------
Ran 1 test in 0.016s
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_image_unreadable_is_error
rc=0
OK
VERDICT: RED as expected, GREEN on the real wrapper