feat(testing): add IGrainStorage provider test kit
Merged
RE
2mo ago+1577+1577+0123456789012345678901234567890123456789-0-0-0123456789
Problem
Orleans storage providers need a reusable public contract suite for validating IGrainStorage behavior. The original implementation in #9742 could no longer merge cleanly and its CI autobuild was broken by repository feed changes.
Solution
- Add the
Microsoft.Orleans.Persistence.TestKitpackage with reusable xUnit storage contract tests and anInProcessTestClusterBuilderfixture. - Cover read/write/clear lifecycles, optimistic concurrency, ETags, missing-state reset, key forms, state-name isolation, Cyrillic values, and parallel operations.
- Exercise the kit against memory and Azure Table storage.
- Integrate the package, tests, generated API baseline, package README, and current solution layout.
Rationale
A shared suite makes provider behavior consistent and gives third-party provider authors the same contract coverage as Orleans-owned implementations. Provider-specific exception subclasses and both delete-on-clear and tombstone-on-clear semantics remain supported.
Supersedes #9742.