Skip to content

Reflect durabletask-protobuf#29: update submodule and regenerate protos#67

Draft
Copilot wants to merge 6 commits intomainfrom
copilot/update-name-changes-compatibility
Draft

Reflect durabletask-protobuf#29: update submodule and regenerate protos#67
Copilot wants to merge 6 commits intomainfrom
copilot/update-name-changes-compatibility

Conversation

Copy link

Copilot AI commented Feb 22, 2026

Mirrors the changes from dapr/durabletask-protobuf#29 by updating the protobuf submodule to that PR's branch and regenerating all Go proto files from the actual new proto definitions, then updating the codebase accordingly.

Submodule

  • submodules/durabletask-protobuf updated to commit 0d06f73 on branch copilot/rename-protos-to-workflow
  • .gitmodules updated to track that branch

Regenerated proto files

The old monolithic orchestrator_service.proto is split into focused files. Old generated files removed:

  • orchestrator_service.pb.go
  • orchestrator_service_grpc.pb.go

New generated files added:

  • workflow_messages.pb.goWorkflowInstance, WorkflowStatus, WorkflowState, WorkflowVersion, WorkflowIdReusePolicy, core shared types
  • history_events.pb.go — all HistoryEvent variants, SubWorkflowInstance*Event, WorkflowExecutorStartedEvent
  • workflow_actions.pb.goWorkflowAction, WorkflowRequest, WorkflowResponse, action types
  • entity_messages.pb.go — entity operation messages
  • workflow_service.pb.go + workflow_service_grpc.pb.goTaskHubSidecarService

Regenerated with new type names:

  • backend_service.pb.go / backend_service_grpc.pb.goWorkflowMessage, WorkflowMetadata, CompleteWorkflowWorkItem*, AbandonWorkflowWorkItem*, GetWorkflowRuntimeState*, BackendWorkflowState, new Workflow*-named RPCs alongside deprecated Orchestration* ones; RPC path prefix updated to durabletask.protos.v1
  • runtime_state.pb.goWorkflowRuntimeState, WorkflowRuntimeStateMessage

Backward-compatible aliases (workflow_aliases.go)

Rewritten to map old Orchestration*/Orchestrator* names to the new canonical Workflow* types now defined in the generated code:

type OrchestrationInstance = WorkflowInstance
type OrchestrationStatus   = WorkflowStatus
type OrchestratorAction    = WorkflowAction
type OrchestratorRequest   = WorkflowRequest
type OrchestratorResponse  = WorkflowResponse
// ... all Orchestration*/Orchestrator* aliases

// Deprecated enum constant aliases
OrchestrationStatus_ORCHESTRATION_STATUS_RUNNING = WorkflowStatus_WORKFLOW_STATUS_RUNNING
// ... all ORCHESTRATION_STATUS_* → WORKFLOW_STATUS_* aliases

// Oneof type aliases
OrchestratorAction_CompleteOrchestration = WorkflowAction_CompleteWorkflow
// etc.

Codebase updates

All non-generated source and test files updated to use new field/method names from the regenerated protos:

  • es.OrchestrationInstancees.WorkflowInstance
  • e.GetOrchestratorStarted()e.GetWorkflowExecutorStarted()
  • e.GetSubOrchestrationInstance*()e.GetSubWorkflowInstance*()
  • resp.OrchestrationStateresp.WorkflowState
  • state.OrchestrationStatus field → state.WorkflowStatus
  • Struct literals updated to use new oneof types (WorkflowAction_CompleteWorkflow, WorkflowAction_CreateSubWorkflow, etc.)

dapr/dapr compatibility

Backward-compat aliases ensure existing dapr/dapr code continues to compile unchanged: backend.OrchestrationMetadata, backend.OrchestrationRuntimeState, protos.OrchestratorRequest/Response, protos.OrchestrationInstance, protos.OrchestrationVersion, runtimestate.NewOrchestrationRuntimeState(), etc. all remain valid.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits February 22, 2026 13:46
…mpatibility

- Rename WorkflowState -> BackendWorkflowState in backend_service.pb.go
- Rename OrchestratorMessage -> WorkflowMessage in backend_service.pb.go
- Rename OrchestrationMetadata -> WorkflowMetadata in backend_service.pb.go
- Rename CompleteOrchestrationWorkItem{Request,Response} -> CompleteWorkflowWorkItem{Request,Response}
- Rename AbandonOrchestrationWorkItem{Request,Response} -> AbandonWorkflowWorkItem{Request,Response}
- Rename GetOrchestrationRuntimeState{Request,Response} -> GetWorkflowRuntimeState{Request,Response}
- Rename OrchestratorWorkItems -> WorkflowWorkItems in BackendMetrics
- Rename OrchestrationRuntimeState{Message} -> WorkflowRuntimeState{Message} in runtime_state.pb.go
- Create workflow_aliases.go with type aliases for new workflow-centric names and
  backward-compatible aliases for old orchestration-centric names
