From 842d8d97018aaabb6dac585b429ee436a785480f Mon Sep 17 00:00:00 2001 From: David Liu Date: Thu, 1 Oct 2026 19:26:28 -0400 Subject: [PATCH 1/4] Add ExportedExecutions type for export --- temporal/api/export/v1/message.proto | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/temporal/api/export/v1/message.proto b/temporal/api/export/v1/message.proto index 8673bfd23..4788dd03c 100644 --- a/temporal/api/export/v1/message.proto +++ b/temporal/api/export/v1/message.proto @@ -10,14 +10,23 @@ option ruby_package = "Temporalio::Api::Export::V1"; option csharp_namespace = "Temporalio.Api.Export.V1"; import "temporal/api/history/v1/message.proto"; +import "temporal/api/workflowservice/v1/request_response.proto"; message WorkflowExecution { temporal.api.history.v1.History history = 1; } -// WorkflowExecutions is used by the Cloud Export feature to deserialize -// the exported file. It encapsulates a collection of workflow execution information. +// WorkflowExecutions is the legacy Cloud Export file format containing only workflow executions. +// New exporters should use ExportedExecutions, which is wire-compatible for workflow_items and +// can also contain other executions. message WorkflowExecutions { repeated WorkflowExecution items = 1; } +// ExportedExecutions is used by the Cloud Export feature to deserialize the exported file. +// It encapsulates workflow execution information and may contain other execution types. +message ExportedExecutions { + repeated WorkflowExecution workflow_items = 1; + repeated temporal.api.workflowservice.v1.DescribeActivityExecutionResponse activity_items = 2; +} + From f97f21961732a508d28a8ea5256e6f320056d613 Mon Sep 17 00:00:00 2001 From: David Liu Date: Thu, 1 Oct 2026 19:40:55 -0400 Subject: [PATCH 2/4] wrap activity like workflow --- temporal/api/export/v1/message.proto | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/temporal/api/export/v1/message.proto b/temporal/api/export/v1/message.proto index 4788dd03c..9c4d4c39f 100644 --- a/temporal/api/export/v1/message.proto +++ b/temporal/api/export/v1/message.proto @@ -23,10 +23,14 @@ message WorkflowExecutions { repeated WorkflowExecution items = 1; } +message ActivityExecution { + temporal.api.workflowservice.v1.DescribeActivityExecutionResponse activity = 1; +} + // ExportedExecutions is used by the Cloud Export feature to deserialize the exported file. // It encapsulates workflow execution information and may contain other execution types. message ExportedExecutions { repeated WorkflowExecution workflow_items = 1; - repeated temporal.api.workflowservice.v1.DescribeActivityExecutionResponse activity_items = 2; + repeated ActivityExecution activity_items = 2; } From b349b0d2d9afc6e1452b432af7954b2bf608e954 Mon Sep 17 00:00:00 2001 From: David Liu Date: Fri, 2 Oct 2026 10:21:07 -0400 Subject: [PATCH 3/4] update comment --- temporal/api/export/v1/message.proto | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/temporal/api/export/v1/message.proto b/temporal/api/export/v1/message.proto index 9c4d4c39f..0b45b8761 100644 --- a/temporal/api/export/v1/message.proto +++ b/temporal/api/export/v1/message.proto @@ -17,8 +17,7 @@ message WorkflowExecution { } // WorkflowExecutions is the legacy Cloud Export file format containing only workflow executions. -// New exporters should use ExportedExecutions, which is wire-compatible for workflow_items and -// can also contain other executions. +// New exporters should use ExportedExecutions. message WorkflowExecutions { repeated WorkflowExecution items = 1; } @@ -28,7 +27,7 @@ message ActivityExecution { } // ExportedExecutions is used by the Cloud Export feature to deserialize the exported file. -// It encapsulates workflow execution information and may contain other execution types. +// It encapsulates workflow execution information and contains other execution types. message ExportedExecutions { repeated WorkflowExecution workflow_items = 1; repeated ActivityExecution activity_items = 2; From 629c97d48599df97c7373a5fc67f39f5cde74d08 Mon Sep 17 00:00:00 2001 From: David Liu Date: Mon, 5 Oct 2026 10:31:56 -0400 Subject: [PATCH 4/4] remove redundant naming --- temporal/api/export/v1/message.proto | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/temporal/api/export/v1/message.proto b/temporal/api/export/v1/message.proto index 0b45b8761..f939cc9fe 100644 --- a/temporal/api/export/v1/message.proto +++ b/temporal/api/export/v1/message.proto @@ -29,7 +29,7 @@ message ActivityExecution { // ExportedExecutions is used by the Cloud Export feature to deserialize the exported file. // It encapsulates workflow execution information and contains other execution types. message ExportedExecutions { - repeated WorkflowExecution workflow_items = 1; - repeated ActivityExecution activity_items = 2; + repeated WorkflowExecution workflows = 1; + repeated ActivityExecution activities = 2; }