-
Notifications
You must be signed in to change notification settings - Fork 42
More tests #51
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
Merged
Merged
More tests #51
Changes from 16 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
7935dfb
accept a closure in RunAsStep
maxdml e156816
fix
maxdml 88cf424
fix
maxdml fb5b0b6
fix
maxdml dfcff91
fix
maxdml a62ee45
check special steps
maxdml 555c367
remove t.Fatal calls in wf/steps
maxdml 6d38d3f
fix race in step name map
maxdml 3ebbf9f
add test for running workflows in goroutines
maxdml 63e2c78
more concurrent tests
maxdml f81fff4
set version
maxdml cacb25c
allow custom workflow names
maxdml 83b8148
test conflicting execution of workflows / tasks of the same ID
maxdml 071eac6
nit
maxdml 1071108
test that running a recorded child workflow, from a parent, returns a…
maxdml 3069590
Merge branch 'main' into more-tests
maxdml a9a83a1
nits
maxdml e9d5c4f
fix test + nits
maxdml 04390cf
use a sync.Map
maxdml 2960cce
for now return a flat error if we try to enqueue a workflow in a diff…
maxdml File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
What's going on here? What's the difference between FQN and customName?
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.
And the tests seem to use neither?
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.
The FQN is the reflection name, which we get with
runtime.FuncForPC(reflect.ValueOf(fn).Pointer()).Name().The FQN is the only information we get at runtime when a user calls
RunAsWorkflow.A user can set a custom name when registering a workflow. There are now tests exercising this path.
The custom name is stored in the registry, alongside other registration-time parameters like
maxRetries.RunAsWorkflowresolve the workflow name at runtime when looking up registration options (from the registry.)