diff --git a/api/persistence/v1/executions.pb.go b/api/persistence/v1/executions.pb.go index 913f3a211a0..32473817bbe 100644 --- a/api/persistence/v1/executions.pb.go +++ b/api/persistence/v1/executions.pb.go @@ -1169,8 +1169,12 @@ func (*WorkflowExecutionInfo_LastWorkflowTaskTimedOutType) isWorkflowExecutionIn type LastNotifiedTargetVersion struct { state protoimpl.MessageState `protogen:"open.v1"` DeploymentVersion *v18.WorkerDeploymentVersion `protobuf:"bytes,1,opt,name=deployment_version,json=deploymentVersion,proto3" json:"deployment_version,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + // Revision number of the task queue routing config at the time the + // notification was sent. Carried forward to DeclinedTargetVersionUpgrade + // at continue-as-new time. + RevisionNumber int64 `protobuf:"varint,2,opt,name=revision_number,json=revisionNumber,proto3" json:"revision_number,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LastNotifiedTargetVersion) Reset() { @@ -1210,6 +1214,13 @@ func (x *LastNotifiedTargetVersion) GetDeploymentVersion() *v18.WorkerDeployment return nil } +func (x *LastNotifiedTargetVersion) GetRevisionNumber() int64 { + if x != nil { + return x.RevisionNumber + } + return 0 +} + type ExecutionStats struct { state protoimpl.MessageState `protogen:"open.v1"` HistorySize int64 `protobuf:"varint,1,opt,name=history_size,json=historySize,proto3" json:"history_size,omitempty"` @@ -4788,9 +4799,10 @@ const file_temporal_server_api_persistence_v1_executions_proto_rawDesc = "" + "&ChildrenInitializedPostResetPointEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12H\n" + "\x05value\x18\x02 \x01(\v22.temporal.server.api.persistence.v1.ResetChildInfoR\x05value:\x028\x01B\x1c\n" + - "\x1alast_workflow_task_failureJ\x04\b\b\x10\tJ\x04\b\x0e\x10\x0fJ\x04\b\x0f\x10\x10J\x04\b\x10\x10\x11J\x04\b,\x10-J\x04\b-\x10.J\x04\b/\x100J\x04\b0\x101J\x04\b1\x102J\x04\b2\x103\"\x7f\n" + + "\x1alast_workflow_task_failureJ\x04\b\b\x10\tJ\x04\b\x0e\x10\x0fJ\x04\b\x0f\x10\x10J\x04\b\x10\x10\x11J\x04\b,\x10-J\x04\b-\x10.J\x04\b/\x100J\x04\b0\x101J\x04\b1\x102J\x04\b2\x103\"\xa8\x01\n" + "\x19LastNotifiedTargetVersion\x12b\n" + - "\x12deployment_version\x18\x01 \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionR\x11deploymentVersion\"\x9d\x01\n" + + "\x12deployment_version\x18\x01 \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionR\x11deploymentVersion\x12'\n" + + "\x0frevision_number\x18\x02 \x01(\x03R\x0erevisionNumber\"\x9d\x01\n" + "\x0eExecutionStats\x12!\n" + "\fhistory_size\x18\x01 \x01(\x03R\vhistorySize\x122\n" + "\x15external_payload_size\x18\x02 \x01(\x03R\x13externalPayloadSize\x124\n" + diff --git a/go.mod b/go.mod index 20e025264c9..07209538c55 100644 --- a/go.mod +++ b/go.mod @@ -59,7 +59,7 @@ require ( go.opentelemetry.io/otel/sdk v1.40.0 go.opentelemetry.io/otel/sdk/metric v1.40.0 go.opentelemetry.io/otel/trace v1.40.0 - go.temporal.io/api v1.62.8-0.20260406230818-5423d0dd678a + go.temporal.io/api v1.62.3-0.20260409181818-debaf76d420a go.temporal.io/auto-scaled-workers v0.0.0-20260407181057-edd947d743d2 go.temporal.io/sdk v1.41.1 go.uber.org/fx v1.24.0 @@ -157,7 +157,7 @@ require ( github.com/go-logr/logr v1.4.3 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/mock v1.6.0 // indirect + github.com/golang/mock v1.6.0 github.com/golang/snappy v0.0.4 // indirect github.com/google/s2a-go v0.1.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.3.7 // indirect diff --git a/go.sum b/go.sum index 6e4a8419509..2913f7d9265 100644 --- a/go.sum +++ b/go.sum @@ -440,8 +440,8 @@ go.opentelemetry.io/otel/trace v1.40.0 h1:WA4etStDttCSYuhwvEa8OP8I5EWu24lkOzp+ZY go.opentelemetry.io/otel/trace v1.40.0/go.mod h1:zeAhriXecNGP/s2SEG3+Y8X9ujcJOTqQ5RgdEJcawiA= go.opentelemetry.io/proto/otlp v1.7.1 h1:gTOMpGDb0WTBOP8JaO72iL3auEZhVmAQg4ipjOVAtj4= go.opentelemetry.io/proto/otlp v1.7.1/go.mod h1:b2rVh6rfI/s2pHWNlB7ILJcRALpcNDzKhACevjI+ZnE= -go.temporal.io/api v1.62.8-0.20260406230818-5423d0dd678a h1:2nCxSSKutK1VP2eA7/lw5/DfHk+UxNtr1GN5KsZTSNo= -go.temporal.io/api v1.62.8-0.20260406230818-5423d0dd678a/go.mod h1:iaxoP/9OXMJcQkETTECfwYq4cw/bj4nwov8b3ZLVnXM= +go.temporal.io/api v1.62.3-0.20260409181818-debaf76d420a h1:Dya7I98BYaFduHgPOc22M4zCyWFCx5DzLeGOzeiwblQ= +go.temporal.io/api v1.62.3-0.20260409181818-debaf76d420a/go.mod h1:iaxoP/9OXMJcQkETTECfwYq4cw/bj4nwov8b3ZLVnXM= go.temporal.io/auto-scaled-workers v0.0.0-20260407181057-edd947d743d2 h1:1hKeH3GyR6YD6LKMHGCZ76t6h1Sgha0hXVQBxWi3dlQ= go.temporal.io/auto-scaled-workers v0.0.0-20260407181057-edd947d743d2/go.mod h1:T8dnzVPeO+gaUTj9eDgm/lT2lZH4+JXNvrGaQGyVi50= go.temporal.io/sdk v1.41.1 h1:yOpvsHyDD1lNuwlGBv/SUodCPhjv9nDeC9lLHW/fJUA= diff --git a/proto/internal/temporal/server/api/persistence/v1/executions.proto b/proto/internal/temporal/server/api/persistence/v1/executions.proto index d6c26a1af14..cfc80e6534d 100644 --- a/proto/internal/temporal/server/api/persistence/v1/executions.proto +++ b/proto/internal/temporal/server/api/persistence/v1/executions.proto @@ -321,6 +321,10 @@ message WorkflowExecutionInfo { // Used only within server persistence; never flows to the public API. message LastNotifiedTargetVersion { temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 1; + // Revision number of the task queue routing config at the time the + // notification was sent. Carried forward to DeclinedTargetVersionUpgrade + // at continue-as-new time. + int64 revision_number = 2; } message ExecutionStats { diff --git a/service/history/api/create_workflow_util.go b/service/history/api/create_workflow_util.go index 784a456286e..c1929216554 100644 --- a/service/history/api/create_workflow_util.go +++ b/service/history/api/create_workflow_util.go @@ -113,6 +113,7 @@ func NewWorkflowWithSignal( nil, false, nil, + 0, ) if err != nil { // Unable to add WorkflowTaskStarted event to history diff --git a/service/history/api/recordworkflowtaskstarted/api.go b/service/history/api/recordworkflowtaskstarted/api.go index e75db5684e0..19dd8ac944b 100644 --- a/service/history/api/recordworkflowtaskstarted/api.go +++ b/service/history/api/recordworkflowtaskstarted/api.go @@ -170,6 +170,7 @@ func Invoke( workflowLease.GetContext().UpdateRegistry(ctx), false, req.TargetDeploymentVersion, + req.TaskDispatchRevisionNumber, ) if err != nil { // Unable to add WorkflowTaskStarted event to history diff --git a/service/history/api/respondworkflowtaskcompleted/api.go b/service/history/api/respondworkflowtaskcompleted/api.go index 7520779e124..b3ea0803c7c 100644 --- a/service/history/api/respondworkflowtaskcompleted/api.go +++ b/service/history/api/respondworkflowtaskcompleted/api.go @@ -597,6 +597,7 @@ func (handler *WorkflowTaskCompletedHandler) Invoke( workflowLease.GetContext().UpdateRegistry(ctx), false, nil, + 0, ) if err != nil { return nil, err @@ -722,6 +723,7 @@ func (handler *WorkflowTaskCompletedHandler) Invoke( workflowLease.GetContext().UpdateRegistry(ctx), false, nil, + 0, ) if err != nil { return nil, err diff --git a/service/history/api/respondworkflowtaskcompleted/api_test.go b/service/history/api/respondworkflowtaskcompleted/api_test.go index bbbdcb9a8da..037043ebb80 100644 --- a/service/history/api/respondworkflowtaskcompleted/api_test.go +++ b/service/history/api/respondworkflowtaskcompleted/api_test.go @@ -726,6 +726,7 @@ func (s *WorkflowTaskCompletedHandlerSuite) createSentUpdate(tv *testvars.TestVa nil, false, nil, + 0, ) taskToken := &tokenspb.Task{ Attempt: 1, @@ -805,6 +806,7 @@ func (s *WorkflowTaskCompletedHandlerSuite) createPausedWorkflowWithWFT(tv *test nil, false, nil, + 0, ) _, _ = ms.AddWorkflowTaskCompletedEvent(wt, &workflowservice.RespondWorkflowTaskCompletedRequest{ Identity: tv.Any().String(), @@ -822,6 +824,7 @@ func (s *WorkflowTaskCompletedHandlerSuite) createPausedWorkflowWithWFT(tv *test nil, false, nil, + 0, ) taskToken := &tokenspb.Task{ Attempt: 1, diff --git a/service/history/api/verifyfirstworkflowtaskscheduled/api_test.go b/service/history/api/verifyfirstworkflowtaskscheduled/api_test.go index 5fb18c9a84e..d11b0a905b4 100644 --- a/service/history/api/verifyfirstworkflowtaskscheduled/api_test.go +++ b/service/history/api/verifyfirstworkflowtaskscheduled/api_test.go @@ -238,6 +238,7 @@ func (s *VerifyFirstWorkflowTaskScheduledSuite) TestVerifyFirstWorkflowTaskSched nil, false, nil, + 0, ) wt.StartedEventID = workflowTasksStartEvent.GetEventId() diff --git a/service/history/history_engine_test.go b/service/history/history_engine_test.go index b8f874446aa..1532562a307 100644 --- a/service/history/history_engine_test.go +++ b/service/history/history_engine_test.go @@ -6618,6 +6618,7 @@ func addWorkflowTaskStartedEventWithRequestID(ms historyi.MutableState, schedule nil, false, nil, + 0, ) return event diff --git a/service/history/interfaces/chasm_tree_mock.go b/service/history/interfaces/chasm_tree_mock.go index ab855b72c23..a1df36c9a5a 100644 --- a/service/history/interfaces/chasm_tree_mock.go +++ b/service/history/interfaces/chasm_tree_mock.go @@ -1,10 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. // Source: chasm_tree.go -// -// Generated by this command: -// -// mockgen -package interfaces -source chasm_tree.go -destination chasm_tree_mock.go -// // Package interfaces is a generated GoMock package. package interfaces @@ -14,17 +9,16 @@ import ( reflect "reflect" time "time" + gomock "github.com/golang/mock/gomock" persistence "go.temporal.io/server/api/persistence/v1" chasm "go.temporal.io/server/chasm" tasks "go.temporal.io/server/service/history/tasks" - gomock "go.uber.org/mock/gomock" ) // MockChasmTree is a mock of ChasmTree interface. type MockChasmTree struct { ctrl *gomock.Controller recorder *MockChasmTreeMockRecorder - isgomock struct{} } // MockChasmTreeMockRecorder is the mock recorder for MockChasmTree. @@ -53,7 +47,7 @@ func (m *MockChasmTree) ApplyMutation(arg0 chasm.NodesMutation) error { } // ApplyMutation indicates an expected call of ApplyMutation. -func (mr *MockChasmTreeMockRecorder) ApplyMutation(arg0 any) *gomock.Call { +func (mr *MockChasmTreeMockRecorder) ApplyMutation(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyMutation", reflect.TypeOf((*MockChasmTree)(nil).ApplyMutation), arg0) } @@ -67,7 +61,7 @@ func (m *MockChasmTree) ApplySnapshot(arg0 chasm.NodesSnapshot) error { } // ApplySnapshot indicates an expected call of ApplySnapshot. -func (mr *MockChasmTreeMockRecorder) ApplySnapshot(arg0 any) *gomock.Call { +func (mr *MockChasmTreeMockRecorder) ApplySnapshot(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplySnapshot", reflect.TypeOf((*MockChasmTree)(nil).ApplySnapshot), arg0) } @@ -81,7 +75,7 @@ func (m *MockChasmTree) ApplySystemMutation(arg0 chasm.NodesMutation) error { } // ApplySystemMutation indicates an expected call of ApplySystemMutation. -func (mr *MockChasmTreeMockRecorder) ApplySystemMutation(arg0 any) *gomock.Call { +func (mr *MockChasmTreeMockRecorder) ApplySystemMutation(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplySystemMutation", reflect.TypeOf((*MockChasmTree)(nil).ApplySystemMutation), arg0) } @@ -140,7 +134,7 @@ func (m *MockChasmTree) Component(arg0 chasm.Context, arg1 chasm.ComponentRef) ( } // Component indicates an expected call of Component. -func (mr *MockChasmTreeMockRecorder) Component(arg0, arg1 any) *gomock.Call { +func (mr *MockChasmTreeMockRecorder) Component(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Component", reflect.TypeOf((*MockChasmTree)(nil).Component), arg0, arg1) } @@ -155,7 +149,7 @@ func (m *MockChasmTree) ComponentByPath(arg0 chasm.Context, arg1 []string) (chas } // ComponentByPath indicates an expected call of ComponentByPath. -func (mr *MockChasmTreeMockRecorder) ComponentByPath(arg0, arg1 any) *gomock.Call { +func (mr *MockChasmTreeMockRecorder) ComponentByPath(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ComponentByPath", reflect.TypeOf((*MockChasmTree)(nil).ComponentByPath), arg0, arg1) } @@ -169,7 +163,7 @@ func (m *MockChasmTree) EachPureTask(deadline time.Time, callback func(chasm.Nod } // EachPureTask indicates an expected call of EachPureTask. -func (mr *MockChasmTreeMockRecorder) EachPureTask(deadline, callback any) *gomock.Call { +func (mr *MockChasmTreeMockRecorder) EachPureTask(deadline, callback interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EachPureTask", reflect.TypeOf((*MockChasmTree)(nil).EachPureTask), deadline, callback) } @@ -183,7 +177,7 @@ func (m *MockChasmTree) ExecuteSideEffectDiscardTask(ctx context.Context, execut } // ExecuteSideEffectDiscardTask indicates an expected call of ExecuteSideEffectDiscardTask. -func (mr *MockChasmTreeMockRecorder) ExecuteSideEffectDiscardTask(ctx, executionKey, task, validate any) *gomock.Call { +func (mr *MockChasmTreeMockRecorder) ExecuteSideEffectDiscardTask(ctx, executionKey, task, validate interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteSideEffectDiscardTask", reflect.TypeOf((*MockChasmTree)(nil).ExecuteSideEffectDiscardTask), ctx, executionKey, task, validate) } @@ -197,7 +191,7 @@ func (m *MockChasmTree) ExecuteSideEffectTask(ctx context.Context, executionKey } // ExecuteSideEffectTask indicates an expected call of ExecuteSideEffectTask. -func (mr *MockChasmTreeMockRecorder) ExecuteSideEffectTask(ctx, executionKey, task, validate any) *gomock.Call { +func (mr *MockChasmTreeMockRecorder) ExecuteSideEffectTask(ctx, executionKey, task, validate interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteSideEffectTask", reflect.TypeOf((*MockChasmTree)(nil).ExecuteSideEffectTask), ctx, executionKey, task, validate) } @@ -225,7 +219,7 @@ func (m *MockChasmTree) IsStale(arg0 chasm.ComponentRef) error { } // IsStale indicates an expected call of IsStale. -func (mr *MockChasmTreeMockRecorder) IsStale(arg0 any) *gomock.Call { +func (mr *MockChasmTreeMockRecorder) IsStale(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsStale", reflect.TypeOf((*MockChasmTree)(nil).IsStale), arg0) } @@ -267,7 +261,7 @@ func (m *MockChasmTree) Snapshot(arg0 *persistence.VersionedTransition) chasm.No } // Snapshot indicates an expected call of Snapshot. -func (mr *MockChasmTreeMockRecorder) Snapshot(arg0 any) *gomock.Call { +func (mr *MockChasmTreeMockRecorder) Snapshot(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Snapshot", reflect.TypeOf((*MockChasmTree)(nil).Snapshot), arg0) } @@ -281,7 +275,7 @@ func (m *MockChasmTree) Terminate(arg0 chasm.TerminateComponentRequest) error { } // Terminate indicates an expected call of Terminate. -func (mr *MockChasmTreeMockRecorder) Terminate(arg0 any) *gomock.Call { +func (mr *MockChasmTreeMockRecorder) Terminate(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Terminate", reflect.TypeOf((*MockChasmTree)(nil).Terminate), arg0) } @@ -296,7 +290,7 @@ func (m *MockChasmTree) ValidateSideEffectTask(ctx context.Context, task *tasks. } // ValidateSideEffectTask indicates an expected call of ValidateSideEffectTask. -func (mr *MockChasmTreeMockRecorder) ValidateSideEffectTask(ctx, task any) *gomock.Call { +func (mr *MockChasmTreeMockRecorder) ValidateSideEffectTask(ctx, task interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateSideEffectTask", reflect.TypeOf((*MockChasmTree)(nil).ValidateSideEffectTask), ctx, task) } diff --git a/service/history/interfaces/mutable_state.go b/service/history/interfaces/mutable_state.go index 68aedfd2ac9..032988d9deb 100644 --- a/service/history/interfaces/mutable_state.go +++ b/service/history/interfaces/mutable_state.go @@ -73,7 +73,7 @@ type ( AddFirstWorkflowTaskScheduled(parentClock *clockspb.VectorClock, event *historypb.HistoryEvent, bypassTaskGeneration bool) (int64, error) AddWorkflowTaskScheduledEvent(bypassTaskGeneration bool, workflowTaskType enumsspb.WorkflowTaskType) (*WorkflowTaskInfo, error) AddWorkflowTaskScheduledEventAsHeartbeat(bypassTaskGeneration bool, originalScheduledTimestamp *timestamppb.Timestamp, workflowTaskType enumsspb.WorkflowTaskType) (*WorkflowTaskInfo, error) - AddWorkflowTaskStartedEvent(int64, string, *taskqueuepb.TaskQueue, string, *commonpb.WorkerVersionStamp, *taskqueuespb.BuildIdRedirectInfo, update.Registry, bool, *deploymentpb.WorkerDeploymentVersion) (*historypb.HistoryEvent, *WorkflowTaskInfo, error) + AddWorkflowTaskStartedEvent(int64, string, *taskqueuepb.TaskQueue, string, *commonpb.WorkerVersionStamp, *taskqueuespb.BuildIdRedirectInfo, update.Registry, bool, *deploymentpb.WorkerDeploymentVersion, int64) (*historypb.HistoryEvent, *WorkflowTaskInfo, error) AddWorkflowTaskTimedOutEvent(workflowTask *WorkflowTaskInfo) (*historypb.HistoryEvent, error) AddExternalWorkflowExecutionCancelRequested(int64, namespace.Name, namespace.ID, string, string) (*historypb.HistoryEvent, error) AddExternalWorkflowExecutionSignaled(int64, namespace.Name, namespace.ID, string, string, string) (*historypb.HistoryEvent, error) diff --git a/service/history/interfaces/mutable_state_mock.go b/service/history/interfaces/mutable_state_mock.go index 103a53840e6..76cf6d50bab 100644 --- a/service/history/interfaces/mutable_state_mock.go +++ b/service/history/interfaces/mutable_state_mock.go @@ -1,10 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. // Source: mutable_state.go -// -// Generated by this command: -// -// mockgen -package interfaces -source mutable_state.go -destination mutable_state_mock.go -// // Package interfaces is a generated GoMock package. package interfaces @@ -14,34 +9,34 @@ import ( reflect "reflect" time "time" - command "go.temporal.io/api/command/v1" - common "go.temporal.io/api/common/v1" - deployment "go.temporal.io/api/deployment/v1" - enums "go.temporal.io/api/enums/v1" - failure "go.temporal.io/api/failure/v1" - history "go.temporal.io/api/history/v1" - taskqueue "go.temporal.io/api/taskqueue/v1" - update "go.temporal.io/api/update/v1" - workflow "go.temporal.io/api/workflow/v1" - workflowservice "go.temporal.io/api/workflowservice/v1" - clock "go.temporal.io/server/api/clock/v1" - enums0 "go.temporal.io/server/api/enums/v1" - history0 "go.temporal.io/server/api/history/v1" - historyservice "go.temporal.io/server/api/historyservice/v1" - persistence "go.temporal.io/server/api/persistence/v1" - taskqueue0 "go.temporal.io/server/api/taskqueue/v1" - workflow0 "go.temporal.io/server/api/workflow/v1" + gomock "github.com/golang/mock/gomock" + v1 "go.temporal.io/api/command/v1" + v10 "go.temporal.io/api/common/v1" + v11 "go.temporal.io/api/deployment/v1" + v12 "go.temporal.io/api/enums/v1" + v13 "go.temporal.io/api/failure/v1" + v14 "go.temporal.io/api/history/v1" + v15 "go.temporal.io/api/taskqueue/v1" + v16 "go.temporal.io/api/update/v1" + v17 "go.temporal.io/api/workflow/v1" + v18 "go.temporal.io/api/workflowservice/v1" + v19 "go.temporal.io/server/api/clock/v1" + v110 "go.temporal.io/server/api/enums/v1" + v111 "go.temporal.io/server/api/history/v1" + v112 "go.temporal.io/server/api/historyservice/v1" + v113 "go.temporal.io/server/api/persistence/v1" + v114 "go.temporal.io/server/api/taskqueue/v1" + v115 "go.temporal.io/server/api/workflow/v1" chasm "go.temporal.io/server/chasm" - workflow1 "go.temporal.io/server/chasm/lib/workflow" + workflow "go.temporal.io/server/chasm/lib/workflow" definition "go.temporal.io/server/common/definition" namespace "go.temporal.io/server/common/namespace" - persistence0 "go.temporal.io/server/common/persistence" + persistence "go.temporal.io/server/common/persistence" worker_versioning "go.temporal.io/server/common/worker_versioning" historybuilder "go.temporal.io/server/service/history/historybuilder" hsm "go.temporal.io/server/service/history/hsm" tasks "go.temporal.io/server/service/history/tasks" - update0 "go.temporal.io/server/service/history/workflow/update" - gomock "go.uber.org/mock/gomock" + update "go.temporal.io/server/service/history/workflow/update" durationpb "google.golang.org/protobuf/types/known/durationpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) @@ -50,7 +45,6 @@ import ( type MockMutableState struct { ctrl *gomock.Controller recorder *MockMutableStateMockRecorder - isgomock struct{} } // MockMutableStateMockRecorder is the mock recorder for MockMutableState. @@ -71,229 +65,229 @@ func (m *MockMutableState) EXPECT() *MockMutableStateMockRecorder { } // AddActivityTaskCancelRequestedEvent mocks base method. -func (m *MockMutableState) AddActivityTaskCancelRequestedEvent(arg0, arg1 int64, arg2 string) (*history.HistoryEvent, *persistence.ActivityInfo, error) { +func (m *MockMutableState) AddActivityTaskCancelRequestedEvent(arg0, arg1 int64, arg2 string) (*v14.HistoryEvent, *v113.ActivityInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddActivityTaskCancelRequestedEvent", arg0, arg1, arg2) - ret0, _ := ret[0].(*history.HistoryEvent) - ret1, _ := ret[1].(*persistence.ActivityInfo) + ret0, _ := ret[0].(*v14.HistoryEvent) + ret1, _ := ret[1].(*v113.ActivityInfo) ret2, _ := ret[2].(error) return ret0, ret1, ret2 } // AddActivityTaskCancelRequestedEvent indicates an expected call of AddActivityTaskCancelRequestedEvent. -func (mr *MockMutableStateMockRecorder) AddActivityTaskCancelRequestedEvent(arg0, arg1, arg2 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddActivityTaskCancelRequestedEvent(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddActivityTaskCancelRequestedEvent", reflect.TypeOf((*MockMutableState)(nil).AddActivityTaskCancelRequestedEvent), arg0, arg1, arg2) } // AddActivityTaskCanceledEvent mocks base method. -func (m *MockMutableState) AddActivityTaskCanceledEvent(arg0, arg1, arg2 int64, arg3 *common.Payloads, arg4 string) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddActivityTaskCanceledEvent(arg0, arg1, arg2 int64, arg3 *v10.Payloads, arg4 string) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddActivityTaskCanceledEvent", arg0, arg1, arg2, arg3, arg4) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddActivityTaskCanceledEvent indicates an expected call of AddActivityTaskCanceledEvent. -func (mr *MockMutableStateMockRecorder) AddActivityTaskCanceledEvent(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddActivityTaskCanceledEvent(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddActivityTaskCanceledEvent", reflect.TypeOf((*MockMutableState)(nil).AddActivityTaskCanceledEvent), arg0, arg1, arg2, arg3, arg4) } // AddActivityTaskCompletedEvent mocks base method. -func (m *MockMutableState) AddActivityTaskCompletedEvent(arg0, arg1 int64, arg2 *workflowservice.RespondActivityTaskCompletedRequest) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddActivityTaskCompletedEvent(arg0, arg1 int64, arg2 *v18.RespondActivityTaskCompletedRequest) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddActivityTaskCompletedEvent", arg0, arg1, arg2) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddActivityTaskCompletedEvent indicates an expected call of AddActivityTaskCompletedEvent. -func (mr *MockMutableStateMockRecorder) AddActivityTaskCompletedEvent(arg0, arg1, arg2 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddActivityTaskCompletedEvent(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddActivityTaskCompletedEvent", reflect.TypeOf((*MockMutableState)(nil).AddActivityTaskCompletedEvent), arg0, arg1, arg2) } // AddActivityTaskFailedEvent mocks base method. -func (m *MockMutableState) AddActivityTaskFailedEvent(arg0, arg1 int64, arg2 *failure.Failure, arg3 enums.RetryState, arg4 string, arg5 *common.WorkerVersionStamp) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddActivityTaskFailedEvent(arg0, arg1 int64, arg2 *v13.Failure, arg3 v12.RetryState, arg4 string, arg5 *v10.WorkerVersionStamp) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddActivityTaskFailedEvent", arg0, arg1, arg2, arg3, arg4, arg5) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddActivityTaskFailedEvent indicates an expected call of AddActivityTaskFailedEvent. -func (mr *MockMutableStateMockRecorder) AddActivityTaskFailedEvent(arg0, arg1, arg2, arg3, arg4, arg5 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddActivityTaskFailedEvent(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddActivityTaskFailedEvent", reflect.TypeOf((*MockMutableState)(nil).AddActivityTaskFailedEvent), arg0, arg1, arg2, arg3, arg4, arg5) } // AddActivityTaskScheduledEvent mocks base method. -func (m *MockMutableState) AddActivityTaskScheduledEvent(arg0 int64, arg1 *command.ScheduleActivityTaskCommandAttributes, arg2 bool) (*history.HistoryEvent, *persistence.ActivityInfo, error) { +func (m *MockMutableState) AddActivityTaskScheduledEvent(arg0 int64, arg1 *v1.ScheduleActivityTaskCommandAttributes, arg2 bool) (*v14.HistoryEvent, *v113.ActivityInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddActivityTaskScheduledEvent", arg0, arg1, arg2) - ret0, _ := ret[0].(*history.HistoryEvent) - ret1, _ := ret[1].(*persistence.ActivityInfo) + ret0, _ := ret[0].(*v14.HistoryEvent) + ret1, _ := ret[1].(*v113.ActivityInfo) ret2, _ := ret[2].(error) return ret0, ret1, ret2 } // AddActivityTaskScheduledEvent indicates an expected call of AddActivityTaskScheduledEvent. -func (mr *MockMutableStateMockRecorder) AddActivityTaskScheduledEvent(arg0, arg1, arg2 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddActivityTaskScheduledEvent(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddActivityTaskScheduledEvent", reflect.TypeOf((*MockMutableState)(nil).AddActivityTaskScheduledEvent), arg0, arg1, arg2) } // AddActivityTaskStartedEvent mocks base method. -func (m *MockMutableState) AddActivityTaskStartedEvent(arg0 *persistence.ActivityInfo, arg1 int64, arg2, arg3 string, arg4 *common.WorkerVersionStamp, arg5 *deployment.Deployment, arg6 *taskqueue0.BuildIdRedirectInfo) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddActivityTaskStartedEvent(arg0 *v113.ActivityInfo, arg1 int64, arg2, arg3 string, arg4 *v10.WorkerVersionStamp, arg5 *v11.Deployment, arg6 *v114.BuildIdRedirectInfo) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddActivityTaskStartedEvent", arg0, arg1, arg2, arg3, arg4, arg5, arg6) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddActivityTaskStartedEvent indicates an expected call of AddActivityTaskStartedEvent. -func (mr *MockMutableStateMockRecorder) AddActivityTaskStartedEvent(arg0, arg1, arg2, arg3, arg4, arg5, arg6 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddActivityTaskStartedEvent(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddActivityTaskStartedEvent", reflect.TypeOf((*MockMutableState)(nil).AddActivityTaskStartedEvent), arg0, arg1, arg2, arg3, arg4, arg5, arg6) } // AddActivityTaskTimedOutEvent mocks base method. -func (m *MockMutableState) AddActivityTaskTimedOutEvent(arg0, arg1 int64, arg2 *failure.Failure, arg3 enums.RetryState) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddActivityTaskTimedOutEvent(arg0, arg1 int64, arg2 *v13.Failure, arg3 v12.RetryState) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddActivityTaskTimedOutEvent", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddActivityTaskTimedOutEvent indicates an expected call of AddActivityTaskTimedOutEvent. -func (mr *MockMutableStateMockRecorder) AddActivityTaskTimedOutEvent(arg0, arg1, arg2, arg3 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddActivityTaskTimedOutEvent(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddActivityTaskTimedOutEvent", reflect.TypeOf((*MockMutableState)(nil).AddActivityTaskTimedOutEvent), arg0, arg1, arg2, arg3) } // AddChildWorkflowExecutionCanceledEvent mocks base method. -func (m *MockMutableState) AddChildWorkflowExecutionCanceledEvent(arg0 int64, arg1 *common.WorkflowExecution, arg2 *history.WorkflowExecutionCanceledEventAttributes) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddChildWorkflowExecutionCanceledEvent(arg0 int64, arg1 *v10.WorkflowExecution, arg2 *v14.WorkflowExecutionCanceledEventAttributes) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddChildWorkflowExecutionCanceledEvent", arg0, arg1, arg2) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddChildWorkflowExecutionCanceledEvent indicates an expected call of AddChildWorkflowExecutionCanceledEvent. -func (mr *MockMutableStateMockRecorder) AddChildWorkflowExecutionCanceledEvent(arg0, arg1, arg2 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddChildWorkflowExecutionCanceledEvent(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddChildWorkflowExecutionCanceledEvent", reflect.TypeOf((*MockMutableState)(nil).AddChildWorkflowExecutionCanceledEvent), arg0, arg1, arg2) } // AddChildWorkflowExecutionCompletedEvent mocks base method. -func (m *MockMutableState) AddChildWorkflowExecutionCompletedEvent(arg0 int64, arg1 *common.WorkflowExecution, arg2 *history.WorkflowExecutionCompletedEventAttributes) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddChildWorkflowExecutionCompletedEvent(arg0 int64, arg1 *v10.WorkflowExecution, arg2 *v14.WorkflowExecutionCompletedEventAttributes) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddChildWorkflowExecutionCompletedEvent", arg0, arg1, arg2) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddChildWorkflowExecutionCompletedEvent indicates an expected call of AddChildWorkflowExecutionCompletedEvent. -func (mr *MockMutableStateMockRecorder) AddChildWorkflowExecutionCompletedEvent(arg0, arg1, arg2 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddChildWorkflowExecutionCompletedEvent(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddChildWorkflowExecutionCompletedEvent", reflect.TypeOf((*MockMutableState)(nil).AddChildWorkflowExecutionCompletedEvent), arg0, arg1, arg2) } // AddChildWorkflowExecutionFailedEvent mocks base method. -func (m *MockMutableState) AddChildWorkflowExecutionFailedEvent(arg0 int64, arg1 *common.WorkflowExecution, arg2 *history.WorkflowExecutionFailedEventAttributes) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddChildWorkflowExecutionFailedEvent(arg0 int64, arg1 *v10.WorkflowExecution, arg2 *v14.WorkflowExecutionFailedEventAttributes) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddChildWorkflowExecutionFailedEvent", arg0, arg1, arg2) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddChildWorkflowExecutionFailedEvent indicates an expected call of AddChildWorkflowExecutionFailedEvent. -func (mr *MockMutableStateMockRecorder) AddChildWorkflowExecutionFailedEvent(arg0, arg1, arg2 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddChildWorkflowExecutionFailedEvent(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddChildWorkflowExecutionFailedEvent", reflect.TypeOf((*MockMutableState)(nil).AddChildWorkflowExecutionFailedEvent), arg0, arg1, arg2) } // AddChildWorkflowExecutionStartedEvent mocks base method. -func (m *MockMutableState) AddChildWorkflowExecutionStartedEvent(arg0 *common.WorkflowExecution, arg1 *common.WorkflowType, arg2 int64, arg3 *common.Header, arg4 *clock.VectorClock) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddChildWorkflowExecutionStartedEvent(arg0 *v10.WorkflowExecution, arg1 *v10.WorkflowType, arg2 int64, arg3 *v10.Header, arg4 *v19.VectorClock) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddChildWorkflowExecutionStartedEvent", arg0, arg1, arg2, arg3, arg4) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddChildWorkflowExecutionStartedEvent indicates an expected call of AddChildWorkflowExecutionStartedEvent. -func (mr *MockMutableStateMockRecorder) AddChildWorkflowExecutionStartedEvent(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddChildWorkflowExecutionStartedEvent(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddChildWorkflowExecutionStartedEvent", reflect.TypeOf((*MockMutableState)(nil).AddChildWorkflowExecutionStartedEvent), arg0, arg1, arg2, arg3, arg4) } // AddChildWorkflowExecutionTerminatedEvent mocks base method. -func (m *MockMutableState) AddChildWorkflowExecutionTerminatedEvent(arg0 int64, arg1 *common.WorkflowExecution) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddChildWorkflowExecutionTerminatedEvent(arg0 int64, arg1 *v10.WorkflowExecution) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddChildWorkflowExecutionTerminatedEvent", arg0, arg1) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddChildWorkflowExecutionTerminatedEvent indicates an expected call of AddChildWorkflowExecutionTerminatedEvent. -func (mr *MockMutableStateMockRecorder) AddChildWorkflowExecutionTerminatedEvent(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddChildWorkflowExecutionTerminatedEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddChildWorkflowExecutionTerminatedEvent", reflect.TypeOf((*MockMutableState)(nil).AddChildWorkflowExecutionTerminatedEvent), arg0, arg1) } // AddChildWorkflowExecutionTimedOutEvent mocks base method. -func (m *MockMutableState) AddChildWorkflowExecutionTimedOutEvent(arg0 int64, arg1 *common.WorkflowExecution, arg2 *history.WorkflowExecutionTimedOutEventAttributes) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddChildWorkflowExecutionTimedOutEvent(arg0 int64, arg1 *v10.WorkflowExecution, arg2 *v14.WorkflowExecutionTimedOutEventAttributes) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddChildWorkflowExecutionTimedOutEvent", arg0, arg1, arg2) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddChildWorkflowExecutionTimedOutEvent indicates an expected call of AddChildWorkflowExecutionTimedOutEvent. -func (mr *MockMutableStateMockRecorder) AddChildWorkflowExecutionTimedOutEvent(arg0, arg1, arg2 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddChildWorkflowExecutionTimedOutEvent(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddChildWorkflowExecutionTimedOutEvent", reflect.TypeOf((*MockMutableState)(nil).AddChildWorkflowExecutionTimedOutEvent), arg0, arg1, arg2) } // AddCompletedWorkflowEvent mocks base method. -func (m *MockMutableState) AddCompletedWorkflowEvent(arg0 int64, arg1 *command.CompleteWorkflowExecutionCommandAttributes, arg2 string) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddCompletedWorkflowEvent(arg0 int64, arg1 *v1.CompleteWorkflowExecutionCommandAttributes, arg2 string) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddCompletedWorkflowEvent", arg0, arg1, arg2) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddCompletedWorkflowEvent indicates an expected call of AddCompletedWorkflowEvent. -func (mr *MockMutableStateMockRecorder) AddCompletedWorkflowEvent(arg0, arg1, arg2 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddCompletedWorkflowEvent(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddCompletedWorkflowEvent", reflect.TypeOf((*MockMutableState)(nil).AddCompletedWorkflowEvent), arg0, arg1, arg2) } // AddContinueAsNewEvent mocks base method. -func (m *MockMutableState) AddContinueAsNewEvent(arg0 context.Context, arg1, arg2 int64, arg3 namespace.Name, arg4 *command.ContinueAsNewWorkflowExecutionCommandAttributes, arg5 worker_versioning.IsWFTaskQueueInVersionDetector) (*history.HistoryEvent, MutableState, error) { +func (m *MockMutableState) AddContinueAsNewEvent(arg0 context.Context, arg1, arg2 int64, arg3 namespace.Name, arg4 *v1.ContinueAsNewWorkflowExecutionCommandAttributes, arg5 worker_versioning.IsWFTaskQueueInVersionDetector) (*v14.HistoryEvent, MutableState, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddContinueAsNewEvent", arg0, arg1, arg2, arg3, arg4, arg5) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(MutableState) ret2, _ := ret[2].(error) return ret0, ret1, ret2 } // AddContinueAsNewEvent indicates an expected call of AddContinueAsNewEvent. -func (mr *MockMutableStateMockRecorder) AddContinueAsNewEvent(arg0, arg1, arg2, arg3, arg4, arg5 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddContinueAsNewEvent(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddContinueAsNewEvent", reflect.TypeOf((*MockMutableState)(nil).AddContinueAsNewEvent), arg0, arg1, arg2, arg3, arg4, arg5) } @@ -305,7 +299,7 @@ func (m *MockMutableState) AddExternalPayloadCount(count int64) { } // AddExternalPayloadCount indicates an expected call of AddExternalPayloadCount. -func (mr *MockMutableStateMockRecorder) AddExternalPayloadCount(count any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddExternalPayloadCount(count interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddExternalPayloadCount", reflect.TypeOf((*MockMutableState)(nil).AddExternalPayloadCount), count) } @@ -317,58 +311,58 @@ func (m *MockMutableState) AddExternalPayloadSize(size int64) { } // AddExternalPayloadSize indicates an expected call of AddExternalPayloadSize. -func (mr *MockMutableStateMockRecorder) AddExternalPayloadSize(size any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddExternalPayloadSize(size interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddExternalPayloadSize", reflect.TypeOf((*MockMutableState)(nil).AddExternalPayloadSize), size) } // AddExternalWorkflowExecutionCancelRequested mocks base method. -func (m *MockMutableState) AddExternalWorkflowExecutionCancelRequested(arg0 int64, arg1 namespace.Name, arg2 namespace.ID, arg3, arg4 string) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddExternalWorkflowExecutionCancelRequested(arg0 int64, arg1 namespace.Name, arg2 namespace.ID, arg3, arg4 string) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddExternalWorkflowExecutionCancelRequested", arg0, arg1, arg2, arg3, arg4) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddExternalWorkflowExecutionCancelRequested indicates an expected call of AddExternalWorkflowExecutionCancelRequested. -func (mr *MockMutableStateMockRecorder) AddExternalWorkflowExecutionCancelRequested(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddExternalWorkflowExecutionCancelRequested(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddExternalWorkflowExecutionCancelRequested", reflect.TypeOf((*MockMutableState)(nil).AddExternalWorkflowExecutionCancelRequested), arg0, arg1, arg2, arg3, arg4) } // AddExternalWorkflowExecutionSignaled mocks base method. -func (m *MockMutableState) AddExternalWorkflowExecutionSignaled(arg0 int64, arg1 namespace.Name, arg2 namespace.ID, arg3, arg4, arg5 string) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddExternalWorkflowExecutionSignaled(arg0 int64, arg1 namespace.Name, arg2 namespace.ID, arg3, arg4, arg5 string) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddExternalWorkflowExecutionSignaled", arg0, arg1, arg2, arg3, arg4, arg5) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddExternalWorkflowExecutionSignaled indicates an expected call of AddExternalWorkflowExecutionSignaled. -func (mr *MockMutableStateMockRecorder) AddExternalWorkflowExecutionSignaled(arg0, arg1, arg2, arg3, arg4, arg5 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddExternalWorkflowExecutionSignaled(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddExternalWorkflowExecutionSignaled", reflect.TypeOf((*MockMutableState)(nil).AddExternalWorkflowExecutionSignaled), arg0, arg1, arg2, arg3, arg4, arg5) } // AddFailWorkflowEvent mocks base method. -func (m *MockMutableState) AddFailWorkflowEvent(arg0 int64, arg1 enums.RetryState, arg2 *command.FailWorkflowExecutionCommandAttributes, arg3 string) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddFailWorkflowEvent(arg0 int64, arg1 v12.RetryState, arg2 *v1.FailWorkflowExecutionCommandAttributes, arg3 string) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddFailWorkflowEvent", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddFailWorkflowEvent indicates an expected call of AddFailWorkflowEvent. -func (mr *MockMutableStateMockRecorder) AddFailWorkflowEvent(arg0, arg1, arg2, arg3 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddFailWorkflowEvent(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddFailWorkflowEvent", reflect.TypeOf((*MockMutableState)(nil).AddFailWorkflowEvent), arg0, arg1, arg2, arg3) } // AddFirstWorkflowTaskScheduled mocks base method. -func (m *MockMutableState) AddFirstWorkflowTaskScheduled(parentClock *clock.VectorClock, event *history.HistoryEvent, bypassTaskGeneration bool) (int64, error) { +func (m *MockMutableState) AddFirstWorkflowTaskScheduled(parentClock *v19.VectorClock, event *v14.HistoryEvent, bypassTaskGeneration bool) (int64, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddFirstWorkflowTaskScheduled", parentClock, event, bypassTaskGeneration) ret0, _ := ret[0].(int64) @@ -377,21 +371,21 @@ func (m *MockMutableState) AddFirstWorkflowTaskScheduled(parentClock *clock.Vect } // AddFirstWorkflowTaskScheduled indicates an expected call of AddFirstWorkflowTaskScheduled. -func (mr *MockMutableStateMockRecorder) AddFirstWorkflowTaskScheduled(parentClock, event, bypassTaskGeneration any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddFirstWorkflowTaskScheduled(parentClock, event, bypassTaskGeneration interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddFirstWorkflowTaskScheduled", reflect.TypeOf((*MockMutableState)(nil).AddFirstWorkflowTaskScheduled), parentClock, event, bypassTaskGeneration) } // AddHistoryEvent mocks base method. -func (m *MockMutableState) AddHistoryEvent(t enums.EventType, setAttributes func(*history.HistoryEvent)) *history.HistoryEvent { +func (m *MockMutableState) AddHistoryEvent(t v12.EventType, setAttributes func(*v14.HistoryEvent)) *v14.HistoryEvent { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddHistoryEvent", t, setAttributes) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) return ret0 } // AddHistoryEvent indicates an expected call of AddHistoryEvent. -func (mr *MockMutableStateMockRecorder) AddHistoryEvent(t, setAttributes any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddHistoryEvent(t, setAttributes interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddHistoryEvent", reflect.TypeOf((*MockMutableState)(nil).AddHistoryEvent), t, setAttributes) } @@ -403,96 +397,96 @@ func (m *MockMutableState) AddHistorySize(size int64) { } // AddHistorySize indicates an expected call of AddHistorySize. -func (mr *MockMutableStateMockRecorder) AddHistorySize(size any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddHistorySize(size interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddHistorySize", reflect.TypeOf((*MockMutableState)(nil).AddHistorySize), size) } // AddReapplyCandidateEvent mocks base method. -func (m *MockMutableState) AddReapplyCandidateEvent(event *history.HistoryEvent) { +func (m *MockMutableState) AddReapplyCandidateEvent(event *v14.HistoryEvent) { m.ctrl.T.Helper() m.ctrl.Call(m, "AddReapplyCandidateEvent", event) } // AddReapplyCandidateEvent indicates an expected call of AddReapplyCandidateEvent. -func (mr *MockMutableStateMockRecorder) AddReapplyCandidateEvent(event any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddReapplyCandidateEvent(event interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddReapplyCandidateEvent", reflect.TypeOf((*MockMutableState)(nil).AddReapplyCandidateEvent), event) } // AddRecordMarkerEvent mocks base method. -func (m *MockMutableState) AddRecordMarkerEvent(arg0 int64, arg1 *command.RecordMarkerCommandAttributes) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddRecordMarkerEvent(arg0 int64, arg1 *v1.RecordMarkerCommandAttributes) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddRecordMarkerEvent", arg0, arg1) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddRecordMarkerEvent indicates an expected call of AddRecordMarkerEvent. -func (mr *MockMutableStateMockRecorder) AddRecordMarkerEvent(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddRecordMarkerEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRecordMarkerEvent", reflect.TypeOf((*MockMutableState)(nil).AddRecordMarkerEvent), arg0, arg1) } // AddRequestCancelExternalWorkflowExecutionFailedEvent mocks base method. -func (m *MockMutableState) AddRequestCancelExternalWorkflowExecutionFailedEvent(arg0 int64, arg1 namespace.Name, arg2 namespace.ID, arg3, arg4 string, arg5 enums.CancelExternalWorkflowExecutionFailedCause) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddRequestCancelExternalWorkflowExecutionFailedEvent(arg0 int64, arg1 namespace.Name, arg2 namespace.ID, arg3, arg4 string, arg5 v12.CancelExternalWorkflowExecutionFailedCause) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddRequestCancelExternalWorkflowExecutionFailedEvent", arg0, arg1, arg2, arg3, arg4, arg5) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddRequestCancelExternalWorkflowExecutionFailedEvent indicates an expected call of AddRequestCancelExternalWorkflowExecutionFailedEvent. -func (mr *MockMutableStateMockRecorder) AddRequestCancelExternalWorkflowExecutionFailedEvent(arg0, arg1, arg2, arg3, arg4, arg5 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddRequestCancelExternalWorkflowExecutionFailedEvent(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRequestCancelExternalWorkflowExecutionFailedEvent", reflect.TypeOf((*MockMutableState)(nil).AddRequestCancelExternalWorkflowExecutionFailedEvent), arg0, arg1, arg2, arg3, arg4, arg5) } // AddRequestCancelExternalWorkflowExecutionInitiatedEvent mocks base method. -func (m *MockMutableState) AddRequestCancelExternalWorkflowExecutionInitiatedEvent(arg0 int64, arg1 string, arg2 *command.RequestCancelExternalWorkflowExecutionCommandAttributes, arg3 namespace.ID) (*history.HistoryEvent, *persistence.RequestCancelInfo, error) { +func (m *MockMutableState) AddRequestCancelExternalWorkflowExecutionInitiatedEvent(arg0 int64, arg1 string, arg2 *v1.RequestCancelExternalWorkflowExecutionCommandAttributes, arg3 namespace.ID) (*v14.HistoryEvent, *v113.RequestCancelInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddRequestCancelExternalWorkflowExecutionInitiatedEvent", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].(*history.HistoryEvent) - ret1, _ := ret[1].(*persistence.RequestCancelInfo) + ret0, _ := ret[0].(*v14.HistoryEvent) + ret1, _ := ret[1].(*v113.RequestCancelInfo) ret2, _ := ret[2].(error) return ret0, ret1, ret2 } // AddRequestCancelExternalWorkflowExecutionInitiatedEvent indicates an expected call of AddRequestCancelExternalWorkflowExecutionInitiatedEvent. -func (mr *MockMutableStateMockRecorder) AddRequestCancelExternalWorkflowExecutionInitiatedEvent(arg0, arg1, arg2, arg3 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddRequestCancelExternalWorkflowExecutionInitiatedEvent(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRequestCancelExternalWorkflowExecutionInitiatedEvent", reflect.TypeOf((*MockMutableState)(nil).AddRequestCancelExternalWorkflowExecutionInitiatedEvent), arg0, arg1, arg2, arg3) } // AddSignalExternalWorkflowExecutionFailedEvent mocks base method. -func (m *MockMutableState) AddSignalExternalWorkflowExecutionFailedEvent(arg0 int64, arg1 namespace.Name, arg2 namespace.ID, arg3, arg4, arg5 string, arg6 enums.SignalExternalWorkflowExecutionFailedCause) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddSignalExternalWorkflowExecutionFailedEvent(arg0 int64, arg1 namespace.Name, arg2 namespace.ID, arg3, arg4, arg5 string, arg6 v12.SignalExternalWorkflowExecutionFailedCause) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddSignalExternalWorkflowExecutionFailedEvent", arg0, arg1, arg2, arg3, arg4, arg5, arg6) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddSignalExternalWorkflowExecutionFailedEvent indicates an expected call of AddSignalExternalWorkflowExecutionFailedEvent. -func (mr *MockMutableStateMockRecorder) AddSignalExternalWorkflowExecutionFailedEvent(arg0, arg1, arg2, arg3, arg4, arg5, arg6 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddSignalExternalWorkflowExecutionFailedEvent(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSignalExternalWorkflowExecutionFailedEvent", reflect.TypeOf((*MockMutableState)(nil).AddSignalExternalWorkflowExecutionFailedEvent), arg0, arg1, arg2, arg3, arg4, arg5, arg6) } // AddSignalExternalWorkflowExecutionInitiatedEvent mocks base method. -func (m *MockMutableState) AddSignalExternalWorkflowExecutionInitiatedEvent(arg0 int64, arg1 string, arg2 *command.SignalExternalWorkflowExecutionCommandAttributes, arg3 namespace.ID) (*history.HistoryEvent, *persistence.SignalInfo, error) { +func (m *MockMutableState) AddSignalExternalWorkflowExecutionInitiatedEvent(arg0 int64, arg1 string, arg2 *v1.SignalExternalWorkflowExecutionCommandAttributes, arg3 namespace.ID) (*v14.HistoryEvent, *v113.SignalInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddSignalExternalWorkflowExecutionInitiatedEvent", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].(*history.HistoryEvent) - ret1, _ := ret[1].(*persistence.SignalInfo) + ret0, _ := ret[0].(*v14.HistoryEvent) + ret1, _ := ret[1].(*v113.SignalInfo) ret2, _ := ret[2].(error) return ret0, ret1, ret2 } // AddSignalExternalWorkflowExecutionInitiatedEvent indicates an expected call of AddSignalExternalWorkflowExecutionInitiatedEvent. -func (mr *MockMutableStateMockRecorder) AddSignalExternalWorkflowExecutionInitiatedEvent(arg0, arg1, arg2, arg3 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddSignalExternalWorkflowExecutionInitiatedEvent(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSignalExternalWorkflowExecutionInitiatedEvent", reflect.TypeOf((*MockMutableState)(nil).AddSignalExternalWorkflowExecutionInitiatedEvent), arg0, arg1, arg2, arg3) } @@ -504,391 +498,391 @@ func (m *MockMutableState) AddSignalRequested(requestID string) { } // AddSignalRequested indicates an expected call of AddSignalRequested. -func (mr *MockMutableStateMockRecorder) AddSignalRequested(requestID any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddSignalRequested(requestID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSignalRequested", reflect.TypeOf((*MockMutableState)(nil).AddSignalRequested), requestID) } // AddStartChildWorkflowExecutionFailedEvent mocks base method. -func (m *MockMutableState) AddStartChildWorkflowExecutionFailedEvent(arg0 int64, arg1 enums.StartChildWorkflowExecutionFailedCause, arg2 *history.StartChildWorkflowExecutionInitiatedEventAttributes) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddStartChildWorkflowExecutionFailedEvent(arg0 int64, arg1 v12.StartChildWorkflowExecutionFailedCause, arg2 *v14.StartChildWorkflowExecutionInitiatedEventAttributes) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddStartChildWorkflowExecutionFailedEvent", arg0, arg1, arg2) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddStartChildWorkflowExecutionFailedEvent indicates an expected call of AddStartChildWorkflowExecutionFailedEvent. -func (mr *MockMutableStateMockRecorder) AddStartChildWorkflowExecutionFailedEvent(arg0, arg1, arg2 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddStartChildWorkflowExecutionFailedEvent(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddStartChildWorkflowExecutionFailedEvent", reflect.TypeOf((*MockMutableState)(nil).AddStartChildWorkflowExecutionFailedEvent), arg0, arg1, arg2) } // AddStartChildWorkflowExecutionInitiatedEvent mocks base method. -func (m *MockMutableState) AddStartChildWorkflowExecutionInitiatedEvent(arg0 int64, arg1 *command.StartChildWorkflowExecutionCommandAttributes, arg2 namespace.ID) (*history.HistoryEvent, *persistence.ChildExecutionInfo, error) { +func (m *MockMutableState) AddStartChildWorkflowExecutionInitiatedEvent(arg0 int64, arg1 *v1.StartChildWorkflowExecutionCommandAttributes, arg2 namespace.ID) (*v14.HistoryEvent, *v113.ChildExecutionInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddStartChildWorkflowExecutionInitiatedEvent", arg0, arg1, arg2) - ret0, _ := ret[0].(*history.HistoryEvent) - ret1, _ := ret[1].(*persistence.ChildExecutionInfo) + ret0, _ := ret[0].(*v14.HistoryEvent) + ret1, _ := ret[1].(*v113.ChildExecutionInfo) ret2, _ := ret[2].(error) return ret0, ret1, ret2 } // AddStartChildWorkflowExecutionInitiatedEvent indicates an expected call of AddStartChildWorkflowExecutionInitiatedEvent. -func (mr *MockMutableStateMockRecorder) AddStartChildWorkflowExecutionInitiatedEvent(arg0, arg1, arg2 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddStartChildWorkflowExecutionInitiatedEvent(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddStartChildWorkflowExecutionInitiatedEvent", reflect.TypeOf((*MockMutableState)(nil).AddStartChildWorkflowExecutionInitiatedEvent), arg0, arg1, arg2) } // AddTasks mocks base method. -func (m *MockMutableState) AddTasks(arg0 ...tasks.Task) { +func (m *MockMutableState) AddTasks(tasks ...tasks.Task) { m.ctrl.T.Helper() - varargs := []any{} - for _, a := range arg0 { + varargs := []interface{}{} + for _, a := range tasks { varargs = append(varargs, a) } m.ctrl.Call(m, "AddTasks", varargs...) } // AddTasks indicates an expected call of AddTasks. -func (mr *MockMutableStateMockRecorder) AddTasks(arg0 ...any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddTasks(tasks ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTasks", reflect.TypeOf((*MockMutableState)(nil).AddTasks), arg0...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTasks", reflect.TypeOf((*MockMutableState)(nil).AddTasks), tasks...) } // AddTimeoutWorkflowEvent mocks base method. -func (m *MockMutableState) AddTimeoutWorkflowEvent(arg0 int64, arg1 enums.RetryState, arg2 string) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddTimeoutWorkflowEvent(arg0 int64, arg1 v12.RetryState, arg2 string) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddTimeoutWorkflowEvent", arg0, arg1, arg2) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddTimeoutWorkflowEvent indicates an expected call of AddTimeoutWorkflowEvent. -func (mr *MockMutableStateMockRecorder) AddTimeoutWorkflowEvent(arg0, arg1, arg2 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddTimeoutWorkflowEvent(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTimeoutWorkflowEvent", reflect.TypeOf((*MockMutableState)(nil).AddTimeoutWorkflowEvent), arg0, arg1, arg2) } // AddTimerCanceledEvent mocks base method. -func (m *MockMutableState) AddTimerCanceledEvent(arg0 int64, arg1 *command.CancelTimerCommandAttributes, arg2 string) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddTimerCanceledEvent(arg0 int64, arg1 *v1.CancelTimerCommandAttributes, arg2 string) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddTimerCanceledEvent", arg0, arg1, arg2) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddTimerCanceledEvent indicates an expected call of AddTimerCanceledEvent. -func (mr *MockMutableStateMockRecorder) AddTimerCanceledEvent(arg0, arg1, arg2 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddTimerCanceledEvent(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTimerCanceledEvent", reflect.TypeOf((*MockMutableState)(nil).AddTimerCanceledEvent), arg0, arg1, arg2) } // AddTimerFiredEvent mocks base method. -func (m *MockMutableState) AddTimerFiredEvent(arg0 string) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddTimerFiredEvent(arg0 string) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddTimerFiredEvent", arg0) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddTimerFiredEvent indicates an expected call of AddTimerFiredEvent. -func (mr *MockMutableStateMockRecorder) AddTimerFiredEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddTimerFiredEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTimerFiredEvent", reflect.TypeOf((*MockMutableState)(nil).AddTimerFiredEvent), arg0) } // AddTimerStartedEvent mocks base method. -func (m *MockMutableState) AddTimerStartedEvent(arg0 int64, arg1 *command.StartTimerCommandAttributes) (*history.HistoryEvent, *persistence.TimerInfo, error) { +func (m *MockMutableState) AddTimerStartedEvent(arg0 int64, arg1 *v1.StartTimerCommandAttributes) (*v14.HistoryEvent, *v113.TimerInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddTimerStartedEvent", arg0, arg1) - ret0, _ := ret[0].(*history.HistoryEvent) - ret1, _ := ret[1].(*persistence.TimerInfo) + ret0, _ := ret[0].(*v14.HistoryEvent) + ret1, _ := ret[1].(*v113.TimerInfo) ret2, _ := ret[2].(error) return ret0, ret1, ret2 } // AddTimerStartedEvent indicates an expected call of AddTimerStartedEvent. -func (mr *MockMutableStateMockRecorder) AddTimerStartedEvent(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddTimerStartedEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTimerStartedEvent", reflect.TypeOf((*MockMutableState)(nil).AddTimerStartedEvent), arg0, arg1) } // AddUpsertWorkflowSearchAttributesEvent mocks base method. -func (m *MockMutableState) AddUpsertWorkflowSearchAttributesEvent(arg0 int64, arg1 *command.UpsertWorkflowSearchAttributesCommandAttributes) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddUpsertWorkflowSearchAttributesEvent(arg0 int64, arg1 *v1.UpsertWorkflowSearchAttributesCommandAttributes) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddUpsertWorkflowSearchAttributesEvent", arg0, arg1) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddUpsertWorkflowSearchAttributesEvent indicates an expected call of AddUpsertWorkflowSearchAttributesEvent. -func (mr *MockMutableStateMockRecorder) AddUpsertWorkflowSearchAttributesEvent(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddUpsertWorkflowSearchAttributesEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddUpsertWorkflowSearchAttributesEvent", reflect.TypeOf((*MockMutableState)(nil).AddUpsertWorkflowSearchAttributesEvent), arg0, arg1) } // AddWorkflowExecutionCancelRequestedEvent mocks base method. -func (m *MockMutableState) AddWorkflowExecutionCancelRequestedEvent(arg0 *historyservice.RequestCancelWorkflowExecutionRequest) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddWorkflowExecutionCancelRequestedEvent(arg0 *v112.RequestCancelWorkflowExecutionRequest) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddWorkflowExecutionCancelRequestedEvent", arg0) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddWorkflowExecutionCancelRequestedEvent indicates an expected call of AddWorkflowExecutionCancelRequestedEvent. -func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionCancelRequestedEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionCancelRequestedEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowExecutionCancelRequestedEvent", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowExecutionCancelRequestedEvent), arg0) } // AddWorkflowExecutionCanceledEvent mocks base method. -func (m *MockMutableState) AddWorkflowExecutionCanceledEvent(arg0 int64, arg1 *command.CancelWorkflowExecutionCommandAttributes) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddWorkflowExecutionCanceledEvent(arg0 int64, arg1 *v1.CancelWorkflowExecutionCommandAttributes) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddWorkflowExecutionCanceledEvent", arg0, arg1) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddWorkflowExecutionCanceledEvent indicates an expected call of AddWorkflowExecutionCanceledEvent. -func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionCanceledEvent(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionCanceledEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowExecutionCanceledEvent", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowExecutionCanceledEvent), arg0, arg1) } // AddWorkflowExecutionOptionsUpdatedEvent mocks base method. -func (m *MockMutableState) AddWorkflowExecutionOptionsUpdatedEvent(versioningOverride *workflow.VersioningOverride, unsetVersioningOverride bool, attachRequestID string, attachCompletionCallbacks []*common.Callback, links []*common.Link, identity string, priority *common.Priority) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddWorkflowExecutionOptionsUpdatedEvent(versioningOverride *v17.VersioningOverride, unsetVersioningOverride bool, attachRequestID string, attachCompletionCallbacks []*v10.Callback, links []*v10.Link, identity string, priority *v10.Priority) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddWorkflowExecutionOptionsUpdatedEvent", versioningOverride, unsetVersioningOverride, attachRequestID, attachCompletionCallbacks, links, identity, priority) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddWorkflowExecutionOptionsUpdatedEvent indicates an expected call of AddWorkflowExecutionOptionsUpdatedEvent. -func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionOptionsUpdatedEvent(versioningOverride, unsetVersioningOverride, attachRequestID, attachCompletionCallbacks, links, identity, priority any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionOptionsUpdatedEvent(versioningOverride, unsetVersioningOverride, attachRequestID, attachCompletionCallbacks, links, identity, priority interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowExecutionOptionsUpdatedEvent", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowExecutionOptionsUpdatedEvent), versioningOverride, unsetVersioningOverride, attachRequestID, attachCompletionCallbacks, links, identity, priority) } // AddWorkflowExecutionPausedEvent mocks base method. -func (m *MockMutableState) AddWorkflowExecutionPausedEvent(identity, reason, requestID string) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddWorkflowExecutionPausedEvent(identity, reason, requestID string) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddWorkflowExecutionPausedEvent", identity, reason, requestID) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddWorkflowExecutionPausedEvent indicates an expected call of AddWorkflowExecutionPausedEvent. -func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionPausedEvent(identity, reason, requestID any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionPausedEvent(identity, reason, requestID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowExecutionPausedEvent", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowExecutionPausedEvent), identity, reason, requestID) } // AddWorkflowExecutionSignaled mocks base method. -func (m *MockMutableState) AddWorkflowExecutionSignaled(signalName string, input *common.Payloads, identity string, header *common.Header, links []*common.Link) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddWorkflowExecutionSignaled(signalName string, input *v10.Payloads, identity string, header *v10.Header, links []*v10.Link) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddWorkflowExecutionSignaled", signalName, input, identity, header, links) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddWorkflowExecutionSignaled indicates an expected call of AddWorkflowExecutionSignaled. -func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionSignaled(signalName, input, identity, header, links any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionSignaled(signalName, input, identity, header, links interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowExecutionSignaled", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowExecutionSignaled), signalName, input, identity, header, links) } // AddWorkflowExecutionSignaledEvent mocks base method. -func (m *MockMutableState) AddWorkflowExecutionSignaledEvent(signalName string, input *common.Payloads, identity string, header *common.Header, externalWorkflowExecution *common.WorkflowExecution, links []*common.Link) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddWorkflowExecutionSignaledEvent(signalName string, input *v10.Payloads, identity string, header *v10.Header, externalWorkflowExecution *v10.WorkflowExecution, links []*v10.Link) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddWorkflowExecutionSignaledEvent", signalName, input, identity, header, externalWorkflowExecution, links) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddWorkflowExecutionSignaledEvent indicates an expected call of AddWorkflowExecutionSignaledEvent. -func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionSignaledEvent(signalName, input, identity, header, externalWorkflowExecution, links any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionSignaledEvent(signalName, input, identity, header, externalWorkflowExecution, links interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowExecutionSignaledEvent", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowExecutionSignaledEvent), signalName, input, identity, header, externalWorkflowExecution, links) } // AddWorkflowExecutionStartedEvent mocks base method. -func (m *MockMutableState) AddWorkflowExecutionStartedEvent(arg0 *common.WorkflowExecution, arg1 *historyservice.StartWorkflowExecutionRequest) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddWorkflowExecutionStartedEvent(arg0 *v10.WorkflowExecution, arg1 *v112.StartWorkflowExecutionRequest) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddWorkflowExecutionStartedEvent", arg0, arg1) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddWorkflowExecutionStartedEvent indicates an expected call of AddWorkflowExecutionStartedEvent. -func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionStartedEvent(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionStartedEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowExecutionStartedEvent", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowExecutionStartedEvent), arg0, arg1) } // AddWorkflowExecutionStartedEventWithOptions mocks base method. -func (m *MockMutableState) AddWorkflowExecutionStartedEventWithOptions(arg0 *common.WorkflowExecution, arg1 *historyservice.StartWorkflowExecutionRequest, arg2 *workflow.ResetPoints, arg3, arg4 string) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddWorkflowExecutionStartedEventWithOptions(arg0 *v10.WorkflowExecution, arg1 *v112.StartWorkflowExecutionRequest, arg2 *v17.ResetPoints, arg3, arg4 string) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddWorkflowExecutionStartedEventWithOptions", arg0, arg1, arg2, arg3, arg4) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddWorkflowExecutionStartedEventWithOptions indicates an expected call of AddWorkflowExecutionStartedEventWithOptions. -func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionStartedEventWithOptions(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionStartedEventWithOptions(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowExecutionStartedEventWithOptions", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowExecutionStartedEventWithOptions), arg0, arg1, arg2, arg3, arg4) } // AddWorkflowExecutionTerminatedEvent mocks base method. -func (m *MockMutableState) AddWorkflowExecutionTerminatedEvent(firstEventID int64, reason string, details *common.Payloads, identity string, deleteAfterTerminate bool, links []*common.Link) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddWorkflowExecutionTerminatedEvent(firstEventID int64, reason string, details *v10.Payloads, identity string, deleteAfterTerminate bool, links []*v10.Link) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddWorkflowExecutionTerminatedEvent", firstEventID, reason, details, identity, deleteAfterTerminate, links) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddWorkflowExecutionTerminatedEvent indicates an expected call of AddWorkflowExecutionTerminatedEvent. -func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionTerminatedEvent(firstEventID, reason, details, identity, deleteAfterTerminate, links any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionTerminatedEvent(firstEventID, reason, details, identity, deleteAfterTerminate, links interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowExecutionTerminatedEvent", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowExecutionTerminatedEvent), firstEventID, reason, details, identity, deleteAfterTerminate, links) } // AddWorkflowExecutionUnpausedEvent mocks base method. -func (m *MockMutableState) AddWorkflowExecutionUnpausedEvent(identity, reason, requestID string) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddWorkflowExecutionUnpausedEvent(identity, reason, requestID string) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddWorkflowExecutionUnpausedEvent", identity, reason, requestID) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddWorkflowExecutionUnpausedEvent indicates an expected call of AddWorkflowExecutionUnpausedEvent. -func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionUnpausedEvent(identity, reason, requestID any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionUnpausedEvent(identity, reason, requestID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowExecutionUnpausedEvent", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowExecutionUnpausedEvent), identity, reason, requestID) } // AddWorkflowExecutionUpdateAcceptedEvent mocks base method. -func (m *MockMutableState) AddWorkflowExecutionUpdateAcceptedEvent(protocolInstanceID, acceptedRequestMessageId string, acceptedRequestSequencingEventId int64, acceptedRequest *update.Request) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddWorkflowExecutionUpdateAcceptedEvent(protocolInstanceID, acceptedRequestMessageId string, acceptedRequestSequencingEventId int64, acceptedRequest *v16.Request) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddWorkflowExecutionUpdateAcceptedEvent", protocolInstanceID, acceptedRequestMessageId, acceptedRequestSequencingEventId, acceptedRequest) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddWorkflowExecutionUpdateAcceptedEvent indicates an expected call of AddWorkflowExecutionUpdateAcceptedEvent. -func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionUpdateAcceptedEvent(protocolInstanceID, acceptedRequestMessageId, acceptedRequestSequencingEventId, acceptedRequest any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionUpdateAcceptedEvent(protocolInstanceID, acceptedRequestMessageId, acceptedRequestSequencingEventId, acceptedRequest interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowExecutionUpdateAcceptedEvent", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowExecutionUpdateAcceptedEvent), protocolInstanceID, acceptedRequestMessageId, acceptedRequestSequencingEventId, acceptedRequest) } // AddWorkflowExecutionUpdateAdmittedEvent mocks base method. -func (m *MockMutableState) AddWorkflowExecutionUpdateAdmittedEvent(request *update.Request, origin enums.UpdateAdmittedEventOrigin) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddWorkflowExecutionUpdateAdmittedEvent(request *v16.Request, origin v12.UpdateAdmittedEventOrigin) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddWorkflowExecutionUpdateAdmittedEvent", request, origin) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddWorkflowExecutionUpdateAdmittedEvent indicates an expected call of AddWorkflowExecutionUpdateAdmittedEvent. -func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionUpdateAdmittedEvent(request, origin any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionUpdateAdmittedEvent(request, origin interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowExecutionUpdateAdmittedEvent", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowExecutionUpdateAdmittedEvent), request, origin) } // AddWorkflowExecutionUpdateCompletedEvent mocks base method. -func (m *MockMutableState) AddWorkflowExecutionUpdateCompletedEvent(acceptedEventID int64, updResp *update.Response) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddWorkflowExecutionUpdateCompletedEvent(acceptedEventID int64, updResp *v16.Response) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddWorkflowExecutionUpdateCompletedEvent", acceptedEventID, updResp) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddWorkflowExecutionUpdateCompletedEvent indicates an expected call of AddWorkflowExecutionUpdateCompletedEvent. -func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionUpdateCompletedEvent(acceptedEventID, updResp any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddWorkflowExecutionUpdateCompletedEvent(acceptedEventID, updResp interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowExecutionUpdateCompletedEvent", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowExecutionUpdateCompletedEvent), acceptedEventID, updResp) } // AddWorkflowPropertiesModifiedEvent mocks base method. -func (m *MockMutableState) AddWorkflowPropertiesModifiedEvent(arg0 int64, arg1 *command.ModifyWorkflowPropertiesCommandAttributes) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddWorkflowPropertiesModifiedEvent(arg0 int64, arg1 *v1.ModifyWorkflowPropertiesCommandAttributes) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddWorkflowPropertiesModifiedEvent", arg0, arg1) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddWorkflowPropertiesModifiedEvent indicates an expected call of AddWorkflowPropertiesModifiedEvent. -func (mr *MockMutableStateMockRecorder) AddWorkflowPropertiesModifiedEvent(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddWorkflowPropertiesModifiedEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowPropertiesModifiedEvent", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowPropertiesModifiedEvent), arg0, arg1) } // AddWorkflowTaskCompletedEvent mocks base method. -func (m *MockMutableState) AddWorkflowTaskCompletedEvent(arg0 *WorkflowTaskInfo, arg1 *workflowservice.RespondWorkflowTaskCompletedRequest, arg2 WorkflowTaskCompletionLimits) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddWorkflowTaskCompletedEvent(arg0 *WorkflowTaskInfo, arg1 *v18.RespondWorkflowTaskCompletedRequest, arg2 WorkflowTaskCompletionLimits) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddWorkflowTaskCompletedEvent", arg0, arg1, arg2) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddWorkflowTaskCompletedEvent indicates an expected call of AddWorkflowTaskCompletedEvent. -func (mr *MockMutableStateMockRecorder) AddWorkflowTaskCompletedEvent(arg0, arg1, arg2 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddWorkflowTaskCompletedEvent(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowTaskCompletedEvent", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowTaskCompletedEvent), arg0, arg1, arg2) } // AddWorkflowTaskFailedEvent mocks base method. -func (m *MockMutableState) AddWorkflowTaskFailedEvent(workflowTask *WorkflowTaskInfo, cause enums.WorkflowTaskFailedCause, arg2 *failure.Failure, identity string, versioningStamp *common.WorkerVersionStamp, binChecksum, baseRunID, newRunID string, forkEventVersion int64) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddWorkflowTaskFailedEvent(workflowTask *WorkflowTaskInfo, cause v12.WorkflowTaskFailedCause, failure *v13.Failure, identity string, versioningStamp *v10.WorkerVersionStamp, binChecksum, baseRunID, newRunID string, forkEventVersion int64) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AddWorkflowTaskFailedEvent", workflowTask, cause, arg2, identity, versioningStamp, binChecksum, baseRunID, newRunID, forkEventVersion) - ret0, _ := ret[0].(*history.HistoryEvent) + ret := m.ctrl.Call(m, "AddWorkflowTaskFailedEvent", workflowTask, cause, failure, identity, versioningStamp, binChecksum, baseRunID, newRunID, forkEventVersion) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddWorkflowTaskFailedEvent indicates an expected call of AddWorkflowTaskFailedEvent. -func (mr *MockMutableStateMockRecorder) AddWorkflowTaskFailedEvent(workflowTask, cause, arg2, identity, versioningStamp, binChecksum, baseRunID, newRunID, forkEventVersion any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddWorkflowTaskFailedEvent(workflowTask, cause, failure, identity, versioningStamp, binChecksum, baseRunID, newRunID, forkEventVersion interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowTaskFailedEvent", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowTaskFailedEvent), workflowTask, cause, arg2, identity, versioningStamp, binChecksum, baseRunID, newRunID, forkEventVersion) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowTaskFailedEvent", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowTaskFailedEvent), workflowTask, cause, failure, identity, versioningStamp, binChecksum, baseRunID, newRunID, forkEventVersion) } // AddWorkflowTaskScheduleToStartTimeoutEvent mocks base method. -func (m *MockMutableState) AddWorkflowTaskScheduleToStartTimeoutEvent(workflowTask *WorkflowTaskInfo) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddWorkflowTaskScheduleToStartTimeoutEvent(workflowTask *WorkflowTaskInfo) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddWorkflowTaskScheduleToStartTimeoutEvent", workflowTask) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddWorkflowTaskScheduleToStartTimeoutEvent indicates an expected call of AddWorkflowTaskScheduleToStartTimeoutEvent. -func (mr *MockMutableStateMockRecorder) AddWorkflowTaskScheduleToStartTimeoutEvent(workflowTask any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddWorkflowTaskScheduleToStartTimeoutEvent(workflowTask interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowTaskScheduleToStartTimeoutEvent", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowTaskScheduleToStartTimeoutEvent), workflowTask) } // AddWorkflowTaskScheduledEvent mocks base method. -func (m *MockMutableState) AddWorkflowTaskScheduledEvent(bypassTaskGeneration bool, workflowTaskType enums0.WorkflowTaskType) (*WorkflowTaskInfo, error) { +func (m *MockMutableState) AddWorkflowTaskScheduledEvent(bypassTaskGeneration bool, workflowTaskType v110.WorkflowTaskType) (*WorkflowTaskInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddWorkflowTaskScheduledEvent", bypassTaskGeneration, workflowTaskType) ret0, _ := ret[0].(*WorkflowTaskInfo) @@ -897,13 +891,13 @@ func (m *MockMutableState) AddWorkflowTaskScheduledEvent(bypassTaskGeneration bo } // AddWorkflowTaskScheduledEvent indicates an expected call of AddWorkflowTaskScheduledEvent. -func (mr *MockMutableStateMockRecorder) AddWorkflowTaskScheduledEvent(bypassTaskGeneration, workflowTaskType any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddWorkflowTaskScheduledEvent(bypassTaskGeneration, workflowTaskType interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowTaskScheduledEvent", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowTaskScheduledEvent), bypassTaskGeneration, workflowTaskType) } // AddWorkflowTaskScheduledEventAsHeartbeat mocks base method. -func (m *MockMutableState) AddWorkflowTaskScheduledEventAsHeartbeat(bypassTaskGeneration bool, originalScheduledTimestamp *timestamppb.Timestamp, workflowTaskType enums0.WorkflowTaskType) (*WorkflowTaskInfo, error) { +func (m *MockMutableState) AddWorkflowTaskScheduledEventAsHeartbeat(bypassTaskGeneration bool, originalScheduledTimestamp *timestamppb.Timestamp, workflowTaskType v110.WorkflowTaskType) (*WorkflowTaskInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddWorkflowTaskScheduledEventAsHeartbeat", bypassTaskGeneration, originalScheduledTimestamp, workflowTaskType) ret0, _ := ret[0].(*WorkflowTaskInfo) @@ -912,44 +906,44 @@ func (m *MockMutableState) AddWorkflowTaskScheduledEventAsHeartbeat(bypassTaskGe } // AddWorkflowTaskScheduledEventAsHeartbeat indicates an expected call of AddWorkflowTaskScheduledEventAsHeartbeat. -func (mr *MockMutableStateMockRecorder) AddWorkflowTaskScheduledEventAsHeartbeat(bypassTaskGeneration, originalScheduledTimestamp, workflowTaskType any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddWorkflowTaskScheduledEventAsHeartbeat(bypassTaskGeneration, originalScheduledTimestamp, workflowTaskType interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowTaskScheduledEventAsHeartbeat", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowTaskScheduledEventAsHeartbeat), bypassTaskGeneration, originalScheduledTimestamp, workflowTaskType) } // AddWorkflowTaskStartedEvent mocks base method. -func (m *MockMutableState) AddWorkflowTaskStartedEvent(arg0 int64, arg1 string, arg2 *taskqueue.TaskQueue, arg3 string, arg4 *common.WorkerVersionStamp, arg5 *taskqueue0.BuildIdRedirectInfo, arg6 update0.Registry, arg7 bool, arg8 *deployment.WorkerDeploymentVersion) (*history.HistoryEvent, *WorkflowTaskInfo, error) { +func (m *MockMutableState) AddWorkflowTaskStartedEvent(arg0 int64, arg1 string, arg2 *v15.TaskQueue, arg3 string, arg4 *v10.WorkerVersionStamp, arg5 *v114.BuildIdRedirectInfo, arg6 update.Registry, arg7 bool, arg8 *v11.WorkerDeploymentVersion, arg9 int64) (*v14.HistoryEvent, *WorkflowTaskInfo, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AddWorkflowTaskStartedEvent", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - ret0, _ := ret[0].(*history.HistoryEvent) + ret := m.ctrl.Call(m, "AddWorkflowTaskStartedEvent", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(*WorkflowTaskInfo) ret2, _ := ret[2].(error) return ret0, ret1, ret2 } // AddWorkflowTaskStartedEvent indicates an expected call of AddWorkflowTaskStartedEvent. -func (mr *MockMutableStateMockRecorder) AddWorkflowTaskStartedEvent(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddWorkflowTaskStartedEvent(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowTaskStartedEvent", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowTaskStartedEvent), arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowTaskStartedEvent", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowTaskStartedEvent), arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) } // AddWorkflowTaskTimedOutEvent mocks base method. -func (m *MockMutableState) AddWorkflowTaskTimedOutEvent(workflowTask *WorkflowTaskInfo) (*history.HistoryEvent, error) { +func (m *MockMutableState) AddWorkflowTaskTimedOutEvent(workflowTask *WorkflowTaskInfo) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddWorkflowTaskTimedOutEvent", workflowTask) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // AddWorkflowTaskTimedOutEvent indicates an expected call of AddWorkflowTaskTimedOutEvent. -func (mr *MockMutableStateMockRecorder) AddWorkflowTaskTimedOutEvent(workflowTask any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AddWorkflowTaskTimedOutEvent(workflowTask interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowTaskTimedOutEvent", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowTaskTimedOutEvent), workflowTask) } // ApplyActivityTaskCancelRequestedEvent mocks base method. -func (m *MockMutableState) ApplyActivityTaskCancelRequestedEvent(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyActivityTaskCancelRequestedEvent(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyActivityTaskCancelRequestedEvent", arg0) ret0, _ := ret[0].(error) @@ -957,13 +951,13 @@ func (m *MockMutableState) ApplyActivityTaskCancelRequestedEvent(arg0 *history.H } // ApplyActivityTaskCancelRequestedEvent indicates an expected call of ApplyActivityTaskCancelRequestedEvent. -func (mr *MockMutableStateMockRecorder) ApplyActivityTaskCancelRequestedEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyActivityTaskCancelRequestedEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyActivityTaskCancelRequestedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyActivityTaskCancelRequestedEvent), arg0) } // ApplyActivityTaskCanceledEvent mocks base method. -func (m *MockMutableState) ApplyActivityTaskCanceledEvent(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyActivityTaskCanceledEvent(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyActivityTaskCanceledEvent", arg0) ret0, _ := ret[0].(error) @@ -971,13 +965,13 @@ func (m *MockMutableState) ApplyActivityTaskCanceledEvent(arg0 *history.HistoryE } // ApplyActivityTaskCanceledEvent indicates an expected call of ApplyActivityTaskCanceledEvent. -func (mr *MockMutableStateMockRecorder) ApplyActivityTaskCanceledEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyActivityTaskCanceledEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyActivityTaskCanceledEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyActivityTaskCanceledEvent), arg0) } // ApplyActivityTaskCompletedEvent mocks base method. -func (m *MockMutableState) ApplyActivityTaskCompletedEvent(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyActivityTaskCompletedEvent(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyActivityTaskCompletedEvent", arg0) ret0, _ := ret[0].(error) @@ -985,13 +979,13 @@ func (m *MockMutableState) ApplyActivityTaskCompletedEvent(arg0 *history.History } // ApplyActivityTaskCompletedEvent indicates an expected call of ApplyActivityTaskCompletedEvent. -func (mr *MockMutableStateMockRecorder) ApplyActivityTaskCompletedEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyActivityTaskCompletedEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyActivityTaskCompletedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyActivityTaskCompletedEvent), arg0) } // ApplyActivityTaskFailedEvent mocks base method. -func (m *MockMutableState) ApplyActivityTaskFailedEvent(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyActivityTaskFailedEvent(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyActivityTaskFailedEvent", arg0) ret0, _ := ret[0].(error) @@ -999,28 +993,28 @@ func (m *MockMutableState) ApplyActivityTaskFailedEvent(arg0 *history.HistoryEve } // ApplyActivityTaskFailedEvent indicates an expected call of ApplyActivityTaskFailedEvent. -func (mr *MockMutableStateMockRecorder) ApplyActivityTaskFailedEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyActivityTaskFailedEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyActivityTaskFailedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyActivityTaskFailedEvent), arg0) } // ApplyActivityTaskScheduledEvent mocks base method. -func (m *MockMutableState) ApplyActivityTaskScheduledEvent(arg0 int64, arg1 *history.HistoryEvent) (*persistence.ActivityInfo, error) { +func (m *MockMutableState) ApplyActivityTaskScheduledEvent(arg0 int64, arg1 *v14.HistoryEvent) (*v113.ActivityInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyActivityTaskScheduledEvent", arg0, arg1) - ret0, _ := ret[0].(*persistence.ActivityInfo) + ret0, _ := ret[0].(*v113.ActivityInfo) ret1, _ := ret[1].(error) return ret0, ret1 } // ApplyActivityTaskScheduledEvent indicates an expected call of ApplyActivityTaskScheduledEvent. -func (mr *MockMutableStateMockRecorder) ApplyActivityTaskScheduledEvent(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyActivityTaskScheduledEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyActivityTaskScheduledEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyActivityTaskScheduledEvent), arg0, arg1) } // ApplyActivityTaskStartedEvent mocks base method. -func (m *MockMutableState) ApplyActivityTaskStartedEvent(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyActivityTaskStartedEvent(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyActivityTaskStartedEvent", arg0) ret0, _ := ret[0].(error) @@ -1028,13 +1022,13 @@ func (m *MockMutableState) ApplyActivityTaskStartedEvent(arg0 *history.HistoryEv } // ApplyActivityTaskStartedEvent indicates an expected call of ApplyActivityTaskStartedEvent. -func (mr *MockMutableStateMockRecorder) ApplyActivityTaskStartedEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyActivityTaskStartedEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyActivityTaskStartedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyActivityTaskStartedEvent), arg0) } // ApplyActivityTaskTimedOutEvent mocks base method. -func (m *MockMutableState) ApplyActivityTaskTimedOutEvent(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyActivityTaskTimedOutEvent(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyActivityTaskTimedOutEvent", arg0) ret0, _ := ret[0].(error) @@ -1042,7 +1036,7 @@ func (m *MockMutableState) ApplyActivityTaskTimedOutEvent(arg0 *history.HistoryE } // ApplyActivityTaskTimedOutEvent indicates an expected call of ApplyActivityTaskTimedOutEvent. -func (mr *MockMutableStateMockRecorder) ApplyActivityTaskTimedOutEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyActivityTaskTimedOutEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyActivityTaskTimedOutEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyActivityTaskTimedOutEvent), arg0) } @@ -1056,13 +1050,13 @@ func (m *MockMutableState) ApplyBuildIdRedirect(startingTaskScheduledEventId int } // ApplyBuildIdRedirect indicates an expected call of ApplyBuildIdRedirect. -func (mr *MockMutableStateMockRecorder) ApplyBuildIdRedirect(startingTaskScheduledEventId, buildId, redirectCounter any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyBuildIdRedirect(startingTaskScheduledEventId, buildId, redirectCounter interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyBuildIdRedirect", reflect.TypeOf((*MockMutableState)(nil).ApplyBuildIdRedirect), startingTaskScheduledEventId, buildId, redirectCounter) } // ApplyChildWorkflowExecutionCanceledEvent mocks base method. -func (m *MockMutableState) ApplyChildWorkflowExecutionCanceledEvent(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyChildWorkflowExecutionCanceledEvent(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyChildWorkflowExecutionCanceledEvent", arg0) ret0, _ := ret[0].(error) @@ -1070,13 +1064,13 @@ func (m *MockMutableState) ApplyChildWorkflowExecutionCanceledEvent(arg0 *histor } // ApplyChildWorkflowExecutionCanceledEvent indicates an expected call of ApplyChildWorkflowExecutionCanceledEvent. -func (mr *MockMutableStateMockRecorder) ApplyChildWorkflowExecutionCanceledEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyChildWorkflowExecutionCanceledEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyChildWorkflowExecutionCanceledEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyChildWorkflowExecutionCanceledEvent), arg0) } // ApplyChildWorkflowExecutionCompletedEvent mocks base method. -func (m *MockMutableState) ApplyChildWorkflowExecutionCompletedEvent(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyChildWorkflowExecutionCompletedEvent(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyChildWorkflowExecutionCompletedEvent", arg0) ret0, _ := ret[0].(error) @@ -1084,13 +1078,13 @@ func (m *MockMutableState) ApplyChildWorkflowExecutionCompletedEvent(arg0 *histo } // ApplyChildWorkflowExecutionCompletedEvent indicates an expected call of ApplyChildWorkflowExecutionCompletedEvent. -func (mr *MockMutableStateMockRecorder) ApplyChildWorkflowExecutionCompletedEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyChildWorkflowExecutionCompletedEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyChildWorkflowExecutionCompletedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyChildWorkflowExecutionCompletedEvent), arg0) } // ApplyChildWorkflowExecutionFailedEvent mocks base method. -func (m *MockMutableState) ApplyChildWorkflowExecutionFailedEvent(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyChildWorkflowExecutionFailedEvent(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyChildWorkflowExecutionFailedEvent", arg0) ret0, _ := ret[0].(error) @@ -1098,13 +1092,13 @@ func (m *MockMutableState) ApplyChildWorkflowExecutionFailedEvent(arg0 *history. } // ApplyChildWorkflowExecutionFailedEvent indicates an expected call of ApplyChildWorkflowExecutionFailedEvent. -func (mr *MockMutableStateMockRecorder) ApplyChildWorkflowExecutionFailedEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyChildWorkflowExecutionFailedEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyChildWorkflowExecutionFailedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyChildWorkflowExecutionFailedEvent), arg0) } // ApplyChildWorkflowExecutionStartedEvent mocks base method. -func (m *MockMutableState) ApplyChildWorkflowExecutionStartedEvent(arg0 *history.HistoryEvent, arg1 *clock.VectorClock) error { +func (m *MockMutableState) ApplyChildWorkflowExecutionStartedEvent(arg0 *v14.HistoryEvent, arg1 *v19.VectorClock) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyChildWorkflowExecutionStartedEvent", arg0, arg1) ret0, _ := ret[0].(error) @@ -1112,13 +1106,13 @@ func (m *MockMutableState) ApplyChildWorkflowExecutionStartedEvent(arg0 *history } // ApplyChildWorkflowExecutionStartedEvent indicates an expected call of ApplyChildWorkflowExecutionStartedEvent. -func (mr *MockMutableStateMockRecorder) ApplyChildWorkflowExecutionStartedEvent(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyChildWorkflowExecutionStartedEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyChildWorkflowExecutionStartedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyChildWorkflowExecutionStartedEvent), arg0, arg1) } // ApplyChildWorkflowExecutionTerminatedEvent mocks base method. -func (m *MockMutableState) ApplyChildWorkflowExecutionTerminatedEvent(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyChildWorkflowExecutionTerminatedEvent(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyChildWorkflowExecutionTerminatedEvent", arg0) ret0, _ := ret[0].(error) @@ -1126,13 +1120,13 @@ func (m *MockMutableState) ApplyChildWorkflowExecutionTerminatedEvent(arg0 *hist } // ApplyChildWorkflowExecutionTerminatedEvent indicates an expected call of ApplyChildWorkflowExecutionTerminatedEvent. -func (mr *MockMutableStateMockRecorder) ApplyChildWorkflowExecutionTerminatedEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyChildWorkflowExecutionTerminatedEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyChildWorkflowExecutionTerminatedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyChildWorkflowExecutionTerminatedEvent), arg0) } // ApplyChildWorkflowExecutionTimedOutEvent mocks base method. -func (m *MockMutableState) ApplyChildWorkflowExecutionTimedOutEvent(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyChildWorkflowExecutionTimedOutEvent(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyChildWorkflowExecutionTimedOutEvent", arg0) ret0, _ := ret[0].(error) @@ -1140,13 +1134,13 @@ func (m *MockMutableState) ApplyChildWorkflowExecutionTimedOutEvent(arg0 *histor } // ApplyChildWorkflowExecutionTimedOutEvent indicates an expected call of ApplyChildWorkflowExecutionTimedOutEvent. -func (mr *MockMutableStateMockRecorder) ApplyChildWorkflowExecutionTimedOutEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyChildWorkflowExecutionTimedOutEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyChildWorkflowExecutionTimedOutEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyChildWorkflowExecutionTimedOutEvent), arg0) } // ApplyExternalWorkflowExecutionCancelRequested mocks base method. -func (m *MockMutableState) ApplyExternalWorkflowExecutionCancelRequested(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyExternalWorkflowExecutionCancelRequested(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyExternalWorkflowExecutionCancelRequested", arg0) ret0, _ := ret[0].(error) @@ -1154,13 +1148,13 @@ func (m *MockMutableState) ApplyExternalWorkflowExecutionCancelRequested(arg0 *h } // ApplyExternalWorkflowExecutionCancelRequested indicates an expected call of ApplyExternalWorkflowExecutionCancelRequested. -func (mr *MockMutableStateMockRecorder) ApplyExternalWorkflowExecutionCancelRequested(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyExternalWorkflowExecutionCancelRequested(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyExternalWorkflowExecutionCancelRequested", reflect.TypeOf((*MockMutableState)(nil).ApplyExternalWorkflowExecutionCancelRequested), arg0) } // ApplyExternalWorkflowExecutionSignaled mocks base method. -func (m *MockMutableState) ApplyExternalWorkflowExecutionSignaled(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyExternalWorkflowExecutionSignaled(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyExternalWorkflowExecutionSignaled", arg0) ret0, _ := ret[0].(error) @@ -1168,13 +1162,13 @@ func (m *MockMutableState) ApplyExternalWorkflowExecutionSignaled(arg0 *history. } // ApplyExternalWorkflowExecutionSignaled indicates an expected call of ApplyExternalWorkflowExecutionSignaled. -func (mr *MockMutableStateMockRecorder) ApplyExternalWorkflowExecutionSignaled(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyExternalWorkflowExecutionSignaled(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyExternalWorkflowExecutionSignaled", reflect.TypeOf((*MockMutableState)(nil).ApplyExternalWorkflowExecutionSignaled), arg0) } // ApplyMutation mocks base method. -func (m *MockMutableState) ApplyMutation(mutation *persistence.WorkflowMutableStateMutation) error { +func (m *MockMutableState) ApplyMutation(mutation *v113.WorkflowMutableStateMutation) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyMutation", mutation) ret0, _ := ret[0].(error) @@ -1182,13 +1176,13 @@ func (m *MockMutableState) ApplyMutation(mutation *persistence.WorkflowMutableSt } // ApplyMutation indicates an expected call of ApplyMutation. -func (mr *MockMutableStateMockRecorder) ApplyMutation(mutation any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyMutation(mutation interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyMutation", reflect.TypeOf((*MockMutableState)(nil).ApplyMutation), mutation) } // ApplyRequestCancelExternalWorkflowExecutionFailedEvent mocks base method. -func (m *MockMutableState) ApplyRequestCancelExternalWorkflowExecutionFailedEvent(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyRequestCancelExternalWorkflowExecutionFailedEvent(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyRequestCancelExternalWorkflowExecutionFailedEvent", arg0) ret0, _ := ret[0].(error) @@ -1196,28 +1190,28 @@ func (m *MockMutableState) ApplyRequestCancelExternalWorkflowExecutionFailedEven } // ApplyRequestCancelExternalWorkflowExecutionFailedEvent indicates an expected call of ApplyRequestCancelExternalWorkflowExecutionFailedEvent. -func (mr *MockMutableStateMockRecorder) ApplyRequestCancelExternalWorkflowExecutionFailedEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyRequestCancelExternalWorkflowExecutionFailedEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyRequestCancelExternalWorkflowExecutionFailedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyRequestCancelExternalWorkflowExecutionFailedEvent), arg0) } // ApplyRequestCancelExternalWorkflowExecutionInitiatedEvent mocks base method. -func (m *MockMutableState) ApplyRequestCancelExternalWorkflowExecutionInitiatedEvent(arg0 int64, arg1 *history.HistoryEvent, arg2 string) (*persistence.RequestCancelInfo, error) { +func (m *MockMutableState) ApplyRequestCancelExternalWorkflowExecutionInitiatedEvent(arg0 int64, arg1 *v14.HistoryEvent, arg2 string) (*v113.RequestCancelInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyRequestCancelExternalWorkflowExecutionInitiatedEvent", arg0, arg1, arg2) - ret0, _ := ret[0].(*persistence.RequestCancelInfo) + ret0, _ := ret[0].(*v113.RequestCancelInfo) ret1, _ := ret[1].(error) return ret0, ret1 } // ApplyRequestCancelExternalWorkflowExecutionInitiatedEvent indicates an expected call of ApplyRequestCancelExternalWorkflowExecutionInitiatedEvent. -func (mr *MockMutableStateMockRecorder) ApplyRequestCancelExternalWorkflowExecutionInitiatedEvent(arg0, arg1, arg2 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyRequestCancelExternalWorkflowExecutionInitiatedEvent(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyRequestCancelExternalWorkflowExecutionInitiatedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyRequestCancelExternalWorkflowExecutionInitiatedEvent), arg0, arg1, arg2) } // ApplySignalExternalWorkflowExecutionFailedEvent mocks base method. -func (m *MockMutableState) ApplySignalExternalWorkflowExecutionFailedEvent(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplySignalExternalWorkflowExecutionFailedEvent(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplySignalExternalWorkflowExecutionFailedEvent", arg0) ret0, _ := ret[0].(error) @@ -1225,28 +1219,28 @@ func (m *MockMutableState) ApplySignalExternalWorkflowExecutionFailedEvent(arg0 } // ApplySignalExternalWorkflowExecutionFailedEvent indicates an expected call of ApplySignalExternalWorkflowExecutionFailedEvent. -func (mr *MockMutableStateMockRecorder) ApplySignalExternalWorkflowExecutionFailedEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplySignalExternalWorkflowExecutionFailedEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplySignalExternalWorkflowExecutionFailedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplySignalExternalWorkflowExecutionFailedEvent), arg0) } // ApplySignalExternalWorkflowExecutionInitiatedEvent mocks base method. -func (m *MockMutableState) ApplySignalExternalWorkflowExecutionInitiatedEvent(arg0 int64, arg1 *history.HistoryEvent, arg2 string) (*persistence.SignalInfo, error) { +func (m *MockMutableState) ApplySignalExternalWorkflowExecutionInitiatedEvent(arg0 int64, arg1 *v14.HistoryEvent, arg2 string) (*v113.SignalInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplySignalExternalWorkflowExecutionInitiatedEvent", arg0, arg1, arg2) - ret0, _ := ret[0].(*persistence.SignalInfo) + ret0, _ := ret[0].(*v113.SignalInfo) ret1, _ := ret[1].(error) return ret0, ret1 } // ApplySignalExternalWorkflowExecutionInitiatedEvent indicates an expected call of ApplySignalExternalWorkflowExecutionInitiatedEvent. -func (mr *MockMutableStateMockRecorder) ApplySignalExternalWorkflowExecutionInitiatedEvent(arg0, arg1, arg2 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplySignalExternalWorkflowExecutionInitiatedEvent(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplySignalExternalWorkflowExecutionInitiatedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplySignalExternalWorkflowExecutionInitiatedEvent), arg0, arg1, arg2) } // ApplySnapshot mocks base method. -func (m *MockMutableState) ApplySnapshot(snapshot *persistence.WorkflowMutableState) error { +func (m *MockMutableState) ApplySnapshot(snapshot *v113.WorkflowMutableState) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplySnapshot", snapshot) ret0, _ := ret[0].(error) @@ -1254,13 +1248,13 @@ func (m *MockMutableState) ApplySnapshot(snapshot *persistence.WorkflowMutableSt } // ApplySnapshot indicates an expected call of ApplySnapshot. -func (mr *MockMutableStateMockRecorder) ApplySnapshot(snapshot any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplySnapshot(snapshot interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplySnapshot", reflect.TypeOf((*MockMutableState)(nil).ApplySnapshot), snapshot) } // ApplyStartChildWorkflowExecutionFailedEvent mocks base method. -func (m *MockMutableState) ApplyStartChildWorkflowExecutionFailedEvent(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyStartChildWorkflowExecutionFailedEvent(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyStartChildWorkflowExecutionFailedEvent", arg0) ret0, _ := ret[0].(error) @@ -1268,28 +1262,28 @@ func (m *MockMutableState) ApplyStartChildWorkflowExecutionFailedEvent(arg0 *his } // ApplyStartChildWorkflowExecutionFailedEvent indicates an expected call of ApplyStartChildWorkflowExecutionFailedEvent. -func (mr *MockMutableStateMockRecorder) ApplyStartChildWorkflowExecutionFailedEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyStartChildWorkflowExecutionFailedEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStartChildWorkflowExecutionFailedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyStartChildWorkflowExecutionFailedEvent), arg0) } // ApplyStartChildWorkflowExecutionInitiatedEvent mocks base method. -func (m *MockMutableState) ApplyStartChildWorkflowExecutionInitiatedEvent(arg0 int64, arg1 *history.HistoryEvent) (*persistence.ChildExecutionInfo, error) { +func (m *MockMutableState) ApplyStartChildWorkflowExecutionInitiatedEvent(arg0 int64, arg1 *v14.HistoryEvent) (*v113.ChildExecutionInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyStartChildWorkflowExecutionInitiatedEvent", arg0, arg1) - ret0, _ := ret[0].(*persistence.ChildExecutionInfo) + ret0, _ := ret[0].(*v113.ChildExecutionInfo) ret1, _ := ret[1].(error) return ret0, ret1 } // ApplyStartChildWorkflowExecutionInitiatedEvent indicates an expected call of ApplyStartChildWorkflowExecutionInitiatedEvent. -func (mr *MockMutableStateMockRecorder) ApplyStartChildWorkflowExecutionInitiatedEvent(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyStartChildWorkflowExecutionInitiatedEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStartChildWorkflowExecutionInitiatedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyStartChildWorkflowExecutionInitiatedEvent), arg0, arg1) } // ApplyTimerCanceledEvent mocks base method. -func (m *MockMutableState) ApplyTimerCanceledEvent(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyTimerCanceledEvent(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyTimerCanceledEvent", arg0) ret0, _ := ret[0].(error) @@ -1297,13 +1291,13 @@ func (m *MockMutableState) ApplyTimerCanceledEvent(arg0 *history.HistoryEvent) e } // ApplyTimerCanceledEvent indicates an expected call of ApplyTimerCanceledEvent. -func (mr *MockMutableStateMockRecorder) ApplyTimerCanceledEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyTimerCanceledEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyTimerCanceledEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyTimerCanceledEvent), arg0) } // ApplyTimerFiredEvent mocks base method. -func (m *MockMutableState) ApplyTimerFiredEvent(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyTimerFiredEvent(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyTimerFiredEvent", arg0) ret0, _ := ret[0].(error) @@ -1311,22 +1305,22 @@ func (m *MockMutableState) ApplyTimerFiredEvent(arg0 *history.HistoryEvent) erro } // ApplyTimerFiredEvent indicates an expected call of ApplyTimerFiredEvent. -func (mr *MockMutableStateMockRecorder) ApplyTimerFiredEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyTimerFiredEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyTimerFiredEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyTimerFiredEvent), arg0) } // ApplyTimerStartedEvent mocks base method. -func (m *MockMutableState) ApplyTimerStartedEvent(arg0 *history.HistoryEvent) (*persistence.TimerInfo, error) { +func (m *MockMutableState) ApplyTimerStartedEvent(arg0 *v14.HistoryEvent) (*v113.TimerInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyTimerStartedEvent", arg0) - ret0, _ := ret[0].(*persistence.TimerInfo) + ret0, _ := ret[0].(*v113.TimerInfo) ret1, _ := ret[1].(error) return ret0, ret1 } // ApplyTimerStartedEvent indicates an expected call of ApplyTimerStartedEvent. -func (mr *MockMutableStateMockRecorder) ApplyTimerStartedEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyTimerStartedEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyTimerStartedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyTimerStartedEvent), arg0) } @@ -1347,19 +1341,19 @@ func (mr *MockMutableStateMockRecorder) ApplyTransientWorkflowTaskScheduled() *g } // ApplyUpsertWorkflowSearchAttributesEvent mocks base method. -func (m *MockMutableState) ApplyUpsertWorkflowSearchAttributesEvent(arg0 *history.HistoryEvent) { +func (m *MockMutableState) ApplyUpsertWorkflowSearchAttributesEvent(arg0 *v14.HistoryEvent) { m.ctrl.T.Helper() m.ctrl.Call(m, "ApplyUpsertWorkflowSearchAttributesEvent", arg0) } // ApplyUpsertWorkflowSearchAttributesEvent indicates an expected call of ApplyUpsertWorkflowSearchAttributesEvent. -func (mr *MockMutableStateMockRecorder) ApplyUpsertWorkflowSearchAttributesEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyUpsertWorkflowSearchAttributesEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyUpsertWorkflowSearchAttributesEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyUpsertWorkflowSearchAttributesEvent), arg0) } // ApplyWorkflowExecutionCancelRequestedEvent mocks base method. -func (m *MockMutableState) ApplyWorkflowExecutionCancelRequestedEvent(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyWorkflowExecutionCancelRequestedEvent(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyWorkflowExecutionCancelRequestedEvent", arg0) ret0, _ := ret[0].(error) @@ -1367,13 +1361,13 @@ func (m *MockMutableState) ApplyWorkflowExecutionCancelRequestedEvent(arg0 *hist } // ApplyWorkflowExecutionCancelRequestedEvent indicates an expected call of ApplyWorkflowExecutionCancelRequestedEvent. -func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionCancelRequestedEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionCancelRequestedEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyWorkflowExecutionCancelRequestedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyWorkflowExecutionCancelRequestedEvent), arg0) } // ApplyWorkflowExecutionCanceledEvent mocks base method. -func (m *MockMutableState) ApplyWorkflowExecutionCanceledEvent(arg0 int64, arg1 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyWorkflowExecutionCanceledEvent(arg0 int64, arg1 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyWorkflowExecutionCanceledEvent", arg0, arg1) ret0, _ := ret[0].(error) @@ -1381,13 +1375,13 @@ func (m *MockMutableState) ApplyWorkflowExecutionCanceledEvent(arg0 int64, arg1 } // ApplyWorkflowExecutionCanceledEvent indicates an expected call of ApplyWorkflowExecutionCanceledEvent. -func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionCanceledEvent(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionCanceledEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyWorkflowExecutionCanceledEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyWorkflowExecutionCanceledEvent), arg0, arg1) } // ApplyWorkflowExecutionCompletedEvent mocks base method. -func (m *MockMutableState) ApplyWorkflowExecutionCompletedEvent(arg0 int64, arg1 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyWorkflowExecutionCompletedEvent(arg0 int64, arg1 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyWorkflowExecutionCompletedEvent", arg0, arg1) ret0, _ := ret[0].(error) @@ -1395,13 +1389,13 @@ func (m *MockMutableState) ApplyWorkflowExecutionCompletedEvent(arg0 int64, arg1 } // ApplyWorkflowExecutionCompletedEvent indicates an expected call of ApplyWorkflowExecutionCompletedEvent. -func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionCompletedEvent(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionCompletedEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyWorkflowExecutionCompletedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyWorkflowExecutionCompletedEvent), arg0, arg1) } // ApplyWorkflowExecutionContinuedAsNewEvent mocks base method. -func (m *MockMutableState) ApplyWorkflowExecutionContinuedAsNewEvent(arg0 int64, arg1 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyWorkflowExecutionContinuedAsNewEvent(arg0 int64, arg1 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyWorkflowExecutionContinuedAsNewEvent", arg0, arg1) ret0, _ := ret[0].(error) @@ -1409,13 +1403,13 @@ func (m *MockMutableState) ApplyWorkflowExecutionContinuedAsNewEvent(arg0 int64, } // ApplyWorkflowExecutionContinuedAsNewEvent indicates an expected call of ApplyWorkflowExecutionContinuedAsNewEvent. -func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionContinuedAsNewEvent(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionContinuedAsNewEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyWorkflowExecutionContinuedAsNewEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyWorkflowExecutionContinuedAsNewEvent), arg0, arg1) } // ApplyWorkflowExecutionFailedEvent mocks base method. -func (m *MockMutableState) ApplyWorkflowExecutionFailedEvent(arg0 int64, arg1 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyWorkflowExecutionFailedEvent(arg0 int64, arg1 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyWorkflowExecutionFailedEvent", arg0, arg1) ret0, _ := ret[0].(error) @@ -1423,13 +1417,13 @@ func (m *MockMutableState) ApplyWorkflowExecutionFailedEvent(arg0 int64, arg1 *h } // ApplyWorkflowExecutionFailedEvent indicates an expected call of ApplyWorkflowExecutionFailedEvent. -func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionFailedEvent(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionFailedEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyWorkflowExecutionFailedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyWorkflowExecutionFailedEvent), arg0, arg1) } // ApplyWorkflowExecutionOptionsUpdatedEvent mocks base method. -func (m *MockMutableState) ApplyWorkflowExecutionOptionsUpdatedEvent(event *history.HistoryEvent) error { +func (m *MockMutableState) ApplyWorkflowExecutionOptionsUpdatedEvent(event *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyWorkflowExecutionOptionsUpdatedEvent", event) ret0, _ := ret[0].(error) @@ -1437,13 +1431,13 @@ func (m *MockMutableState) ApplyWorkflowExecutionOptionsUpdatedEvent(event *hist } // ApplyWorkflowExecutionOptionsUpdatedEvent indicates an expected call of ApplyWorkflowExecutionOptionsUpdatedEvent. -func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionOptionsUpdatedEvent(event any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionOptionsUpdatedEvent(event interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyWorkflowExecutionOptionsUpdatedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyWorkflowExecutionOptionsUpdatedEvent), event) } // ApplyWorkflowExecutionPausedEvent mocks base method. -func (m *MockMutableState) ApplyWorkflowExecutionPausedEvent(event *history.HistoryEvent) error { +func (m *MockMutableState) ApplyWorkflowExecutionPausedEvent(event *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyWorkflowExecutionPausedEvent", event) ret0, _ := ret[0].(error) @@ -1451,13 +1445,13 @@ func (m *MockMutableState) ApplyWorkflowExecutionPausedEvent(event *history.Hist } // ApplyWorkflowExecutionPausedEvent indicates an expected call of ApplyWorkflowExecutionPausedEvent. -func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionPausedEvent(event any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionPausedEvent(event interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyWorkflowExecutionPausedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyWorkflowExecutionPausedEvent), event) } // ApplyWorkflowExecutionSignaled mocks base method. -func (m *MockMutableState) ApplyWorkflowExecutionSignaled(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyWorkflowExecutionSignaled(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyWorkflowExecutionSignaled", arg0) ret0, _ := ret[0].(error) @@ -1465,13 +1459,13 @@ func (m *MockMutableState) ApplyWorkflowExecutionSignaled(arg0 *history.HistoryE } // ApplyWorkflowExecutionSignaled indicates an expected call of ApplyWorkflowExecutionSignaled. -func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionSignaled(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionSignaled(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyWorkflowExecutionSignaled", reflect.TypeOf((*MockMutableState)(nil).ApplyWorkflowExecutionSignaled), arg0) } // ApplyWorkflowExecutionStartedEvent mocks base method. -func (m *MockMutableState) ApplyWorkflowExecutionStartedEvent(arg0 *clock.VectorClock, arg1 *common.WorkflowExecution, arg2 string, arg3 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyWorkflowExecutionStartedEvent(arg0 *v19.VectorClock, arg1 *v10.WorkflowExecution, arg2 string, arg3 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyWorkflowExecutionStartedEvent", arg0, arg1, arg2, arg3) ret0, _ := ret[0].(error) @@ -1479,13 +1473,13 @@ func (m *MockMutableState) ApplyWorkflowExecutionStartedEvent(arg0 *clock.Vector } // ApplyWorkflowExecutionStartedEvent indicates an expected call of ApplyWorkflowExecutionStartedEvent. -func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionStartedEvent(arg0, arg1, arg2, arg3 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionStartedEvent(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyWorkflowExecutionStartedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyWorkflowExecutionStartedEvent), arg0, arg1, arg2, arg3) } // ApplyWorkflowExecutionTerminatedEvent mocks base method. -func (m *MockMutableState) ApplyWorkflowExecutionTerminatedEvent(arg0 int64, arg1 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyWorkflowExecutionTerminatedEvent(arg0 int64, arg1 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyWorkflowExecutionTerminatedEvent", arg0, arg1) ret0, _ := ret[0].(error) @@ -1493,13 +1487,13 @@ func (m *MockMutableState) ApplyWorkflowExecutionTerminatedEvent(arg0 int64, arg } // ApplyWorkflowExecutionTerminatedEvent indicates an expected call of ApplyWorkflowExecutionTerminatedEvent. -func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionTerminatedEvent(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionTerminatedEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyWorkflowExecutionTerminatedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyWorkflowExecutionTerminatedEvent), arg0, arg1) } // ApplyWorkflowExecutionTimedoutEvent mocks base method. -func (m *MockMutableState) ApplyWorkflowExecutionTimedoutEvent(arg0 int64, arg1 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyWorkflowExecutionTimedoutEvent(arg0 int64, arg1 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyWorkflowExecutionTimedoutEvent", arg0, arg1) ret0, _ := ret[0].(error) @@ -1507,13 +1501,13 @@ func (m *MockMutableState) ApplyWorkflowExecutionTimedoutEvent(arg0 int64, arg1 } // ApplyWorkflowExecutionTimedoutEvent indicates an expected call of ApplyWorkflowExecutionTimedoutEvent. -func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionTimedoutEvent(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionTimedoutEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyWorkflowExecutionTimedoutEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyWorkflowExecutionTimedoutEvent), arg0, arg1) } // ApplyWorkflowExecutionUnpausedEvent mocks base method. -func (m *MockMutableState) ApplyWorkflowExecutionUnpausedEvent(event *history.HistoryEvent) error { +func (m *MockMutableState) ApplyWorkflowExecutionUnpausedEvent(event *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyWorkflowExecutionUnpausedEvent", event) ret0, _ := ret[0].(error) @@ -1521,13 +1515,13 @@ func (m *MockMutableState) ApplyWorkflowExecutionUnpausedEvent(event *history.Hi } // ApplyWorkflowExecutionUnpausedEvent indicates an expected call of ApplyWorkflowExecutionUnpausedEvent. -func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionUnpausedEvent(event any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionUnpausedEvent(event interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyWorkflowExecutionUnpausedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyWorkflowExecutionUnpausedEvent), event) } // ApplyWorkflowExecutionUpdateAcceptedEvent mocks base method. -func (m *MockMutableState) ApplyWorkflowExecutionUpdateAcceptedEvent(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyWorkflowExecutionUpdateAcceptedEvent(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyWorkflowExecutionUpdateAcceptedEvent", arg0) ret0, _ := ret[0].(error) @@ -1535,13 +1529,13 @@ func (m *MockMutableState) ApplyWorkflowExecutionUpdateAcceptedEvent(arg0 *histo } // ApplyWorkflowExecutionUpdateAcceptedEvent indicates an expected call of ApplyWorkflowExecutionUpdateAcceptedEvent. -func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionUpdateAcceptedEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionUpdateAcceptedEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyWorkflowExecutionUpdateAcceptedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyWorkflowExecutionUpdateAcceptedEvent), arg0) } // ApplyWorkflowExecutionUpdateAdmittedEvent mocks base method. -func (m *MockMutableState) ApplyWorkflowExecutionUpdateAdmittedEvent(event *history.HistoryEvent, batchId int64) error { +func (m *MockMutableState) ApplyWorkflowExecutionUpdateAdmittedEvent(event *v14.HistoryEvent, batchId int64) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyWorkflowExecutionUpdateAdmittedEvent", event, batchId) ret0, _ := ret[0].(error) @@ -1549,13 +1543,13 @@ func (m *MockMutableState) ApplyWorkflowExecutionUpdateAdmittedEvent(event *hist } // ApplyWorkflowExecutionUpdateAdmittedEvent indicates an expected call of ApplyWorkflowExecutionUpdateAdmittedEvent. -func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionUpdateAdmittedEvent(event, batchId any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionUpdateAdmittedEvent(event, batchId interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyWorkflowExecutionUpdateAdmittedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyWorkflowExecutionUpdateAdmittedEvent), event, batchId) } // ApplyWorkflowExecutionUpdateCompletedEvent mocks base method. -func (m *MockMutableState) ApplyWorkflowExecutionUpdateCompletedEvent(event *history.HistoryEvent, batchID int64) error { +func (m *MockMutableState) ApplyWorkflowExecutionUpdateCompletedEvent(event *v14.HistoryEvent, batchID int64) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyWorkflowExecutionUpdateCompletedEvent", event, batchID) ret0, _ := ret[0].(error) @@ -1563,25 +1557,25 @@ func (m *MockMutableState) ApplyWorkflowExecutionUpdateCompletedEvent(event *his } // ApplyWorkflowExecutionUpdateCompletedEvent indicates an expected call of ApplyWorkflowExecutionUpdateCompletedEvent. -func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionUpdateCompletedEvent(event, batchID any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyWorkflowExecutionUpdateCompletedEvent(event, batchID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyWorkflowExecutionUpdateCompletedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyWorkflowExecutionUpdateCompletedEvent), event, batchID) } // ApplyWorkflowPropertiesModifiedEvent mocks base method. -func (m *MockMutableState) ApplyWorkflowPropertiesModifiedEvent(arg0 *history.HistoryEvent) { +func (m *MockMutableState) ApplyWorkflowPropertiesModifiedEvent(arg0 *v14.HistoryEvent) { m.ctrl.T.Helper() m.ctrl.Call(m, "ApplyWorkflowPropertiesModifiedEvent", arg0) } // ApplyWorkflowPropertiesModifiedEvent indicates an expected call of ApplyWorkflowPropertiesModifiedEvent. -func (mr *MockMutableStateMockRecorder) ApplyWorkflowPropertiesModifiedEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyWorkflowPropertiesModifiedEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyWorkflowPropertiesModifiedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyWorkflowPropertiesModifiedEvent), arg0) } // ApplyWorkflowTaskCompletedEvent mocks base method. -func (m *MockMutableState) ApplyWorkflowTaskCompletedEvent(arg0 *history.HistoryEvent) error { +func (m *MockMutableState) ApplyWorkflowTaskCompletedEvent(arg0 *v14.HistoryEvent) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyWorkflowTaskCompletedEvent", arg0) ret0, _ := ret[0].(error) @@ -1589,7 +1583,7 @@ func (m *MockMutableState) ApplyWorkflowTaskCompletedEvent(arg0 *history.History } // ApplyWorkflowTaskCompletedEvent indicates an expected call of ApplyWorkflowTaskCompletedEvent. -func (mr *MockMutableStateMockRecorder) ApplyWorkflowTaskCompletedEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyWorkflowTaskCompletedEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyWorkflowTaskCompletedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyWorkflowTaskCompletedEvent), arg0) } @@ -1609,7 +1603,7 @@ func (mr *MockMutableStateMockRecorder) ApplyWorkflowTaskFailedEvent() *gomock.C } // ApplyWorkflowTaskScheduledEvent mocks base method. -func (m *MockMutableState) ApplyWorkflowTaskScheduledEvent(arg0, arg1 int64, arg2 *taskqueue.TaskQueue, arg3 *durationpb.Duration, arg4 int32, arg5, arg6 *timestamppb.Timestamp, arg7 enums0.WorkflowTaskType) (*WorkflowTaskInfo, error) { +func (m *MockMutableState) ApplyWorkflowTaskScheduledEvent(arg0, arg1 int64, arg2 *v15.TaskQueue, arg3 *durationpb.Duration, arg4 int32, arg5, arg6 *timestamppb.Timestamp, arg7 v110.WorkflowTaskType) (*WorkflowTaskInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyWorkflowTaskScheduledEvent", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) ret0, _ := ret[0].(*WorkflowTaskInfo) @@ -1618,13 +1612,13 @@ func (m *MockMutableState) ApplyWorkflowTaskScheduledEvent(arg0, arg1 int64, arg } // ApplyWorkflowTaskScheduledEvent indicates an expected call of ApplyWorkflowTaskScheduledEvent. -func (mr *MockMutableStateMockRecorder) ApplyWorkflowTaskScheduledEvent(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyWorkflowTaskScheduledEvent(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyWorkflowTaskScheduledEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyWorkflowTaskScheduledEvent), arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) } // ApplyWorkflowTaskStartedEvent mocks base method. -func (m *MockMutableState) ApplyWorkflowTaskStartedEvent(arg0 *WorkflowTaskInfo, arg1, arg2, arg3 int64, arg4 string, arg5 time.Time, arg6 bool, arg7 int64, arg8 *common.WorkerVersionStamp, arg9 int64, arg10 []enums.SuggestContinueAsNewReason, arg11 bool) (*WorkflowTaskInfo, error) { +func (m *MockMutableState) ApplyWorkflowTaskStartedEvent(arg0 *WorkflowTaskInfo, arg1, arg2, arg3 int64, arg4 string, arg5 time.Time, arg6 bool, arg7 int64, arg8 *v10.WorkerVersionStamp, arg9 int64, arg10 []v12.SuggestContinueAsNewReason, arg11 bool) (*WorkflowTaskInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyWorkflowTaskStartedEvent", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) ret0, _ := ret[0].(*WorkflowTaskInfo) @@ -1633,13 +1627,13 @@ func (m *MockMutableState) ApplyWorkflowTaskStartedEvent(arg0 *WorkflowTaskInfo, } // ApplyWorkflowTaskStartedEvent indicates an expected call of ApplyWorkflowTaskStartedEvent. -func (mr *MockMutableStateMockRecorder) ApplyWorkflowTaskStartedEvent(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyWorkflowTaskStartedEvent(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyWorkflowTaskStartedEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyWorkflowTaskStartedEvent), arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) } // ApplyWorkflowTaskTimedOutEvent mocks base method. -func (m *MockMutableState) ApplyWorkflowTaskTimedOutEvent(arg0 enums.TimeoutType) error { +func (m *MockMutableState) ApplyWorkflowTaskTimedOutEvent(arg0 v12.TimeoutType) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplyWorkflowTaskTimedOutEvent", arg0) ret0, _ := ret[0].(error) @@ -1647,19 +1641,19 @@ func (m *MockMutableState) ApplyWorkflowTaskTimedOutEvent(arg0 enums.TimeoutType } // ApplyWorkflowTaskTimedOutEvent indicates an expected call of ApplyWorkflowTaskTimedOutEvent. -func (mr *MockMutableStateMockRecorder) ApplyWorkflowTaskTimedOutEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ApplyWorkflowTaskTimedOutEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyWorkflowTaskTimedOutEvent", reflect.TypeOf((*MockMutableState)(nil).ApplyWorkflowTaskTimedOutEvent), arg0) } // AttachRequestID mocks base method. -func (m *MockMutableState) AttachRequestID(requestID string, eventType enums.EventType, eventID int64) { +func (m *MockMutableState) AttachRequestID(requestID string, eventType v12.EventType, eventID int64) { m.ctrl.T.Helper() m.ctrl.Call(m, "AttachRequestID", requestID, eventType, eventID) } // AttachRequestID indicates an expected call of AttachRequestID. -func (mr *MockMutableStateMockRecorder) AttachRequestID(requestID, eventType, eventID any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) AttachRequestID(requestID, eventType, eventID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachRequestID", reflect.TypeOf((*MockMutableState)(nil).AttachRequestID), requestID, eventType, eventID) } @@ -1693,33 +1687,33 @@ func (mr *MockMutableStateMockRecorder) ChasmTree() *gomock.Call { } // ChasmWorkflowComponent mocks base method. -func (m *MockMutableState) ChasmWorkflowComponent(ctx context.Context) (*workflow1.Workflow, chasm.MutableContext, error) { +func (m *MockMutableState) ChasmWorkflowComponent(ctx context.Context) (*workflow.Workflow, chasm.MutableContext, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ChasmWorkflowComponent", ctx) - ret0, _ := ret[0].(*workflow1.Workflow) + ret0, _ := ret[0].(*workflow.Workflow) ret1, _ := ret[1].(chasm.MutableContext) ret2, _ := ret[2].(error) return ret0, ret1, ret2 } // ChasmWorkflowComponent indicates an expected call of ChasmWorkflowComponent. -func (mr *MockMutableStateMockRecorder) ChasmWorkflowComponent(ctx any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ChasmWorkflowComponent(ctx interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChasmWorkflowComponent", reflect.TypeOf((*MockMutableState)(nil).ChasmWorkflowComponent), ctx) } // ChasmWorkflowComponentReadOnly mocks base method. -func (m *MockMutableState) ChasmWorkflowComponentReadOnly(ctx context.Context) (*workflow1.Workflow, chasm.Context, error) { +func (m *MockMutableState) ChasmWorkflowComponentReadOnly(ctx context.Context) (*workflow.Workflow, chasm.Context, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ChasmWorkflowComponentReadOnly", ctx) - ret0, _ := ret[0].(*workflow1.Workflow) + ret0, _ := ret[0].(*workflow.Workflow) ret1, _ := ret[1].(chasm.Context) ret2, _ := ret[2].(error) return ret0, ret1, ret2 } // ChasmWorkflowComponentReadOnly indicates an expected call of ChasmWorkflowComponentReadOnly. -func (mr *MockMutableStateMockRecorder) ChasmWorkflowComponentReadOnly(ctx any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ChasmWorkflowComponentReadOnly(ctx interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChasmWorkflowComponentReadOnly", reflect.TypeOf((*MockMutableState)(nil).ChasmWorkflowComponentReadOnly), ctx) } @@ -1747,7 +1741,7 @@ func (m *MockMutableState) CheckSpeculativeWorkflowTaskTimeoutTask(task *tasks.W } // CheckSpeculativeWorkflowTaskTimeoutTask indicates an expected call of CheckSpeculativeWorkflowTaskTimeoutTask. -func (mr *MockMutableStateMockRecorder) CheckSpeculativeWorkflowTaskTimeoutTask(task any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) CheckSpeculativeWorkflowTaskTimeoutTask(task interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckSpeculativeWorkflowTaskTimeoutTask", reflect.TypeOf((*MockMutableState)(nil).CheckSpeculativeWorkflowTaskTimeoutTask), task) } @@ -1779,10 +1773,10 @@ func (mr *MockMutableStateMockRecorder) ClearTransientWorkflowTask() *gomock.Cal } // CloneToProto mocks base method. -func (m *MockMutableState) CloneToProto() *persistence.WorkflowMutableState { +func (m *MockMutableState) CloneToProto() *v113.WorkflowMutableState { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CloneToProto") - ret0, _ := ret[0].(*persistence.WorkflowMutableState) + ret0, _ := ret[0].(*v113.WorkflowMutableState) return ret0 } @@ -1793,33 +1787,33 @@ func (mr *MockMutableStateMockRecorder) CloneToProto() *gomock.Call { } // CloseTransactionAsMutation mocks base method. -func (m *MockMutableState) CloseTransactionAsMutation(ctx context.Context, transactionPolicy TransactionPolicy) (*persistence0.WorkflowMutation, []*persistence0.WorkflowEvents, error) { +func (m *MockMutableState) CloseTransactionAsMutation(ctx context.Context, transactionPolicy TransactionPolicy) (*persistence.WorkflowMutation, []*persistence.WorkflowEvents, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CloseTransactionAsMutation", ctx, transactionPolicy) - ret0, _ := ret[0].(*persistence0.WorkflowMutation) - ret1, _ := ret[1].([]*persistence0.WorkflowEvents) + ret0, _ := ret[0].(*persistence.WorkflowMutation) + ret1, _ := ret[1].([]*persistence.WorkflowEvents) ret2, _ := ret[2].(error) return ret0, ret1, ret2 } // CloseTransactionAsMutation indicates an expected call of CloseTransactionAsMutation. -func (mr *MockMutableStateMockRecorder) CloseTransactionAsMutation(ctx, transactionPolicy any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) CloseTransactionAsMutation(ctx, transactionPolicy interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseTransactionAsMutation", reflect.TypeOf((*MockMutableState)(nil).CloseTransactionAsMutation), ctx, transactionPolicy) } // CloseTransactionAsSnapshot mocks base method. -func (m *MockMutableState) CloseTransactionAsSnapshot(ctx context.Context, transactionPolicy TransactionPolicy) (*persistence0.WorkflowSnapshot, []*persistence0.WorkflowEvents, error) { +func (m *MockMutableState) CloseTransactionAsSnapshot(ctx context.Context, transactionPolicy TransactionPolicy) (*persistence.WorkflowSnapshot, []*persistence.WorkflowEvents, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CloseTransactionAsSnapshot", ctx, transactionPolicy) - ret0, _ := ret[0].(*persistence0.WorkflowSnapshot) - ret1, _ := ret[1].([]*persistence0.WorkflowEvents) + ret0, _ := ret[0].(*persistence.WorkflowSnapshot) + ret1, _ := ret[1].([]*persistence.WorkflowEvents) ret2, _ := ret[2].(error) return ret0, ret1, ret2 } // CloseTransactionAsSnapshot indicates an expected call of CloseTransactionAsSnapshot. -func (mr *MockMutableStateMockRecorder) CloseTransactionAsSnapshot(ctx, transactionPolicy any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) CloseTransactionAsSnapshot(ctx, transactionPolicy interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseTransactionAsSnapshot", reflect.TypeOf((*MockMutableState)(nil).CloseTransactionAsSnapshot), ctx, transactionPolicy) } @@ -1833,16 +1827,16 @@ func (m *MockMutableState) ContinueAsNewMinBackoff(backoffDuration *durationpb.D } // ContinueAsNewMinBackoff indicates an expected call of ContinueAsNewMinBackoff. -func (mr *MockMutableStateMockRecorder) ContinueAsNewMinBackoff(backoffDuration any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ContinueAsNewMinBackoff(backoffDuration interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContinueAsNewMinBackoff", reflect.TypeOf((*MockMutableState)(nil).ContinueAsNewMinBackoff), backoffDuration) } // CurrentTaskQueue mocks base method. -func (m *MockMutableState) CurrentTaskQueue() *taskqueue.TaskQueue { +func (m *MockMutableState) CurrentTaskQueue() *v15.TaskQueue { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CurrentTaskQueue") - ret0, _ := ret[0].(*taskqueue.TaskQueue) + ret0, _ := ret[0].(*v15.TaskQueue) return ret0 } @@ -1853,10 +1847,10 @@ func (mr *MockMutableStateMockRecorder) CurrentTaskQueue() *gomock.Call { } // CurrentVersionedTransition mocks base method. -func (m *MockMutableState) CurrentVersionedTransition() *persistence.VersionedTransition { +func (m *MockMutableState) CurrentVersionedTransition() *v113.VersionedTransition { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CurrentVersionedTransition") - ret0, _ := ret[0].(*persistence.VersionedTransition) + ret0, _ := ret[0].(*v113.VersionedTransition) return ret0 } @@ -1873,7 +1867,7 @@ func (m *MockMutableState) DeleteCHASMPureTasks(maxScheduledTime time.Time) { } // DeleteCHASMPureTasks indicates an expected call of DeleteCHASMPureTasks. -func (mr *MockMutableStateMockRecorder) DeleteCHASMPureTasks(maxScheduledTime any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) DeleteCHASMPureTasks(maxScheduledTime interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCHASMPureTasks", reflect.TypeOf((*MockMutableState)(nil).DeleteCHASMPureTasks), maxScheduledTime) } @@ -1885,13 +1879,13 @@ func (m *MockMutableState) DeleteSignalRequested(requestID string) { } // DeleteSignalRequested indicates an expected call of DeleteSignalRequested. -func (mr *MockMutableStateMockRecorder) DeleteSignalRequested(requestID any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) DeleteSignalRequested(requestID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSignalRequested", reflect.TypeOf((*MockMutableState)(nil).DeleteSignalRequested), requestID) } // DeleteSubStateMachine mocks base method. -func (m *MockMutableState) DeleteSubStateMachine(path *persistence.StateMachinePath) error { +func (m *MockMutableState) DeleteSubStateMachine(path *v113.StateMachinePath) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteSubStateMachine", path) ret0, _ := ret[0].(error) @@ -1899,7 +1893,7 @@ func (m *MockMutableState) DeleteSubStateMachine(path *persistence.StateMachineP } // DeleteSubStateMachine indicates an expected call of DeleteSubStateMachine. -func (mr *MockMutableStateMockRecorder) DeleteSubStateMachine(path any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) DeleteSubStateMachine(path interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSubStateMachine", reflect.TypeOf((*MockMutableState)(nil).DeleteSubStateMachine), path) } @@ -1927,83 +1921,83 @@ func (m *MockMutableState) GenerateMigrationTasks(targetClusters []string) ([]ta } // GenerateMigrationTasks indicates an expected call of GenerateMigrationTasks. -func (mr *MockMutableStateMockRecorder) GenerateMigrationTasks(targetClusters any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GenerateMigrationTasks(targetClusters interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateMigrationTasks", reflect.TypeOf((*MockMutableState)(nil).GenerateMigrationTasks), targetClusters) } // GetActivityByActivityID mocks base method. -func (m *MockMutableState) GetActivityByActivityID(arg0 string) (*persistence.ActivityInfo, bool) { +func (m *MockMutableState) GetActivityByActivityID(arg0 string) (*v113.ActivityInfo, bool) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetActivityByActivityID", arg0) - ret0, _ := ret[0].(*persistence.ActivityInfo) + ret0, _ := ret[0].(*v113.ActivityInfo) ret1, _ := ret[1].(bool) return ret0, ret1 } // GetActivityByActivityID indicates an expected call of GetActivityByActivityID. -func (mr *MockMutableStateMockRecorder) GetActivityByActivityID(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetActivityByActivityID(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetActivityByActivityID", reflect.TypeOf((*MockMutableState)(nil).GetActivityByActivityID), arg0) } // GetActivityInfo mocks base method. -func (m *MockMutableState) GetActivityInfo(arg0 int64) (*persistence.ActivityInfo, bool) { +func (m *MockMutableState) GetActivityInfo(arg0 int64) (*v113.ActivityInfo, bool) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetActivityInfo", arg0) - ret0, _ := ret[0].(*persistence.ActivityInfo) + ret0, _ := ret[0].(*v113.ActivityInfo) ret1, _ := ret[1].(bool) return ret0, ret1 } // GetActivityInfo indicates an expected call of GetActivityInfo. -func (mr *MockMutableStateMockRecorder) GetActivityInfo(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetActivityInfo(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetActivityInfo", reflect.TypeOf((*MockMutableState)(nil).GetActivityInfo), arg0) } // GetActivityInfoWithTimerHeartbeat mocks base method. -func (m *MockMutableState) GetActivityInfoWithTimerHeartbeat(scheduledEventID int64) (*persistence.ActivityInfo, time.Time, bool) { +func (m *MockMutableState) GetActivityInfoWithTimerHeartbeat(scheduledEventID int64) (*v113.ActivityInfo, time.Time, bool) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetActivityInfoWithTimerHeartbeat", scheduledEventID) - ret0, _ := ret[0].(*persistence.ActivityInfo) + ret0, _ := ret[0].(*v113.ActivityInfo) ret1, _ := ret[1].(time.Time) ret2, _ := ret[2].(bool) return ret0, ret1, ret2 } // GetActivityInfoWithTimerHeartbeat indicates an expected call of GetActivityInfoWithTimerHeartbeat. -func (mr *MockMutableStateMockRecorder) GetActivityInfoWithTimerHeartbeat(scheduledEventID any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetActivityInfoWithTimerHeartbeat(scheduledEventID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetActivityInfoWithTimerHeartbeat", reflect.TypeOf((*MockMutableState)(nil).GetActivityInfoWithTimerHeartbeat), scheduledEventID) } // GetActivityScheduledEvent mocks base method. -func (m *MockMutableState) GetActivityScheduledEvent(arg0 context.Context, arg1 int64) (*history.HistoryEvent, error) { +func (m *MockMutableState) GetActivityScheduledEvent(arg0 context.Context, arg1 int64) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetActivityScheduledEvent", arg0, arg1) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // GetActivityScheduledEvent indicates an expected call of GetActivityScheduledEvent. -func (mr *MockMutableStateMockRecorder) GetActivityScheduledEvent(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetActivityScheduledEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetActivityScheduledEvent", reflect.TypeOf((*MockMutableState)(nil).GetActivityScheduledEvent), arg0, arg1) } // GetActivityType mocks base method. -func (m *MockMutableState) GetActivityType(arg0 context.Context, arg1 *persistence.ActivityInfo) (*common.ActivityType, error) { +func (m *MockMutableState) GetActivityType(arg0 context.Context, arg1 *v113.ActivityInfo) (*v10.ActivityType, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetActivityType", arg0, arg1) - ret0, _ := ret[0].(*common.ActivityType) + ret0, _ := ret[0].(*v10.ActivityType) ret1, _ := ret[1].(error) return ret0, ret1 } // GetActivityType indicates an expected call of GetActivityType. -func (mr *MockMutableStateMockRecorder) GetActivityType(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetActivityType(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetActivityType", reflect.TypeOf((*MockMutableState)(nil).GetActivityType), arg0, arg1) } @@ -2037,10 +2031,10 @@ func (mr *MockMutableStateMockRecorder) GetAssignedBuildId() *gomock.Call { } // GetBaseWorkflowInfo mocks base method. -func (m *MockMutableState) GetBaseWorkflowInfo() *workflow0.BaseExecutionInfo { +func (m *MockMutableState) GetBaseWorkflowInfo() *v115.BaseExecutionInfo { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBaseWorkflowInfo") - ret0, _ := ret[0].(*workflow0.BaseExecutionInfo) + ret0, _ := ret[0].(*v115.BaseExecutionInfo) return ret0 } @@ -2051,40 +2045,40 @@ func (mr *MockMutableStateMockRecorder) GetBaseWorkflowInfo() *gomock.Call { } // GetChildExecutionInfo mocks base method. -func (m *MockMutableState) GetChildExecutionInfo(arg0 int64) (*persistence.ChildExecutionInfo, bool) { +func (m *MockMutableState) GetChildExecutionInfo(arg0 int64) (*v113.ChildExecutionInfo, bool) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetChildExecutionInfo", arg0) - ret0, _ := ret[0].(*persistence.ChildExecutionInfo) + ret0, _ := ret[0].(*v113.ChildExecutionInfo) ret1, _ := ret[1].(bool) return ret0, ret1 } // GetChildExecutionInfo indicates an expected call of GetChildExecutionInfo. -func (mr *MockMutableStateMockRecorder) GetChildExecutionInfo(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetChildExecutionInfo(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChildExecutionInfo", reflect.TypeOf((*MockMutableState)(nil).GetChildExecutionInfo), arg0) } // GetChildExecutionInitiatedEvent mocks base method. -func (m *MockMutableState) GetChildExecutionInitiatedEvent(arg0 context.Context, arg1 int64) (*history.HistoryEvent, error) { +func (m *MockMutableState) GetChildExecutionInitiatedEvent(arg0 context.Context, arg1 int64) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetChildExecutionInitiatedEvent", arg0, arg1) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // GetChildExecutionInitiatedEvent indicates an expected call of GetChildExecutionInitiatedEvent. -func (mr *MockMutableStateMockRecorder) GetChildExecutionInitiatedEvent(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetChildExecutionInitiatedEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChildExecutionInitiatedEvent", reflect.TypeOf((*MockMutableState)(nil).GetChildExecutionInitiatedEvent), arg0, arg1) } // GetChildrenInitializedPostResetPoint mocks base method. -func (m *MockMutableState) GetChildrenInitializedPostResetPoint() map[string]*persistence.ResetChildInfo { +func (m *MockMutableState) GetChildrenInitializedPostResetPoint() map[string]*v113.ResetChildInfo { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetChildrenInitializedPostResetPoint") - ret0, _ := ret[0].(map[string]*persistence.ResetChildInfo) + ret0, _ := ret[0].(map[string]*v113.ResetChildInfo) return ret0 } @@ -2110,16 +2104,16 @@ func (mr *MockMutableStateMockRecorder) GetCloseVersion() *gomock.Call { } // GetCompletionEvent mocks base method. -func (m *MockMutableState) GetCompletionEvent(arg0 context.Context) (*history.HistoryEvent, error) { +func (m *MockMutableState) GetCompletionEvent(arg0 context.Context) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCompletionEvent", arg0) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // GetCompletionEvent indicates an expected call of GetCompletionEvent. -func (mr *MockMutableStateMockRecorder) GetCompletionEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetCompletionEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCompletionEvent", reflect.TypeOf((*MockMutableState)(nil).GetCompletionEvent), arg0) } @@ -2168,10 +2162,10 @@ func (mr *MockMutableStateMockRecorder) GetCurrentVersion() *gomock.Call { } // GetDeploymentTransition mocks base method. -func (m *MockMutableState) GetDeploymentTransition() *workflow.DeploymentTransition { +func (m *MockMutableState) GetDeploymentTransition() *v17.DeploymentTransition { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDeploymentTransition") - ret0, _ := ret[0].(*workflow.DeploymentTransition) + ret0, _ := ret[0].(*v17.DeploymentTransition) return ret0 } @@ -2182,10 +2176,10 @@ func (mr *MockMutableStateMockRecorder) GetDeploymentTransition() *gomock.Call { } // GetEffectiveDeployment mocks base method. -func (m *MockMutableState) GetEffectiveDeployment() *deployment.Deployment { +func (m *MockMutableState) GetEffectiveDeployment() *v11.Deployment { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetEffectiveDeployment") - ret0, _ := ret[0].(*deployment.Deployment) + ret0, _ := ret[0].(*v11.Deployment) return ret0 } @@ -2196,10 +2190,10 @@ func (mr *MockMutableStateMockRecorder) GetEffectiveDeployment() *gomock.Call { } // GetEffectiveVersioningBehavior mocks base method. -func (m *MockMutableState) GetEffectiveVersioningBehavior() enums.VersioningBehavior { +func (m *MockMutableState) GetEffectiveVersioningBehavior() v12.VersioningBehavior { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetEffectiveVersioningBehavior") - ret0, _ := ret[0].(enums.VersioningBehavior) + ret0, _ := ret[0].(v12.VersioningBehavior) return ret0 } @@ -2210,10 +2204,10 @@ func (mr *MockMutableStateMockRecorder) GetEffectiveVersioningBehavior() *gomock } // GetExecutionInfo mocks base method. -func (m *MockMutableState) GetExecutionInfo() *persistence.WorkflowExecutionInfo { +func (m *MockMutableState) GetExecutionInfo() *v113.WorkflowExecutionInfo { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetExecutionInfo") - ret0, _ := ret[0].(*persistence.WorkflowExecutionInfo) + ret0, _ := ret[0].(*v113.WorkflowExecutionInfo) return ret0 } @@ -2224,10 +2218,10 @@ func (mr *MockMutableStateMockRecorder) GetExecutionInfo() *gomock.Call { } // GetExecutionState mocks base method. -func (m *MockMutableState) GetExecutionState() *persistence.WorkflowExecutionState { +func (m *MockMutableState) GetExecutionState() *v113.WorkflowExecutionState { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetExecutionState") - ret0, _ := ret[0].(*persistence.WorkflowExecutionState) + ret0, _ := ret[0].(*v113.WorkflowExecutionState) return ret0 } @@ -2275,7 +2269,7 @@ func (m *MockMutableState) GetFirstRunID(ctx context.Context) (string, error) { } // GetFirstRunID indicates an expected call of GetFirstRunID. -func (mr *MockMutableStateMockRecorder) GetFirstRunID(ctx any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetFirstRunID(ctx interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFirstRunID", reflect.TypeOf((*MockMutableState)(nil).GetFirstRunID), ctx) } @@ -2368,10 +2362,10 @@ func (mr *MockMutableStateMockRecorder) GetLastWriteVersion() *gomock.Call { } // GetMostRecentWorkerVersionStamp mocks base method. -func (m *MockMutableState) GetMostRecentWorkerVersionStamp() *common.WorkerVersionStamp { +func (m *MockMutableState) GetMostRecentWorkerVersionStamp() *v10.WorkerVersionStamp { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetMostRecentWorkerVersionStamp") - ret0, _ := ret[0].(*common.WorkerVersionStamp) + ret0, _ := ret[0].(*v10.WorkerVersionStamp) return ret0 } @@ -2410,10 +2404,10 @@ func (mr *MockMutableStateMockRecorder) GetNextEventID() *gomock.Call { } // GetPendingActivityInfos mocks base method. -func (m *MockMutableState) GetPendingActivityInfos() map[int64]*persistence.ActivityInfo { +func (m *MockMutableState) GetPendingActivityInfos() map[int64]*v113.ActivityInfo { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPendingActivityInfos") - ret0, _ := ret[0].(map[int64]*persistence.ActivityInfo) + ret0, _ := ret[0].(map[int64]*v113.ActivityInfo) return ret0 } @@ -2424,10 +2418,10 @@ func (mr *MockMutableStateMockRecorder) GetPendingActivityInfos() *gomock.Call { } // GetPendingChildExecutionInfos mocks base method. -func (m *MockMutableState) GetPendingChildExecutionInfos() map[int64]*persistence.ChildExecutionInfo { +func (m *MockMutableState) GetPendingChildExecutionInfos() map[int64]*v113.ChildExecutionInfo { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPendingChildExecutionInfos") - ret0, _ := ret[0].(map[int64]*persistence.ChildExecutionInfo) + ret0, _ := ret[0].(map[int64]*v113.ChildExecutionInfo) return ret0 } @@ -2452,10 +2446,10 @@ func (mr *MockMutableStateMockRecorder) GetPendingChildIds() *gomock.Call { } // GetPendingRequestCancelExternalInfos mocks base method. -func (m *MockMutableState) GetPendingRequestCancelExternalInfos() map[int64]*persistence.RequestCancelInfo { +func (m *MockMutableState) GetPendingRequestCancelExternalInfos() map[int64]*v113.RequestCancelInfo { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPendingRequestCancelExternalInfos") - ret0, _ := ret[0].(map[int64]*persistence.RequestCancelInfo) + ret0, _ := ret[0].(map[int64]*v113.RequestCancelInfo) return ret0 } @@ -2466,10 +2460,10 @@ func (mr *MockMutableStateMockRecorder) GetPendingRequestCancelExternalInfos() * } // GetPendingSignalExternalInfos mocks base method. -func (m *MockMutableState) GetPendingSignalExternalInfos() map[int64]*persistence.SignalInfo { +func (m *MockMutableState) GetPendingSignalExternalInfos() map[int64]*v113.SignalInfo { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPendingSignalExternalInfos") - ret0, _ := ret[0].(map[int64]*persistence.SignalInfo) + ret0, _ := ret[0].(map[int64]*v113.SignalInfo) return ret0 } @@ -2494,10 +2488,10 @@ func (mr *MockMutableStateMockRecorder) GetPendingSignalRequestedIds() *gomock.C } // GetPendingTimerInfos mocks base method. -func (m *MockMutableState) GetPendingTimerInfos() map[string]*persistence.TimerInfo { +func (m *MockMutableState) GetPendingTimerInfos() map[string]*v113.TimerInfo { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPendingTimerInfos") - ret0, _ := ret[0].(map[string]*persistence.TimerInfo) + ret0, _ := ret[0].(map[string]*v113.TimerInfo) return ret0 } @@ -2536,10 +2530,10 @@ func (mr *MockMutableStateMockRecorder) GetQueryRegistry() *gomock.Call { } // GetReapplyCandidateEvents mocks base method. -func (m *MockMutableState) GetReapplyCandidateEvents() []*history.HistoryEvent { +func (m *MockMutableState) GetReapplyCandidateEvents() []*v14.HistoryEvent { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetReapplyCandidateEvents") - ret0, _ := ret[0].([]*history.HistoryEvent) + ret0, _ := ret[0].([]*v14.HistoryEvent) return ret0 } @@ -2550,91 +2544,91 @@ func (mr *MockMutableStateMockRecorder) GetReapplyCandidateEvents() *gomock.Call } // GetRequestCancelInfo mocks base method. -func (m *MockMutableState) GetRequestCancelInfo(arg0 int64) (*persistence.RequestCancelInfo, bool) { +func (m *MockMutableState) GetRequestCancelInfo(arg0 int64) (*v113.RequestCancelInfo, bool) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetRequestCancelInfo", arg0) - ret0, _ := ret[0].(*persistence.RequestCancelInfo) + ret0, _ := ret[0].(*v113.RequestCancelInfo) ret1, _ := ret[1].(bool) return ret0, ret1 } // GetRequestCancelInfo indicates an expected call of GetRequestCancelInfo. -func (mr *MockMutableStateMockRecorder) GetRequestCancelInfo(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetRequestCancelInfo(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRequestCancelInfo", reflect.TypeOf((*MockMutableState)(nil).GetRequestCancelInfo), arg0) } // GetRequesteCancelExternalInitiatedEvent mocks base method. -func (m *MockMutableState) GetRequesteCancelExternalInitiatedEvent(arg0 context.Context, arg1 int64) (*history.HistoryEvent, error) { +func (m *MockMutableState) GetRequesteCancelExternalInitiatedEvent(arg0 context.Context, arg1 int64) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetRequesteCancelExternalInitiatedEvent", arg0, arg1) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // GetRequesteCancelExternalInitiatedEvent indicates an expected call of GetRequesteCancelExternalInitiatedEvent. -func (mr *MockMutableStateMockRecorder) GetRequesteCancelExternalInitiatedEvent(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetRequesteCancelExternalInitiatedEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRequesteCancelExternalInitiatedEvent", reflect.TypeOf((*MockMutableState)(nil).GetRequesteCancelExternalInitiatedEvent), arg0, arg1) } // GetRetryBackoffDuration mocks base method. -func (m *MockMutableState) GetRetryBackoffDuration(arg0 *failure.Failure) (time.Duration, enums.RetryState) { +func (m *MockMutableState) GetRetryBackoffDuration(failure *v13.Failure) (time.Duration, v12.RetryState) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetRetryBackoffDuration", arg0) + ret := m.ctrl.Call(m, "GetRetryBackoffDuration", failure) ret0, _ := ret[0].(time.Duration) - ret1, _ := ret[1].(enums.RetryState) + ret1, _ := ret[1].(v12.RetryState) return ret0, ret1 } // GetRetryBackoffDuration indicates an expected call of GetRetryBackoffDuration. -func (mr *MockMutableStateMockRecorder) GetRetryBackoffDuration(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetRetryBackoffDuration(failure interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRetryBackoffDuration", reflect.TypeOf((*MockMutableState)(nil).GetRetryBackoffDuration), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRetryBackoffDuration", reflect.TypeOf((*MockMutableState)(nil).GetRetryBackoffDuration), failure) } // GetSignalExternalInitiatedEvent mocks base method. -func (m *MockMutableState) GetSignalExternalInitiatedEvent(arg0 context.Context, arg1 int64) (*history.HistoryEvent, error) { +func (m *MockMutableState) GetSignalExternalInitiatedEvent(arg0 context.Context, arg1 int64) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetSignalExternalInitiatedEvent", arg0, arg1) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // GetSignalExternalInitiatedEvent indicates an expected call of GetSignalExternalInitiatedEvent. -func (mr *MockMutableStateMockRecorder) GetSignalExternalInitiatedEvent(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetSignalExternalInitiatedEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSignalExternalInitiatedEvent", reflect.TypeOf((*MockMutableState)(nil).GetSignalExternalInitiatedEvent), arg0, arg1) } // GetSignalInfo mocks base method. -func (m *MockMutableState) GetSignalInfo(arg0 int64) (*persistence.SignalInfo, bool) { +func (m *MockMutableState) GetSignalInfo(arg0 int64) (*v113.SignalInfo, bool) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetSignalInfo", arg0) - ret0, _ := ret[0].(*persistence.SignalInfo) + ret0, _ := ret[0].(*v113.SignalInfo) ret1, _ := ret[1].(bool) return ret0, ret1 } // GetSignalInfo indicates an expected call of GetSignalInfo. -func (mr *MockMutableStateMockRecorder) GetSignalInfo(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetSignalInfo(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSignalInfo", reflect.TypeOf((*MockMutableState)(nil).GetSignalInfo), arg0) } // GetStartEvent mocks base method. -func (m *MockMutableState) GetStartEvent(arg0 context.Context) (*history.HistoryEvent, error) { +func (m *MockMutableState) GetStartEvent(arg0 context.Context) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetStartEvent", arg0) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // GetStartEvent indicates an expected call of GetStartEvent. -func (mr *MockMutableStateMockRecorder) GetStartEvent(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetStartEvent(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStartEvent", reflect.TypeOf((*MockMutableState)(nil).GetStartEvent), arg0) } @@ -2669,15 +2663,15 @@ func (mr *MockMutableStateMockRecorder) GetStartedWorkflowTask() *gomock.Call { } // GetTransientWorkflowTaskInfo mocks base method. -func (m *MockMutableState) GetTransientWorkflowTaskInfo(workflowTask *WorkflowTaskInfo, identity string) *history0.TransientWorkflowTaskInfo { +func (m *MockMutableState) GetTransientWorkflowTaskInfo(workflowTask *WorkflowTaskInfo, identity string) *v111.TransientWorkflowTaskInfo { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTransientWorkflowTaskInfo", workflowTask, identity) - ret0, _ := ret[0].(*history0.TransientWorkflowTaskInfo) + ret0, _ := ret[0].(*v111.TransientWorkflowTaskInfo) return ret0 } // GetTransientWorkflowTaskInfo indicates an expected call of GetTransientWorkflowTaskInfo. -func (mr *MockMutableStateMockRecorder) GetTransientWorkflowTaskInfo(workflowTask, identity any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetTransientWorkflowTaskInfo(workflowTask, identity interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTransientWorkflowTaskInfo", reflect.TypeOf((*MockMutableState)(nil).GetTransientWorkflowTaskInfo), workflowTask, identity) } @@ -2698,46 +2692,46 @@ func (mr *MockMutableStateMockRecorder) GetUpdateCondition() *gomock.Call { } // GetUpdateOutcome mocks base method. -func (m *MockMutableState) GetUpdateOutcome(ctx context.Context, updateID string) (*update.Outcome, error) { +func (m *MockMutableState) GetUpdateOutcome(ctx context.Context, updateID string) (*v16.Outcome, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetUpdateOutcome", ctx, updateID) - ret0, _ := ret[0].(*update.Outcome) + ret0, _ := ret[0].(*v16.Outcome) ret1, _ := ret[1].(error) return ret0, ret1 } // GetUpdateOutcome indicates an expected call of GetUpdateOutcome. -func (mr *MockMutableStateMockRecorder) GetUpdateOutcome(ctx, updateID any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetUpdateOutcome(ctx, updateID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUpdateOutcome", reflect.TypeOf((*MockMutableState)(nil).GetUpdateOutcome), ctx, updateID) } // GetUserTimerInfo mocks base method. -func (m *MockMutableState) GetUserTimerInfo(arg0 string) (*persistence.TimerInfo, bool) { +func (m *MockMutableState) GetUserTimerInfo(arg0 string) (*v113.TimerInfo, bool) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetUserTimerInfo", arg0) - ret0, _ := ret[0].(*persistence.TimerInfo) + ret0, _ := ret[0].(*v113.TimerInfo) ret1, _ := ret[1].(bool) return ret0, ret1 } // GetUserTimerInfo indicates an expected call of GetUserTimerInfo. -func (mr *MockMutableStateMockRecorder) GetUserTimerInfo(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetUserTimerInfo(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserTimerInfo", reflect.TypeOf((*MockMutableState)(nil).GetUserTimerInfo), arg0) } // GetUserTimerInfoByEventID mocks base method. -func (m *MockMutableState) GetUserTimerInfoByEventID(arg0 int64) (*persistence.TimerInfo, bool) { +func (m *MockMutableState) GetUserTimerInfoByEventID(arg0 int64) (*v113.TimerInfo, bool) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetUserTimerInfoByEventID", arg0) - ret0, _ := ret[0].(*persistence.TimerInfo) + ret0, _ := ret[0].(*v113.TimerInfo) ret1, _ := ret[1].(bool) return ret0, ret1 } // GetUserTimerInfoByEventID indicates an expected call of GetUserTimerInfoByEventID. -func (mr *MockMutableStateMockRecorder) GetUserTimerInfoByEventID(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetUserTimerInfoByEventID(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserTimerInfoByEventID", reflect.TypeOf((*MockMutableState)(nil).GetUserTimerInfoByEventID), arg0) } @@ -2766,7 +2760,7 @@ func (m *MockMutableState) GetWorkflowCloseTime(ctx context.Context) (time.Time, } // GetWorkflowCloseTime indicates an expected call of GetWorkflowCloseTime. -func (mr *MockMutableStateMockRecorder) GetWorkflowCloseTime(ctx any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetWorkflowCloseTime(ctx interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflowCloseTime", reflect.TypeOf((*MockMutableState)(nil).GetWorkflowCloseTime), ctx) } @@ -2781,7 +2775,7 @@ func (m *MockMutableState) GetWorkflowExecutionDuration(ctx context.Context) (ti } // GetWorkflowExecutionDuration indicates an expected call of GetWorkflowExecutionDuration. -func (mr *MockMutableStateMockRecorder) GetWorkflowExecutionDuration(ctx any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetWorkflowExecutionDuration(ctx interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflowExecutionDuration", reflect.TypeOf((*MockMutableState)(nil).GetWorkflowExecutionDuration), ctx) } @@ -2801,11 +2795,11 @@ func (mr *MockMutableStateMockRecorder) GetWorkflowKey() *gomock.Call { } // GetWorkflowStateStatus mocks base method. -func (m *MockMutableState) GetWorkflowStateStatus() (enums0.WorkflowExecutionState, enums.WorkflowExecutionStatus) { +func (m *MockMutableState) GetWorkflowStateStatus() (v110.WorkflowExecutionState, v12.WorkflowExecutionStatus) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetWorkflowStateStatus") - ret0, _ := ret[0].(enums0.WorkflowExecutionState) - ret1, _ := ret[1].(enums.WorkflowExecutionStatus) + ret0, _ := ret[0].(v110.WorkflowExecutionState) + ret1, _ := ret[1].(v12.WorkflowExecutionStatus) return ret0, ret1 } @@ -2824,7 +2818,7 @@ func (m *MockMutableState) GetWorkflowTaskByID(scheduledEventID int64) *Workflow } // GetWorkflowTaskByID indicates an expected call of GetWorkflowTaskByID. -func (mr *MockMutableStateMockRecorder) GetWorkflowTaskByID(scheduledEventID any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) GetWorkflowTaskByID(scheduledEventID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflowTaskByID", reflect.TypeOf((*MockMutableState)(nil).GetWorkflowTaskByID), scheduledEventID) } @@ -2858,10 +2852,10 @@ func (mr *MockMutableStateMockRecorder) GetWorkflowTaskStartToCloseTimeoutTask() } // GetWorkflowType mocks base method. -func (m *MockMutableState) GetWorkflowType() *common.WorkflowType { +func (m *MockMutableState) GetWorkflowType() *v10.WorkflowType { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetWorkflowType") - ret0, _ := ret[0].(*common.WorkflowType) + ret0, _ := ret[0].(*v10.WorkflowType) return ret0 } @@ -2908,7 +2902,7 @@ func (m *MockMutableState) HasAnyBufferedEvent(filter historybuilder.BufferedEve } // HasAnyBufferedEvent indicates an expected call of HasAnyBufferedEvent. -func (mr *MockMutableStateMockRecorder) HasAnyBufferedEvent(filter any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) HasAnyBufferedEvent(filter interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasAnyBufferedEvent", reflect.TypeOf((*MockMutableState)(nil).HasAnyBufferedEvent), filter) } @@ -2978,7 +2972,7 @@ func (m *MockMutableState) HasRequestID(requestID string) bool { } // HasRequestID indicates an expected call of HasRequestID. -func (mr *MockMutableStateMockRecorder) HasRequestID(requestID any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) HasRequestID(requestID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasRequestID", reflect.TypeOf((*MockMutableState)(nil).HasRequestID), requestID) } @@ -3089,7 +3083,7 @@ func (m *MockMutableState) IsResourceDuplicated(resourceDedupKey definition.Dedu } // IsResourceDuplicated indicates an expected call of IsResourceDuplicated. -func (mr *MockMutableStateMockRecorder) IsResourceDuplicated(resourceDedupKey any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) IsResourceDuplicated(resourceDedupKey interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsResourceDuplicated", reflect.TypeOf((*MockMutableState)(nil).IsResourceDuplicated), resourceDedupKey) } @@ -3103,7 +3097,7 @@ func (m *MockMutableState) IsSignalRequested(requestID string) bool { } // IsSignalRequested indicates an expected call of IsSignalRequested. -func (mr *MockMutableStateMockRecorder) IsSignalRequested(requestID any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) IsSignalRequested(requestID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsSignalRequested", reflect.TypeOf((*MockMutableState)(nil).IsSignalRequested), requestID) } @@ -3235,16 +3229,16 @@ func (mr *MockMutableStateMockRecorder) IsWorkflowPendingOnWorkflowTaskBackoff() } // LoadHistoryEvent mocks base method. -func (m *MockMutableState) LoadHistoryEvent(ctx context.Context, token []byte) (*history.HistoryEvent, error) { +func (m *MockMutableState) LoadHistoryEvent(ctx context.Context, token []byte) (*v14.HistoryEvent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LoadHistoryEvent", ctx, token) - ret0, _ := ret[0].(*history.HistoryEvent) + ret0, _ := ret[0].(*v14.HistoryEvent) ret1, _ := ret[1].(error) return ret0, ret1 } // LoadHistoryEvent indicates an expected call of LoadHistoryEvent. -func (mr *MockMutableStateMockRecorder) LoadHistoryEvent(ctx, token any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) LoadHistoryEvent(ctx, token interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadHistoryEvent", reflect.TypeOf((*MockMutableState)(nil).LoadHistoryEvent), ctx, token) } @@ -3278,13 +3272,13 @@ func (mr *MockMutableStateMockRecorder) PopTasks() *gomock.Call { } // RecordLastActivityCompleteTime mocks base method. -func (m *MockMutableState) RecordLastActivityCompleteTime(ai *persistence.ActivityInfo) { +func (m *MockMutableState) RecordLastActivityCompleteTime(ai *v113.ActivityInfo) { m.ctrl.T.Helper() m.ctrl.Call(m, "RecordLastActivityCompleteTime", ai) } // RecordLastActivityCompleteTime indicates an expected call of RecordLastActivityCompleteTime. -func (mr *MockMutableStateMockRecorder) RecordLastActivityCompleteTime(ai any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) RecordLastActivityCompleteTime(ai interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecordLastActivityCompleteTime", reflect.TypeOf((*MockMutableState)(nil).RecordLastActivityCompleteTime), ai) } @@ -3298,13 +3292,13 @@ func (m *MockMutableState) RefreshExpirationTimeoutTask(ctx context.Context) err } // RefreshExpirationTimeoutTask indicates an expected call of RefreshExpirationTimeoutTask. -func (mr *MockMutableStateMockRecorder) RefreshExpirationTimeoutTask(ctx any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) RefreshExpirationTimeoutTask(ctx interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RefreshExpirationTimeoutTask", reflect.TypeOf((*MockMutableState)(nil).RefreshExpirationTimeoutTask), ctx) } // RegenerateActivityRetryTask mocks base method. -func (m *MockMutableState) RegenerateActivityRetryTask(ai *persistence.ActivityInfo, newScheduledTime time.Time) error { +func (m *MockMutableState) RegenerateActivityRetryTask(ai *v113.ActivityInfo, newScheduledTime time.Time) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RegenerateActivityRetryTask", ai, newScheduledTime) ret0, _ := ret[0].(error) @@ -3312,13 +3306,13 @@ func (m *MockMutableState) RegenerateActivityRetryTask(ai *persistence.ActivityI } // RegenerateActivityRetryTask indicates an expected call of RegenerateActivityRetryTask. -func (mr *MockMutableStateMockRecorder) RegenerateActivityRetryTask(ai, newScheduledTime any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) RegenerateActivityRetryTask(ai, newScheduledTime interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegenerateActivityRetryTask", reflect.TypeOf((*MockMutableState)(nil).RegenerateActivityRetryTask), ai, newScheduledTime) } // RejectWorkflowExecutionUpdate mocks base method. -func (m *MockMutableState) RejectWorkflowExecutionUpdate(protocolInstanceID string, updRejection *update.Rejection) error { +func (m *MockMutableState) RejectWorkflowExecutionUpdate(protocolInstanceID string, updRejection *v16.Rejection) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RejectWorkflowExecutionUpdate", protocolInstanceID, updRejection) ret0, _ := ret[0].(error) @@ -3326,7 +3320,7 @@ func (m *MockMutableState) RejectWorkflowExecutionUpdate(protocolInstanceID stri } // RejectWorkflowExecutionUpdate indicates an expected call of RejectWorkflowExecutionUpdate. -func (mr *MockMutableStateMockRecorder) RejectWorkflowExecutionUpdate(protocolInstanceID, updRejection any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) RejectWorkflowExecutionUpdate(protocolInstanceID, updRejection interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RejectWorkflowExecutionUpdate", reflect.TypeOf((*MockMutableState)(nil).RejectWorkflowExecutionUpdate), protocolInstanceID, updRejection) } @@ -3344,18 +3338,18 @@ func (mr *MockMutableStateMockRecorder) RemoveSpeculativeWorkflowTaskTimeoutTask } // RetryActivity mocks base method. -func (m *MockMutableState) RetryActivity(ai *persistence.ActivityInfo, arg1 *failure.Failure) (enums.RetryState, error) { +func (m *MockMutableState) RetryActivity(ai *v113.ActivityInfo, failure *v13.Failure) (v12.RetryState, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RetryActivity", ai, arg1) - ret0, _ := ret[0].(enums.RetryState) + ret := m.ctrl.Call(m, "RetryActivity", ai, failure) + ret0, _ := ret[0].(v12.RetryState) ret1, _ := ret[1].(error) return ret0, ret1 } // RetryActivity indicates an expected call of RetryActivity. -func (mr *MockMutableStateMockRecorder) RetryActivity(ai, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) RetryActivity(ai, failure interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RetryActivity", reflect.TypeOf((*MockMutableState)(nil).RetryActivity), ai, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RetryActivity", reflect.TypeOf((*MockMutableState)(nil).RetryActivity), ai, failure) } // SetBaseWorkflow mocks base method. @@ -3365,19 +3359,19 @@ func (m *MockMutableState) SetBaseWorkflow(baseRunID string, baseRunLowestCommon } // SetBaseWorkflow indicates an expected call of SetBaseWorkflow. -func (mr *MockMutableStateMockRecorder) SetBaseWorkflow(baseRunID, baseRunLowestCommonAncestorEventID, baseRunLowestCommonAncestorEventVersion any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) SetBaseWorkflow(baseRunID, baseRunLowestCommonAncestorEventID, baseRunLowestCommonAncestorEventVersion interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBaseWorkflow", reflect.TypeOf((*MockMutableState)(nil).SetBaseWorkflow), baseRunID, baseRunLowestCommonAncestorEventID, baseRunLowestCommonAncestorEventVersion) } // SetChildrenInitializedPostResetPoint mocks base method. -func (m *MockMutableState) SetChildrenInitializedPostResetPoint(children map[string]*persistence.ResetChildInfo) { +func (m *MockMutableState) SetChildrenInitializedPostResetPoint(children map[string]*v113.ResetChildInfo) { m.ctrl.T.Helper() m.ctrl.Call(m, "SetChildrenInitializedPostResetPoint", children) } // SetChildrenInitializedPostResetPoint indicates an expected call of SetChildrenInitializedPostResetPoint. -func (mr *MockMutableStateMockRecorder) SetChildrenInitializedPostResetPoint(children any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) SetChildrenInitializedPostResetPoint(children interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetChildrenInitializedPostResetPoint", reflect.TypeOf((*MockMutableState)(nil).SetChildrenInitializedPostResetPoint), children) } @@ -3389,7 +3383,7 @@ func (m *MockMutableState) SetContextMetadata(arg0 context.Context) { } // SetContextMetadata indicates an expected call of SetContextMetadata. -func (mr *MockMutableStateMockRecorder) SetContextMetadata(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) SetContextMetadata(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetContextMetadata", reflect.TypeOf((*MockMutableState)(nil).SetContextMetadata), arg0) } @@ -3403,7 +3397,7 @@ func (m *MockMutableState) SetCurrentBranchToken(branchToken []byte) error { } // SetCurrentBranchToken indicates an expected call of SetCurrentBranchToken. -func (mr *MockMutableStateMockRecorder) SetCurrentBranchToken(branchToken any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) SetCurrentBranchToken(branchToken interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCurrentBranchToken", reflect.TypeOf((*MockMutableState)(nil).SetCurrentBranchToken), branchToken) } @@ -3415,7 +3409,7 @@ func (m *MockMutableState) SetHistoryBuilder(hBuilder *historybuilder.HistoryBui } // SetHistoryBuilder indicates an expected call of SetHistoryBuilder. -func (mr *MockMutableStateMockRecorder) SetHistoryBuilder(hBuilder any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) SetHistoryBuilder(hBuilder interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHistoryBuilder", reflect.TypeOf((*MockMutableState)(nil).SetHistoryBuilder), hBuilder) } @@ -3429,7 +3423,7 @@ func (m *MockMutableState) SetHistoryTree(executionTimeout, runTimeout *duration } // SetHistoryTree indicates an expected call of SetHistoryTree. -func (mr *MockMutableStateMockRecorder) SetHistoryTree(executionTimeout, runTimeout, treeID any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) SetHistoryTree(executionTimeout, runTimeout, treeID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHistoryTree", reflect.TypeOf((*MockMutableState)(nil).SetHistoryTree), executionTimeout, runTimeout, treeID) } @@ -3443,7 +3437,7 @@ func (m *MockMutableState) SetSpeculativeWorkflowTaskTimeoutTask(task *tasks.Wor } // SetSpeculativeWorkflowTaskTimeoutTask indicates an expected call of SetSpeculativeWorkflowTaskTimeoutTask. -func (mr *MockMutableStateMockRecorder) SetSpeculativeWorkflowTaskTimeoutTask(task any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) SetSpeculativeWorkflowTaskTimeoutTask(task interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSpeculativeWorkflowTaskTimeoutTask", reflect.TypeOf((*MockMutableState)(nil).SetSpeculativeWorkflowTaskTimeoutTask), task) } @@ -3455,7 +3449,7 @@ func (m *MockMutableState) SetStickyTaskQueue(name string, scheduleToStartTimeou } // SetStickyTaskQueue indicates an expected call of SetStickyTaskQueue. -func (mr *MockMutableStateMockRecorder) SetStickyTaskQueue(name, scheduleToStartTimeout any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) SetStickyTaskQueue(name, scheduleToStartTimeout interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetStickyTaskQueue", reflect.TypeOf((*MockMutableState)(nil).SetStickyTaskQueue), name, scheduleToStartTimeout) } @@ -3467,7 +3461,7 @@ func (m *MockMutableState) SetSuccessorRunID(runID string) { } // SetSuccessorRunID indicates an expected call of SetSuccessorRunID. -func (mr *MockMutableStateMockRecorder) SetSuccessorRunID(runID any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) SetSuccessorRunID(runID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSuccessorRunID", reflect.TypeOf((*MockMutableState)(nil).SetSuccessorRunID), runID) } @@ -3479,7 +3473,7 @@ func (m *MockMutableState) SetUpdateCondition(arg0, arg1 int64) { } // SetUpdateCondition indicates an expected call of SetUpdateCondition. -func (mr *MockMutableStateMockRecorder) SetUpdateCondition(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) SetUpdateCondition(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUpdateCondition", reflect.TypeOf((*MockMutableState)(nil).SetUpdateCondition), arg0, arg1) } @@ -3491,7 +3485,7 @@ func (m *MockMutableState) SetVersioningRevisionNumber(revisionNumber int64) { } // SetVersioningRevisionNumber indicates an expected call of SetVersioningRevisionNumber. -func (mr *MockMutableStateMockRecorder) SetVersioningRevisionNumber(revisionNumber any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) SetVersioningRevisionNumber(revisionNumber interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetVersioningRevisionNumber", reflect.TypeOf((*MockMutableState)(nil).SetVersioningRevisionNumber), revisionNumber) } @@ -3503,7 +3497,7 @@ func (m *MockMutableState) SetWorkflowTaskScheduleToStartTimeoutTask(task *tasks } // SetWorkflowTaskScheduleToStartTimeoutTask indicates an expected call of SetWorkflowTaskScheduleToStartTimeoutTask. -func (mr *MockMutableStateMockRecorder) SetWorkflowTaskScheduleToStartTimeoutTask(task any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) SetWorkflowTaskScheduleToStartTimeoutTask(task interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWorkflowTaskScheduleToStartTimeoutTask", reflect.TypeOf((*MockMutableState)(nil).SetWorkflowTaskScheduleToStartTimeoutTask), task) } @@ -3515,13 +3509,13 @@ func (m *MockMutableState) SetWorkflowTaskStartToCloseTimeoutTask(task *tasks.Wo } // SetWorkflowTaskStartToCloseTimeoutTask indicates an expected call of SetWorkflowTaskStartToCloseTimeoutTask. -func (mr *MockMutableStateMockRecorder) SetWorkflowTaskStartToCloseTimeoutTask(task any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) SetWorkflowTaskStartToCloseTimeoutTask(task interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWorkflowTaskStartToCloseTimeoutTask", reflect.TypeOf((*MockMutableState)(nil).SetWorkflowTaskStartToCloseTimeoutTask), task) } // ShouldResetActivityTimerTaskMask mocks base method. -func (m *MockMutableState) ShouldResetActivityTimerTaskMask(current, incoming *persistence.ActivityInfo) bool { +func (m *MockMutableState) ShouldResetActivityTimerTaskMask(current, incoming *v113.ActivityInfo) bool { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ShouldResetActivityTimerTaskMask", current, incoming) ret0, _ := ret[0].(bool) @@ -3529,23 +3523,23 @@ func (m *MockMutableState) ShouldResetActivityTimerTaskMask(current, incoming *p } // ShouldResetActivityTimerTaskMask indicates an expected call of ShouldResetActivityTimerTaskMask. -func (mr *MockMutableStateMockRecorder) ShouldResetActivityTimerTaskMask(current, incoming any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) ShouldResetActivityTimerTaskMask(current, incoming interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShouldResetActivityTimerTaskMask", reflect.TypeOf((*MockMutableState)(nil).ShouldResetActivityTimerTaskMask), current, incoming) } // StartDeploymentTransition mocks base method. -func (m *MockMutableState) StartDeploymentTransition(arg0 *deployment.Deployment, revisionNumber int64) error { +func (m *MockMutableState) StartDeploymentTransition(deployment *v11.Deployment, revisionNumber int64) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "StartDeploymentTransition", arg0, revisionNumber) + ret := m.ctrl.Call(m, "StartDeploymentTransition", deployment, revisionNumber) ret0, _ := ret[0].(error) return ret0 } // StartDeploymentTransition indicates an expected call of StartDeploymentTransition. -func (mr *MockMutableStateMockRecorder) StartDeploymentTransition(arg0, revisionNumber any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) StartDeploymentTransition(deployment, revisionNumber interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartDeploymentTransition", reflect.TypeOf((*MockMutableState)(nil).StartDeploymentTransition), arg0, revisionNumber) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartDeploymentTransition", reflect.TypeOf((*MockMutableState)(nil).StartDeploymentTransition), deployment, revisionNumber) } // StartTransaction mocks base method. @@ -3558,22 +3552,22 @@ func (m *MockMutableState) StartTransaction(entry *namespace.Namespace) (bool, e } // StartTransaction indicates an expected call of StartTransaction. -func (mr *MockMutableStateMockRecorder) StartTransaction(entry any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) StartTransaction(entry interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartTransaction", reflect.TypeOf((*MockMutableState)(nil).StartTransaction), entry) } // TaskQueueScheduleToStartTimeout mocks base method. -func (m *MockMutableState) TaskQueueScheduleToStartTimeout(name string) (*taskqueue.TaskQueue, *durationpb.Duration) { +func (m *MockMutableState) TaskQueueScheduleToStartTimeout(name string) (*v15.TaskQueue, *durationpb.Duration) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "TaskQueueScheduleToStartTimeout", name) - ret0, _ := ret[0].(*taskqueue.TaskQueue) + ret0, _ := ret[0].(*v15.TaskQueue) ret1, _ := ret[1].(*durationpb.Duration) return ret0, ret1 } // TaskQueueScheduleToStartTimeout indicates an expected call of TaskQueueScheduleToStartTimeout. -func (mr *MockMutableStateMockRecorder) TaskQueueScheduleToStartTimeout(name any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) TaskQueueScheduleToStartTimeout(name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TaskQueueScheduleToStartTimeout", reflect.TypeOf((*MockMutableState)(nil).TaskQueueScheduleToStartTimeout), name) } @@ -3587,13 +3581,13 @@ func (m *MockMutableState) UpdateActivity(arg0 int64, arg1 ActivityUpdater) erro } // UpdateActivity indicates an expected call of UpdateActivity. -func (mr *MockMutableStateMockRecorder) UpdateActivity(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) UpdateActivity(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateActivity", reflect.TypeOf((*MockMutableState)(nil).UpdateActivity), arg0, arg1) } // UpdateActivityInfo mocks base method. -func (m *MockMutableState) UpdateActivityInfo(arg0 *historyservice.ActivitySyncInfo, arg1 bool) error { +func (m *MockMutableState) UpdateActivityInfo(arg0 *v112.ActivitySyncInfo, arg1 bool) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateActivityInfo", arg0, arg1) ret0, _ := ret[0].(error) @@ -3601,19 +3595,19 @@ func (m *MockMutableState) UpdateActivityInfo(arg0 *historyservice.ActivitySyncI } // UpdateActivityInfo indicates an expected call of UpdateActivityInfo. -func (mr *MockMutableStateMockRecorder) UpdateActivityInfo(arg0, arg1 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) UpdateActivityInfo(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateActivityInfo", reflect.TypeOf((*MockMutableState)(nil).UpdateActivityInfo), arg0, arg1) } // UpdateActivityProgress mocks base method. -func (m *MockMutableState) UpdateActivityProgress(ai *persistence.ActivityInfo, request *workflowservice.RecordActivityTaskHeartbeatRequest) { +func (m *MockMutableState) UpdateActivityProgress(ai *v113.ActivityInfo, request *v18.RecordActivityTaskHeartbeatRequest) { m.ctrl.T.Helper() m.ctrl.Call(m, "UpdateActivityProgress", ai, request) } // UpdateActivityProgress indicates an expected call of UpdateActivityProgress. -func (mr *MockMutableStateMockRecorder) UpdateActivityProgress(ai, request any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) UpdateActivityProgress(ai, request interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateActivityProgress", reflect.TypeOf((*MockMutableState)(nil).UpdateActivityProgress), ai, request) } @@ -3627,7 +3621,7 @@ func (m *MockMutableState) UpdateActivityTaskStatusWithTimerHeartbeat(scheduleEv } // UpdateActivityTaskStatusWithTimerHeartbeat indicates an expected call of UpdateActivityTaskStatusWithTimerHeartbeat. -func (mr *MockMutableStateMockRecorder) UpdateActivityTaskStatusWithTimerHeartbeat(scheduleEventId, timerTaskStatus, heartbeatTimeoutVisibility any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) UpdateActivityTaskStatusWithTimerHeartbeat(scheduleEventId, timerTaskStatus, heartbeatTimeoutVisibility interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateActivityTaskStatusWithTimerHeartbeat", reflect.TypeOf((*MockMutableState)(nil).UpdateActivityTaskStatusWithTimerHeartbeat), scheduleEventId, timerTaskStatus, heartbeatTimeoutVisibility) } @@ -3641,7 +3635,7 @@ func (m *MockMutableState) UpdateBuildIdAssignment(buildId string) error { } // UpdateBuildIdAssignment indicates an expected call of UpdateBuildIdAssignment. -func (mr *MockMutableStateMockRecorder) UpdateBuildIdAssignment(buildId any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) UpdateBuildIdAssignment(buildId interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBuildIdAssignment", reflect.TypeOf((*MockMutableState)(nil).UpdateBuildIdAssignment), buildId) } @@ -3655,7 +3649,7 @@ func (m *MockMutableState) UpdateCurrentVersion(version int64, forceUpdate bool) } // UpdateCurrentVersion indicates an expected call of UpdateCurrentVersion. -func (mr *MockMutableStateMockRecorder) UpdateCurrentVersion(version, forceUpdate any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) UpdateCurrentVersion(version, forceUpdate interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCurrentVersion", reflect.TypeOf((*MockMutableState)(nil).UpdateCurrentVersion), version, forceUpdate) } @@ -3667,7 +3661,7 @@ func (m *MockMutableState) UpdateDuplicatedResource(resourceDedupKey definition. } // UpdateDuplicatedResource indicates an expected call of UpdateDuplicatedResource. -func (mr *MockMutableStateMockRecorder) UpdateDuplicatedResource(resourceDedupKey any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) UpdateDuplicatedResource(resourceDedupKey interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDuplicatedResource", reflect.TypeOf((*MockMutableState)(nil).UpdateDuplicatedResource), resourceDedupKey) } @@ -3679,13 +3673,13 @@ func (m *MockMutableState) UpdateResetRunID(runID string) { } // UpdateResetRunID indicates an expected call of UpdateResetRunID. -func (mr *MockMutableStateMockRecorder) UpdateResetRunID(runID any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) UpdateResetRunID(runID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateResetRunID", reflect.TypeOf((*MockMutableState)(nil).UpdateResetRunID), runID) } // UpdateUserTimer mocks base method. -func (m *MockMutableState) UpdateUserTimer(arg0 *persistence.TimerInfo) error { +func (m *MockMutableState) UpdateUserTimer(arg0 *v113.TimerInfo) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateUserTimer", arg0) ret0, _ := ret[0].(error) @@ -3693,7 +3687,7 @@ func (m *MockMutableState) UpdateUserTimer(arg0 *persistence.TimerInfo) error { } // UpdateUserTimer indicates an expected call of UpdateUserTimer. -func (mr *MockMutableStateMockRecorder) UpdateUserTimer(arg0 any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) UpdateUserTimer(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserTimer", reflect.TypeOf((*MockMutableState)(nil).UpdateUserTimer), arg0) } @@ -3707,13 +3701,13 @@ func (m *MockMutableState) UpdateUserTimerTaskStatus(timerId string, status int6 } // UpdateUserTimerTaskStatus indicates an expected call of UpdateUserTimerTaskStatus. -func (mr *MockMutableStateMockRecorder) UpdateUserTimerTaskStatus(timerId, status any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) UpdateUserTimerTaskStatus(timerId, status interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserTimerTaskStatus", reflect.TypeOf((*MockMutableState)(nil).UpdateUserTimerTaskStatus), timerId, status) } // UpdateWorkflowStateStatus mocks base method. -func (m *MockMutableState) UpdateWorkflowStateStatus(state enums0.WorkflowExecutionState, status enums.WorkflowExecutionStatus) (bool, error) { +func (m *MockMutableState) UpdateWorkflowStateStatus(state v110.WorkflowExecutionState, status v12.WorkflowExecutionStatus) (bool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateWorkflowStateStatus", state, status) ret0, _ := ret[0].(bool) @@ -3722,19 +3716,19 @@ func (m *MockMutableState) UpdateWorkflowStateStatus(state enums0.WorkflowExecut } // UpdateWorkflowStateStatus indicates an expected call of UpdateWorkflowStateStatus. -func (mr *MockMutableStateMockRecorder) UpdateWorkflowStateStatus(state, status any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) UpdateWorkflowStateStatus(state, status interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWorkflowStateStatus", reflect.TypeOf((*MockMutableState)(nil).UpdateWorkflowStateStatus), state, status) } // VisitUpdates mocks base method. -func (m *MockMutableState) VisitUpdates(visitor func(string, *persistence.UpdateInfo)) { +func (m *MockMutableState) VisitUpdates(visitor func(string, *v113.UpdateInfo)) { m.ctrl.T.Helper() m.ctrl.Call(m, "VisitUpdates", visitor) } // VisitUpdates indicates an expected call of VisitUpdates. -func (mr *MockMutableStateMockRecorder) VisitUpdates(visitor any) *gomock.Call { +func (mr *MockMutableStateMockRecorder) VisitUpdates(visitor interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VisitUpdates", reflect.TypeOf((*MockMutableState)(nil).VisitUpdates), visitor) } diff --git a/service/history/ndc/workflow_resetter.go b/service/history/ndc/workflow_resetter.go index 3005eb1d2c1..65c0c044b0c 100644 --- a/service/history/ndc/workflow_resetter.go +++ b/service/history/ndc/workflow_resetter.go @@ -541,6 +541,7 @@ func (r *workflowResetterImpl) failWorkflowTask( // skipping versioning checks because this task is not actually dispatched but will fail immediately. true, nil, + 0, ) if err != nil { return err diff --git a/service/history/ndc/workflow_resetter_test.go b/service/history/ndc/workflow_resetter_test.go index 486dbc77024..f1a4a490f56 100644 --- a/service/history/ndc/workflow_resetter_test.go +++ b/service/history/ndc/workflow_resetter_test.go @@ -397,6 +397,7 @@ func (s *workflowResetterSuite) TestFailWorkflowTask_WorkflowTaskScheduled() { nil, true, nil, + gomock.Any(), ).Return(&historypb.HistoryEvent{}, workflowTaskStart, nil) mutableState.EXPECT().AddWorkflowTaskFailedEvent( workflowTaskStart, @@ -1552,6 +1553,7 @@ func (s *workflowResetterSuite) TestWorkflowRestartAfterExecutionTimeout() { nil, true, nil, + gomock.Any(), ).Return(&historypb.HistoryEvent{}, workflowTaskStart, nil) resetMutableState.EXPECT().AddWorkflowTaskFailedEvent( diff --git a/service/history/workflow/mutable_state_impl.go b/service/history/workflow/mutable_state_impl.go index 7c6aa34e542..93772235237 100644 --- a/service/history/workflow/mutable_state_impl.go +++ b/service/history/workflow/mutable_state_impl.go @@ -2660,6 +2660,7 @@ func computeDeclinedTargetVersionUpgrade(info *persistencespb.WorkflowExecutionI if lastNotified := info.GetLastNotifiedTargetVersion(); lastNotified != nil { return &historypb.DeclinedTargetVersionUpgrade{ DeploymentVersion: lastNotified.GetDeploymentVersion(), + RevisionNumber: lastNotified.GetRevisionNumber(), } } return info.GetDeclinedTargetVersionUpgrade() @@ -3272,12 +3273,13 @@ func (ms *MutableStateImpl) AddWorkflowTaskStartedEvent( updateReg update.Registry, skipVersioningCheck bool, targetDeploymentVersion *deploymentpb.WorkerDeploymentVersion, + targetRevisionNumber int64, ) (*historypb.HistoryEvent, *historyi.WorkflowTaskInfo, error) { opTag := tag.WorkflowActionWorkflowTaskStarted if err := ms.checkMutability(opTag); err != nil { return nil, nil, err } - return ms.workflowTaskManager.AddWorkflowTaskStartedEvent(scheduledEventID, requestID, taskQueue, identity, versioningStamp, redirectInfo, skipVersioningCheck, updateReg, targetDeploymentVersion) + return ms.workflowTaskManager.AddWorkflowTaskStartedEvent(scheduledEventID, requestID, taskQueue, identity, versioningStamp, redirectInfo, skipVersioningCheck, updateReg, targetDeploymentVersion, targetRevisionNumber) } func (ms *MutableStateImpl) ApplyWorkflowTaskStartedEvent( diff --git a/service/history/workflow/mutable_state_impl_test.go b/service/history/workflow/mutable_state_impl_test.go index 8abffdfa19d..6260d90cfaf 100644 --- a/service/history/workflow/mutable_state_impl_test.go +++ b/service/history/workflow/mutable_state_impl_test.go @@ -330,6 +330,7 @@ func (s *mutableStateSuite) TestRedirectInfoValidation_Valid() { nil, false, nil, + 0, ) s.NoError(err) s.Equal("b2", wft.BuildId) @@ -355,6 +356,7 @@ func (s *mutableStateSuite) TestRedirectInfoValidation_Invalid() { nil, false, nil, + 0, ) expectedErr := &serviceerror2.ObsoleteDispatchBuildId{} s.ErrorAs(err, &expectedErr) @@ -378,6 +380,7 @@ func (s *mutableStateSuite) TestRedirectInfoValidation_EmptyRedirectInfo() { nil, false, nil, + 0, ) expectedErr := &serviceerror2.ObsoleteDispatchBuildId{} s.ErrorAs(err, &expectedErr) @@ -401,6 +404,7 @@ func (s *mutableStateSuite) TestRedirectInfoValidation_EmptyStamp() { nil, false, nil, + 0, ) expectedErr := &serviceerror2.ObsoleteDispatchBuildId{} s.ErrorAs(err, &expectedErr) @@ -426,6 +430,7 @@ func (s *mutableStateSuite) TestRedirectInfoValidation_Sticky() { nil, false, nil, + 0, ) s.NoError(err) s.Equal("", wft.BuildId) @@ -453,6 +458,7 @@ func (s *mutableStateSuite) TestRedirectInfoValidation_StickyInvalid() { nil, false, nil, + 0, ) expectedErr := &serviceerror2.ObsoleteDispatchBuildId{} s.ErrorAs(err, &expectedErr) @@ -477,6 +483,7 @@ func (s *mutableStateSuite) TestRedirectInfoValidation_UnexpectedSticky() { nil, false, nil, + 0, ) expectedErr := &serviceerror2.ObsoleteDispatchBuildId{} s.ErrorAs(err, &expectedErr) @@ -539,6 +546,7 @@ func (s *mutableStateSuite) TestPopulateDeleteTasks_WithWorkflowTaskTimeouts() { nil, false, nil, + 0, ) s.NoError(err) @@ -593,6 +601,7 @@ func (s *mutableStateSuite) TestPopulateDeleteTasks_LongTimeout_NotIncluded() { nil, false, nil, + 0, ) s.NoError(err) @@ -662,6 +671,7 @@ func (s *mutableStateSuite) createVersionedMutableStateWithCompletedWFT(tq *task nil, false, nil, + 0, ) s.NoError(err) s.Equal("b1", wft.BuildId) @@ -945,6 +955,7 @@ func (s *mutableStateSuite) createMutableStateWithVersioningBehavior( nil, false, nil, + 0, ) s.NoError(err) s.verifyEffectiveDeployment(deployment, enumspb.VERSIONING_BEHAVIOR_AUTO_UPGRADE) @@ -996,6 +1007,7 @@ func (s *mutableStateSuite) TestUnpinnedTransition() { nil, false, nil, + 0, ) s.NoError(err) s.verifyEffectiveDeployment(deployment2, behavior) @@ -1036,6 +1048,7 @@ func (s *mutableStateSuite) TestUnpinnedTransitionFailed() { nil, false, nil, + 0, ) s.NoError(err) s.verifyEffectiveDeployment(deployment2, behavior) @@ -1079,6 +1092,7 @@ func (s *mutableStateSuite) TestUnpinnedTransitionTimeout() { nil, false, nil, + 0, ) s.NoError(err) s.verifyEffectiveDeployment(deployment2, behavior) @@ -1274,6 +1288,7 @@ func (s *mutableStateSuite) TestOverride_BaseDeploymentUpdatedOnCompletion() { nil, false, nil, + 0, ) s.NoError(err) s.verifyEffectiveDeployment(deployment3, overrideBehavior) @@ -1729,6 +1744,7 @@ func (s *mutableStateSuite) TestAddWorkflowExecutionPausedEvent() { nil, false, nil, + 0, ) s.NoError(err) completedEvent, err := s.mutableState.AddWorkflowTaskCompletedEvent( @@ -1792,6 +1808,7 @@ func (s *mutableStateSuite) TestAddWorkflowExecutionUnpausedEvent() { nil, false, nil, + 0, ) s.NoError(err) completedEvent, err := s.mutableState.AddWorkflowTaskCompletedEvent( @@ -2015,6 +2032,7 @@ func (s *mutableStateSuite) TestTransientWorkflowTaskStart_CurrentVersionChanged nil, false, nil, + 0, ) s.NoError(err) s.Equal(0, s.mutableState.hBuilder.NumBufferedEvents()) diff --git a/service/history/workflow/workflow_task_state_machine.go b/service/history/workflow/workflow_task_state_machine.go index 0d94316c657..7d4d4d7ab00 100644 --- a/service/history/workflow/workflow_task_state_machine.go +++ b/service/history/workflow/workflow_task_state_machine.go @@ -463,6 +463,7 @@ func (m *workflowTaskStateMachine) AddWorkflowTaskStartedEvent( skipVersioningCheck bool, updateReg update.Registry, targetDeploymentVersion *deploymentpb.WorkerDeploymentVersion, + targetRevisionNumber int64, ) (*historypb.HistoryEvent, *historyi.WorkflowTaskInfo, error) { opTag := tag.WorkflowActionWorkflowTaskStarted workflowTask := m.GetWorkflowTaskByID(scheduledEventID) @@ -515,15 +516,15 @@ func (m *workflowTaskStateMachine) AddWorkflowTaskStartedEvent( // TODO (Shivam): Revision number mechanics to strengthen this check m.ms.executionInfo.DeclinedTargetVersionUpgrade = nil m.ms.executionInfo.LastNotifiedTargetVersion = nil - // 4. Previously declined upgrade — target unchanged since the decline. + // 4. Previously declined upgrade — target revision is not newer than what was declined. case m.ms.executionInfo.GetDeclinedTargetVersionUpgrade() != nil && - m.ms.executionInfo.GetDeclinedTargetVersionUpgrade().GetDeploymentVersion().GetBuildId() == targetDeploymentVersion.GetBuildId() && - m.ms.executionInfo.GetDeclinedTargetVersionUpgrade().GetDeploymentVersion().GetDeploymentName() == targetDeploymentVersion.GetDeploymentName(): + targetRevisionNumber <= m.ms.executionInfo.GetDeclinedTargetVersionUpgrade().GetRevisionNumber(): default: // Otherwise — target changed + did not decline to upgrade on CaN/retry. Signal the SDK. targetDeploymentVersionChanged = true m.ms.executionInfo.LastNotifiedTargetVersion = &persistencespb.LastNotifiedTargetVersion{ DeploymentVersion: targetDeploymentVersion, + RevisionNumber: targetRevisionNumber, } m.ms.executionInfo.DeclinedTargetVersionUpgrade = nil } diff --git a/service/history/workflow/workflow_test/mutable_state_impl_test.go b/service/history/workflow/workflow_test/mutable_state_impl_test.go index fe97c59f4b3..2f8ea11428a 100644 --- a/service/history/workflow/workflow_test/mutable_state_impl_test.go +++ b/service/history/workflow/workflow_test/mutable_state_impl_test.go @@ -138,6 +138,7 @@ func (c *mutationTestCase) startWFT( nil, false, nil, + 0, ) if err != nil { t.Fatal(err) @@ -446,6 +447,7 @@ func TestGetNexusCompletion(t *testing.T) { nil, false, nil, + 0, ) require.NoError(t, err) _, err = ms.AddWorkflowTaskCompletedEvent(workflowTask, &workflowservice.RespondWorkflowTaskCompletedRequest{ diff --git a/service/matching/task_queue_partition_manager.go b/service/matching/task_queue_partition_manager.go index 431c3ba070e..332866a5a86 100644 --- a/service/matching/task_queue_partition_manager.go +++ b/service/matching/task_queue_partition_manager.go @@ -1819,7 +1819,7 @@ func (pm *taskQueuePartitionManagerImpl) getPhysicalQueuesForAdd( if wfBehavior == enumspb.VERSIONING_BEHAVIOR_PINNED { if pm.partition.Kind() == enumspb.TASK_QUEUE_KIND_STICKY { // TODO (shahab): we can verify the passed deployment matches the last poller's deployment - return dbq, dbq, userDataChanged, 0, targetDeploymentVersion, nil + return dbq, dbq, userDataChanged, targetDeploymentRevisionNumber, targetDeploymentVersion, nil } err = worker_versioning.ValidateDeployment(deployment) @@ -1849,15 +1849,15 @@ func (pm *taskQueuePartitionManagerImpl) getPhysicalQueuesForAdd( if !isIndependentPinnedActivity { pinnedQueue, err := pm.getVersionedQueue(ctx, "", "", deployment, true) if err != nil { - return nil, nil, nil, 0, nil, err // TODO (Shivam): Please add the comment in the proto to explain that pinned tasks and sticky tasks get 0 for the rev number. + return nil, nil, nil, 0, nil, err } if forwardInfo == nil { // Task is not forwarded, so it can be spooled if sync match fails. // Spool queue and sync match queue is the same for pinned workflows. - return pinnedQueue, pinnedQueue, userDataChanged, 0, targetDeploymentVersion, nil + return pinnedQueue, pinnedQueue, userDataChanged, targetDeploymentRevisionNumber, targetDeploymentVersion, nil } else { // Forwarded from child partition - only do sync match. - return nil, pinnedQueue, userDataChanged, 0, targetDeploymentVersion, nil + return nil, pinnedQueue, userDataChanged, targetDeploymentRevisionNumber, targetDeploymentVersion, nil } } } diff --git a/tests/versioning_3_test.go b/tests/versioning_3_test.go index d3e7db86795..cbe88e28cca 100644 --- a/tests/versioning_3_test.go +++ b/tests/versioning_3_test.go @@ -5900,6 +5900,150 @@ func (s *Versioning3Suite) TestRemoveOverride_ClearsDeclinedState() { }) } +// TestStalePartition_RevisionSuppressesTrampolining verifies that when a stale +// matching partition sends an outdated target version, the revision-based +// comparison in case 4 suppresses the signal and prevents trampolining. +// +// Flow: +// 1. Start pinned workflow on v1, set v1 as current +// 2. Set v2 as current (revision increments) +// 3. Set v3 as current (revision increments again) +// 4. Trigger WFT → signal fires (target=v3 at high revision), CaN with decline +// 5. Roll back task queue to v2 with revision 0 (simulating stale partition) +// 6. Trigger WFT → assert targetDeploymentVersionChanged=false (revision 0 <= declined revision) +// 7. Set v4 as current (fresh version with higher revision) +// 8. Trigger WFT → assert targetDeploymentVersionChanged=true (new revision > declined revision) +func (s *Versioning3Suite) TestStalePartition_RevisionSuppressesTrampolining() { + s.OverrideDynamicConfig(dynamicconfig.MatchingNumTaskqueueReadPartitions, 1) + s.OverrideDynamicConfig(dynamicconfig.MatchingNumTaskqueueWritePartitions, 1) + + ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second) + defer cancel() + + tv1 := testvars.New(s).WithBuildIDNumber(1) + tv2 := tv1.WithBuildIDNumber(2) + tv3 := tv1.WithBuildIDNumber(3) + + // Start async poller for v1 that handles first WFT and declares pinned behavior + wftCompleted := make(chan struct{}) + s.pollWftAndHandle(tv1, false, wftCompleted, + func(task *workflowservice.PollWorkflowTaskQueueResponse) (*workflowservice.RespondWorkflowTaskCompletedRequest, error) { + s.NotNil(task) + return respondEmptyWft(tv1, false, vbPinned), nil + }) + + // Register v1 and set it as current + s.waitForDeploymentDataPropagation(tv1, versionStatusInactive, false, tqTypeWf) + s.setCurrentDeployment(tv1) + + // Start workflow — first WFT handled by async poller (pinned on v1) + runID := s.startWorkflow(tv1, nil) + execution := tv1.WithRunID(runID).WorkflowExecution() + s.WaitForChannel(ctx, wftCompleted) + s.verifyWorkflowVersioning(s.Assertions, tv1, vbPinned, tv1.Deployment(), nil, nil) + + // Register v2, set v2 as current (revision increments) + s.idlePollWorkflow(ctx, tv2, true, ver3MinPollTime, "v2 poller registration") + s.setCurrentDeployment(tv2) + + // Register v3, set v3 as current (revision increments again) + s.idlePollWorkflow(ctx, tv3, true, ver3MinPollTime, "v3 poller registration") + s.setCurrentDeployment(tv3) + + // Trigger WFT — target should be v3 with a high revision + s.triggerNormalWFT(ctx, tv1, execution) + + // Process: targetDeploymentVersionChanged=true → CaN without AU (decline v3) + s.pollWftAndHandle(tv1, false, nil, + func(task *workflowservice.PollWorkflowTaskQueueResponse) (*workflowservice.RespondWorkflowTaskCompletedRequest, error) { + s.NotNil(task) + var lastStarted *historypb.HistoryEvent + for _, event := range task.History.GetEvents() { + if event.GetEventType() == enumspb.EVENT_TYPE_WORKFLOW_TASK_STARTED { + lastStarted = event + } + } + s.NotNil(lastStarted) + s.True(lastStarted.GetWorkflowTaskStartedEventAttributes().GetTargetWorkerDeploymentVersionChanged(), + "expected true after v3 becomes current") + + return &workflowservice.RespondWorkflowTaskCompletedRequest{ + Commands: []*commandpb.Command{ + { + CommandType: enumspb.COMMAND_TYPE_CONTINUE_AS_NEW_WORKFLOW_EXECUTION, + Attributes: &commandpb.Command_ContinueAsNewWorkflowExecutionCommandAttributes{ + ContinueAsNewWorkflowExecutionCommandAttributes: &commandpb.ContinueAsNewWorkflowExecutionCommandAttributes{ + WorkflowType: tv1.WorkflowType(), + TaskQueue: tv1.TaskQueue(), + Input: tv1.Any().Payloads(), + }, + }, + }, + }, + VersioningBehavior: vbPinned, + DeploymentOptions: tv1.WorkerDeploymentOptions(true), + }, nil + }) + + // CaN run: first WFT — declined=v3 propagated from previous run + s.pollWftAndHandle(tv1, false, nil, + func(task *workflowservice.PollWorkflowTaskQueueResponse) (*workflowservice.RespondWorkflowTaskCompletedRequest, error) { + s.NotNil(task) + s.NotEqual(execution.RunId, task.WorkflowExecution.RunId, + "CaN should have created a new run") + execution = task.WorkflowExecution + return respondEmptyWft(tv1, false, vbPinned), nil + }) + + // Simulate stale partition: roll back task queue to v2 with revision 0 + s.rollbackTaskQueueToVersion(tv2) + + // Trigger WFT with stale data — target is now v2 at revision 0 + s.triggerNormalWFT(ctx, tv1, execution) + + // Assert: revision 0 <= declined revision → signal suppressed + s.pollWftAndHandle(tv1, false, nil, + func(task *workflowservice.PollWorkflowTaskQueueResponse) (*workflowservice.RespondWorkflowTaskCompletedRequest, error) { + s.NotNil(task) + var lastStarted *historypb.HistoryEvent + for _, event := range task.History.GetEvents() { + if event.GetEventType() == enumspb.EVENT_TYPE_WORKFLOW_TASK_STARTED { + lastStarted = event + } + } + s.NotNil(lastStarted) + s.False(lastStarted.GetWorkflowTaskStartedEventAttributes().GetTargetWorkerDeploymentVersionChanged(), + "stale partition (revision 0) should be suppressed by declined revision") + return respondEmptyWft(tv1, false, vbPinned), nil + }) + + // Set a new v4 as current — this produces a revision strictly higher than + // the declined revision, simulating an up-to-date partition with fresh data. + tv4 := tv1.WithBuildIDNumber(4) + s.idlePollWorkflow(ctx, tv4, true, ver3MinPollTime, "v4 poller registration") + s.setCurrentDeployment(tv4) + s.waitForDeploymentDataPropagation(tv4, versionStatusCurrent, false, tqTypeWf) + + // Trigger WFT with fresh data — target is v4 at higher revision + s.triggerNormalWFT(ctx, tv1, execution) + + // Assert: new revision > declined revision → signal fires + s.pollWftAndHandle(tv1, false, nil, + func(task *workflowservice.PollWorkflowTaskQueueResponse) (*workflowservice.RespondWorkflowTaskCompletedRequest, error) { + s.NotNil(task) + var lastStarted *historypb.HistoryEvent + for _, event := range task.History.GetEvents() { + if event.GetEventType() == enumspb.EVENT_TYPE_WORKFLOW_TASK_STARTED { + lastStarted = event + } + } + s.NotNil(lastStarted) + s.True(lastStarted.GetWorkflowTaskStartedEventAttributes().GetTargetWorkerDeploymentVersionChanged(), + "up-to-date partition with higher revision should fire signal") + return respondCompleteWorkflow(tv1, vbPinned), nil + }) +} + // TestRetryOfDeclinedCaN_SignalsOnNewTarget verifies that when a CaN'd run // ,which declined to upgrade, fails and is retried by the server, the retry // run inherits NotificationSuppressedTargetVersion from the original CaN