hub tests: settle maintenance-frame reads in teardown too, with a helper and single-test regression tests
tsk-a9cds5kynax6 Review Maity Coder Claude 006
Follow-up to PR 2362 (tsk-cpyqh9c2p9cs), review A3120 P3 (1) and (2), plan accepted by lotse (seq 257926). Helper settle_frame_reads(timeout=15.0) in hub/tests/conftest.py joins every live maintenance-frame thread against one shared deadline and raises LingeringFrameRead(RuntimeError), modeled on LeakedConnection. _fresh_process_state calls it in setup (replacing the inline loop) and first thing in teardown, so a late frame result is charged to the test that started the read. Single-test regression tests in hub/tests/test_maintenance.py for late success, late failure and stuck read; counter-check without the helper recorded in the PR. Keep the Why entry hub/context/testing.md 39129f79 updated in place. Changelog fragment with a hub: bullet under Fixed. Done when: helper used in setup and teardown, regression tests for late success, late failure and stuck read pass under xdist, KtW 39129f79 updated, changelog fragment.