- Add new gRPC methods: CompleteWorkflowTask, AbandonTaskWorkflowWorkItem in orchestrator service
- Add new gRPC methods: GetWorkflowRuntimeState, CompleteWorkflowWorkItem, AbandonWorkflowWorkItem
  in backend service
- Update package prefix in backend_service_grpc.pb.go from durabletask.protos.backend.v1 to
  durabletask.protos.v1
- Update backend/backend.go type aliases to use new renamed types and add new workflow aliases

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…omments

- Update backend/backend.go to use protos.WorkflowMetadata, protos.WorkflowRuntimeState,
  and protos.WorkflowRuntimeStateMessage directly instead of alias chains
- Fix stale comments in runtime_state.pb.go to reference workflow terminology

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: JoshVanL <15893072+JoshVanL@users.noreply.github.com>
Copilot AI changed the title [WIP] Update naming conventions and ensure RPC compatibility Reflect durabletask-protobuf#29: rename orchestration → workflow with RPC backward compat Feb 22, 2026
Copilot AI requested a review from JoshVanL February 22, 2026 13:59
Copy link

@JoshVanL JoshVanL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the protos to use that PR and update the codebase accordingly

Copilot AI and others added 2 commits February 22, 2026 14:23
The protobuf files have been regenerated with types renamed from
Orchestration*/Orchestrator* to Workflow*. This commit:

1. Rewrites api/protos/workflow_aliases.go to provide backward-compatible
   type aliases for old Orchestration* names pointing to the new Workflow*
   real types (reversing the previous direction of aliases).

2. Updates all call sites across the codebase to use the new field/method
   names introduced by the regenerated .pb.go files:
   - OrchestrationInstance → WorkflowInstance (field)
   - OrchestrationStatus → WorkflowStatus (field)
   - OrchestrationState → WorkflowState (field in responses)
   - OrchestrationIdReusePolicy → WorkflowIdReusePolicy (field)
   - GetOrchestratorStarted() → GetWorkflowExecutorStarted()
   - GetOrchestratorCompleted() → GetWorkflowExecutorCompleted()
   - GetSubOrchestrationInstance*() → GetSubWorkflowInstance*()
   - GetCompleteOrchestration() → GetCompleteWorkflow()
   - GetCreateSubOrchestration() → GetCreateSubWorkflow()
   - GetTerminateOrchestration() → GetTerminateWorkflow()
   - GetOrchestratorVersionNotAvailable() → GetWorkflowVersionNotAvailable()
   - OrchestratorActionType → WorkflowActionType (struct field)
   - OrchestrationStatus_name/value → WorkflowStatus_name/value
   - WorkflowSpanID field (was OrchestrationSpanID)
   - Struct literal oneof field names updated (e.g. CompleteOrchestration →
     CompleteWorkflow, CreateSubOrchestration → CreateSubWorkflow, etc.)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…protos

Co-authored-by: JoshVanL <15893072+JoshVanL@users.noreply.github.com>
Copy link
Author

Copilot AI commented Feb 22, 2026

Update the protos to use that PR and update the codebase accordingly

Done in commit e96a4bf. Updated submodules/durabletask-protobuf to point to the copilot/rename-protos-to-workflow branch (commit 0d06f73) and regenerated all Go proto files from the new proto definitions. The old orchestrator_service.pb.go is replaced by the split files (workflow_messages.pb.go, history_events.pb.go, workflow_actions.pb.go, entity_messages.pb.go, workflow_service.pb.go). All non-generated source and test files updated to use the new field/method names. Backward-compat aliases for Orchestration*/Orchestrator* names are provided in workflow_aliases.go.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/protocolbuffers/protobuf/releases/latest
    • Triggering command: /usr/bin/curl curl -s REDACTED /home/REDACTED/go/pkg/mod/google.golang.org/protobuf@v1.28.1/internal/strs/strings_unsafe.go (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title Reflect durabletask-protobuf#29: rename orchestration → workflow with RPC backward compat Reflect durabletask-protobuf#29: update submodule and regenerate protos Feb 22, 2026
Copilot AI requested a review from JoshVanL February 22, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants