restatedev / restatedev/sdk-rust
Add always replay / disable retry options for testing
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 85
- Forks
- 27
- Avg merge
- 6d 20h
- Merged PRs (30d)
- 2
Description
Is there any desire to add these to the testcontainers sdk?
We have some typescript workloads which use these to test non-determinism and would like to do the same for some rust workloads.
Looking at the typescript implementation, we should be able to do it by setting these env vars:
- alwaysReplay → RESTATE_WORKER__INVOKER__INACTIVITY_TIMEOUT=0s
- disableRetries → RESTATE_DEFAULT_RETRY_POLICY__MAX_ATTEMPTS=1 + RESTATE_DEFAULT_RETRY_POLICY__ON_MAX_ATTEMPTS=kill
I'm happy to open a PR if that would help
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Rust testcontainers SDK entry point and compare it with packages/libs/restate-sdk-testcontainers/src/restate_test_environment.ts lines 360-377 in the TypeScript implementation. Add options corresponding to the listed environment variables, then verify the test environment applies the alwaysReplay and disableRetries settings for Rust workloads.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, typescript
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100