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

Introduce DisableStrictNonDeterminismCheck worker option #1288

Conversation

taylanisikdemir
Copy link
Member

@taylanisikdemir taylanisikdemir commented Nov 3, 2023

What changed?
Adding a new option to be able to toggle non-determinism false positives fix in #1281.

Why?
The strict non-determinism checks in #1281 may cause some existing workflows to fail due to the existing buggy non-determinism checks in task handling loop. So exposing this option to disable the strict non-determinism if needed.

How did you test it?
#1281 will be rebased with this change and testing will be done there.

Potential risks
N/A

internal/worker.go Outdated Show resolved Hide resolved
internal/worker.go Outdated Show resolved Hide resolved
internal/workflow.go Outdated Show resolved Hide resolved
internal/workflow.go Outdated Show resolved Hide resolved
@Groxx
Copy link
Member

Groxx commented Nov 6, 2023

since we'll be enabling this by default, we probably want this flag to be reversed, yea?

doing it gradually could work too (say over a couple versions), but that'd still need to change the name or type of the field, which we essentially can't do.

@taylanisikdemir
Copy link
Member Author

taylanisikdemir commented Nov 7, 2023

since we'll be enabling this by default, we probably want this flag to be reversed, yea?

doing it gradually could work too (say over a couple versions), but that'd still need to change the name or type of the field, which we essentially can't do.

Synced offline on this and agreed to enable by default so reversing the bool option to disable when needed.

@taylanisikdemir taylanisikdemir force-pushed the taylan/strict_nondeterminism_option branch from 80e6cbf to f6ec95c Compare November 7, 2023 00:06
@taylanisikdemir taylanisikdemir changed the title Introduce EnableStrictNonDeterminismCheck worker option Introduce DisableStrictNonDeterminismCheck worker option Nov 7, 2023
Copy link
Member

@Groxx Groxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, looks good - changelog / finer details around explanation and whatnot can come in the implementation change, when that's fully nailed down

@taylanisikdemir taylanisikdemir merged commit e537cbf into cadence-workflow:master Nov 7, 2023
9 checks passed
@taylanisikdemir taylanisikdemir deleted the taylan/strict_nondeterminism_option branch November 7, 2023 23:11
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.

2 participants