Conversation
It holds streams in process memory, so the interface has a provider the conformance suite and unit tests can run without a server.
The suite is parametrised by provider, and capability markers skip what a provider does not claim. Every later provider registers here.
This was referenced Oct 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds
MemoryStreams, the in-memory reference provider, and the conformance suite every provider runs.What changed?
temporalio.streams.providers.memory.MemoryStreamskeeps streams in process memory and implements the provider protocols from the previous PR.tests/streams/test_streams_conformance.pyis parametrised by provider. Capability markers (reports_positions,detects_divergent_retries,truncates) skip what a provider doesn't claim, and say why.Part of AI-198 (epic AI-37).
Why?
An interface with no provider can't be exercised. The memory provider is the smallest one that honours the whole contract, so the suite has something to run against without a server. Every provider that comes later registers in the same suite, and that's how we know they behave the same.
How did you test it?
Link to a test plan if any -
poe lintis clean. The conformance suite passes on memory, and so do the memory provider's own tests and the type tests.