Skip to content

Make cycle recovery observable in tests - #1413

Open
lionel- wants to merge 2 commits into
oak-query/cross-file-cyclefrom
oak-query/recovery
Open

lionel- wants to merge 2 commits into
oak-query/cross-file-cyclefrom
oak-query/recovery

Conversation

@lionel-

@lionel- lionel- commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Part of #1409

This PR makes the invocation of cycle recovery handlers observable in tests.

All recovery handlers now call a record() helper that is a noop everywhere except in test builds. With this in place, tests can now trace which recovery handler fired in any given cycle. A bunch of tests use it to snapshot recovery behaviour under known cycle scenarios.

This is useful:

  • To monitor changes to our recovery mechanism after changing or refactoring Salsa code.

  • The upcoming fuzz PR is another consumer of the records to trace which handlers fire before and after edits, verify that corpus cases do reach intended recovery paths, etc.

Positron Release Notes

New Features

  • N/A

Bug Fixes

  • N/A

@lionel-
lionel- added this pull request to stack #1412 September 18, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant