Skip to content
All field notes

Field note /

A regression test that only correlated with the bug

Review by the original project showed that a regression test's trigger was linked to a race condition but did not force it.

CorrectionExternal open-source project · shutdown racePR #2506 · under review

How the finding changed

What I expected

Repeated failure on the old code and success on the fix seemed to reproduce the shutdown defect.

Evidence

The proposed fix came with repeated measurements.

What did not hold

Review by the original project showed that the trigger only correlated with the race and was not synchronized to it, and that a wait after cancel with no time limit remained.

Correction

Put a time limit on the wait after cancel, and replace the timing-sensitive trigger with a fixed barrier that makes the race happen every time.

Limits

A regression test is stronger when its trigger forces the failure it claims to test. The pull request to the original project is still under review.

Evidence

Visitor analytics: page interactions, source category, browser information, and network IP metadata are recorded in private server logs. No analytics cookies are used. Opt out of analytics in this browser.