uber-common / cadence-samples

Other
191 stars 92 forks source link

Failing Tests #37

Closed DannyHinshaw closed 3 years ago

DannyHinshaw commented 3 years ago

I am completely new to Cadence, I cloned this project and run make and notice all the failing tests. Now I run make test and see it is the same, failing tests...

Is there something else I need to do for these tests to pass?

command

make test

output

/usr/bin/make -f /Users/dannyhinshaw/Desktop/Projects/cadence-samples/Makefile test
go build -i -o bin/helloworld cmd/samples/recipes/helloworld/*.go
go build -i -o bin/branch cmd/samples/recipes/branch/*.go
go build -i -o bin/childworkflow cmd/samples/recipes/childworkflow/*.go
go build -i -o bin/choice cmd/samples/recipes/choice/*.go
go build -i -o bin/dynamic cmd/samples/recipes/dynamic/*.go
go build -i -o bin/greetings cmd/samples/recipes/greetings/*.go
go build -i -o bin/pickfirst cmd/samples/recipes/pickfirst/*.go
go build -i -o bin/mutex cmd/samples/recipes/mutex/*.go
go build -i -o bin/retryactivity cmd/samples/recipes/retryactivity/*.go
go build -i -o bin/splitmerge cmd/samples/recipes/splitmerge/*.go
go build -i -o bin/searchattributes cmd/samples/recipes/searchattributes/*.go
go build -i -o bin/timer cmd/samples/recipes/timer/*.go
go build -i -o bin/cron cmd/samples/cron/*.go
go build -i -o bin/dsl cmd/samples/dsl/*.go
go build -i -o bin/fileprocessing cmd/samples/fileprocessing/*.go
go build -i -o bin/dummy cmd/samples/expense/server/*.go
go build -i -o bin/expense cmd/samples/expense/*.go
go build -i -o bin/localactivity cmd/samples/recipes/localactivity/*.go
go build -i -o bin/query cmd/samples/recipes/query/*.go
go build -i -o bin/recovery cmd/samples/recovery/*.go
go build -i -o bin/ctxpropagation cmd/samples/recipes/ctxpropagation/*.go
go build -i -o bin/pso cmd/samples/pso/*.go
./cmd/samples/cron ./cmd/samples/dsl ./cmd/samples/expense ./cmd/samples/fileprocessing ./cmd/samples/recipes/branch ./cmd/samples/recipes/choice ./cmd/samples/recipes/greetings ./cmd/samples/recipes/helloworld ./cmd/samples/recipes/cancelactivity ./cmd/samples/recipes/pickfirst ./cmd/samples/recipes/mutex ./cmd/samples/recipes/retryactivity ./cmd/samples/recipes/splitmerge ./cmd/samples/recipes/timer ./cmd/samples/recipes/localactivity ./cmd/samples/recipes/query ./cmd/samples/recipes/ctxpropagation ./cmd/samples/recipes/searchattributes ./cmd/samples/recovery ./cmd/samples/pso
2021-02-23T16:44:43.078-0500    INFO    internal/internal_workflow_testsuite.go:1782    ExecuteChildWorkflow: github.com/uber-common/cadence-samples/cmd/samples/cron.sampleCronWorkflow
panic: unable to find workflow type: github.com/uber-common/cadence-samples/cmd/samples/cron.sampleCronWorkflow. Supported types: [github.com/uber-common/cadence-samples/cmd/samples/cron.(*UnitTestSuite).Test_CronWorkflow.func1, github.com/uber-common/cadence-samples/cmd/samples/cron.(*UnitTestSuite).Test_CronWorkflow.func1]

goroutine 35 [running]:
go.uber.org/cadence/internal.(*testWorkflowEnvironmentImpl).executeWorkflowInternal(0xc0003be000, 0x0, 0x1d15700, 0x4a, 0x0, 0x0, 0x0)
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow_testsuite.go:457 +0x31f
created by go.uber.org/cadence/internal.(*testWorkflowEnvironmentImpl).executeChildWorkflowWithDelay
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow_testsuite.go:1786 +0x3f1
FAIL    github.com/uber-common/cadence-samples/cmd/samples/cron 0.338s
FAIL
?       github.com/uber-common/cadence-samples/cmd/samples/dsl  [no test files]
2021-02-23T16:44:44.507-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "0", "ActivityType": "github.com/uber-common/cadence-samples/cmd/samples/expense.createExpenseActivity"}
2021-02-23T16:44:44.507-0500    ERROR   expense/workflow.go:30  Failed to create expense report {"error": "unable to find activityType=github.com/uber-common/cadence-samples/cmd/samples/expense.createExpenseActivity. Supported types: [internalSessionCreationActivity, internalSessionCompletionActivity]"}
github.com/uber-common/cadence-samples/cmd/samples/expense.sampleExpenseWorkflow
    /Users/dannyhinshaw/Desktop/Projects/cadence-samples/cmd/samples/expense/workflow.go:30
reflect.Value.call
    /Users/dannyhinshaw/.go/src/reflect/value.go:476
reflect.Value.Call
    /Users/dannyhinshaw/.go/src/reflect/value.go:337
go.uber.org/cadence/internal.(*workflowEnvironmentInterceptor).ExecuteWorkflow
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/workflow.go:371
go.uber.org/cadence/internal.(*workflowExecutor).Execute
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_worker.go:669
go.uber.org/cadence/internal.(*workflowExecutorWrapper).Execute
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow_testsuite.go:1360
go.uber.org/cadence/internal.(*syncWorkflowDefinition).Execute.func1
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow.go:463
go.uber.org/cadence/internal.(*dispatcherImpl).newNamedCoroutine.func1
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow.go:874
2021-02-23T16:44:44.507-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "0", "ActivityType": "github.com/uber-common/cadence-samples/cmd/samples/expense.createExpenseActivity"}
2021-02-23T16:44:44.507-0500    ERROR   expense/workflow.go:30  Failed to create expense report {"error": "unable to find activityType=github.com/uber-common/cadence-samples/cmd/samples/expense.createExpenseActivity. Supported types: [internalSessionCreationActivity, internalSessionCompletionActivity]"}
github.com/uber-common/cadence-samples/cmd/samples/expense.sampleExpenseWorkflow
    /Users/dannyhinshaw/Desktop/Projects/cadence-samples/cmd/samples/expense/workflow.go:30
reflect.Value.call
    /Users/dannyhinshaw/.go/src/reflect/value.go:476
reflect.Value.Call
    /Users/dannyhinshaw/.go/src/reflect/value.go:337
go.uber.org/cadence/internal.(*workflowEnvironmentInterceptor).ExecuteWorkflow
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/workflow.go:371
go.uber.org/cadence/internal.(*workflowExecutor).Execute
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_worker.go:669
go.uber.org/cadence/internal.(*workflowExecutorWrapper).Execute
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow_testsuite.go:1360
go.uber.org/cadence/internal.(*syncWorkflowDefinition).Execute.func1
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow.go:463
go.uber.org/cadence/internal.(*dispatcherImpl).newNamedCoroutine.func1
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow.go:874
--- FAIL: TestUnitTestSuite (0.00s)
    --- FAIL: TestUnitTestSuite/Test_WorkflowWithMockActivities (0.00s)
        workflow_test.go:33: 
                Error Trace:    workflow_test.go:33
                Error:          Received unexpected error:
                                unable to find activityType=github.com/uber-common/cadence-samples/cmd/samples/expense.createExpenseActivity. Supported types: [internalSessionCreationActivity, internalSessionCompletionActivity]
                Test:           TestUnitTestSuite/Test_WorkflowWithMockActivities
        workflow_test.go:36: 
                Error Trace:    workflow_test.go:36
                Error:          Received unexpected error:
                                unable to find activityType=github.com/uber-common/cadence-samples/cmd/samples/expense.createExpenseActivity. Supported types: [internalSessionCreationActivity, internalSessionCompletionActivity]
                Test:           TestUnitTestSuite/Test_WorkflowWithMockActivities
        workflow_test.go:37: 
                Error Trace:    workflow_test.go:37
                Error:          Not equal: 
                                expected: "COMPLETED"
                                actual  : ""

                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -1 +1 @@
                                -COMPLETED
                                +
                Test:           TestUnitTestSuite/Test_WorkflowWithMockActivities
        workflow_test.go:38: FAIL:  github.com/uber-common/cadence-samples/cmd/samples/expense.createExpenseActivity(string,string)
                    at: [workflow_testsuite.go:261 workflow_test.go:26]
        workflow_test.go:38: FAIL:  github.com/uber-common/cadence-samples/cmd/samples/expense.waitForDecisionActivity(string,string)
                    at: [workflow_testsuite.go:261 workflow_test.go:27]
        workflow_test.go:38: FAIL:  github.com/uber-common/cadence-samples/cmd/samples/expense.paymentActivity(string,string)
                    at: [workflow_testsuite.go:261 workflow_test.go:28]
        workflow_test.go:38: FAIL: 0 out of 3 expectation(s) were met.
                The code you are testing needs to make 3 more call(s).
                at: [workflow_test.go:38]
    --- FAIL: TestUnitTestSuite/Test_WorkflowWithMockServer (0.00s)
        workflow_test.go:68: 
                Error Trace:    workflow_test.go:68
                Error:          Received unexpected error:
                                unable to find activityType=github.com/uber-common/cadence-samples/cmd/samples/expense.createExpenseActivity. Supported types: [internalSessionCreationActivity, internalSessionCompletionActivity]
                Test:           TestUnitTestSuite/Test_WorkflowWithMockServer
        workflow_test.go:71: 
                Error Trace:    workflow_test.go:71
                Error:          Received unexpected error:
                                unable to find activityType=github.com/uber-common/cadence-samples/cmd/samples/expense.createExpenseActivity. Supported types: [internalSessionCreationActivity, internalSessionCompletionActivity]
                Test:           TestUnitTestSuite/Test_WorkflowWithMockServer
        workflow_test.go:72: 
                Error Trace:    workflow_test.go:72
                Error:          Not equal: 
                                expected: "COMPLETED"
                                actual  : ""

                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -1 +1 @@
                                -COMPLETED
                                +
                Test:           TestUnitTestSuite/Test_WorkflowWithMockServer
FAIL
coverage: 8.1% of statements
FAIL    github.com/uber-common/cadence-samples/cmd/samples/expense  0.160s
FAIL
2021-02-23T16:44:45.603-0500    DEBUG   internal/session.go:276 Start creating session
2021-02-23T16:44:45.603-0500    DEBUG   internal/session.go:365 Created session {"sessionID": "b5024424-bc98-4a9d-836c-0a8d33c9a0ee"}
2021-02-23T16:44:45.603-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskCompletedRequest.  {"ActivityID": "0", "ActivityType": "internalSessionCreationActivity"}
2021-02-23T16:44:45.603-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "1", "ActivityType": "downloadFileActivity"}
2021-02-23T16:44:45.603-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskCompletedRequest.  {"ActivityID": "2", "ActivityType": "internalSessionCompletionActivity"}
2021-02-23T16:44:45.603-0500    DEBUG   internal/session.go:237 Completed session   {"sessionID": "b5024424-bc98-4a9d-836c-0a8d33c9a0ee"}
2021-02-23T16:44:45.603-0500    DEBUG   internal/session.go:276 Start creating session
2021-02-23T16:44:45.604-0500    DEBUG   internal/session.go:365 Created session {"sessionID": "fda91df1-36af-4007-b2dc-057463457f8f"}
2021-02-23T16:44:45.604-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskCompletedRequest.  {"ActivityID": "3", "ActivityType": "internalSessionCreationActivity"}
2021-02-23T16:44:45.604-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "4", "ActivityType": "downloadFileActivity"}
2021-02-23T16:44:45.604-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskCompletedRequest.  {"ActivityID": "5", "ActivityType": "internalSessionCompletionActivity"}
2021-02-23T16:44:45.604-0500    DEBUG   internal/session.go:237 Completed session   {"sessionID": "fda91df1-36af-4007-b2dc-057463457f8f"}
2021-02-23T16:44:45.604-0500    DEBUG   internal/session.go:276 Start creating session
2021-02-23T16:44:45.604-0500    DEBUG   internal/session.go:365 Created session {"sessionID": "b9194df6-4f6f-4c4e-bf7a-1fb96147af14"}
2021-02-23T16:44:45.604-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskCompletedRequest.  {"ActivityID": "6", "ActivityType": "internalSessionCreationActivity"}
2021-02-23T16:44:45.604-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "7", "ActivityType": "downloadFileActivity"}
2021-02-23T16:44:45.604-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskCompletedRequest.  {"ActivityID": "8", "ActivityType": "internalSessionCompletionActivity"}
2021-02-23T16:44:45.604-0500    DEBUG   internal/session.go:237 Completed session   {"sessionID": "b9194df6-4f6f-4c4e-bf7a-1fb96147af14"}
2021-02-23T16:44:45.604-0500    DEBUG   internal/session.go:276 Start creating session
2021-02-23T16:44:45.604-0500    DEBUG   internal/session.go:365 Created session {"sessionID": "0a7f4e90-d92d-455d-9527-0aa30b81ff03"}
2021-02-23T16:44:45.604-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskCompletedRequest.  {"ActivityID": "9", "ActivityType": "internalSessionCreationActivity"}
2021-02-23T16:44:45.604-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "10", "ActivityType": "downloadFileActivity"}
2021-02-23T16:44:45.604-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskCompletedRequest.  {"ActivityID": "11", "ActivityType": "internalSessionCompletionActivity"}
2021-02-23T16:44:45.604-0500    DEBUG   internal/session.go:237 Completed session   {"sessionID": "0a7f4e90-d92d-455d-9527-0aa30b81ff03"}
2021-02-23T16:44:45.604-0500    ERROR   fileprocessing/workflow.go:54   Workflow failed.    {"Error": "unable to find activityType=downloadFileActivity. Supported types: [internalSessionCreationActivity, internalSessionCompletionActivity]"}
github.com/uber-common/cadence-samples/cmd/samples/fileprocessing.sampleFileProcessingWorkflow
    /Users/dannyhinshaw/Desktop/Projects/cadence-samples/cmd/samples/fileprocessing/workflow.go:54
reflect.Value.call
    /Users/dannyhinshaw/.go/src/reflect/value.go:476
reflect.Value.Call
    /Users/dannyhinshaw/.go/src/reflect/value.go:337
go.uber.org/cadence/internal.(*workflowEnvironmentInterceptor).ExecuteWorkflow
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/workflow.go:371
go.uber.org/cadence/internal.(*workflowExecutor).Execute
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_worker.go:669
go.uber.org/cadence/internal.(*workflowExecutorWrapper).Execute
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow_testsuite.go:1360
go.uber.org/cadence/internal.(*syncWorkflowDefinition).Execute.func1
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow.go:463
go.uber.org/cadence/internal.(*dispatcherImpl).newNamedCoroutine.func1
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow.go:874
--- FAIL: TestUnitTestSuite (0.00s)
    --- FAIL: TestUnitTestSuite/Test_SampleFileProcessingWorkflow (0.00s)
        workflow_test.go:59: 
                Error Trace:    workflow_test.go:59
                Error:          Received unexpected error:
                                unable to find activityType=downloadFileActivity. Supported types: [internalSessionCreationActivity, internalSessionCompletionActivity]
                Test:           TestUnitTestSuite/Test_SampleFileProcessingWorkflow
        workflow_test.go:60: 
                Error Trace:    workflow_test.go:60
                Error:          Not equal: 
                                expected: []string{"downloadFileActivity", "processFileActivity", "uploadFileActivity"}
                                actual  : []string(nil)

                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -1,6 +1,2 @@
                                -([]string) (len=3) {
                                - (string) (len=20) "downloadFileActivity",
                                - (string) (len=19) "processFileActivity",
                                - (string) (len=18) "uploadFileActivity"
                                -}
                                +([]string) <nil>

                Test:           TestUnitTestSuite/Test_SampleFileProcessingWorkflow
FAIL
coverage: 15.2% of statements
FAIL    github.com/uber-common/cadence-samples/cmd/samples/fileprocessing   0.176s
FAIL
ok      github.com/uber-common/cadence-samples/cmd/samples/recipes/branch   0.172s  coverage: 57.1% of statements
2021-02-23T16:44:47.864-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "0", "ActivityType": "github.com/uber-common/cadence-samples/cmd/samples/recipes/choice.getOrderActivity"}
2021-02-23T16:44:47.865-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "0", "ActivityType": "github.com/uber-common/cadence-samples/cmd/samples/recipes/choice.getBasketOrderActivity"}
--- FAIL: TestUnitTestSuite (0.00s)
    --- FAIL: TestUnitTestSuite/Test_ExclusiveChoiceWorkflow (0.00s)
        workflow_test.go:24: 
                Error Trace:    workflow_test.go:24
                Error:          Received unexpected error:
                                unable to find activityType=github.com/uber-common/cadence-samples/cmd/samples/recipes/choice.getOrderActivity. Supported types: [internalSessionCompletionActivity, internalSessionCreationActivity]
                Test:           TestUnitTestSuite/Test_ExclusiveChoiceWorkflow
    --- FAIL: TestUnitTestSuite/Test_MultiChoiceWorkflow (0.00s)
        workflow_test.go:32: 
                Error Trace:    workflow_test.go:32
                Error:          Received unexpected error:
                                unable to find activityType=github.com/uber-common/cadence-samples/cmd/samples/recipes/choice.getBasketOrderActivity. Supported types: [internalSessionCreationActivity, internalSessionCompletionActivity]
                Test:           TestUnitTestSuite/Test_MultiChoiceWorkflow
FAIL
coverage: 14.0% of statements
FAIL    github.com/uber-common/cadence-samples/cmd/samples/recipes/choice   0.182s
FAIL
2021-02-23T16:44:48.972-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "0", "ActivityType": "github.com/uber-common/cadence-samples/cmd/samples/recipes/greetings.getGreetingActivity"}
2021-02-23T16:44:48.972-0500    ERROR   greetings/greetings_workflow.go:33  Get greeting failed.    {"error": "unable to find activityType=github.com/uber-common/cadence-samples/cmd/samples/recipes/greetings.getGreetingActivity. Supported types: [internalSessionCreationActivity, internalSessionCompletionActivity]"}
github.com/uber-common/cadence-samples/cmd/samples/recipes/greetings.sampleGreetingsWorkflow
    /Users/dannyhinshaw/Desktop/Projects/cadence-samples/cmd/samples/recipes/greetings/greetings_workflow.go:33
reflect.Value.call
    /Users/dannyhinshaw/.go/src/reflect/value.go:476
reflect.Value.Call
    /Users/dannyhinshaw/.go/src/reflect/value.go:337
go.uber.org/cadence/internal.(*workflowEnvironmentInterceptor).ExecuteWorkflow
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/workflow.go:371
go.uber.org/cadence/internal.(*workflowExecutor).Execute
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_worker.go:669
go.uber.org/cadence/internal.(*workflowExecutorWrapper).Execute
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow_testsuite.go:1360
go.uber.org/cadence/internal.(*syncWorkflowDefinition).Execute.func1
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow.go:463
go.uber.org/cadence/internal.(*dispatcherImpl).newNamedCoroutine.func1
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow.go:874
--- FAIL: TestUnitTestSuite (0.00s)
    --- FAIL: TestUnitTestSuite/Test_SampleGreetingsWorkflow (0.00s)
        workflow_test.go:47: 
                Error Trace:    workflow_test.go:47
                Error:          Received unexpected error:
                                unable to find activityType=github.com/uber-common/cadence-samples/cmd/samples/recipes/greetings.getGreetingActivity. Supported types: [internalSessionCreationActivity, internalSessionCompletionActivity]
                Test:           TestUnitTestSuite/Test_SampleGreetingsWorkflow
        workflow_test.go:48: 
                Error Trace:    workflow_test.go:48
                Error:          Should be true
                Test:           TestUnitTestSuite/Test_SampleGreetingsWorkflow
        workflow_test.go:49: 
                Error Trace:    workflow_test.go:49
                Error:          Should be true
                Test:           TestUnitTestSuite/Test_SampleGreetingsWorkflow
FAIL
coverage: 19.5% of statements
FAIL    github.com/uber-common/cadence-samples/cmd/samples/recipes/greetings    0.170s
FAIL
2021-02-23T16:44:50.109-0500    INFO    helloworld/helloworld_workflow.go:29    helloworld workflow started
2021-02-23T16:44:50.110-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "0", "ActivityType": "github.com/uber-common/cadence-samples/cmd/samples/recipes/helloworld.helloWorldActivity"}
--- FAIL: Test_Workflow (0.00s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
    panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x16f0546]

goroutine 34 [running]:
testing.tRunner.func1.1(0x17a1220, 0x1d6f470)
    /Users/dannyhinshaw/.go/src/testing/testing.go:1072 +0x30d
testing.tRunner.func1(0xc0003e8180)
    /Users/dannyhinshaw/.go/src/testing/testing.go:1075 +0x41a
panic(0x17a1220, 0x1d6f470)
    /Users/dannyhinshaw/.go/src/runtime/panic.go:969 +0x1b9
github.com/uber-common/cadence-samples/cmd/samples/recipes/helloworld.Test_Workflow.func1(0xc00034a000, 0x0, 0x0, 0x1958ca0, 0xc0002e0a40)
    /Users/dannyhinshaw/Desktop/Projects/cadence-samples/cmd/samples/recipes/helloworld/helloworld_workflow_test.go:17 +0x26
go.uber.org/cadence/internal.(*testWorkflowEnvironmentImpl).handleActivityResult(0xc0003e01e0, 0x1d4b7a0, 0x1, 0x17f0540, 0xc0002f8680, 0x1d18c28, 0x58, 0x195e360, 0x1daf3e0)
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow_testsuite.go:1182 +0x750
go.uber.org/cadence/internal.(*testWorkflowEnvironmentImpl).ExecuteActivity.func1.1.1()
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow_testsuite.go:974 +0x85
go.uber.org/cadence/internal.(*testCallbackHandle).processCallback(0xc000317d18)
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow_testsuite.go:664 +0x77
go.uber.org/cadence/internal.(*testWorkflowEnvironmentImpl).startMainLoop(0xc0003e01e0)
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow_testsuite.go:634 +0x225
go.uber.org/cadence/internal.(*testWorkflowEnvironmentImpl).executeWorkflowInternal(0xc0003e01e0, 0x0, 0x1d189e0, 0x58, 0xc0003bc300, 0x8, 0x40)
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow_testsuite.go:487 +0x205
go.uber.org/cadence/internal.(*testWorkflowEnvironmentImpl).executeWorkflow(0xc0003e01e0, 0x17822e0, 0x18b7358, 0xc00038cca0, 0x1, 0x1)
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow_testsuite.go:441 +0x134
go.uber.org/cadence/internal.(*TestWorkflowEnvironment).ExecuteWorkflow(...)
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/workflow_testsuite.go:437
github.com/uber-common/cadence-samples/cmd/samples/recipes/helloworld.Test_Workflow(0xc0003e8180)
    /Users/dannyhinshaw/Desktop/Projects/cadence-samples/cmd/samples/recipes/helloworld/helloworld_workflow_test.go:19 +0x17b
testing.tRunner(0xc0003e8180, 0x18b7348)
    /Users/dannyhinshaw/.go/src/testing/testing.go:1123 +0xef
created by testing.(*T).Run
    /Users/dannyhinshaw/.go/src/testing/testing.go:1168 +0x2b3
FAIL    github.com/uber-common/cadence-samples/cmd/samples/recipes/helloworld   0.187s
FAIL
?       github.com/uber-common/cadence-samples/cmd/samples/recipes/cancelactivity   [no test files]
2021-02-23T16:44:51.588-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "0", "ActivityType": "github.com/uber-common/cadence-samples/cmd/samples/recipes/pickfirst.sampleActivity"}
2021-02-23T16:44:51.588-0500    DEBUG   internal/internal_workflow_testsuite.go:748 RequestCancelActivity   {"ActivityID": "1"}
2021-02-23T16:44:51.588-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "1", "ActivityType": "github.com/uber-common/cadence-samples/cmd/samples/recipes/pickfirst.sampleActivity"}
2021-02-23T16:44:51.588-0500    DEBUG   internal/internal_workflow_testsuite.go:1150    handleActivityResult: ActivityID not exists, could be already completed or cancelled.   {"ActivityID": "1"}
2021-02-23T16:44:51.588-0500    INFO    pickfirst/pickfirst_workflow.go:61  Workflow completed.
--- FAIL: TestUnitTestSuite (0.00s)
    --- FAIL: TestUnitTestSuite/Test_Workflow (0.00s)
        pickfirst_workflow_test.go:36: FAIL:    github.com/uber-common/cadence-samples/cmd/samples/recipes/pickfirst.sampleActivity(string,string,string)
                    at: [workflow_testsuite.go:261 pickfirst_workflow_test.go:24]
        pickfirst_workflow_test.go:36: FAIL: 0 out of 1 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [pickfirst_workflow_test.go:36]
FAIL
coverage: 34.0% of statements
FAIL    github.com/uber-common/cadence-samples/cmd/samples/recipes/pickfirst    0.164s
FAIL
ok      github.com/uber-common/cadence-samples/cmd/samples/recipes/mutex    0.166s  coverage: 69.0% of statements
2021-02-23T16:44:53.804-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "0", "ActivityType": "github.com/uber-common/cadence-samples/cmd/samples/recipes/retryactivity.batchProcessingActivity"}
2021-02-23T16:44:53.805-0500    INFO    retryactivity/retry_activity_workflow.go:40 Workflow completed with error.  {"error": "unable to find activityType=github.com/uber-common/cadence-samples/cmd/samples/recipes/retryactivity.batchProcessingActivity. Supported types: [internalSessionCreationActivity, internalSessionCompletionActivity]"}
--- FAIL: TestUnitTestSuite (0.00s)
    --- FAIL: TestUnitTestSuite/Test_Workflow (0.00s)
        retry_activity_workflow_test.go:42: 
                Error Trace:    retry_activity_workflow_test.go:42
                Error:          Received unexpected error:
                                unable to find activityType=github.com/uber-common/cadence-samples/cmd/samples/recipes/retryactivity.batchProcessingActivity. Supported types: [internalSessionCreationActivity, internalSessionCompletionActivity]
                Test:           TestUnitTestSuite/Test_Workflow
        retry_activity_workflow_test.go:43: 
                Error Trace:    retry_activity_workflow_test.go:43
                Error:          Not equal: 
                                expected: []int{0, 6, 12, 18}
                                actual  : []int(nil)

                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -1,7 +1,2 @@
                                -([]int) (len=4) {
                                - (int) 0,
                                - (int) 6,
                                - (int) 12,
                                - (int) 18
                                -}
                                +([]int) <nil>

                Test:           TestUnitTestSuite/Test_Workflow
        retry_activity_workflow_test.go:44: FAIL:   github.com/uber-common/cadence-samples/cmd/samples/recipes/retryactivity.batchProcessingActivity(string,string,string,string)
                    at: [workflow_testsuite.go:261 retry_activity_workflow_test.go:26]
        retry_activity_workflow_test.go:44: FAIL: 0 out of 1 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [retry_activity_workflow_test.go:44]
FAIL
coverage: 14.6% of statements
FAIL    github.com/uber-common/cadence-samples/cmd/samples/recipes/retryactivity    0.172s
FAIL
2021-02-23T16:44:54.929-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "1", "ActivityType": "github.com/uber-common/cadence-samples/cmd/samples/recipes/splitmerge.chunkProcessingActivity"}
2021-02-23T16:44:54.930-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "0", "ActivityType": "github.com/uber-common/cadence-samples/cmd/samples/recipes/splitmerge.chunkProcessingActivity"}
2021-02-23T16:44:54.930-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "4", "ActivityType": "github.com/uber-common/cadence-samples/cmd/samples/recipes/splitmerge.chunkProcessingActivity"}
2021-02-23T16:44:54.930-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "2", "ActivityType": "github.com/uber-common/cadence-samples/cmd/samples/recipes/splitmerge.chunkProcessingActivity"}
2021-02-23T16:44:54.930-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "3", "ActivityType": "github.com/uber-common/cadence-samples/cmd/samples/recipes/splitmerge.chunkProcessingActivity"}
2021-02-23T16:44:54.930-0500    INFO    splitmerge/splitmerge_workflow.go:66    Workflow completed.
--- FAIL: TestUnitTestSuite (0.00s)
    --- FAIL: TestUnitTestSuite/Test_Workflow (0.00s)
        splitmerge_workflow_test.go:36: 
                Error Trace:    splitmerge_workflow_test.go:36
                Error:          Not equal: 
                                expected: 15
                                actual  : 0
                Test:           TestUnitTestSuite/Test_Workflow
        splitmerge_workflow_test.go:37: 
                Error Trace:    splitmerge_workflow_test.go:37
                Error:          Not equal: 
                                expected: 55
                                actual  : 0
                Test:           TestUnitTestSuite/Test_Workflow
FAIL
coverage: 43.6% of statements
FAIL    github.com/uber-common/cadence-samples/cmd/samples/recipes/splitmerge   0.173s
FAIL
ok      github.com/uber-common/cadence-samples/cmd/samples/recipes/timer    0.161s  coverage: 42.9% of statements
2021-02-23T16:44:57.138-0500    DEBUG   internal/internal_workflow_testsuite.go:1194    handleLocalActivityResult: Err: <nil>, Result: false
.   {"ActivityID": "0", "ActivityType": "go.uber.org/cadence/internal.(*testWorkflowEnvironmentImpl).ExecuteLocalActivity.func1"}
2021-02-23T16:44:57.138-0500    INFO    localactivity/local_activity_workflow.go:68 condition meet for 0: false
2021-02-23T16:44:57.139-0500    DEBUG   internal/internal_workflow_testsuite.go:1194    handleLocalActivityResult: Err: <nil>, Result: true
.   {"ActivityID": "1", "ActivityType": "go.uber.org/cadence/internal.(*testWorkflowEnvironmentImpl).ExecuteLocalActivity.func1"}
2021-02-23T16:44:57.139-0500    INFO    localactivity/local_activity_workflow.go:68 condition meet for 1: true
2021-02-23T16:44:57.139-0500    DEBUG   internal/internal_workflow_testsuite.go:1194    handleLocalActivityResult: Err: <nil>, Result: false
.   {"ActivityID": "3", "ActivityType": "go.uber.org/cadence/internal.(*testWorkflowEnvironmentImpl).ExecuteLocalActivity.func1"}
2021-02-23T16:44:57.139-0500    INFO    localactivity/local_activity_workflow.go:68 condition meet for 2: false
2021-02-23T16:44:57.139-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "2", "ActivityType": "github.com/uber-common/cadence-samples/cmd/samples/recipes/localactivity.activityForCondition1"}
2021-02-23T16:44:57.139-0500    DEBUG   internal/internal_workflow_testsuite.go:1194    handleLocalActivityResult: Err: <nil>, Result: false
.   {"ActivityID": "4", "ActivityType": "go.uber.org/cadence/internal.(*testWorkflowEnvironmentImpl).ExecuteLocalActivity.func1"}
2021-02-23T16:44:57.139-0500    INFO    localactivity/local_activity_workflow.go:68 condition meet for 3: false
2021-02-23T16:44:57.139-0500    DEBUG   internal/internal_workflow_testsuite.go:1194    handleLocalActivityResult: Err: <nil>, Result: false
.   {"ActivityID": "5", "ActivityType": "go.uber.org/cadence/internal.(*testWorkflowEnvironmentImpl).ExecuteLocalActivity.func1"}
2021-02-23T16:44:57.139-0500    INFO    localactivity/local_activity_workflow.go:68 condition meet for 4: false
--- FAIL: Test_ProcessingWorkflow_SingleAction (0.00s)
    local_activity_workflow_test.go:18: FAIL:   github.com/uber-common/cadence-samples/cmd/samples/recipes/localactivity.activityForCondition1(string,string)
                at: [workflow_testsuite.go:261 local_activity_workflow_test.go:16]
    local_activity_workflow_test.go:18: FAIL: 0 out of 1 expectation(s) were met.
            The code you are testing needs to make 1 more call(s).
            at: [local_activity_workflow_test.go:18]
    require.go:794: 
            Error Trace:    local_activity_workflow_test.go:20
            Error:          Received unexpected error:
                            unable to find activityType=github.com/uber-common/cadence-samples/cmd/samples/recipes/localactivity.activityForCondition1. Supported types: [internalSessionCompletionActivity, internalSessionCreationActivity]
            Test:           Test_ProcessingWorkflow_SingleAction
2021-02-23T16:44:57.139-0500    DEBUG   internal/internal_workflow_testsuite.go:1194    handleLocalActivityResult: Err: <nil>, Result: false
.   {"ActivityID": "0", "ActivityType": "go.uber.org/cadence/internal.(*testWorkflowEnvironmentImpl).ExecuteLocalActivity.func1"}
2021-02-23T16:44:57.139-0500    INFO    localactivity/local_activity_workflow.go:68 condition meet for 0: false
2021-02-23T16:44:57.139-0500    DEBUG   internal/internal_workflow_testsuite.go:1194    handleLocalActivityResult: Err: <nil>, Result: true
.   {"ActivityID": "1", "ActivityType": "go.uber.org/cadence/internal.(*testWorkflowEnvironmentImpl).ExecuteLocalActivity.func1"}
2021-02-23T16:44:57.140-0500    INFO    localactivity/local_activity_workflow.go:68 condition meet for 1: true
2021-02-23T16:44:57.140-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "2", "ActivityType": "github.com/uber-common/cadence-samples/cmd/samples/recipes/localactivity.activityForCondition1"}
2021-02-23T16:44:57.140-0500    DEBUG   internal/internal_workflow_testsuite.go:1194    handleLocalActivityResult: Err: <nil>, Result: false
.   {"ActivityID": "3", "ActivityType": "go.uber.org/cadence/internal.(*testWorkflowEnvironmentImpl).ExecuteLocalActivity.func1"}
2021-02-23T16:44:57.140-0500    INFO    localactivity/local_activity_workflow.go:68 condition meet for 2: false
2021-02-23T16:44:57.140-0500    DEBUG   internal/internal_workflow_testsuite.go:1194    handleLocalActivityResult: Err: <nil>, Result: true
.   {"ActivityID": "4", "ActivityType": "go.uber.org/cadence/internal.(*testWorkflowEnvironmentImpl).ExecuteLocalActivity.func1"}
2021-02-23T16:44:57.140-0500    INFO    localactivity/local_activity_workflow.go:68 condition meet for 3: true
2021-02-23T16:44:57.140-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "5", "ActivityType": "github.com/uber-common/cadence-samples/cmd/samples/recipes/localactivity.activityForCondition3"}
2021-02-23T16:44:57.140-0500    DEBUG   internal/internal_workflow_testsuite.go:1194    handleLocalActivityResult: Err: <nil>, Result: false
.   {"ActivityID": "6", "ActivityType": "go.uber.org/cadence/internal.(*testWorkflowEnvironmentImpl).ExecuteLocalActivity.func1"}
2021-02-23T16:44:57.140-0500    INFO    localactivity/local_activity_workflow.go:68 condition meet for 4: false
--- FAIL: Test_ProcessingWorkflow_MultiAction (0.00s)
    local_activity_workflow_test.go:34: FAIL:   github.com/uber-common/cadence-samples/cmd/samples/recipes/localactivity.activityForCondition1(string,string)
                at: [workflow_testsuite.go:261 local_activity_workflow_test.go:31]
    local_activity_workflow_test.go:34: FAIL:   github.com/uber-common/cadence-samples/cmd/samples/recipes/localactivity.activityForCondition3(string,string)
                at: [workflow_testsuite.go:261 local_activity_workflow_test.go:32]
    local_activity_workflow_test.go:34: FAIL: 0 out of 2 expectation(s) were met.
            The code you are testing needs to make 2 more call(s).
            at: [local_activity_workflow_test.go:34]
    require.go:794: 
            Error Trace:    local_activity_workflow_test.go:36
            Error:          Received unexpected error:
                            unable to find activityType=github.com/uber-common/cadence-samples/cmd/samples/recipes/localactivity.activityForCondition1. Supported types: [internalSessionCreationActivity, internalSessionCompletionActivity]
            Test:           Test_ProcessingWorkflow_MultiAction
2021-02-23T16:44:57.140-0500    DEBUG   internal/internal_workflow_testsuite.go:689 Auto fire timer {"TimerID": 0, "TimerDuration": "1m0s", "TimeSkipped": "1m0s"}
2021-02-23T16:44:57.140-0500    INFO    localactivity/local_activity_workflow.go:98 Signal received.    {"signal": "_1_"}
2021-02-23T16:44:57.140-0500    INFO    internal/internal_workflow_testsuite.go:1782    ExecuteChildWorkflow: github.com/uber-common/cadence-samples/cmd/samples/recipes/localactivity.processingWorkflow
panic: unable to find workflow type: github.com/uber-common/cadence-samples/cmd/samples/recipes/localactivity.processingWorkflow. Supported types: [github.com/uber-common/cadence-samples/cmd/samples/recipes/localactivity.signalHandlingWorkflow]

goroutine 61 [running]:
go.uber.org/cadence/internal.(*testWorkflowEnvironmentImpl).executeWorkflowInternal(0xc00046a3c0, 0x0, 0x1cc1680, 0x5b, 0xc000408540, 0x6, 0x40)
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow_testsuite.go:457 +0x31f
created by go.uber.org/cadence/internal.(*testWorkflowEnvironmentImpl).executeChildWorkflowWithDelay
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow_testsuite.go:1786 +0x3f1
FAIL    github.com/uber-common/cadence-samples/cmd/samples/recipes/localactivity    0.159s
FAIL
ok      github.com/uber-common/cadence-samples/cmd/samples/recipes/query    0.163s  coverage: 37.5% of statements
2021-02-23T16:44:59.365-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "0", "ActivityType": "github.com/uber-common/cadence-samples/cmd/samples/recipes/ctxpropagation.sampleActivity"}
2021-02-23T16:44:59.365-0500    ERROR   ctxpropagation/workflow.go:29   Workflow failed.    {"error": "unable to find activityType=github.com/uber-common/cadence-samples/cmd/samples/recipes/ctxpropagation.sampleActivity. Supported types: [internalSessionCreationActivity, internalSessionCompletionActivity]"}
github.com/uber-common/cadence-samples/cmd/samples/recipes/ctxpropagation.sampleCtxPropWorkflow
    /Users/dannyhinshaw/Desktop/Projects/cadence-samples/cmd/samples/recipes/ctxpropagation/workflow.go:29
reflect.Value.call
    /Users/dannyhinshaw/.go/src/reflect/value.go:476
reflect.Value.Call
    /Users/dannyhinshaw/.go/src/reflect/value.go:337
go.uber.org/cadence/internal.(*workflowEnvironmentInterceptor).ExecuteWorkflow
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/workflow.go:371
go.uber.org/cadence/internal.(*workflowExecutor).Execute
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_worker.go:669
go.uber.org/cadence/internal.(*workflowExecutorWrapper).Execute
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow_testsuite.go:1360
go.uber.org/cadence/internal.(*syncWorkflowDefinition).Execute.func1
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow.go:463
go.uber.org/cadence/internal.(*dispatcherImpl).newNamedCoroutine.func1
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow.go:874
--- FAIL: TestUnitTestSuite (0.00s)
    --- FAIL: TestUnitTestSuite/Test_CtxPropWorkflow (0.00s)
        workflow_test.go:39: 
                Error Trace:    workflow_test.go:39
                Error:          Received unexpected error:
                                unable to find activityType=github.com/uber-common/cadence-samples/cmd/samples/recipes/ctxpropagation.sampleActivity. Supported types: [internalSessionCreationActivity, internalSessionCompletionActivity]
                Test:           TestUnitTestSuite/Test_CtxPropWorkflow
        workflow_test.go:40: 
                Error Trace:    workflow_test.go:40
                Error:          Not equal: 
                                expected: []string{"sampleActivity"}
                                actual  : []string(nil)

                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -1,4 +1,2 @@
                                -([]string) (len=1) {
                                - (string) (len=14) "sampleActivity"
                                -}
                                +([]string) <nil>

                Test:           TestUnitTestSuite/Test_CtxPropWorkflow
FAIL
coverage: 10.8% of statements
FAIL    github.com/uber-common/cadence-samples/cmd/samples/recipes/ctxpropagation   0.168s
FAIL
2021-02-23T16:45:00.492-0500    INFO    searchattributes/searchattributes_workflow.go:44    SearchAttributes workflow started
2021-02-23T16:45:00.492-0500    INFO    searchattributes/searchattributes_workflow.go:55    Current Search Attributes:  {"CustomIntField": "1"}
2021-02-23T16:45:00.493-0500    INFO    searchattributes/searchattributes_workflow.go:121   Current Search Attributes: 
CustomBoolField=true
CustomDoubleField=3.14
CustomDatetimeField=2019-01-01T00:00:00-05:00
CustomStringField=String field is for text. When query, it will be tokenized for partial match. StringTypeField cannot be used in Order By
CustomKeywordField=Update1
CustomIntField=2

2021-02-23T16:45:00.493-0500    INFO    searchattributes/searchattributes_workflow.go:121   Current Search Attributes: 
CustomStringField=String field is for text. When query, it will be tokenized for partial match. StringTypeField cannot be used in Order By
CustomKeywordField=Update2
CustomIntField=2
CustomBoolField=true
CustomDoubleField=3.14
CustomDatetimeField=2019-01-01T00:00:00-05:00

2021-02-23T16:45:00.493-0500    DEBUG   internal/internal_workflow_testsuite.go:689 Auto fire timer {"TimerID": 0, "TimerDuration": "2s", "TimeSkipped": "2s"}
2021-02-23T16:45:00.493-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "1", "ActivityType": "github.com/uber-common/cadence-samples/cmd/samples/recipes/searchattributes.listExecutions"}
2021-02-23T16:45:00.493-0500    ERROR   searchattributes/searchattributes_workflow.go:101   Failed to list workflow executions. {"error": "unable to find activityType=github.com/uber-common/cadence-samples/cmd/samples/recipes/searchattributes.listExecutions. Supported types: [internalSessionCreationActivity, internalSessionCompletionActivity]"}
github.com/uber-common/cadence-samples/cmd/samples/recipes/searchattributes.searchAttributesWorkflow
    /Users/dannyhinshaw/Desktop/Projects/cadence-samples/cmd/samples/recipes/searchattributes/searchattributes_workflow.go:101
reflect.Value.call
    /Users/dannyhinshaw/.go/src/reflect/value.go:476
reflect.Value.Call
    /Users/dannyhinshaw/.go/src/reflect/value.go:337
go.uber.org/cadence/internal.(*workflowEnvironmentInterceptor).ExecuteWorkflow
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/workflow.go:371
go.uber.org/cadence/internal.(*workflowExecutor).Execute
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_worker.go:669
go.uber.org/cadence/internal.(*workflowExecutorWrapper).Execute
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow_testsuite.go:1360
go.uber.org/cadence/internal.(*syncWorkflowDefinition).Execute.func1
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow.go:463
go.uber.org/cadence/internal.(*dispatcherImpl).newNamedCoroutine.func1
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow.go:874
--- FAIL: Test_Workflow (0.00s)
    require.go:794: 
            Error Trace:    searchattributes_workflow_test.go:40
            Error:          Received unexpected error:
                            unable to find activityType=github.com/uber-common/cadence-samples/cmd/samples/recipes/searchattributes.listExecutions. Supported types: [internalSessionCreationActivity, internalSessionCompletionActivity]
            Test:           Test_Workflow
FAIL
coverage: 41.4% of statements
FAIL    github.com/uber-common/cadence-samples/cmd/samples/recipes/searchattributes 0.217s
FAIL
?       github.com/uber-common/cadence-samples/cmd/samples/recovery [no test files]
2021-02-23T16:45:02.041-0500    INFO    pso/workflow.go:42  Optimizing function sphere
2021-02-23T16:45:02.041-0500    INFO    pso/workflow.go:62  Attempt #1
2021-02-23T16:45:02.041-0500    DEBUG   internal/internal_workflow_testsuite.go:1135    handleActivityResult: *shared.RespondActivityTaskFailedRequest. {"ActivityID": "1", "ActivityType": "initParticleActivityName"}
2021-02-23T16:45:02.041-0500    ERROR   pso/workflow.go:67  Optimization failed. unable to find activityType=initParticleActivityName. Supported types: [internalSessionCreationActivity, internalSessionCompletionActivity]
github.com/uber-common/cadence-samples/cmd/samples/pso.samplePSOWorkflow
    /Users/dannyhinshaw/Desktop/Projects/cadence-samples/cmd/samples/pso/workflow.go:67
reflect.Value.call
    /Users/dannyhinshaw/.go/src/reflect/value.go:476
reflect.Value.Call
    /Users/dannyhinshaw/.go/src/reflect/value.go:337
go.uber.org/cadence/internal.(*workflowEnvironmentInterceptor).ExecuteWorkflow
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/workflow.go:371
go.uber.org/cadence/internal.(*workflowExecutor).Execute
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_worker.go:669
go.uber.org/cadence/internal.(*workflowExecutorWrapper).Execute
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow_testsuite.go:1360
go.uber.org/cadence/internal.(*syncWorkflowDefinition).Execute.func1
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow.go:463
go.uber.org/cadence/internal.(*dispatcherImpl).newNamedCoroutine.func1
    /Users/dannyhinshaw/go/pkg/mod/go.uber.org/cadence@v0.13.4/internal/internal_workflow.go:874
--- FAIL: Test_Workflow (0.00s)
    require.go:157: 
            Error Trace:    workflow_test.go:54
            Error:          Not equal: 
                            expected: "unable to find activityType=initParticleActivityName. Supported types: [internalSessionCreationActivity, internalSessionCompletionActivity]"
                            actual  : "ContinueAsNew"

                            Diff:
                            --- Expected
                            +++ Actual
                            @@ -1 +1 @@
                            -unable to find activityType=initParticleActivityName. Supported types: [internalSessionCreationActivity, internalSessionCompletionActivity]
                            +ContinueAsNew
            Test:           Test_Workflow
FAIL
coverage: 27.6% of statements
FAIL    github.com/uber-common/cadence-samples/cmd/samples/pso  0.205s
FAIL

Process finished with exit code 0
yycptt commented 3 years ago

Fixed by https://github.com/uber-common/cadence-samples/pull/43