flybrain/infra/tests
acamilo ab537d1045 infra: the sim's cpus are exclusive to the sim (PERF-02 review N1)
A pinned sweep worker cannot leave its cpu, so any sustained cpu-bound process allowed there
collapsed the session runtime to 0.14x real time. flysim and flysim-session now run in
flysim.slice (AllowedCPUs = the sim's set) and bin/fly-cpu-confine, run by their ExecStartPre,
confines system.slice, user.slice and init.scope to the other cpus. It refuses while a sim unit
still sits outside the slice (shrinking system.slice under it would make it float). Without a
partition the deploy writes FLY_SESSION_PIN=0. fly-recap and fly-retention run at SCHED_IDLE.
The drop-in plan is one function (cpuset_dropin_plan) shared by the deploy and lint; lint covers the
plan, the units, the deploy wiring and fly-cpu-confine against a stub systemctl and a fake /proc.
Runbook and README updated.
2026-10-01 15:01:47 +00:00
..
fixtures/shadow-guard tests: recorded live-fly RTF traces for the shadow guard; docs: review round 2 (SHADOW-01) 2026-09-30 03:47:37 +00:00
de-pii-allow.txt tools: pii-scan guard with a private pattern list, tag-release gate and pre-push hook 2026-09-29 15:52:35 +00:00
lint.sh infra: the sim's cpus are exclusive to the sim (PERF-02 review N1) 2026-10-01 15:01:47 +00:00
pii-scan-test.sh pii-scan: refuse an invalid pattern instead of scanning clean, and read '+++' as a header only after '---' 2026-09-29 16:56:56 +00:00
shadow_guard_traces.py infra: the guard judges the live fly against its own baseline (SHADOW-01 review round 2, G1) 2026-09-30 01:39:52 +00:00
test_loop_recover.py infra: a reset's replay is not progress; the ladder measures progress and catches against the reward names it has seen (row 70 review r3) 2026-09-30 23:58:13 +00:00