01c4a5d2a9
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
33 lines
4.1 KiB
Plaintext
33 lines
4.1 KiB
Plaintext
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
|