From aaf6b12345604c495606d5cdccb338bf3bc665b6 Mon Sep 17 00:00:00 2001 From: Yuri Date: Tue, 7 Jan 2025 18:09:09 -0800 Subject: [PATCH] rename common to interfaces --- service/history/api/respondworkflowtaskcompleted/api_test.go | 2 +- service/history/history_engine.go | 2 +- service/history/history_engine_factory.go | 2 +- service/history/{common => interfaces}/engine.go | 2 +- service/history/{common => interfaces}/engine_mock.go | 2 +- service/history/{common => interfaces}/replication_stream.go | 2 +- service/history/ndc/history_replicator.go | 2 +- service/history/ndc/hsm_state_replicator.go | 2 +- service/history/ndc/hsm_state_replicator_test.go | 2 +- service/history/ndc/workflow_state_replicator.go | 2 +- service/history/ndc/workflow_state_replicator_test.go | 2 +- service/history/replication/eventhandler/event_importer.go | 2 +- service/history/replication/eventhandler/event_importer_test.go | 2 +- .../replication/eventhandler/history_events_handler_test.go | 2 +- service/history/replication/eventhandler/resend_handler.go | 2 +- service/history/replication/eventhandler/resend_handler_test.go | 2 +- .../history/replication/executable_activity_state_task_test.go | 2 +- .../replication/executable_backfill_history_events_task.go | 2 +- .../replication/executable_backfill_history_events_task_test.go | 2 +- service/history/replication/executable_history_task_test.go | 2 +- service/history/replication/executable_sync_hsm_task.go | 2 +- service/history/replication/executable_sync_hsm_task_test.go | 2 +- service/history/replication/executable_task.go | 2 +- service/history/replication/executable_task_test.go | 2 +- .../history/replication/executable_workflow_state_task_test.go | 2 +- service/history/replication/fx.go | 2 +- service/history/replication/raw_task_converter.go | 2 +- service/history/replication/raw_task_converter_test.go | 2 +- service/history/replication/stream_receiver_monitor_test.go | 2 +- service/history/replication/stream_sender.go | 2 +- service/history/replication/stream_sender_test.go | 2 +- service/history/replication/task_processor.go | 2 +- service/history/replication/task_processor_manager.go | 2 +- service/history/replication/task_processor_manager_test.go | 2 +- service/history/replication/task_processor_test.go | 2 +- service/history/shard/context.go | 2 +- service/history/shard/context_impl.go | 2 +- service/history/shard/context_test.go | 2 +- service/history/shard/context_testutil.go | 2 +- service/history/shard/controller_test.go | 2 +- service/history/shard/engine_factory.go | 2 +- service/history/workflow/context_test.go | 2 +- service/history/workflow/transaction_impl.go | 2 +- service/history/workflow/transaction_test.go | 2 +- tests/add_tasks_test.go | 2 +- 45 files changed, 45 insertions(+), 45 deletions(-) rename service/history/{common => interfaces}/engine.go (99%) rename service/history/{common => interfaces}/engine_mock.go (99%) rename service/history/{common => interfaces}/replication_stream.go (98%) diff --git a/service/history/api/respondworkflowtaskcompleted/api_test.go b/service/history/api/respondworkflowtaskcompleted/api_test.go index 38b702b49f0b..076e8dcd37ca 100644 --- a/service/history/api/respondworkflowtaskcompleted/api_test.go +++ b/service/history/api/respondworkflowtaskcompleted/api_test.go @@ -63,9 +63,9 @@ import ( "go.temporal.io/server/common/testing/updateutils" "go.temporal.io/server/internal/effect" "go.temporal.io/server/service/history/api" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/events" "go.temporal.io/server/service/history/hsm" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/tests" "go.temporal.io/server/service/history/workflow" diff --git a/service/history/history_engine.go b/service/history/history_engine.go index de60a7b29601..ba6be3a5f7dc 100644 --- a/service/history/history_engine.go +++ b/service/history/history_engine.go @@ -101,12 +101,12 @@ import ( "go.temporal.io/server/service/history/api/verifychildworkflowcompletionrecorded" "go.temporal.io/server/service/history/api/verifyfirstworkflowtaskscheduled" "go.temporal.io/server/service/history/circuitbreakerpool" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" "go.temporal.io/server/service/history/consts" "go.temporal.io/server/service/history/deletemanager" "go.temporal.io/server/service/history/events" "go.temporal.io/server/service/history/hsm" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/ndc" "go.temporal.io/server/service/history/queues" "go.temporal.io/server/service/history/replication" diff --git a/service/history/history_engine_factory.go b/service/history/history_engine_factory.go index eacd925fa15a..02d3bbe764ec 100644 --- a/service/history/history_engine_factory.go +++ b/service/history/history_engine_factory.go @@ -34,9 +34,9 @@ import ( "go.temporal.io/server/common/sdk" "go.temporal.io/server/service/history/api" "go.temporal.io/server/service/history/circuitbreakerpool" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" "go.temporal.io/server/service/history/events" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/replication" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/tasks" diff --git a/service/history/common/engine.go b/service/history/interfaces/engine.go similarity index 99% rename from service/history/common/engine.go rename to service/history/interfaces/engine.go index f8c9cfce4060..c119607c7f83 100644 --- a/service/history/common/engine.go +++ b/service/history/interfaces/engine.go @@ -24,7 +24,7 @@ //go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination engine_mock.go -package common +package interfaces import ( "context" diff --git a/service/history/common/engine_mock.go b/service/history/interfaces/engine_mock.go similarity index 99% rename from service/history/common/engine_mock.go rename to service/history/interfaces/engine_mock.go index 7b8ccc886896..8adce0eec56d 100644 --- a/service/history/common/engine_mock.go +++ b/service/history/interfaces/engine_mock.go @@ -31,7 +31,7 @@ // // Package common is a generated GoMock package. -package common +package interfaces import ( context "context" diff --git a/service/history/common/replication_stream.go b/service/history/interfaces/replication_stream.go similarity index 98% rename from service/history/common/replication_stream.go rename to service/history/interfaces/replication_stream.go index 35184af5602c..c3e116962fe5 100644 --- a/service/history/common/replication_stream.go +++ b/service/history/interfaces/replication_stream.go @@ -20,7 +20,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -package common +package interfaces import ( "context" diff --git a/service/history/ndc/history_replicator.go b/service/history/ndc/history_replicator.go index e9629911d5f0..70e861443ac9 100644 --- a/service/history/ndc/history_replicator.go +++ b/service/history/ndc/history_replicator.go @@ -48,7 +48,7 @@ import ( "go.temporal.io/server/common/persistence/versionhistory" "go.temporal.io/server/common/primitives/timestamp" serviceerrors "go.temporal.io/server/common/serviceerror" - history "go.temporal.io/server/service/history/common" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/workflow" wcache "go.temporal.io/server/service/history/workflow/cache" diff --git a/service/history/ndc/hsm_state_replicator.go b/service/history/ndc/hsm_state_replicator.go index 496e24de5c5e..8be8cffa75b2 100644 --- a/service/history/ndc/hsm_state_replicator.go +++ b/service/history/ndc/hsm_state_replicator.go @@ -40,8 +40,8 @@ import ( "go.temporal.io/server/common/persistence" "go.temporal.io/server/common/persistence/versionhistory" serviceerrors "go.temporal.io/server/common/serviceerror" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/hsm" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/workflow" wcache "go.temporal.io/server/service/history/workflow/cache" diff --git a/service/history/ndc/hsm_state_replicator_test.go b/service/history/ndc/hsm_state_replicator_test.go index c13591567f92..289f1b7a6d60 100644 --- a/service/history/ndc/hsm_state_replicator_test.go +++ b/service/history/ndc/hsm_state_replicator_test.go @@ -42,9 +42,9 @@ import ( "go.temporal.io/server/common/namespace" "go.temporal.io/server/common/persistence" serviceerrors "go.temporal.io/server/common/serviceerror" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/hsm" "go.temporal.io/server/service/history/hsm/hsmtest" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/tasks" "go.temporal.io/server/service/history/tests" diff --git a/service/history/ndc/workflow_state_replicator.go b/service/history/ndc/workflow_state_replicator.go index 778ba00e3bae..f8e6803af507 100644 --- a/service/history/ndc/workflow_state_replicator.go +++ b/service/history/ndc/workflow_state_replicator.go @@ -58,9 +58,9 @@ import ( "go.temporal.io/server/common/persistence/versionhistory" "go.temporal.io/server/common/primitives/timestamp" serviceerrors "go.temporal.io/server/common/serviceerror" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/consts" "go.temporal.io/server/service/history/historybuilder" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/workflow" wcache "go.temporal.io/server/service/history/workflow/cache" diff --git a/service/history/ndc/workflow_state_replicator_test.go b/service/history/ndc/workflow_state_replicator_test.go index ab04e806760d..d1b72c892ca1 100644 --- a/service/history/ndc/workflow_state_replicator_test.go +++ b/service/history/ndc/workflow_state_replicator_test.go @@ -53,9 +53,9 @@ import ( "go.temporal.io/server/common/persistence/serialization" "go.temporal.io/server/common/persistence/versionhistory" serviceerrors "go.temporal.io/server/common/serviceerror" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/events" "go.temporal.io/server/service/history/hsm" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/tests" "go.temporal.io/server/service/history/workflow" diff --git a/service/history/replication/eventhandler/event_importer.go b/service/history/replication/eventhandler/event_importer.go index fe1fe152aa2f..8ad1e7b9875f 100644 --- a/service/history/replication/eventhandler/event_importer.go +++ b/service/history/replication/eventhandler/event_importer.go @@ -40,7 +40,7 @@ import ( "go.temporal.io/server/common/namespace" "go.temporal.io/server/common/persistence/serialization" "go.temporal.io/server/common/persistence/versionhistory" - history "go.temporal.io/server/service/history/common" + history "go.temporal.io/server/service/history/interfaces" ) const ( diff --git a/service/history/replication/eventhandler/event_importer_test.go b/service/history/replication/eventhandler/event_importer_test.go index 5253ea50a64b..43130b2ead31 100644 --- a/service/history/replication/eventhandler/event_importer_test.go +++ b/service/history/replication/eventhandler/event_importer_test.go @@ -43,7 +43,7 @@ import ( "go.temporal.io/server/common/log" "go.temporal.io/server/common/namespace" "go.temporal.io/server/common/persistence/serialization" - history "go.temporal.io/server/service/history/common" + history "go.temporal.io/server/service/history/interfaces" "go.uber.org/mock/gomock" ) diff --git a/service/history/replication/eventhandler/history_events_handler_test.go b/service/history/replication/eventhandler/history_events_handler_test.go index 922daa5095c3..956fcfa11022 100644 --- a/service/history/replication/eventhandler/history_events_handler_test.go +++ b/service/history/replication/eventhandler/history_events_handler_test.go @@ -40,7 +40,7 @@ import ( "go.temporal.io/server/common/definition" "go.temporal.io/server/common/log" "go.temporal.io/server/common/namespace" - history "go.temporal.io/server/service/history/common" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.uber.org/mock/gomock" ) diff --git a/service/history/replication/eventhandler/resend_handler.go b/service/history/replication/eventhandler/resend_handler.go index 3fa0f07ea1e2..1f60c431160b 100644 --- a/service/history/replication/eventhandler/resend_handler.go +++ b/service/history/replication/eventhandler/resend_handler.go @@ -43,8 +43,8 @@ import ( "go.temporal.io/server/common/namespace" "go.temporal.io/server/common/persistence/serialization" "go.temporal.io/server/common/persistence/versionhistory" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" + history "go.temporal.io/server/service/history/interfaces" ) type ( diff --git a/service/history/replication/eventhandler/resend_handler_test.go b/service/history/replication/eventhandler/resend_handler_test.go index 99a835cbb0cf..65f122e121a5 100644 --- a/service/history/replication/eventhandler/resend_handler_test.go +++ b/service/history/replication/eventhandler/resend_handler_test.go @@ -48,8 +48,8 @@ import ( "go.temporal.io/server/common/namespace" "go.temporal.io/server/common/persistence/serialization" "go.temporal.io/server/common/primitives/timestamp" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/tests" "go.uber.org/mock/gomock" ) diff --git a/service/history/replication/executable_activity_state_task_test.go b/service/history/replication/executable_activity_state_task_test.go index 20fcf1892c31..643b044d96ff 100644 --- a/service/history/replication/executable_activity_state_task_test.go +++ b/service/history/replication/executable_activity_state_task_test.go @@ -50,8 +50,8 @@ import ( "go.temporal.io/server/common/persistence" serviceerrors "go.temporal.io/server/common/serviceerror" "go.temporal.io/server/common/xdc" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/tests" "go.uber.org/mock/gomock" diff --git a/service/history/replication/executable_backfill_history_events_task.go b/service/history/replication/executable_backfill_history_events_task.go index b1a191d75780..54a40e5f4185 100644 --- a/service/history/replication/executable_backfill_history_events_task.go +++ b/service/history/replication/executable_backfill_history_events_task.go @@ -38,7 +38,7 @@ import ( "go.temporal.io/server/common/persistence/versionhistory" serviceerrors "go.temporal.io/server/common/serviceerror" ctasks "go.temporal.io/server/common/tasks" - history "go.temporal.io/server/service/history/common" + history "go.temporal.io/server/service/history/interfaces" ) type ( diff --git a/service/history/replication/executable_backfill_history_events_task_test.go b/service/history/replication/executable_backfill_history_events_task_test.go index 789a34d57a8d..e54116c1c912 100644 --- a/service/history/replication/executable_backfill_history_events_task_test.go +++ b/service/history/replication/executable_backfill_history_events_task_test.go @@ -47,8 +47,8 @@ import ( "go.temporal.io/server/common/persistence" "go.temporal.io/server/common/persistence/serialization" serviceerrors "go.temporal.io/server/common/serviceerror" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/tests" "go.uber.org/mock/gomock" diff --git a/service/history/replication/executable_history_task_test.go b/service/history/replication/executable_history_task_test.go index c329414c0ff1..e59a5899c88e 100644 --- a/service/history/replication/executable_history_task_test.go +++ b/service/history/replication/executable_history_task_test.go @@ -53,7 +53,7 @@ import ( serviceerrors "go.temporal.io/server/common/serviceerror" "go.temporal.io/server/common/testing/protorequire" "go.temporal.io/server/common/xdc" - history "go.temporal.io/server/service/history/common" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/tests" "go.uber.org/mock/gomock" diff --git a/service/history/replication/executable_sync_hsm_task.go b/service/history/replication/executable_sync_hsm_task.go index 4ee40307bc5e..40c8b9d8fbf1 100644 --- a/service/history/replication/executable_sync_hsm_task.go +++ b/service/history/replication/executable_sync_hsm_task.go @@ -37,7 +37,7 @@ import ( "go.temporal.io/server/common/namespace" serviceerrors "go.temporal.io/server/common/serviceerror" ctasks "go.temporal.io/server/common/tasks" - history "go.temporal.io/server/service/history/common" + history "go.temporal.io/server/service/history/interfaces" "google.golang.org/protobuf/types/known/timestamppb" ) diff --git a/service/history/replication/executable_sync_hsm_task_test.go b/service/history/replication/executable_sync_hsm_task_test.go index d6570a459d57..2912ec26812d 100644 --- a/service/history/replication/executable_sync_hsm_task_test.go +++ b/service/history/replication/executable_sync_hsm_task_test.go @@ -44,8 +44,8 @@ import ( "go.temporal.io/server/common/persistence" serviceerrors "go.temporal.io/server/common/serviceerror" "go.temporal.io/server/common/xdc" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/tests" "go.uber.org/mock/gomock" diff --git a/service/history/replication/executable_task.go b/service/history/replication/executable_task.go index 0cd76473b099..509dd2972468 100644 --- a/service/history/replication/executable_task.go +++ b/service/history/replication/executable_task.go @@ -51,7 +51,7 @@ import ( "go.temporal.io/server/common/persistence/versionhistory" serviceerrors "go.temporal.io/server/common/serviceerror" ctasks "go.temporal.io/server/common/tasks" - history "go.temporal.io/server/service/history/common" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/tasks" ) diff --git a/service/history/replication/executable_task_test.go b/service/history/replication/executable_task_test.go index d421d390221c..e9520e33ee12 100644 --- a/service/history/replication/executable_task_test.go +++ b/service/history/replication/executable_task_test.go @@ -59,9 +59,9 @@ import ( ctasks "go.temporal.io/server/common/tasks" "go.temporal.io/server/common/testing/protomock" "go.temporal.io/server/common/xdc" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" "go.temporal.io/server/service/history/consts" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/replication/eventhandler" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/tasks" diff --git a/service/history/replication/executable_workflow_state_task_test.go b/service/history/replication/executable_workflow_state_task_test.go index 17a739e20b5d..594d5fbd1e4c 100644 --- a/service/history/replication/executable_workflow_state_task_test.go +++ b/service/history/replication/executable_workflow_state_task_test.go @@ -45,8 +45,8 @@ import ( "go.temporal.io/server/common/persistence" serviceerrors "go.temporal.io/server/common/serviceerror" "go.temporal.io/server/common/xdc" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/tests" "go.uber.org/mock/gomock" diff --git a/service/history/replication/fx.go b/service/history/replication/fx.go index 3cbd945246e0..629db2a28e2e 100644 --- a/service/history/replication/fx.go +++ b/service/history/replication/fx.go @@ -42,8 +42,8 @@ import ( "go.temporal.io/server/common/persistence/serialization" ctasks "go.temporal.io/server/common/tasks" "go.temporal.io/server/common/xdc" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/queues" "go.temporal.io/server/service/history/replication/eventhandler" "go.temporal.io/server/service/history/shard" diff --git a/service/history/replication/raw_task_converter.go b/service/history/replication/raw_task_converter.go index c5cd67268f0b..ae7bd2db58db 100644 --- a/service/history/replication/raw_task_converter.go +++ b/service/history/replication/raw_task_converter.go @@ -45,8 +45,8 @@ import ( "go.temporal.io/server/common/persistence" "go.temporal.io/server/common/persistence/serialization" "go.temporal.io/server/common/persistence/versionhistory" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/tasks" "go.temporal.io/server/service/history/workflow" diff --git a/service/history/replication/raw_task_converter_test.go b/service/history/replication/raw_task_converter_test.go index f6b3f79dcf12..4e94977377c0 100644 --- a/service/history/replication/raw_task_converter_test.go +++ b/service/history/replication/raw_task_converter_test.go @@ -51,9 +51,9 @@ import ( "go.temporal.io/server/common/payloads" "go.temporal.io/server/common/persistence" "go.temporal.io/server/common/testing/protorequire" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/hsm" "go.temporal.io/server/service/history/hsm/hsmtest" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/tasks" "go.temporal.io/server/service/history/tests" diff --git a/service/history/replication/stream_receiver_monitor_test.go b/service/history/replication/stream_receiver_monitor_test.go index 449d815ae9ca..5f503a7ecfe6 100644 --- a/service/history/replication/stream_receiver_monitor_test.go +++ b/service/history/replication/stream_receiver_monitor_test.go @@ -42,8 +42,8 @@ import ( "go.temporal.io/server/common/dynamicconfig" "go.temporal.io/server/common/log" "go.temporal.io/server/common/metrics" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/tasks" "go.uber.org/mock/gomock" diff --git a/service/history/replication/stream_sender.go b/service/history/replication/stream_sender.go index 63fb1ec2ce20..8a72e3ec59ea 100644 --- a/service/history/replication/stream_sender.go +++ b/service/history/replication/stream_sender.go @@ -48,8 +48,8 @@ import ( "go.temporal.io/server/common/metrics" "go.temporal.io/server/common/namespace" "go.temporal.io/server/common/primitives/timestamp" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/tasks" "google.golang.org/protobuf/types/known/timestamppb" diff --git a/service/history/replication/stream_sender_test.go b/service/history/replication/stream_sender_test.go index b8a1255bdb4e..4a33f41f5753 100644 --- a/service/history/replication/stream_sender_test.go +++ b/service/history/replication/stream_sender_test.go @@ -45,8 +45,8 @@ import ( "go.temporal.io/server/common/namespace" "go.temporal.io/server/common/persistence" serviceerrors "go.temporal.io/server/common/serviceerror" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/tasks" "go.temporal.io/server/service/history/tests" diff --git a/service/history/replication/task_processor.go b/service/history/replication/task_processor.go index 878bf24a547f..f3f83694dfca 100644 --- a/service/history/replication/task_processor.go +++ b/service/history/replication/task_processor.go @@ -52,8 +52,8 @@ import ( "go.temporal.io/server/common/primitives/timestamp" "go.temporal.io/server/common/quotas" serviceerrors "go.temporal.io/server/common/serviceerror" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "google.golang.org/protobuf/types/known/timestamppb" ) diff --git a/service/history/replication/task_processor_manager.go b/service/history/replication/task_processor_manager.go index 58c5f6f72419..6a4b2c6b1b7a 100644 --- a/service/history/replication/task_processor_manager.go +++ b/service/history/replication/task_processor_manager.go @@ -46,9 +46,9 @@ import ( "go.temporal.io/server/common/persistence" "go.temporal.io/server/common/persistence/serialization" "go.temporal.io/server/common/xdc" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" "go.temporal.io/server/service/history/deletemanager" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/tasks" wcache "go.temporal.io/server/service/history/workflow/cache" diff --git a/service/history/replication/task_processor_manager_test.go b/service/history/replication/task_processor_manager_test.go index 070f26792f75..b00399c3f9f7 100644 --- a/service/history/replication/task_processor_manager_test.go +++ b/service/history/replication/task_processor_manager_test.go @@ -42,8 +42,8 @@ import ( "go.temporal.io/server/common/namespace" "go.temporal.io/server/common/persistence" "go.temporal.io/server/common/persistence/serialization" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/tasks" "go.temporal.io/server/service/history/tests" diff --git a/service/history/replication/task_processor_test.go b/service/history/replication/task_processor_test.go index ccefa7890d67..f0b3802a32f8 100644 --- a/service/history/replication/task_processor_test.go +++ b/service/history/replication/task_processor_test.go @@ -54,8 +54,8 @@ import ( "go.temporal.io/server/common/quotas" "go.temporal.io/server/common/resourcetest" "go.temporal.io/server/common/testing/protorequire" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/tests" "go.uber.org/mock/gomock" diff --git a/service/history/shard/context.go b/service/history/shard/context.go index 6dcffd6a7d68..d40c90949741 100644 --- a/service/history/shard/context.go +++ b/service/history/shard/context.go @@ -45,10 +45,10 @@ import ( "go.temporal.io/server/common/persistence/serialization" "go.temporal.io/server/common/pingable" "go.temporal.io/server/common/searchattribute" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" "go.temporal.io/server/service/history/events" "go.temporal.io/server/service/history/hsm" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/tasks" ) diff --git a/service/history/shard/context_impl.go b/service/history/shard/context_impl.go index 93805e81599a..c909695dc56d 100644 --- a/service/history/shard/context_impl.go +++ b/service/history/shard/context_impl.go @@ -70,11 +70,11 @@ import ( "go.temporal.io/server/common/rpc" "go.temporal.io/server/common/searchattribute" "go.temporal.io/server/common/util" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" "go.temporal.io/server/service/history/consts" "go.temporal.io/server/service/history/events" "go.temporal.io/server/service/history/hsm" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/tasks" "go.temporal.io/server/service/history/vclock" "google.golang.org/protobuf/types/known/timestamppb" diff --git a/service/history/shard/context_test.go b/service/history/shard/context_test.go index e4dd810a734b..a39b6f7a22df 100644 --- a/service/history/shard/context_test.go +++ b/service/history/shard/context_test.go @@ -44,7 +44,7 @@ import ( "go.temporal.io/server/common/namespace" "go.temporal.io/server/common/persistence" "go.temporal.io/server/common/primitives/timestamp" - history "go.temporal.io/server/service/history/common" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/tasks" "go.temporal.io/server/service/history/tests" "go.uber.org/mock/gomock" diff --git a/service/history/shard/context_testutil.go b/service/history/shard/context_testutil.go index 89910e12ed23..01c6116d6323 100644 --- a/service/history/shard/context_testutil.go +++ b/service/history/shard/context_testutil.go @@ -41,10 +41,10 @@ import ( "go.temporal.io/server/common/persistence" "go.temporal.io/server/common/primitives" "go.temporal.io/server/common/resourcetest" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" "go.temporal.io/server/service/history/events" "go.temporal.io/server/service/history/hsm" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/tasks" "go.uber.org/mock/gomock" ) diff --git a/service/history/shard/controller_test.go b/service/history/shard/controller_test.go index dedc0a04529f..f98802b24d96 100644 --- a/service/history/shard/controller_test.go +++ b/service/history/shard/controller_test.go @@ -54,8 +54,8 @@ import ( "go.temporal.io/server/common/primitives/timestamp" "go.temporal.io/server/common/resourcetest" "go.temporal.io/server/internal/goro" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/configs" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/tasks" "go.temporal.io/server/service/history/tests" "go.uber.org/mock/gomock" diff --git a/service/history/shard/engine_factory.go b/service/history/shard/engine_factory.go index 5ce842269135..6fdabb829109 100644 --- a/service/history/shard/engine_factory.go +++ b/service/history/shard/engine_factory.go @@ -26,7 +26,7 @@ package shard -import history "go.temporal.io/server/service/history/common" +import history "go.temporal.io/server/service/history/interfaces" type ( // EngineFactory is used to create an instance of sharded history engine diff --git a/service/history/workflow/context_test.go b/service/history/workflow/context_test.go index 4a02cae2655a..3d5b8d876993 100644 --- a/service/history/workflow/context_test.go +++ b/service/history/workflow/context_test.go @@ -44,7 +44,7 @@ import ( "go.temporal.io/server/common/metrics" "go.temporal.io/server/common/persistence" "go.temporal.io/server/common/primitives/timestamp" - history "go.temporal.io/server/service/history/common" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/tasks" "go.temporal.io/server/service/history/tests" diff --git a/service/history/workflow/transaction_impl.go b/service/history/workflow/transaction_impl.go index 21ab9a539d8c..a0e196c54446 100644 --- a/service/history/workflow/transaction_impl.go +++ b/service/history/workflow/transaction_impl.go @@ -36,8 +36,8 @@ import ( "go.temporal.io/server/common/metrics" "go.temporal.io/server/common/namespace" "go.temporal.io/server/common/persistence" - history "go.temporal.io/server/service/history/common" "go.temporal.io/server/service/history/events" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" ) diff --git a/service/history/workflow/transaction_test.go b/service/history/workflow/transaction_test.go index b44ec7e2f877..c3a9d0474ec7 100644 --- a/service/history/workflow/transaction_test.go +++ b/service/history/workflow/transaction_test.go @@ -37,7 +37,7 @@ import ( "go.temporal.io/server/common/namespace" "go.temporal.io/server/common/persistence" "go.temporal.io/server/common/util" - history "go.temporal.io/server/service/history/common" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/tests" "go.uber.org/mock/gomock" diff --git a/tests/add_tasks_test.go b/tests/add_tasks_test.go index 6221b9a43d5b..8600311a173a 100644 --- a/tests/add_tasks_test.go +++ b/tests/add_tasks_test.go @@ -44,7 +44,7 @@ import ( "go.temporal.io/server/common/debug" "go.temporal.io/server/common/persistence/serialization" "go.temporal.io/server/common/primitives" - history "go.temporal.io/server/service/history/common" + history "go.temporal.io/server/service/history/interfaces" "go.temporal.io/server/service/history/queues" "go.temporal.io/server/service/history/shard" "go.temporal.io/server/service/history/tasks"