inline switch records fixes
Merged
SI
2mo ago+856+856+012345678901234567890123456789-2-2-0123456789
Follow-up to the inline switch records (#retire-inline-after-switch-off). A review of that commit turned up cases where a record was lost or misapplied, and claims in the remarks and docs that the mechanism does not back.
Behaviour
- A record that could not be read was treated as malformed and deleted without a retire, stranding the entry it named. An unreadable record is now left for a later run; a malformed one is still deleted.
- A record whose retire threw escaped into the user's test, and because neither the once-per-process flag nor the delete was reached, every later verification in the process failed the same way. The retire is now guarded per record, an unretirable record is deleted, and the flag is set in a
finally. - The flag latched when the intermediate directory was not yet known, which a verification through the raw
InnerVerifierAPI can reach before the adapters assign the assembly. It no longer latches in that case. - A record outlived its call site. Nothing deleted it once the appended Snapshot was accepted, and the switch-off retire, keyed by line alone with no member or framework, could then drop that explicit call's own pending snapshot. A switched-on verification whose call site no longer produces an Append (explicit Snapshot,
NotInline, or declined) now forgets the record.
Wording
- Per-framework isolation holds only for a framework whose switch was never on; a framework turned off retires the whole entry, and one still on re-queues.
- Records survive a Clean target (it removes only build outputs) but not an obj wipe; entries queued before that stay pending.
- A project without Verify's build props has no intermediate directory, so nothing is recorded or retired there.
- A running owner that does not answer the retire is the one case a record is lost for, since the send reports no outcome. Fixing that needs
DiffRunner.RetireInlineto return the send result. - The docs paragraph now states the conditions under which the next run drops the entries.