-
Notifications
You must be signed in to change notification settings - Fork 228
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
[Nexus] Set OnConflictOptions for WorkflowRunOperation #1797
Conversation
@rodrigozhou - I see this is Go SDK only? Do you have plans to author this for other SDKs (at least Java if Nexus only)? We don't consider Go any more important than others. If we want this feature in all SDKs, without favoritism, can you open an issue at https://github.com/temporalio/features and we can add this to all SDKs (including Go) when prioritized? |
2013dfc
to
f90603d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but we'll need a tagged api before merging this.
I'd argue we need a test confirming this even works before merging. If it's not going to be in a stable dev server release anytime soon, we can discuss a dev server RC release. |
@rodrigozhou can you add a test in the server for now with this SDK version? There's going to be a server 1.27.0 RC fairly soon, we can open an issue to add a test SDK side once that's ready. @cretz also note that there are existing server tests for this functionality, they just don't cover the e2e flow with SDK. |
Maybe I just missed it, but shouldn't some user facing SDK docs be updated as part of this PR? This is a new feature, but nothing in docs describe this new behaviour. |
Don't we need workflow test environment support? |
Yeah, good callout, this should be documented on the |
I'd say yes but low priority. We can track this separately. |
I consider workflow test environment support a requirement edit: for GA |
I think we need an e2e flow with the SDK (should be no rush to ship something to our users that doesn't work in a server they can use anyways). Obviously it's more of a smoke test than full coverage, but it reasonable to confirm it works from where the user uses it. |
1ee8bda
to
1210104
Compare
@cretz @Quinn-With-Two-Ns I created a separate PR (#1828) that adds supports for this in the test framework, and added some tests there as well. |
1210104
to
45f6370
Compare
I would like to make sure the integration test in that PR passes before merging this into |
45f6370
to
ffadd11
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still need @Quinn-With-Two-Ns approval
ffadd11
to
8ceb55c
Compare
Now that we have the CLI release can we add integration tests? |
@Quinn-With-Two-Ns I added in #1828. |
@rodrigozhou you mean |
Yes, |
Mentioned in comment above (though I marked approved since thinking it was there which I now see it's not), I think for things to get to |
@cretz I'm gonna create a new tag for the CLI, and update the reference here in the SDK for the tests in the other PR to pass. I think this will resolve. |
8ceb55c
to
66dc27e
Compare
What was changed
Add
OnConflictOptions
toStartWorkflowOptions
, and set it for NexusWorkflowRunOperation
.Tests are done in #1828
Why?
Enabling attaching callbacks to running Nexus workflows.
Checklist
Closes
How was this tested: