You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
macOS smoke: TestScanSSEDataWithContextContentResetsOnData hit the idle timeout once #1140
TestScanSSEDataWithContextContentResetsOnData passes: a stream that keeps producing a data line every 30 ms is never aborted by the 100 ms idle timeout.
This is a single occurrence. My guess, which I have not verified, is the margin: the test writes every 30 ms against a 100 ms idle timeout, so a scheduling stall of about 70 ms on a busy shared runner would be enough. I have no fix to propose. If it helps, I am happy to look at whether a wider idle window or an injected clock fits how the rest of the package is tested.
Your read of the margin is right. The content window is ContentStallTimeout(idle), which is 1.2× the idle timeout, so the test runs 300 ms of writes against a 120 ms content window and a 100 ms idle timeout. That leaves 70 ms of slack on every 30 ms gap, and one scheduling stall of that size on a shared macOS runner is enough.
The test needs two things to stay true: each gap well under the idle timeout, and the whole run longer than the content window, so the content watchdog is actually reset rather than never reached. Scaling the idle timeout up keeps both. For example, 500 ms idle gives a 600 ms content window, and 25 writes every 30 ms run for about 750 ms. That's 470 ms of slack per gap, and the test still finishes in under a second. The n != 10 check moves with the write count.
Marking this approved. Go ahead if you'd like to take it.
Activity
Vasanthdev2004 commentedon Oct 16, 2026
Your read of the margin is right. The content window is
ContentStallTimeout(idle), which is 1.2× the idle timeout, so the test runs 300 ms of writes against a 120 ms content window and a 100 ms idle timeout. That leaves 70 ms of slack on every 30 ms gap, and one scheduling stall of that size on a shared macOS runner is enough.The test needs two things to stay true: each gap well under the idle timeout, and the whole run longer than the content window, so the content watchdog is actually reset rather than never reached. Scaling the idle timeout up keeps both. For example, 500 ms idle gives a 600 ms content window, and 25 writes every 30 ms run for about 750 ms. That's 470 ms of slack per gap, and the test still finishes in under a second. The
n != 10check moves with the write count.Marking this approved. Go ahead if you'd like to take it.