Decisions 157-158 recorded; R-892 corrected (VM 341), R-894 filed (unreadable off-site storage reads due after an agent restart); Part C/E/F evidence; nodes.md: the Tester 1 box; 11 §5.8: the memory-kill check
gates / gates (push) Successful in 2m47s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
adminandClaude Opus 5.5 committed 2026-10-06 19:18:14 +02:00
1 parent eed1dbd80c
commit 01c4a5d2a9
30 files changed
+845 -2

No files matched your search

@@ -0,0 +1,10 @@
Tue Oct 6 17:12:17 UTC 2026
containers before: 21
image: gitea.dooplex.hu/admin/felhom-controller:0.301.0
Killed
run rc=137
inspect: true 137
oom events:
removed felhom-oomcheck-byhand-3226729
left: 0; containers after: 21
engine 29.8.2
@@ -0,0 +1,7 @@
run rc=137
inspect: true 137 id=0f65ef3dde661a4f19
A container=NAME event=oom, until T1+1: [oom felhom-oomcheck-byhand2-3227326 ]
B event=oom only: [oom felhom-oomcheck-byhand2-3227326 ]
C every event of the container: [create attach start oom die ]
removed
left: 0
@@ -0,0 +1,63 @@
== R-528 agent tests, clone /tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/da0e2df0-3072-4d3e-bf10-c475ac1e5ae4/scratchpad/agent-r528 branch r528-oom-check base de812bc + working tree, 2026-10-06T17:13:46Z
$ python3 -W ignore configs/test_felhom_os_apply.py
----------------------------------------------------------------------
Ran 99 tests in 0.605s
OK
rc=0
$ python3 -W ignore configs/test_felhom_config_bundle.py
----------------------------------------------------------------------
Ran 55 tests in 1.085s
OK
rc=0
$ go build ./...
rc=0
$ go vet ./...
rc=0
$ go test ./...
ok gitea.dooplex.hu/admin/felhom-agent/cmd/felhom-agent 0.154s
ok gitea.dooplex.hu/admin/felhom-agent/cmd/felhom-opsign 0.007s
ok gitea.dooplex.hu/admin/felhom-agent/internal/authz 0.018s
ok gitea.dooplex.hu/admin/felhom-agent/internal/backup 0.193s
ok gitea.dooplex.hu/admin/felhom-agent/internal/capability 0.178s
ok gitea.dooplex.hu/admin/felhom-agent/internal/config 0.006s
ok gitea.dooplex.hu/admin/felhom-agent/internal/desired 0.009s
ok gitea.dooplex.hu/admin/felhom-agent/internal/dr 0.009s
ok gitea.dooplex.hu/admin/felhom-agent/internal/escrow 54.459s
ok gitea.dooplex.hu/admin/felhom-agent/internal/fasttick 0.004s
ok gitea.dooplex.hu/admin/felhom-agent/internal/felhomsshd 0.243s
ok gitea.dooplex.hu/admin/felhom-agent/internal/fstrim 0.013s
ok gitea.dooplex.hu/admin/felhom-agent/internal/guesthook 0.012s
ok gitea.dooplex.hu/admin/felhom-agent/internal/guestnet 0.025s
ok gitea.dooplex.hu/admin/felhom-agent/internal/httpx 0.006s
ok gitea.dooplex.hu/admin/felhom-agent/internal/hub 1.150s
ok gitea.dooplex.hu/admin/felhom-agent/internal/lanresolver 0.149s
ok gitea.dooplex.hu/admin/felhom-agent/internal/localapi 1.611s
ok gitea.dooplex.hu/admin/felhom-agent/internal/log 0.006s
ok gitea.dooplex.hu/admin/felhom-agent/internal/mgmtplane 0.010s
ok gitea.dooplex.hu/admin/felhom-agent/internal/osupdate 2.266s
ok gitea.dooplex.hu/admin/felhom-agent/internal/pbs 0.263s
ok gitea.dooplex.hu/admin/felhom-agent/internal/pbsdr 0.066s
ok gitea.dooplex.hu/admin/felhom-agent/internal/poke 5.012s
ok gitea.dooplex.hu/admin/felhom-agent/internal/provision 0.013s
ok gitea.dooplex.hu/admin/felhom-agent/internal/proxmox 0.061s
ok gitea.dooplex.hu/admin/felhom-agent/internal/reconcile 0.278s
ok gitea.dooplex.hu/admin/felhom-agent/internal/restorespace 0.010s
ok gitea.dooplex.hu/admin/felhom-agent/internal/selfheal 0.005s
ok gitea.dooplex.hu/admin/felhom-agent/internal/selfupdate 0.018s
ok gitea.dooplex.hu/admin/felhom-agent/internal/signedjobs 0.015s
ok gitea.dooplex.hu/admin/felhom-agent/internal/storage 0.452s
ok gitea.dooplex.hu/admin/felhom-agent/internal/wgtunnel 0.225s
rc=0
$ python3 scripts/agent_gates.py --fast
==============================================================================
== summary
==============================================================================
reuse-refs OK (exit 0)
instructions OK (exit 0)
release-complete OK (exit 0)
observations OK (exit 0)
all agent gates OK
rc=0
@@ -0,0 +1,27 @@
ok gitea.dooplex.hu/admin/felhom-hub/cmd/hub 0.067s
ok gitea.dooplex.hu/admin/felhom-hub/cmd/hubdb-check 0.074s
ok gitea.dooplex.hu/admin/felhom-hub/internal/api 5.720s
? gitea.dooplex.hu/admin/felhom-hub/internal/assets [no test files]
ok gitea.dooplex.hu/admin/felhom-hub/internal/claim 3.295s
ok gitea.dooplex.hu/admin/felhom-hub/internal/cloudflare 0.007s
ok gitea.dooplex.hu/admin/felhom-hub/internal/configgen 0.031s
ok gitea.dooplex.hu/admin/felhom-hub/internal/dbsnap 0.151s
ok gitea.dooplex.hu/admin/felhom-hub/internal/gitea 0.012s
ok gitea.dooplex.hu/admin/felhom-hub/internal/hetznerapi 0.054s
ok gitea.dooplex.hu/admin/felhom-hub/internal/i18n 0.005s
ok gitea.dooplex.hu/admin/felhom-hub/internal/intent 0.091s
ok gitea.dooplex.hu/admin/felhom-hub/internal/mailrelay 0.005s
ok gitea.dooplex.hu/admin/felhom-hub/internal/monitor 38.738s
ok gitea.dooplex.hu/admin/felhom-hub/internal/notify 1.684s
ok gitea.dooplex.hu/admin/felhom-hub/internal/offsite 0.820s
ok gitea.dooplex.hu/admin/felhom-hub/internal/offsiteheal 0.322s
ok gitea.dooplex.hu/admin/felhom-hub/internal/offsitekeys 0.255s
ok gitea.dooplex.hu/admin/felhom-hub/internal/osupdates 1.476s
ok gitea.dooplex.hu/admin/felhom-hub/internal/pbsdrheal 0.670s
ok gitea.dooplex.hu/admin/felhom-hub/internal/poke 0.012s
ok gitea.dooplex.hu/admin/felhom-hub/internal/semver 0.004s
ok gitea.dooplex.hu/admin/felhom-hub/internal/store 4.240s
ok gitea.dooplex.hu/admin/felhom-hub/internal/sysfacts 0.007s
ok gitea.dooplex.hu/admin/felhom-hub/internal/tenantsync 0.044s
ok gitea.dooplex.hu/admin/felhom-hub/internal/web 26.271s
ok gitea.dooplex.hu/admin/felhom-hub/internal/wgsync 0.238s
@@ -0,0 +1,17 @@
R-528 red-proof red-go-kept: the copy of oom_check removed from internal/osupdate/unsent.go
mutation: `rep.OOMCheck = rawOrNil(wr.OOMCheck)` -> `_ = rawOrNil`
$ go test ./internal/osupdate/ -run ^TestR868_KeptCopyCarriesTheOOMCheck$ -count=1
rc=1
2026/10/06 19:13:38 INFO osupdate: sending a kept report late (the agent was stopped mid-pass or the hub was away, R-868) run=20261007T020000Z layer=docker vmid=9201 ring=0 trigger=night path=/tmp/TestR868_KeptCopyCarriesTheOOMCheck2908158053/001/report-20261007T020000Z-docker-apply.json
2026/10/06 19:13:38 INFO osupdate: DONE run=20261007T020000Z layer=docker vmid=9201 ring=0 trigger=night outcome=applied healthy=true reason="sent late — kept on the box until the hub could take it (R-868, R-875)" upgraded=1 pending=0 not_covered=0 restart_needed=0 reboot_needed=false wrapper_seconds=0
--- FAIL: TestR868_KeptCopyCarriesTheOOMCheck (0.00s)
unsent_test.go:171: oom_check lost or changed: ""
FAIL
FAIL gitea.dooplex.hu/admin/felhom-agent/internal/osupdate 0.008s
FAIL
=== control: restored source ===
$ go test ./internal/osupdate/ -run ^TestR868_KeptCopyCarriesTheOOMCheck$ -count=1
rc=0
ok gitea.dooplex.hu/admin/felhom-agent/internal/osupdate 0.009s
VERDICT: RED as expected, GREEN restored
@@ -0,0 +1,26 @@
R-528 red-proof red-go-runlayer: the copy of oom_check removed from internal/osupdate/leg.go
mutation: `rep.OOMCheck = rawOrNil(wr.OOMCheck)` -> `_ = rawOrNil`
$ go test ./internal/osupdate/ -run ^TestDocker_OOMCheckReachesTheHubUnchanged$ -count=1
rc=1
2026/10/06 19:13:37 INFO osupdate: START run=20261004T040000Z layer=guest vmid=9201 ring=0 trigger=night enabled=true release=ring0-20261004T040000Z
2026/10/06 19:13:37 INFO osupdate: wrapper line="os-apply: DONE rc=0"
2026/10/06 19:13:37 INFO osupdate: DONE run=20261004T040000Z layer=guest vmid=9201 ring=0 trigger=night outcome=nothing healthy=true reason="" upgraded=0 pending=0 not_covered=0 restart_needed=0 reboot_needed=false wrapper_seconds=0
2026/10/06 19:13:37 INFO osupdate: START run=20261004T040000Z layer=host vmid=9201 ring=0 trigger=night enabled=true release=ring0-20261004T040000Z
2026/10/06 19:13:37 INFO osupdate: wrapper line="os-apply: DONE rc=0"
2026/10/06 19:13:37 INFO osupdate: DONE run=20261004T040000Z layer=host vmid=9201 ring=0 trigger=night outcome=nothing healthy=true reason="" upgraded=0 pending=0 not_covered=0 restart_needed=0 reboot_needed=false wrapper_seconds=0
2026/10/06 19:13:37 INFO osupdate: wrapper line="os-apply: DONE rc=0"
2026/10/06 19:13:37 INFO osupdate: live-restore vmid=9201 result=null
2026/10/06 19:13:37 INFO osupdate: START run=20261004T040000Z layer=docker vmid=9201 ring=0 trigger=night enabled=true release=ring0-20261004T040000Z
2026/10/06 19:13:37 INFO osupdate: wrapper line="os-apply: DONE rc=0"
2026/10/06 19:13:37 INFO osupdate: DONE run=20261004T040000Z layer=docker vmid=9201 ring=0 trigger=night outcome=applied healthy=true reason="" upgraded=1 pending=0 not_covered=0 restart_needed=0 reboot_needed=false wrapper_seconds=0
--- FAIL: TestDocker_OOMCheckReachesTheHubUnchanged (0.00s)
leg_test.go:540: no oom_check in the docker report: {"run_id":"20261004T040000Z","layer":"docker","trigger":"night","mode":"apply","ring":0,"release_id":"ring0-20261004T040000Z","outcome":"applied","healthy":true,"vmid":9201,"upgraded":[{"name":"docker-ce","version":"5:29.8.2-1~debian.13~trixie","origin":""}],"docker_engine":"29.8.2","authority":"ring0"}
FAIL
FAIL gitea.dooplex.hu/admin/felhom-agent/internal/osupdate 0.010s
FAIL
=== control: restored source ===
$ go test ./internal/osupdate/ -run ^TestDocker_OOMCheckReachesTheHubUnchanged$ -count=1
rc=0
ok gitea.dooplex.hu/admin/felhom-agent/internal/osupdate 0.009s
VERDICT: RED as expected, GREEN restored
@@ -0,0 +1,34 @@
R-528 red-proof red-health-mode: the check also runs in docker health mode
mutation: replace
---
self.report["health"] = self.health()
return 0
---
with
---
self.report["health"] = self.health()
self.report["oom_check"] = self.oom_check()
return 0
---
$ OSAPPLY_UNDER_TEST=/tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/da0e2df0-3072-4d3e-bf10-c475ac1e5ae4/scratchpad/r528-mut/red-health-mode-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_never_on_guest_or_host_or_in_health_mode
rc=1
F
======================================================================
FAIL: test_never_on_guest_or_host_or_in_health_mode (__main__.OOMCheck.test_never_on_guest_or_host_or_in_health_mode)
----------------------------------------------------------------------
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 1301, in test_never_on_guest_or_host_or_in_health_mode
self.assertNotIn("oom_check", r)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
AssertionError: 'oom_check' unexpectedly found in {'health': {'containers': {'app': {'health': 'healthy', 'id': 'bbb222', 'state': 'running'}, 'felhom-controller': {'health': 'healthy', 'id': 'aaa111', 'state': 'running'}}, 'controller': 'healthy', 'controller_docker_ok': True, 'docker_ok': True, 'network_ok': True}, 'layer': 'docker', 'mode': 'health', 'oom_check': {'detail': 'the engine reported the memory kill: OOMKilled=true and the oom event', 'exit_code': 137, 'image': 'gitea.dooplex.hu/admin/felhom-controller:0.300.0', 'oom_event': True, 'oom_killed': True, 'result': 'pass'}, 'pass_seconds': 0.0, 'refused': None, 'release_id': 'os-docker-t1', 'vmid': 9201}
----------------------------------------------------------------------
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_never_on_guest_or_host_or_in_health_mode
rc=0
OK
VERDICT: RED as expected, GREEN on the real wrapper
@@ -0,0 +1,23 @@
$ go test ./internal/osupdates/ -run TestDockerApproval -v -count=1 (oomCheckWaiting returns "")
=== RUN TestDockerApproval_AFailedMemoryKillCheckBlocks
[INFO] [store] app-update event types added to 0 household(s)' notification prefs (one-time, add-only): []
[INFO] [store] app_stopped_unhealthy added to 0 household(s)' notification prefs (one-time, add-only): []
docker_test.go:106: a set whose engine missed a memory kill was approvable: <nil>
--- FAIL: TestDockerApproval_AFailedMemoryKillCheckBlocks (0.04s)
=== RUN TestDockerApproval_AMissingMemoryKillCheckBlocks
[INFO] [store] app-update event types added to 0 household(s)' notification prefs (one-time, add-only): []
[INFO] [store] app_stopped_unhealthy added to 0 household(s)' notification prefs (one-time, add-only): []
docker_test.go:121: a set with no memory-kill check was approvable: <nil>
--- FAIL: TestDockerApproval_AMissingMemoryKillCheckBlocks (0.04s)
=== RUN TestDockerApproval_AnErroredMemoryKillCheckBlocks
[INFO] [store] app-update event types added to 0 household(s)' notification prefs (one-time, add-only): []
[INFO] [store] app_stopped_unhealthy added to 0 household(s)' notification prefs (one-time, add-only): []
docker_test.go:137: a set whose memory-kill check errored was approvable
--- FAIL: TestDockerApproval_AnErroredMemoryKillCheckBlocks (0.04s)
=== RUN TestDockerApproval_APassingCheckOnEveryBoxAllows
[INFO] [store] app-update event types added to 0 household(s)' notification prefs (one-time, add-only): []
[INFO] [store] app_stopped_unhealthy added to 0 household(s)' notification prefs (one-time, add-only): []
--- PASS: TestDockerApproval_APassingCheckOnEveryBoxAllows (0.04s)
FAIL
FAIL gitea.dooplex.hu/admin/felhom-hub/internal/osupdates 0.160s
FAIL
@@ -0,0 +1,35 @@
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
@@ -0,0 +1,32 @@
R-528 red-proof red-mode-only: mode oom-check does not stop after the check (falls through to apt)
mutation: replace
---
self.report["oom_check"] = self.oom_check()
return 0
self.who---
with
---
self.report["oom_check"] = self.oom_check()
self.who---
$ OSAPPLY_UNDER_TEST=/tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/da0e2df0-3072-4d3e-bf10-c475ac1e5ae4/scratchpad/r528-mut/red-mode-only-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_mode_oom_check_runs_only_the_check
rc=1
F
======================================================================
FAIL: test_mode_oom_check_runs_only_the_check (__main__.OOMCheck.test_mode_oom_check_runs_only_the_check)
----------------------------------------------------------------------
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 1311, in test_mode_oom_check_runs_only_the_check
self.assertFalse(any("apt-get" in c[-1] or "dpkg-query" in c[-1] for c in f.calls), f.calls)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: True is not false : [('host', ['/usr/sbin/pct', 'status', '9201']), ('guest', 9201, ['docker', 'inspect', '-f', '{{.Config.Image}}', 'felhom-controller']), ('guest', 9201, ['date', '+%s']), ('guest', 9201, ['docker', 'run', '--name', 'felhom-oomcheck-3263952-df7cff79', '--pull', 'never', '--network', 'none', '--memory', '64m', '--memory-swap', '64m', '--label', 'felhom.oomcheck=1', '--entrypoint', 'sh', 'gitea.dooplex.hu/admin/felhom-controller:0.300.0', '-c', 'dd if=/dev/zero of=/dev/null bs=200M count=1']), ('guest', 9201, ['date', '+%s']), ('guest', 9201, ['docker', 'inspect', '-f', '{{.State.OOMKilled}} {{.State.ExitCode}}', 'felhom-oomcheck-3263952-df7cff79']), ('guest', 9201, ['docker', 'events', '--since', '1791115199', '--until', '1791115204', '--filter', 'container=felhom-oomcheck-3263952-df7cff79', '--filter', 'event=oom', '--format', '{{.Action}}']), ('guest', 9201, ['docker', 'rm', '-f', 'felhom-oomcheck-3263952-df7cff79']), ('guest', 9201, ['fuser', '/var/lib/dpkg/lock-frontend', '/var/lib/dpkg/lock']), ('guest', 9201, ['docker', 'ps', '-a', '--no-trunc', '--format', '{{.Names}}\t{{.State}}\t{{.Status}}\t{{.ID}}']), ('guest', 9201, ['getent', 'hosts', 'deb.debian.org']), ('guest', 9201, ['docker', 'exec', 'felhom-controller', 'docker', 'version', '--format', '{{.Server.Version}}']), ('guest', 9201, ['env', 'DEBIAN_FRONTEND=noninteractive', 'APT_LISTCHANGES_FRONTEND=none', 'NEEDRESTART_MODE=l', 'LC_ALL=C', 'apt-get', '-q', 'update']), ('guest', 9201, ['dpkg-query', '-W', '-f', '${Package}\t${Version}\t${db:Status-Abbrev}\n']), ('guest', 9201, ['apt-cache', 'policy', 'bash', 'containerd.io', 'docker-ce', 'libc6', 'openssl']), ('guest', 9201, ['env', 'DEBIAN_FRONTEND=noninteractive', 'APT_LISTCHANGES_FRONTEND=none', 'NEEDRESTART_MODE=l', 'LC_ALL=C', 'apt-get', '-s', '-q', 'dist-upgrade']), ('guest', 9201, ['sh', '-c', 'for p in /proc/[0-9]*; do grep -q "(deleted)" $p/maps 2>/dev/null || continue; grep -q "docker" $p/cgroup 2>/dev/null && continue; echo "${p#/proc/} $(cat $p/comm 2>/dev/null)"; done']), ('guest', 9201, ['docker', 'version', '--format', '{{.Server.Version}}']), ('guest', 9201, ['docker', 'ps', '-a', '--no-trunc', '--format', '{{.Names}}\t{{.State}}\t{{.Status}}\t{{.ID}}']), ('guest', 9201, ['getent', 'hosts', 'deb.debian.org']), ('guest', 9201, ['docker', 'exec', 'felhom-controller', 'docker', 'version', '--format', '{{.Server.Version}}'])]
----------------------------------------------------------------------
Ran 1 test in 0.002s
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_mode_oom_check_runs_only_the_check
rc=0
OK
VERDICT: RED as expected, GREEN on the real wrapper
@@ -0,0 +1,32 @@
R-528 red-proof red-no-event: pass decided on OOMKilled alone (the oom event not required)
mutation: replace
---
if res["oom_killed"] and res["oom_event"]:---
with
---
if res["oom_killed"]:---
$ OSAPPLY_UNDER_TEST=/tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/da0e2df0-3072-4d3e-bf10-c475ac1e5ae4/scratchpad/r528-mut/red-no-event-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_no_event_is_fail
rc=1
F
======================================================================
FAIL: test_no_event_is_fail (__main__.OOMCheck.test_no_event_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 1265, in test_no_event_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': 137, 'image': 'gitea.dooplex.hu/admin/felhom-controller:0.300.0', 'oom_event': False, '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_no_event_is_fail
rc=0
OK
VERDICT: RED as expected, GREEN on the real wrapper
@@ -0,0 +1,33 @@
R-528 red-proof red-oom-pass: the docker apply no longer runs the check (the key line in run() removed)
mutation: replace
---
self.report["oom_check"] = self.oom_check()
return 0
---
with
---
pass
return 0
---
$ OSAPPLY_UNDER_TEST=/tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/da0e2df0-3072-4d3e-bf10-c475ac1e5ae4/scratchpad/r528-mut/red-oom-pass-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_pass_when_oomkilled_and_the_event
rc=1
E
======================================================================
ERROR: test_pass_when_oomkilled_and_the_event (__main__.OOMCheck.test_pass_when_oomkilled_and_the_event)
----------------------------------------------------------------------
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 1217, in test_pass_when_oomkilled_and_the_event
oc = rep["oom_check"]
~~~^^^^^^^^^^^^^
KeyError: 'oom_check'
----------------------------------------------------------------------
Ran 1 test in 0.014s
FAILED (errors=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_pass_when_oomkilled_and_the_event
rc=0
OK
VERDICT: RED as expected, GREEN on the real wrapper
@@ -0,0 +1,32 @@
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
@@ -0,0 +1,31 @@
R-528 red-proof red-other-layers: the check runs on every layer's apply (the docker-layer condition removed)
mutation: replace
---
if self.layer == "docker" and self.mode == "apply":
# R-528---
with
---
if self.mode == "apply":
# R-528---
$ OSAPPLY_UNDER_TEST=/tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/da0e2df0-3072-4d3e-bf10-c475ac1e5ae4/scratchpad/r528-mut/red-other-layers-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_never_on_guest_or_host_or_in_health_mode
rc=1
F
======================================================================
FAIL: test_never_on_guest_or_host_or_in_health_mode (__main__.OOMCheck.test_never_on_guest_or_host_or_in_health_mode)
----------------------------------------------------------------------
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 1301, in test_never_on_guest_or_host_or_in_health_mode
self.assertNotIn("oom_check", r)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
AssertionError: 'oom_check' unexpectedly found in {'docker_restart_needed': False, 'health_after': {'containers': {'app': {'health': 'healthy', 'id': 'bbb222', 'state': 'running'}, 'felhom-controller': {'health': 'healthy', 'id': 'aaa111', 'state': 'running'}}, 'controller': 'healthy', 'controller_docker_ok': True, 'docker_ok': True, 'network_ok': True}, 'health_before': {'containers': {'app': {'health': 'healthy', 'id': 'bbb222', 'state': 'running'}, 'felhom-controller': {'health': 'healthy', 'id': 'aaa111', 'state': 'running'}}, 'controller': 'healthy', 'controller_docker_ok': True, 'docker_ok': True, 'network_ok': True}, 'installed': [{'name': 'bash', 'origin': 'Debian', 'version': '5.2.37-2+b9'}, {'name': 'libc6', 'origin': 'Debian', 'version': '2.41-12+deb13u4'}, {'name': 'openssl', 'origin': 'Debian', 'version': '3.5.7-1~deb13u3'}], 'layer': 'guest', 'mode': 'apply', 'oom_check': {'detail': 'the engine reported the memory kill: OOMKilled=true and the oom event', 'exit_code': 137, 'image': 'gitea.dooplex.hu/admin/felhom-controller:0.300.0', 'oom_event': True, 'oom_killed': True, 'result': 'pass'}, 'pass_seconds': 0.0, 'pending': [{'from': '5.2.37-2+b9', 'name': 'bash', 'origin': ['Debian'], 'to': '5.2.37-2+b10'}], 'plan': {'already': 0, 'from_snapshot': 0, 'not_installed': 0, 'upgrade': 2}, 'reboot_needed': False, 'reboot_scanned': True, 'refused': None, 'release_id': 'os-t1', 'repair': {'clean_after': True, 'fixed': 0, 'half_configured_before': 0, 'journal_before': 0}, 'restart_needed': [], 'seconds': 0.0, 'upgraded': [{'name': 'libc6', 'version': '2.41-12+deb13u4'}, {'name': 'openssl', 'version': '3.5.7-1~deb13u3'}], 'vmid': 9201}
----------------------------------------------------------------------
Ran 1 test in 0.020s
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_never_on_guest_or_host_or_in_health_mode
rc=0
OK
VERDICT: RED as expected, GREEN on the real wrapper
@@ -0,0 +1,33 @@
R-528 red-proof red-rm-finally: the removal is no longer in a finally (skipped when the check raised)
mutation: replace
---
finally:
try:
mrc---
with
---
if res["result"] != "error":
try:
mrc---
$ OSAPPLY_UNDER_TEST=/tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/da0e2df0-3072-4d3e-bf10-c475ac1e5ae4/scratchpad/r528-mut/red-rm-finally-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_container_removed_even_when_inspect_raises
rc=1
E
======================================================================
ERROR: test_container_removed_even_when_inspect_raises (__main__.OOMCheck.test_container_removed_even_when_inspect_raises)
----------------------------------------------------------------------
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 1281, in test_container_removed_even_when_inspect_raises
self.assertEqual(len(f.oom_removed), 1, "the container must be removed even when inspect raised")
^^^^^^^^^^^^^
AttributeError: 'Fake' object has no attribute 'oom_removed'
----------------------------------------------------------------------
Ran 1 test in 0.017s
FAILED (errors=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_container_removed_even_when_inspect_raises
rc=0
OK
VERDICT: RED as expected, GREEN on the real wrapper
@@ -0,0 +1,29 @@
R-528 red-proof red-settle-wait: no wait after the run before the end epoch is read (the measured miss, F1/F2)
mutation: replace
---
self.r.sleep(OOMCHECK_SETTLE) # the engine---
with
---
pass # self.r.sleep(OOMCHECK_SETTLE) # the engine---
$ OSAPPLY_UNDER_TEST=/tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/da0e2df0-3072-4d3e-bf10-c475ac1e5ae4/scratchpad/r528-mut/red-settle-wait-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_events_window_ends_after_the_settle_wait
rc=1
F
======================================================================
FAIL: test_events_window_ends_after_the_settle_wait (__main__.OOMCheck.test_events_window_ends_after_the_settle_wait)
----------------------------------------------------------------------
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 1246, in test_events_window_ends_after_the_settle_wait
self.assertTrue(waits and waits[0][1] >= 2, f"no settle wait after the run: {getattr(f, 'sleeps', None)}")
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: [] is not true : no settle wait after the run: None
----------------------------------------------------------------------
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_events_window_ends_after_the_settle_wait
rc=0
OK
VERDICT: RED as expected, GREEN on the real wrapper
@@ -0,0 +1,29 @@
R-528 red-proof red-until-bound: the events window ends at the epoch before the run, not after the wait
mutation: replace
---
"--until", str(t1 + 1),---
with
---
"--until", str(t0 + 1),---
$ OSAPPLY_UNDER_TEST=/tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/da0e2df0-3072-4d3e-bf10-c475ac1e5ae4/scratchpad/r528-mut/red-until-bound-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_events_window_ends_after_the_settle_wait
rc=1
F
======================================================================
FAIL: test_events_window_ends_after_the_settle_wait (__main__.OOMCheck.test_events_window_ends_after_the_settle_wait)
----------------------------------------------------------------------
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 1250, in test_events_window_ends_after_the_settle_wait
self.assertEqual(until, f.oom_epochs[-1] + 1, "until = the guest epoch read after the wait, + 1")
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 1791115201 != 1791115204 : until = the guest epoch read after the wait, + 1
----------------------------------------------------------------------
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_events_window_ends_after_the_settle_wait
rc=0
OK
VERDICT: RED as expected, GREEN on the real wrapper