lyft / clutch

Extensible platform for infrastructure management
https://clutch.sh
Apache License 2.0
1.67k stars 116 forks source link

housekeeping: Update module go.temporal.io/sdk to v1.28.1 #3075

Closed renovate[bot] closed 1 month ago

renovate[bot] commented 1 month ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
go.temporal.io/sdk v1.26.1 -> v1.28.1 age adoption passing confidence

Release Notes

temporalio/sdk-go (go.temporal.io/sdk) ### [`v1.28.1`](https://togithub.com/temporalio/sdk-go/releases/tag/v1.28.1) [Compare Source](https://togithub.com/temporalio/sdk-go/compare/v1.28.0...v1.28.1) ##### Specific Changes - Update SDK version by [@​bergundy](https://togithub.com/bergundy) in [https://github.com/temporalio/sdk-go/pull/1558](https://togithub.com/temporalio/sdk-go/pull/1558) ### [`v1.28.0`](https://togithub.com/temporalio/sdk-go/releases/tag/v1.28.0) [Compare Source](https://togithub.com/temporalio/sdk-go/compare/v1.27.0...v1.28.0) ### Nexus pre-release **⚠️ EXPERIMENTAL - APIs may change in a future release ⚠️** See [the proposal](https://togithub.com/temporalio/proposals/blob/b72c49b0c2278e916265b00a49638006f8fce469/nexus/sdk-go.md) for usage instructions. Self hosted users can [try Nexus out](https://togithub.com/temporalio/temporal/blob/main/docs/architecture/nexus.md#trying-nexus-out) in single cluster deployments with server version `1.25.0-rc.0` - **not meant for production use**. Temporal Cloud users may reach out and open a support ticket to request access to the pre-release. To use Nexus with the `temporal` CLI dev server: 1. download CLI `0.14.0-nexus.0` to the current directory: curl -sSf https://temporal.download/cli.sh | sh -s -- --version v0.14.0-nexus.0 --dir . 2. run the dev server with the required configs: ./temporal server start-dev --dynamic-config-value system.enableNexus=true --http-port 7243 ### Warn on unfinished handlers The SDK will now `WARN` by default if a workflow is completed by the SDK with unfinished update handlers. Users can use `workflow.AllHandlersFinished` to wait for all handlers to be finished or set `UnfinishedPolicy` in `UpdateHandlerOptions`. ### Add Workflow safe Mutex and Semaphore This release includes new helper interfaces `workflow.Mutex` and `workflow.Semaphore` that are workflow safe versions of a mutex and semaphore. These interfaces are to help users synchronize sensitive business logic across multiple coroutines or update handlers. #### What's Changed - Clean up docs for NextRetryDelay by [@​Quinn-With-Two-Ns](https://togithub.com/Quinn-With-Two-Ns) in [https://github.com/temporalio/sdk-go/pull/1522](https://togithub.com/temporalio/sdk-go/pull/1522) - Update some docs around grpc Dial options by [@​Quinn-With-Two-Ns](https://togithub.com/Quinn-With-Two-Ns) in [https://github.com/temporalio/sdk-go/pull/1514](https://togithub.com/temporalio/sdk-go/pull/1514) - Wrap GRPC::CANCELED and DEADLINE_EXCEEDED in an SDK Timeout exception… by [@​Quinn-With-Two-Ns](https://togithub.com/Quinn-With-Two-Ns) in [https://github.com/temporalio/sdk-go/pull/1524](https://togithub.com/temporalio/sdk-go/pull/1524) - Use grpc context for GetSystemInfo. by [@​Quinn-With-Two-Ns](https://togithub.com/Quinn-With-Two-Ns) in [https://github.com/temporalio/sdk-go/pull/1528](https://togithub.com/temporalio/sdk-go/pull/1528) - Add option to handle scream snake case enums. by [@​Quinn-With-Two-Ns](https://togithub.com/Quinn-With-Two-Ns) in [https://github.com/temporalio/sdk-go/pull/1529](https://togithub.com/temporalio/sdk-go/pull/1529) - Add workflow safe Mutex and Semaphore by [@​Quinn-With-Two-Ns](https://togithub.com/Quinn-With-Two-Ns) in [https://github.com/temporalio/sdk-go/pull/1530](https://togithub.com/temporalio/sdk-go/pull/1530) - Ensure our proxy helpers forward metadata by [@​Quinn-With-Two-Ns](https://togithub.com/Quinn-With-Two-Ns) in [https://github.com/temporalio/sdk-go/pull/1531](https://togithub.com/temporalio/sdk-go/pull/1531) - Point feature repo back to main by [@​Quinn-With-Two-Ns](https://togithub.com/Quinn-With-Two-Ns) in [https://github.com/temporalio/sdk-go/pull/1532](https://togithub.com/temporalio/sdk-go/pull/1532) - Warn on unhandled updates by [@​Quinn-With-Two-Ns](https://togithub.com/Quinn-With-Two-Ns) in [https://github.com/temporalio/sdk-go/pull/1533](https://togithub.com/temporalio/sdk-go/pull/1533) - Experimental cloud operations client by [@​cretz](https://togithub.com/cretz) in [https://github.com/temporalio/sdk-go/pull/1462](https://togithub.com/temporalio/sdk-go/pull/1462) - add Name method to ReceiveChannel and SendChannel interface by [@​bentveljanzx](https://togithub.com/bentveljanzx) in [https://github.com/temporalio/sdk-go/pull/1538](https://togithub.com/temporalio/sdk-go/pull/1538) - Test AllHandlersFinished in update validator by [@​Quinn-With-Two-Ns](https://togithub.com/Quinn-With-Two-Ns) in [https://github.com/temporalio/sdk-go/pull/1540](https://togithub.com/temporalio/sdk-go/pull/1540) - Fix some Deprecated go docs by [@​Quinn-With-Two-Ns](https://togithub.com/Quinn-With-Two-Ns) in [https://github.com/temporalio/sdk-go/pull/1542](https://togithub.com/temporalio/sdk-go/pull/1542) - Fix bug in updateWorkflowByID by [@​Quinn-With-Two-Ns](https://togithub.com/Quinn-With-Two-Ns) in [https://github.com/temporalio/sdk-go/pull/1548](https://togithub.com/temporalio/sdk-go/pull/1548) - Fix typed search attributes with SignalWithStartWorkflow by [@​Quinn-With-Two-Ns](https://togithub.com/Quinn-With-Two-Ns) in [https://github.com/temporalio/sdk-go/pull/1552](https://togithub.com/temporalio/sdk-go/pull/1552) - Add support for query parameter when listing schedules by [@​justinp-tt](https://togithub.com/justinp-tt) in [https://github.com/temporalio/sdk-go/pull/1556](https://togithub.com/temporalio/sdk-go/pull/1556) - Nexus by [@​bergundy](https://togithub.com/bergundy) in [https://github.com/temporalio/sdk-go/pull/1555](https://togithub.com/temporalio/sdk-go/pull/1555) ### [`v1.27.0`](https://togithub.com/temporalio/sdk-go/releases/tag/v1.27.0) [Compare Source](https://togithub.com/temporalio/sdk-go/compare/v1.26.1...v1.27.0) ### Reset workflow with Updates The Go SDK now supports reapplying Workflow Updates when resetting a workflow execution. **Note: Support for reapplying updates on workflow reset require a server version ≥1.24.0** ### Request failure code labeled metrics gRPC request failure metrics (`*request_failure`) emitted by the Go SDK now include the error status code as a tag under `status_code`. This can be disabled by setting `DisableErrorCodeMetricTags` on `client.Options`. See also: [#​1472](https://togithub.com/temporalio/sdk-go/pull/1472) ### 💥 BREAKING CHANGES This release includes some breaking changes for the experimental features Workflow Update and Worker Versioning. Users of these features should read the release notes carefully before upgrading. #### Workflow Update (Experimental) Based on users feedback this release makes some breaking changes to the Workflow Update API used by client and workflows code. ##### Client API changes - Merged `Client.UpdateWorkflowWithOptions` and `Client.UpdateWorkflow` into one API called `Client.UpdateWorkflow` that takes a `client.UpdateWorkflowOptions` struct. - `WaitPolicy` in `client.UpdateWorkflowOptions` was replaced with `WaitForStage`. `WaitForStage` is now a required parameter in `client.UpdateWorkflowOptions`. - `WaitForStage` is now properly respected by `Client.UpdateWorkflow`. Previously `Client.UpdateWorkflow` may have returned a handle before the desired `WaitForStage` was reached. ##### Workflow API changes - `workflow.SetUpdateHandler` and `workflow.SetUpdateHandlerWithOptions` Now require update handles to take a `workflow.Context` as the first argument. - `workflow.GetUpdateInfo` has been renamed to `workflow.GetCurrentUpdateInfo` . #### Worker Versioning (Experimental) Worker Versioning is a pre-release, experimental feature that simplifies managing code changes by allowing you to peg workflows to build versions. This change revamps and improves the API and deprecates the existing experience. The new APIs introduced with worker versioning are: - `GetWorkerVersioningRules` returns assignment and redirect rules for a given task queue. - `UpdateWorkerVersioningRules` updates assignment and redirect rules for a given task queue. - `DescribeTaskQueueEnhanced` extends the functionality of `DescribeTaskQueue` with workflow reachability status. A few APIs associated with legacy worker versioning have been deprecated: - `UpdateWorkerBuildIdCompatibility` replaced by `UpdateWorkerVersioningRules`. - `GetWorkerBuildIdCompatibility` replaced by `GetWorkerVersioningRules`. - `GetWorkerTaskReachability` replaced by `DescribeTaskQueueEnhanced`. **Note: These new Worker Versioning APIs require a server version ≥1.24.0** #### Internally call `grpc.NewClient` instead of `grpc.Dial` Internally the SDK now calls `grpc.NewClient` instead of `grpc.Dial` because it was deprecated in [google.golang.org/grpc](https://pkg.go.dev/google.golang.org/grpc#Dial) This should be a transparent change to most users, `google.golang.org/grpc` does call out one subtle difference: One subtle difference between NewClient and Dial and DialContext is that the former uses "dns" as the default name resolver, while the latter use "passthrough" for backward compatibility. This distinction should not matter to most users, but could matter to legacy users that specify a custom dialer and expect it to receive the target string directly. Some deprecated dial options like `WithBlock`, `WithTimeout`, `WithReturnConnectionError`, and `FailOnNonTempDialError` are now ignored by `grpc.NewClient`. See https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md for more context. See also: [#​1488](https://togithub.com/temporalio/sdk-go/pull/1488) #### Child workflows now properly Continue-As-New in the `TestWorkflowEnvironment` In previous version of the Go SDK when a child workflow running in the test environment tried to continue as new the parent workflow would receive an error from the child workflow. Now the child workflow properly continues as new and the parent workflow will not receive an error. See also: [#​1437](https://togithub.com/temporalio/sdk-go/pull/1437) #### Specific Changes 2024-04-12 - [`c4bf074`](https://togithub.com/temporalio/sdk-go/commit/c4bf074) - datadog: Add tracer option to check error eligibility in the span ([#​1438](https://togithub.com/temporalio/sdk-go/issues/1438)) 2024-04-17 - [`69bc6c3`](https://togithub.com/temporalio/sdk-go/commit/69bc6c3) - Update reapply ([#​1436](https://togithub.com/temporalio/sdk-go/issues/1436)) 2024-04-23 - [`93c08b0`](https://togithub.com/temporalio/sdk-go/commit/93c08b0) - Ensure consistent labels for rpc metrics ([#​1444](https://togithub.com/temporalio/sdk-go/issues/1444)) 2024-04-24 - [`8361067`](https://togithub.com/temporalio/sdk-go/commit/8361067) - Disable UTF8-invalid tests when running CLI dev server ([#​1448](https://togithub.com/temporalio/sdk-go/issues/1448)) 2024-04-30 - [`fe44a47`](https://togithub.com/temporalio/sdk-go/commit/fe44a47) - Improve error message for missing body ([#​1451](https://togithub.com/temporalio/sdk-go/issues/1451)) 2024-05-01 - [`d051de6`](https://togithub.com/temporalio/sdk-go/commit/d051de6) - Option to redirect devserver stdout/stderr to a file ([#​1452](https://togithub.com/temporalio/sdk-go/issues/1452)) 2024-05-09 - [`386a6d3`](https://togithub.com/temporalio/sdk-go/commit/386a6d3) - Require update handler to have a context ([#​1457](https://togithub.com/temporalio/sdk-go/issues/1457)) 2024-05-09 - [`ded70a3`](https://togithub.com/temporalio/sdk-go/commit/ded70a3) - Add support for NextRetryDelay for local activities ([#​1456](https://togithub.com/temporalio/sdk-go/issues/1456)) 2024-05-10 - [`81cd5dc`](https://togithub.com/temporalio/sdk-go/commit/81cd5dc) - Fix QueryRejectCondition parameter in QueryWorkflowWithOptions ([#​1461](https://togithub.com/temporalio/sdk-go/issues/1461)) 2024-05-10 - [`c69831e`](https://togithub.com/temporalio/sdk-go/commit/c69831e) - Remove DisableStickyExecution ([#​1464](https://togithub.com/temporalio/sdk-go/issues/1464)) 2024-05-14 - [`3b68c6d`](https://togithub.com/temporalio/sdk-go/commit/3b68c6d) - Add request failure code label to metrics ([#​1472](https://togithub.com/temporalio/sdk-go/issues/1472)) 2024-05-17 - [`aa17647`](https://togithub.com/temporalio/sdk-go/commit/aa17647) - get-free-port: prevent duplicate ports on Linux ([#​1478](https://togithub.com/temporalio/sdk-go/issues/1478)) 2024-05-21 - [`06c0ebc`](https://togithub.com/temporalio/sdk-go/commit/06c0ebc) - Add `SetFailureConverter` to the activity and workflow test environments ([#​1484](https://togithub.com/temporalio/sdk-go/issues/1484)) 2024-05-21 - [`222d4cf`](https://togithub.com/temporalio/sdk-go/commit/222d4cf) - Fix gauge metrics with latest otel SDK ([#​1482](https://togithub.com/temporalio/sdk-go/issues/1482)) 2024-05-21 - [`725b428`](https://togithub.com/temporalio/sdk-go/commit/725b428) - Only record activity_succeed_endtoend_latency on success ([#​1481](https://togithub.com/temporalio/sdk-go/issues/1481)) 2024-05-21 - [`fb06909`](https://togithub.com/temporalio/sdk-go/commit/fb06909) - Send original update request back in response ([#​1480](https://togithub.com/temporalio/sdk-go/issues/1480)) 2024-05-22 - [`bf2c79d`](https://togithub.com/temporalio/sdk-go/commit/bf2c79d) - Switch to using Float64Gauge in otel integration ([#​1485](https://togithub.com/temporalio/sdk-go/issues/1485)) 2024-05-24 - [`a6ca6a5`](https://togithub.com/temporalio/sdk-go/commit/a6ca6a5) - Replace grpc.Dial with grpc.NewClient ([#​1488](https://togithub.com/temporalio/sdk-go/issues/1488)) 2024-05-28 - [`bcfa85a`](https://togithub.com/temporalio/sdk-go/commit/bcfa85a) - Workflow update client API refactor ([#​1489](https://togithub.com/temporalio/sdk-go/issues/1489)) 2024-05-31 - [`486c233`](https://togithub.com/temporalio/sdk-go/commit/486c233) - Minor logger improovments ([#​1495](https://togithub.com/temporalio/sdk-go/issues/1495)) 2024-05-31 - [`4dd1ed8`](https://togithub.com/temporalio/sdk-go/commit/4dd1ed8) - Fix bugs when using a custom `FailureConverter` in tests ([#​1490](https://togithub.com/temporalio/sdk-go/issues/1490)) 2024-06-06 - [`0df7ad5`](https://togithub.com/temporalio/sdk-go/commit/0df7ad5) - Bump GitHub Actions ([#​1503](https://togithub.com/temporalio/sdk-go/issues/1503)) 2024-06-06 - [`17193aa`](https://togithub.com/temporalio/sdk-go/commit/17193aa) - Manually copy proxy options ([#​1502](https://togithub.com/temporalio/sdk-go/issues/1502)) 2024-06-06 - [`5c171b7`](https://togithub.com/temporalio/sdk-go/commit/5c171b7) - Make backfill tests more robust ([#​1504](https://togithub.com/temporalio/sdk-go/issues/1504)) 2024-06-06 - [`9ecb2a4`](https://togithub.com/temporalio/sdk-go/commit/9ecb2a4) - Change GetUpdateInfo to GetCurrentUpdateInfo ([#​1505](https://togithub.com/temporalio/sdk-go/issues/1505)) 2024-06-06 - [`bf29944`](https://togithub.com/temporalio/sdk-go/commit/bf29944) - testsuite.StartDevServer: Respect timeout during dial ([#​1498](https://togithub.com/temporalio/sdk-go/issues/1498)) 2024-06-07 - [`c73a007`](https://togithub.com/temporalio/sdk-go/commit/c73a007) - Support the new versioning API ([#​1494](https://togithub.com/temporalio/sdk-go/issues/1494)) 2024-06-10 - [`d4ff1f6`](https://togithub.com/temporalio/sdk-go/commit/d4ff1f6) - Fix flake in TestUpdateAdmittedNoWorker ([#​1506](https://togithub.com/temporalio/sdk-go/issues/1506)) 2024-06-12 - [`38fe879`](https://togithub.com/temporalio/sdk-go/commit/38fe879) - Always run all the versioning tests ([#​1510](https://togithub.com/temporalio/sdk-go/issues/1510)) 2024-06-12 - [`a7c8208`](https://togithub.com/temporalio/sdk-go/commit/a7c8208) - Allow SDK to handle speculative WFT with command events ([#​1509](https://togithub.com/temporalio/sdk-go/issues/1509)) 2024-06-13 - [`2720358`](https://togithub.com/temporalio/sdk-go/commit/2720358) - Improve CI action ([#​1512](https://togithub.com/temporalio/sdk-go/issues/1512)) 2024-06-13 - [`30a29ce`](https://togithub.com/temporalio/sdk-go/commit/30a29ce) - Add integration test for reset with update events ([#​1507](https://togithub.com/temporalio/sdk-go/issues/1507)) 2024-06-13 - [`4c8b9e1`](https://togithub.com/temporalio/sdk-go/commit/4c8b9e1) - Update API to v1.34.0 ([#​1511](https://togithub.com/temporalio/sdk-go/issues/1511))

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.

