Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test for non-deterministic errors #1050

Closed
yux0 opened this issue Feb 2, 2021 · 1 comment
Closed

Unit test for non-deterministic errors #1050

yux0 opened this issue Feb 2, 2021 · 1 comment
Labels
enhancement test Related to testing

Comments

@yux0
Copy link
Contributor

yux0 commented Feb 2, 2021

Is your feature request related to a problem? Please describe.
To detect non-deterministic errors with the unit test framework

Proposed Solution
This is a draft idea about the unit testing.

Users define the possible workflow inputs, signal inputs, marker outputs, activity inputs/outputs. The testing framework generates all decision branches and tests them with the replay test to detect NDE.

The detail of compare workflow history from two versions is not determined and requires some polishes.

Additional context
Add any other context or screenshots about the feature request here.

@ibarrajo ibarrajo added test Related to testing enhancement labels Nov 6, 2024
@ibarrajo
Copy link

ibarrajo commented Nov 6, 2024

We have implemented shadower and replayer tests that ingest history and replay in order to find non-deterministic errors:

https://cadenceworkflow.io/docs/go-client/workflow-replay-shadowing/

@ibarrajo ibarrajo closed this as completed Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement test Related to testing
Projects
None yet
Development

No branches or pull requests

2 participants