@@ -304,10 +304,10 @@ func (s *TestBase) CreateWorkflowExecutionWithBranchToken(namespaceID string, wo
304304 WorkflowRunTimeout : wTimeout ,
305305 DefaultWorkflowTaskTimeout : workflowTaskTimeout ,
306306 ExecutionState : & persistenceblobs.WorkflowExecutionState {
307- RunId : workflowExecution .GetRunId (),
308- CreateRequestId : uuid .New (),
309- State : enumsspb .WORKFLOW_EXECUTION_STATE_RUNNING ,
310- Status : enumspb .WORKFLOW_EXECUTION_STATUS_RUNNING ,
307+ RunId : workflowExecution .GetRunId (),
308+ CreateRequestId : uuid .New (),
309+ State : enumsspb .WORKFLOW_EXECUTION_STATE_RUNNING ,
310+ Status : enumspb .WORKFLOW_EXECUTION_STATUS_RUNNING ,
311311 },
312312 LastFirstEventId : common .FirstEventID ,
313313 NextEventId : nextEventID ,
@@ -371,14 +371,14 @@ func (s *TestBase) CreateWorkflowExecutionManyTasks(namespaceID string, workflow
371371 response , err := s .ExecutionManager .CreateWorkflowExecution (& p.CreateWorkflowExecutionRequest {
372372 NewWorkflowSnapshot : p.WorkflowSnapshot {
373373 ExecutionInfo : & p.WorkflowExecutionInfo {
374- NamespaceId : namespaceID ,
375- WorkflowId : workflowExecution .GetWorkflowId (),
376- TaskQueue : taskQueue ,
374+ NamespaceId : namespaceID ,
375+ WorkflowId : workflowExecution .GetWorkflowId (),
376+ TaskQueue : taskQueue ,
377377 ExecutionState : & persistenceblobs.WorkflowExecutionState {
378378 RunId : workflowExecution .GetRunId (),
379379 CreateRequestId : uuid .New (),
380- State : enumsspb .WORKFLOW_EXECUTION_STATE_RUNNING ,
381- Status : enumspb .WORKFLOW_EXECUTION_STATUS_RUNNING ,
380+ State : enumsspb .WORKFLOW_EXECUTION_STATE_RUNNING ,
381+ Status : enumspb .WORKFLOW_EXECUTION_STATUS_RUNNING ,
382382 },
383383 LastFirstEventId : common .FirstEventID ,
384384 NextEventId : nextEventID ,
@@ -417,9 +417,9 @@ func (s *TestBase) CreateChildWorkflowExecution(namespaceID string, workflowExec
417417 WorkflowRunTimeout : wTimeout ,
418418 DefaultWorkflowTaskTimeout : workflowTaskTimeout ,
419419 ExecutionState : & persistenceblobs.WorkflowExecutionState {State : enumsspb .WORKFLOW_EXECUTION_STATE_CREATED ,
420- RunId : workflowExecution .GetRunId (),
421- CreateRequestId : uuid .New (),
422- Status : enumspb .WORKFLOW_EXECUTION_STATUS_RUNNING ,
420+ RunId : workflowExecution .GetRunId (),
421+ CreateRequestId : uuid .New (),
422+ Status : enumspb .WORKFLOW_EXECUTION_STATUS_RUNNING ,
423423 },
424424 LastFirstEventId : common .FirstEventID ,
425425 NextEventId : nextEventID ,
@@ -519,10 +519,10 @@ func (s *TestBase) ContinueAsNewExecution(updatedInfo *p.WorkflowExecutionInfo,
519519 DefaultWorkflowTaskTimeout : updatedInfo .DefaultWorkflowTaskTimeout ,
520520
521521 ExecutionState : & persistenceblobs.WorkflowExecutionState {
522- RunId : newExecution .GetRunId (),
523- CreateRequestId : uuid .New (),
524- State : updatedInfo .ExecutionState .State ,
525- Status : updatedInfo .ExecutionState .Status ,
522+ RunId : newExecution .GetRunId (),
523+ CreateRequestId : uuid .New (),
524+ State : updatedInfo .ExecutionState .State ,
525+ Status : updatedInfo .ExecutionState .Status ,
526526 },
527527
528528 LastFirstEventId : common .FirstEventID ,
@@ -537,8 +537,7 @@ func (s *TestBase) ContinueAsNewExecution(updatedInfo *p.WorkflowExecutionInfo,
537537 TransferTasks : nil ,
538538 TimerTasks : nil ,
539539 },
540- RangeID : s .ShardInfo .GetRangeId (),
541- Encoding : pickRandomEncoding (),
540+ RangeID : s .ShardInfo .GetRangeId (),
542541 }
543542 req .UpdateWorkflowMutation .ExecutionInfo .ExecutionState .State = enumsspb .WORKFLOW_EXECUTION_STATE_COMPLETED
544543 req .UpdateWorkflowMutation .ExecutionInfo .ExecutionState .Status = enumspb .WORKFLOW_EXECUTION_STATUS_CONTINUED_AS_NEW
@@ -574,7 +573,6 @@ func (s *TestBase) UpdateWorkflowExecutionAndFinish(updatedInfo *p.WorkflowExecu
574573 UpsertTimerInfos : nil ,
575574 DeleteTimerInfos : nil ,
576575 },
577- Encoding : pickRandomEncoding (),
578576 })
579577 return err
580578}
@@ -736,7 +734,6 @@ func (s *TestBase) UpdateWorkflowExecutionWithReplication(updatedInfo *p.Workflo
736734 Condition : condition ,
737735 Checksum : testWorkflowChecksum ,
738736 },
739- Encoding : pickRandomEncoding (),
740737 })
741738 return err
742739}
@@ -752,8 +749,7 @@ func (s *TestBase) UpdateWorkflowExecutionWithTransferTasks(
752749 Condition : condition ,
753750 UpsertActivityInfos : upsertActivityInfo ,
754751 },
755- RangeID : s .ShardInfo .GetRangeId (),
756- Encoding : pickRandomEncoding (),
752+ RangeID : s .ShardInfo .GetRangeId (),
757753 })
758754 return err
759755}
@@ -769,8 +765,7 @@ func (s *TestBase) UpdateWorkflowExecutionForChildExecutionsInitiated(
769765 Condition : condition ,
770766 UpsertChildExecutionInfos : childInfos ,
771767 },
772- RangeID : s .ShardInfo .GetRangeId (),
773- Encoding : pickRandomEncoding (),
768+ RangeID : s .ShardInfo .GetRangeId (),
774769 })
775770 return err
776771}
@@ -787,8 +782,7 @@ func (s *TestBase) UpdateWorkflowExecutionForRequestCancel(
787782 Condition : condition ,
788783 UpsertRequestCancelInfos : upsertRequestCancelInfo ,
789784 },
790- RangeID : s .ShardInfo .GetRangeId (),
791- Encoding : pickRandomEncoding (),
785+ RangeID : s .ShardInfo .GetRangeId (),
792786 })
793787 return err
794788}
@@ -805,8 +799,7 @@ func (s *TestBase) UpdateWorkflowExecutionForSignal(
805799 Condition : condition ,
806800 UpsertSignalInfos : upsertSignalInfos ,
807801 },
808- RangeID : s .ShardInfo .GetRangeId (),
809- Encoding : pickRandomEncoding (),
802+ RangeID : s .ShardInfo .GetRangeId (),
810803 })
811804 return err
812805}
@@ -823,8 +816,7 @@ func (s *TestBase) UpdateWorkflowExecutionForBufferEvents(
823816 Condition : condition ,
824817 ClearBufferedEvents : clearBufferedEvents ,
825818 },
826- RangeID : s .ShardInfo .GetRangeId (),
827- Encoding : pickRandomEncoding (),
819+ RangeID : s .ShardInfo .GetRangeId (),
828820 })
829821 return err
830822}
@@ -873,7 +865,6 @@ func (s *TestBase) UpdateAllMutableState(updatedMutableState *p.WorkflowMutableS
873865 UpsertSignalInfos : sInfos ,
874866 UpsertSignalRequestedIDs : srIDs ,
875867 },
876- Encoding : pickRandomEncoding (),
877868 })
878869 return err
879870}
@@ -902,7 +893,6 @@ func (s *TestBase) ConflictResolveWorkflowExecution(prevRunID string, prevLastWr
902893 SignalRequestedIDs : ids ,
903894 Checksum : testWorkflowChecksum ,
904895 },
905- Encoding : pickRandomEncoding (),
906896 })
907897}
908898
@@ -940,7 +930,6 @@ func (s *TestBase) ResetWorkflowExecution(condition int64, info *p.WorkflowExecu
940930 ReplicationTasks : replTasks ,
941931 TimerTasks : timerTasks ,
942932 },
943- Encoding : pickRandomEncoding (),
944933 }
945934
946935 if updateCurr {
@@ -1537,7 +1526,3 @@ func GenerateRandomDBName(n int) string {
15371526 prefix .WriteString (randString (n ))
15381527 return prefix .String ()
15391528}
1540-
1541- func pickRandomEncoding () enumspb.EncodingType {
1542- return enumspb .ENCODING_TYPE_PROTO3
1543- }
0 commit comments