[loop-cycle-1] fix: thread timeout method for xdist compatibility (#1336) #1355
Reference in New Issue
Block a user
Delete Branch "fix/sovereignty-test-timeout"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1336
Problem
test_cache_hit_skips_vlmtimes out (43-67s > 30s limit) under xdist parallel execution.Root Cause
timeout_method = "signal"is unreliable underpytest-xdist --dist worksteal. Workers inherit signal handlers but xdist scheduling overhead (module import serialization, work stealing) inflates wall-clock time far beyond actual test execution time.The tests themselves run in <0.3s (confirmed without xdist).
Fix
timeout_method:signal→thread(xdist-compatible)timeout_func_only:false→true(measures test body, not xdist scheduling overhead)Verification
842 tests pass, 0 failures. Sovereignty tests drop from 67s to 0.3s under xdist.