renovate[bot] commented 1 month ago

ℹ Artifact update notice

File name: backend/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

Details:

Package Change
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 -> v2.20.0
golang.org/x/net v0.24.0 -> v0.27.0
golang.org/x/oauth2 v0.17.0 -> v0.20.0
golang.org/x/sync v0.6.0 -> v0.7.0
google.golang.org/genproto/googleapis/api v0.0.0-20240415180920-8c6c420018be -> v0.0.0-20240711142825-46eb208f015d
google.golang.org/genproto/googleapis/rpc v0.0.0-20240415180920-8c6c420018be -> v0.0.0-20240711142825-46eb208f015d
google.golang.org/grpc v1.63.2 -> v1.65.0
google.golang.org/protobuf v1.33.0 -> v1.34.2
github.com/cespare/xxhash/v2 v2.2.0 -> v2.3.0
github.com/cncf/xds/go v0.0.0-20231128003011-0fa0005c9caa -> v0.0.0-20240423153145-555b57ec207b
go.temporal.io/api v1.32.0 -> v1.36.0
golang.org/x/crypto v0.22.0 -> v0.25.0
golang.org/x/mod v0.15.0 -> v0.17.0
golang.org/x/sys v0.19.0 -> v0.22.0
golang.org/x/term v0.19.0 -> v0.22.0
golang.org/x/text v0.14.0 -> v0.16.0
golang.org/x/tools v0.18.0 -> v0.21.1-0.20240508182429-e35e4ccd0d2d
github-actions[bot] commented 1 month ago

This PR has been marked as stale after 7 or more days of inactivity. Please have a maintainer add the on hold label if this PR should remain open. If there is no further activity or the on hold label is not added, this PR will be closed in 3 days.

renovate[bot] commented 1 month ago

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (v1.28.1). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.