Skip to content

IWF-1161: drop unused MockCloudOperationsClient to unblock Temporal SDK upgrade#605

Open
AkilFranklin wants to merge 1 commit into
indeedeng:mainfrom
AkilFranklin:IWF-1161
Open

IWF-1161: drop unused MockCloudOperationsClient to unblock Temporal SDK upgrade#605
AkilFranklin wants to merge 1 commit into
indeedeng:mainfrom
AkilFranklin:IWF-1161

Conversation

@AkilFranklin

@AkilFranklin AkilFranklin commented Jun 18, 2026

Copy link
Copy Markdown

Description

Removes the generated MockCloudOperationsClient (and its go.temporal.io/api/cloud/cloudservice/v1 import) from service/client/temporal/real_temporal_client_mock.go. MockClient and MockNamespaceClient — the mocks iwf actually uses — are unchanged.

MockCloudOperationsClient is unused anywhere in iwf; it was emitted incidentally when mockgen ran over the SDK's full client.go, and it is the only code in iwf importing go.temporal.io/api/cloud/cloudservice/v1. Temporal removed the cloud/ package tree from go.temporal.io/api as of api v1.41.0 (the Cloud API moved to the separate go.temporal.io/cloud-sdk module). Since any Temporal Go SDK >= v1.31 pulls api >= v1.43, that package no longer exists — so this unused mock breaks the build for any downstream service that upgrades the SDK. Removing it unblocks consumers (e.g. iwf-service) from upgrading the Temporal Go SDK, with no functional change to iwf.

Validated downstream against go.temporal.io/sdk v1.44.1 (api v1.62.x): the consumer builds and tests clean, and a replay-determinism sweep over recent production histories reported 0 non-determinism.

Checklist

  • Code compiles correctly
  • Tests for the changes have been added — n/a: this removes unused generated code; the package's existing tests (covering MockClient / MockNamespaceClient) still pass
  • All tests passing
  • This PR change is backwards-compatible
  • This PR CONTAINS a (planned) breaking change (it is not backwards compatible)

Related Issue

Tracked internally as IWF-1161 (no public issue).

Note

This file is MockGen-generated. Regenerating it in source mode over the SDK client.go re-emits MockCloudOperationsClient; if that happens, drop it again. (Reflect mode can't be used to exclude it: the SDK aliases internal types, so reflect-mode mocks import the disallowed go.temporal.io/sdk/internal.)

…DK upgrade

The generated mock for the SDK's CloudOperationsClient interface
(MockCloudOperationsClient) was unused by iwf and was the only code importing
go.temporal.io/api/cloud/cloudservice/v1. Temporal removed that package from
go.temporal.io/api as of api v1.41.0 (the cloud API moved to the separate
go.temporal.io/cloud-sdk module), so its presence broke downstream builds
(iwf-service) against any Temporal Go SDK >= v1.31, which pulls api >= v1.43.

Removing the unused mock (and its cloudservice import) lets consumers build
against newer SDKs with no other change. MockClient and the remaining generated
mocks are untouched, and the existing temporal client tests still pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant