qa: Wait for both alerts in feature_versionbits_warning.py

bitcoin/bitcoin: PR #36938

The review is inconclusive; no findings were published.

Coverage details

Background

Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.

Documented decisions

Windows cleanup failures had been observed after otherwise successful tests because notification children could retain inherited node-file handles. Issue #36668 explicitly identifies files opened through fsbridge::fopen() as inheritable by notification commands and connects that inheritance to failure to delete debug.log.

The resource obstructing cleanup need not be alert.txt itself. Waiting for notification progress can reduce overlap with directory removal, but observing alert text does not establish that inherited debug.log handles have been released.

Source 1 · Source 2 · Source 3

Follow-up analysis of #28529 explicitly recognized that wait_until observes the result or side effect of the command, not its termination. It explained that delaying before the command would be absorbed by the file wait, whereas delaying after writing the file could expose the cleanup race.

This is the central historical distinction for the changed waits: alert-file polling establishes that the notification reached its write, not that the shell process exited or released every inherited handle.

Source 1

An earlier proposal to insert a fixed cleanup delay met objections that unnecessary fixed waits waste testing time and remain fragile when insufficient. That discussion was closed pending recurrence, without establishing a synchronization fix.

This supplies historical context for condition-based waiting rather than treating an arbitrary elapsed interval as evidence of notification completion. It does not establish that file polling guarantees child-process termination.

Source 1 · Source 2 · Source 3