personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(tests): skip maint subprocesses in singleton-lock test

test_supervisor_singleton_lock_acquired called mod.main() which, since
ec004821, runs run_pending_tasks() before start_callosum_in_process.
On a fresh tmp_path, every maint script is pending, so main() spawned
12 subprocesses (~1.5-2s under coverage) before reaching the stub that
raises SystemExit(0). Under system load that overruns the 5s default
pytest-timeout, producing the intermittent FAILED seen during full-suite
runs. Monkeypatch run_pending_tasks to a no-op — the test is about
flock acquisition, not migrations.

Verified with 10 consecutive `make test` runs, all green.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

+3
+3
tests/test_supervisor.py
··· 597 597 def stop_after_lock(): 598 598 raise SystemExit(0) 599 599 600 + # Skip maint discovery/subprocess runs — unrelated to lock acquisition and 601 + # slow enough on a fresh tmp_path to blow the 5s pytest-timeout under load. 602 + monkeypatch.setattr(mod, "run_pending_tasks", lambda *a, **k: (0, 0)) 600 603 monkeypatch.setattr(mod, "start_callosum_in_process", stop_after_lock) 601 604 602 605 with pytest.raises(SystemExit) as exc: