instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
temporalio__sdk-go__1524 | temporalio/sdk-go | 1,524 | defect | 3ceb659a84817915261d0577e4627e0d8dff0916 | 84cbb152587fec76bb0fba838fa79e16c0466045 | Wrap GRPC::CANCELED and DEADLINE_EXCEEDED in an SDK Timeout exception… | Based on https://github.com/temporalio/features/issues/483#issuecomment-2150832036
Closes https://github.com/temporalio/sdk-go/issues/1479
| diff --git a/client/client.go b/client/client.go
index 0cfec3a02..6345e274e 100644
--- a/client/client.go
+++ b/client/client.go
@@ -453,6 +453,12 @@ type (
// WARNING: Worker versioning is currently experimental.
WorkerVersioningRules = internal.WorkerVersioningRules
+ // WorkflowUpdateRPCTimeoutOrCancelledError... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new error type should be named to match the repo's serviceerror conventions - e.g. WorkflowUpdateServiceTimeoutOrCancelledError instead of WorkflowUpdateRPCTimeoutOrCancelledError (M001, offered as optional) and with a single 'l' as in serviceerror.Canceled (M002) - both landing on WorkflowU... | null |
temporalio__sdk-go__1597 | temporalio/sdk-go | 1,597 | defect | 1f0296cdf9d7655269beed439ad1769dd8040654 | 0c438494d3c622ea7dd5a4c1ee871afb0a37912b | Experimental user metadata and workflow metadata query support | ## What was changed
* Added `StartWorkflowOptions.StaticSummary` and `StartWorkflowOptions.StaticDetails` fields that are populated on workflow start event and execution config
* Added `workflow.SetCurrentDetails` and `workflow.GetCurrentDetails` functions that set current details available on workflow metadata que... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 35981104f..ca68bac46 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -91,6 +91,8 @@ jobs:
env:
# TODO(bergundy): Remove this flag once server 1.25.0 is out.
DISABLE_NEXUS_TESTS: "1"
+ #... | 11 | 9 | 4 | [{"id": "G0", "claim": "The conversion of a schedule action's summary/details into user metadata needs a test.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The TODO questioning which signal channels appear in the metadata definitions should be resolve... | null |
temporalio__sdk-go__1636 | temporalio/sdk-go | 1,636 | defect | 592ae12141a56d9c52a1cb40eb28fa06d5550254 | d04a11e20665743f31248e98373bd1c1eb03ff3e | Fix Nexus test env to respect ScheduleToCloseTimeout | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
<!-- Describe ... | diff --git a/internal/internal_workflow_testsuite.go b/internal/internal_workflow_testsuite.go
index fc7f119b5..bd4884083 100644
--- a/internal/internal_workflow_testsuite.go
+++ b/internal/internal_workflow_testsuite.go
@@ -2385,31 +2385,31 @@ func (env *testWorkflowEnvironmentImpl) ExecuteNexusOperation(params execut... | 4 | 4 | 2 | [{"id": "G0", "claim": "At S1 the pull request only propagates ScheduleToCloseTimeout as a request header; the reviewer says the task was to actually enforce the timeout, e.g. by setting a timer that times out the operation when it fires.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "... | null |
temporalio__sdk-go__1664 | temporalio/sdk-go | 1,664 | defect | c82a8ac11cc6f91c74fb9c000dfc3934597483e1 | 15b8106d2e1f997c630f11ab72733d7cc6063bea | Fix nexus_task_execution_failed to include OperationError outcome in start requests | ## Why?
Consistency with other failure metrics. | diff --git a/internal/internal_nexus_task_poller.go b/internal/internal_nexus_task_poller.go
index 628e196c8..79432ef6e 100644
--- a/internal/internal_nexus_task_poller.go
+++ b/internal/internal_nexus_task_poller.go
@@ -152,7 +152,12 @@ func (ntp *nexusTaskPoller) ProcessTask(task interface{}) error {
// Execution... | 2 | 2 | 2 | [{"id": "G0", "claim": "The metrics emitted by this change are not covered by any tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Incrementing NexusTaskExecutionFailedCounter for user-returned operation errors (e.g. a failed child-workflow start) ... | null |
temporalio__sdk-go__1683 | temporalio/sdk-go | 1,683 | defect | 732ec9e5de975d3dbaeebcd8800d645ea10506b0 | 7ffdf3b9e736d2616740177013fb78fc56b6dd6c | Support mocking Nexus operation with operation reference | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
<!-- Describe ... | diff --git a/internal/internal_workflow_testsuite.go b/internal/internal_workflow_testsuite.go
index 12d44e3e8..d88b4cae5 100644
--- a/internal/internal_workflow_testsuite.go
+++ b/internal/internal_workflow_testsuite.go
@@ -121,6 +121,13 @@ type (
delay time.Duration
}
+ // Interface for nexus.OperationReferen... | 6 | 4 | 3 | [{"id": "G0", "claim": "The pull request should include tests exercising the new operation-reference mocking approach so its usage can be seen.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "When a Nexus operation is mocked, the service should have the ... | null |
temporalio__sdk-go__1684 | temporalio/sdk-go | 1,684 | defect | 1a13bf35472d6de6bd558b835c6ba3f1a1d91bdc | ba5df8b55baeed6d3a71c312bd02cb8c4485f6c6 | Fix failure_reason label for nexus_task_execution_failed metric on task timeout | We mistakenly reported timeouts as `internal_sdk_error`. I'll update the docs site as well. | diff --git a/internal/internal_nexus_task_handler.go b/internal/internal_nexus_task_handler.go
index 7134012e2..cb6eae0f3 100644
--- a/internal/internal_nexus_task_handler.go
+++ b/internal/internal_nexus_task_handler.go
@@ -45,6 +45,11 @@ import (
"go.temporal.io/sdk/log"
)
+// errNexusTaskTimeout is returned whe... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new timeout subtest should also assert that NexusTaskScheduleToStartLatency is published, not only the failure counter, because unlike other tests this timeout case does not report E2E latency elsewhere.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"... | null |
temporalio__sdk-go__1695 | temporalio/sdk-go | 1,695 | defect | cdd30702f1ba479b57111763095e24a25a04ea53 | 56398598bcadf07de52648c4339dfc119bb189d6 | Dedup duplicate update IDs for test environment | ## What was changed
<!-- Describe what has changed in this PR -->
Added functionality in test environment to cache update
## Why?
<!-- Tell your future self why have you made these changes -->
Match non-test behavior
## Checklist
<!--- add/delete as needed --->
1. Closes #1638
2. How was this tested:
... | diff --git a/internal/internal_workflow_test.go b/internal/internal_workflow_test.go
index efa6912d2..0602415f0 100644
--- a/internal/internal_workflow_test.go
+++ b/internal/internal_workflow_test.go
@@ -1406,6 +1406,7 @@ type updateCallback struct {
accept func()
reject func(error)
complete func(interface{}... | 4 | 4 | 4 | [{"id": "G0", "claim": "The dedup plumbing should not live in the user-supplied updateCallback (requiring env and updateID to be passed in separately); the logic should instead be handled inside the test environment, e.g. via an internal wrapper around the user's callbacks.", "category": "design", "verdict": "supported... | null |
temporalio__sdk-go__1719 | temporalio/sdk-go | 1,719 | defect | 1f91c8315202b111287c310c197e8d323cbe70b4 | 2abd8e868ad36d12b79613c51388688d348d5520 | Support user metadata on activities and child/scheduled workflows | Support user metadata on activities and child/scheduled workflows
closes https://github.com/temporalio/sdk-go/issues/1673 | diff --git a/internal/activity.go b/internal/activity.go
index d115b1181b..a7789b5a10 100644
--- a/internal/activity.go
+++ b/internal/activity.go
@@ -149,6 +149,14 @@ type (
// build ID or not. See temporal.VersioningIntent.
// WARNING: Worker versioning is currently experimental
VersioningIntent VersioningIn... | 2 | 2 | 0 | [{"id": "G0", "claim": "Remove the leftover fmt.Println debug statement in the child workflow start command code before merging.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the leftover fmt.Println debug statement in ExecuteChildWorkfl... | null |
temporalio__sdk-go__1721 | temporalio/sdk-go | 1,721 | defect | c31c2f2f111091a987c93414882cb50d20fdccac | 7c64240b0823edba8b0034cbb0b9919f9a0ca140 | Improve Update Workflow testing UX |
<!--- For ALL Contributors 👇 -->
## What was changed
<!-- Describe what has changed in this PR -->
Added default implementation `TestUpdateCallbacks` for basic test scenarios
## Why?
<!-- Tell your future self why have you made these changes -->
so tests don't need to implement `UpdateCallbacks` themselv... | diff --git a/internal/internal_workflow_test.go b/internal/internal_workflow_test.go
index efa6912d2..448ef20bd 100644
--- a/internal/internal_workflow_test.go
+++ b/internal/internal_workflow_test.go
@@ -1402,24 +1402,6 @@ func (s *WorkflowUnitTest) Test_MutatingFunctionsInQueries() {
s.NoError(env.GetWorkflowError(... | 2 | 2 | 2 | [{"id": "G0", "claim": "The issue this PR addresses was meant to improve UX for users, so the new TestUpdateCallback type needs to be exposed from the public testsuite package, not just declared in internal.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
temporalio__sdk-go__1722 | temporalio/sdk-go | 1,722 | defect | a5ffe72ff7861c5292f1a33ce1b1afc02735eddf | a462d73483e3ec5e31f505b29ad7a27188e9bc98 | Update workflow execution options (versioning) | ## What was changed
The new versioning-3 introduces a config override API that enables external tools to change versioning behavior of
specific existing workflows. See #1712 for details.
This PR exposes that API with a new client method:
```go
UpdateWorkflowExecutionOptions(ctx context.Context, options Updat... | diff --git a/client/client.go b/client/client.go
index e7eaf621f..2f0a1f4ef 100644
--- a/client/client.go
+++ b/client/client.go
@@ -279,6 +279,26 @@ type (
// NOTE: Experimental
UpdateWorkflowOptions = internal.UpdateWorkflowOptions
+ // UpdateWorkflowExecutionOptionsRequest is a request for Client.UpdateWorkflo... | 3 | 1 | 1 | [{"id": "G0", "claim": "GetWorkflowExecutionOptions should be removed from the SDK, with DescribeWorkflowExecution serving as the getter and the Update call documented to point at it.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Naming the parameter ty... | null |
temporalio__sdk-go__1742 | temporalio/sdk-go | 1,742 | defect | 34b1096ab129eabc59eed36c50197d4e286366ff | 33b91c8d7c040ad8de52b88d05b9c88bf4fad1c2 | Fail registration without versioning behavior |
## What was changed
Remove programmatic SetVersioningBehavior API, and fail workflow registration when behavior missing.See #1739 for details.
1. Closes <!-- add issue number here -->
#1739
2. How was this tested:
<!--- Please describe how you tested your changes/how we can test them -->
One system test
... | diff --git a/internal/internal_task_handlers.go b/internal/internal_task_handlers.go
index d8c4d099e..3bb8b14fd 100644
--- a/internal/internal_task_handlers.go
+++ b/internal/internal_task_handlers.go
@@ -1922,15 +1922,11 @@ func (wth *workflowTaskHandlerImpl) completeWorkflow(
builtRequest.BinaryChecksum = ""
}
... | 2 | 1 | 1 | [{"id": "G0", "claim": "The RegisterOptions.VersioningBehavior doc comment should state that the field is not optional when there is no default versioning behavior and UseBuildIDForVersioning is true.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
temporalio__sdk-go__1762 | temporalio/sdk-go | 1,762 | defect | 380add9260ea3cf0a01d6757a4ed304e6e8c4277 | 6d002424f3729c82afd20738be37b04f344602f3 | Enable SDKFlagBlockedSelectorSignalReceive by default | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
<!-- Describe ... | diff --git a/internal/internal_coroutines_test.go b/internal/internal_coroutines_test.go
index 8114c47fd..8f312ed6e 100644
--- a/internal/internal_coroutines_test.go
+++ b/internal/internal_coroutines_test.go
@@ -565,6 +565,9 @@ func TestSelectBlockingDefault(t *testing.T) {
}
// Verify that the flag is not set
r... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a comment to unblockSelectorSignal explaining what the flag does and why it exists.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
temporalio__sdk-go__1765 | temporalio/sdk-go | 1,765 | defect | 380add9260ea3cf0a01d6757a4ed304e6e8c4277 | 5799109d061b30ce5aad7273aff6d0041200408a | Fix versioning override with AutoUpgrade behavior |
## What was changed
<!-- Describe what has changed in this PR -->
The current implementation for versioning override fails for AutoUpgrade
because it uses an empty Deployment struct instead of a nil pointer.
See #1764 for details.
Also missing `gofmt` of some unrelated files corrected.
## Why?
<!-- Tel... | diff --git a/contrib/tools/workflowcheck/determinism/testdata/src/a/ignore.go b/contrib/tools/workflowcheck/determinism/testdata/src/a/ignore.go
index d9498898d..855f3a9f6 100644
--- a/contrib/tools/workflowcheck/determinism/testdata/src/a/ignore.go
+++ b/contrib/tools/workflowcheck/determinism/testdata/src/a/ignore.go... | 3 | 1 | 0 | [{"id": "G0", "claim": "VersioningOverride.Deployment should accept a pointer so that an unset Deployment can be represented as nil rather than an empty struct, whose server-side validity (erroring on empty) was questioned.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "... | null |
temporalio__sdk-go__1783 | temporalio/sdk-go | 1,783 | defect | 815c648b2ed3e3b90d9ef60588b0850d87648574 | 291d4694144b552c4de5201de39f588ee8cc8c9c | Expose workflow client from Activity | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
<!-- Describe ... | diff --git a/activity/activity.go b/activity/activity.go
index 38bb3bf3f..a7002c1e5 100644
--- a/activity/activity.go
+++ b/activity/activity.go
@@ -26,7 +26,7 @@ package activity
import (
"context"
-
+ "go.temporal.io/sdk/client"
"go.temporal.io/sdk/internal"
"go.temporal.io/sdk/internal/common/metrics"
"go... | 5 | 5 | 3 | [{"id": "G0", "claim": "The new activity.GetClient creates its own client instead of using the client (with its data converter and interceptors) the worker was started with, so the returned client would lack that configuration.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"... | null |
temporalio__sdk-go__1792 | temporalio/sdk-go | 1,792 | defect | e7a505f0b97b62988c8a00aa58030f24f2400ff6 | 4a96de6fb620138346948fcc8e7b2134b33f781b | Add priority annotations | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
<!-- Describe ... | diff --git a/internal/activity.go b/internal/activity.go
index dca59692f6..212039dbf2 100644
--- a/internal/activity.go
+++ b/internal/activity.go
@@ -165,6 +165,10 @@ type (
//
// NOTE: Experimental
Summary string
+
+ // Priority - Optional priority and fairness settings that control relative ordering of
+ ... | 10 | 7 | 3 | [{"id": "G0", "claim": "The doc comment on the new Priority field duplicates the already very detailed docs of commonpb.Priority and need not be duplicated here.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The SDK should not reference raw proto... | null |
temporalio__sdk-go__1803 | temporalio/sdk-go | 1,803 | defect | 82c56a913a5d42cf87d380e3b36f20b9b79d9d7d | 98f65dacec22135e9e01a0871e1169010af91ef5 | Fix child WF ID generation | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
We now use `wo... | diff --git a/internal/internal_event_handlers.go b/internal/internal_event_handlers.go
index c2d89ef58..8b05ad453 100644
--- a/internal/internal_event_handlers.go
+++ b/internal/internal_event_handlers.go
@@ -561,7 +561,7 @@ func (wc *workflowEnvironmentImpl) ExecuteChildWorkflow(
params ExecuteWorkflowParams, callba... | 8 | 6 | 4 | [{"id": "G0", "claim": "Simply using OriginalRunID for child workflow IDs may not be the desired outcome; a design where child workflow IDs are derived from a re-seeded random or from a current run ID that is updated on reset should be considered instead.", "category": "design", "verdict": "supported", "priority": "P1"... | null |
temporalio__sdk-go__1828 | temporalio/sdk-go | 1,828 | defect | b8bc1c5e5ae7724a986bae832e18dee9d1a6c67b | b357b6ad58b0953dccec60b2b062b831462bed2c | Support conflict options for starting Nexus operations in test framework | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
<!-- Describe ... | diff --git a/contrib/datadog/go.mod b/contrib/datadog/go.mod
index 3398f76c87..5dd98d1dbb 100644
--- a/contrib/datadog/go.mod
+++ b/contrib/datadog/go.mod
@@ -40,7 +40,7 @@ require (
github.com/secure-systems-lab/go-securesystemslib v0.7.0 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/tinylib... | 6 | 2 | 1 | [{"id": "G0", "claim": "The OnConflictOptions field should not be added to the internal workflow options struct since it is unused outside the test environment (the author himself was unsure it should be added at all).", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
temporalio__sdk-go__1830 | temporalio/sdk-go | 1,830 | defect | 617de7eeac73bf070306a99321cf8ae360b6bf15 | e6a45760d883986b518f003b770c06a91ece02b8 | Remove operation and service labels from Nexus schedule to start metric | The labels are not relevant when polling from the Nexus task queue where any request (task) may be served. | diff --git a/internal/internal_nexus_task_poller.go b/internal/internal_nexus_task_poller.go
index 615de4190..73f882a08 100644
--- a/internal/internal_nexus_task_poller.go
+++ b/internal/internal_nexus_task_poller.go
@@ -135,6 +135,14 @@ func (ntp *nexusTaskPoller) ProcessTask(task interface{}) error {
return nil
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Existing tests that assert the schedule-to-start timer's tags would need to be updated, since the change removed the service and operation labels from that metric.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
temporalio__sdk-go__1833 | temporalio/sdk-go | 1,833 | defect | 623baddb208c0a5f1984ecd3de37af07b00f1e9c | 39669a72a2f89771af0432e1a72c281e056213a8 | Translate relevant errors to non retryable internal Nexus handler errors | Temporarily using the pre-release CLI for testing. | diff --git a/internal/cmd/build/main.go b/internal/cmd/build/main.go
index 346c77e646..b63b87ad3e 100644
--- a/internal/cmd/build/main.go
+++ b/internal/cmd/build/main.go
@@ -140,6 +140,10 @@ func (b *builder) integrationTest() error {
// Start dev server if wanted
if *devServerFlag {
devServer, err := testsuite... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new handler-error assertions in TestNexusSyncOperation need to be flagged/skipped when the tests do not run against the prerelease test server.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
temporalio__sdk-go__1845 | temporalio/sdk-go | 1,845 | defect | 2449502a7b93d9c32e1029a96e869372c8370593 | 710d46a48eb08a02957de9de55bc70ca2ce21355 | Block using conflict policy UseExisting for Nexus WorkflowRunOperation | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
<!-- Describe ... | diff --git a/temporalnexus/operation.go b/temporalnexus/operation.go
index 2857711491..c8b0fefaad 100644
--- a/temporalnexus/operation.go
+++ b/temporalnexus/operation.go
@@ -53,6 +53,8 @@ import (
"go.temporal.io/sdk/workflow"
)
+var errConflictPolicyUseExistingNotSupported = errors.New("workflow ID conflict poli... | 2 | 1 | 0 | [{"id": "G0", "claim": "Delete the commented-out assertions in the conflict-policy-use-existing test case instead of leaving them commented out.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Define the UseExisting-not-supported error inline at ... | null |
temporalio__sdk-go__1853 | temporalio/sdk-go | 1,853 | defect | a85ce600f6272b3fc11fa112f822b6990cd7cd1e | c7f4ba6820824b6294854afbe6cda972d093173a | Update documentation for `Next` history iterator | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
<!-- Describe ... | diff --git a/internal/internal_workflow_client.go b/internal/internal_workflow_client.go
index aeccbc4fa7..970193259c 100644
--- a/internal/internal_workflow_client.go
+++ b/internal/internal_workflow_client.go
@@ -1450,7 +1450,7 @@ func (iter *historyEventIteratorImpl) HasNext() bool {
func (iter *historyEventIterato... | 2 | 1 | 0 | [{"id": "G0", "claim": "The code comment above `Next` is incorrect and should be updated to describe the actual behaviour.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Reaching the end of the events should return an error like ErrNoMoreResults... | null |
temporalio__sdk-go__1870 | temporalio/sdk-go | 1,870 | defect | 76cebd850cffa47a0ad7a9f6bcfd143622ae3eb6 | e17453351dcc439096e5bf314fadbdd48fb5d65f | Fix possibly failing to reserve slots due to stale issued number | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
Fix a bug wher... | diff --git a/internal/tuning.go b/internal/tuning.go
index c6ea6428a..0de151863 100644
--- a/internal/tuning.go
+++ b/internal/tuning.go
@@ -328,7 +328,7 @@ type slotReserveInfoImpl struct {
taskQueue string
workerBuildId string
workerIdentity string
- issuedSlots int
+ issuedSlots *atomic.Int32
log... | 4 | 1 | 0 | [{"id": "G0", "claim": "Document that NumIssuedSlots returns the current number of slots issued and that the value is updated over time, so users do not mistake it for a count frozen at the time of the call.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c... | null |
temporalio__sdk-go__1875 | temporalio/sdk-go | 1,875 | defect | 08d04be5aae233bc6ccb0df0d7a520147e9843ed | d41034cd3fc6f6c184778c273350fd5f1b1def83 | Allow local activities to finish running when stopping a worker | ## What was changed
<!-- Describe what has changed in this PR -->
shutdown the local activity worker after the worker. Also created a separate stop channel to allow pending local activities to finish running when stopping a worker.
## Why?
<!-- Tell your future self why have you made these changes -->
Previously... | diff --git a/internal/internal_task_pollers.go b/internal/internal_task_pollers.go
index 30af1234c..4a4db0cb2 100644
--- a/internal/internal_task_pollers.go
+++ b/internal/internal_task_pollers.go
@@ -625,7 +625,7 @@ func (latp *localActivityTaskPoller) PollTask() (taskForWorker, error) {
}
func (latp *localActivit... | 3 | 3 | 1 | [{"id": "G0", "claim": "The pull request should have a test confirming that a local activity which outlives the workflow task timeout completes via workflow task heartbeating when the worker is stopped.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G4", "claim": "The... | null |
temporalio__sdk-go__1879 | temporalio/sdk-go | 1,879 | defect | 2dcb1b9a204626cda8f0c4063bb6f9b4c93aa2e1 | f70ca516f1f7e1cb828ffcf77a9b75afaba0613d | Add RawValue support | ## What was changed
Added new RawValue type and add support in codec and composite data converter.
## Why?
SDKs need to support a payload wrapper called "raw value" that is just a payload but is passed through the conversion stage (but still applies to codec).
## Checklist
<!--- add/delete as needed --->
1.... | diff --git a/converter/codec.go b/converter/codec.go
index 35152306e..6f9aaa018 100644
--- a/converter/codec.go
+++ b/converter/codec.go
@@ -172,9 +172,17 @@ func (e *CodecDataConverter) decode(payloads []*commonpb.Payload) ([]*commonpb.P
// ToPayload implements DataConverter.ToPayload performing encoding on the
// r... | 5 | 3 | 2 | [{"id": "G0", "claim": "Raw value handling should be removed from CodecDataConverter and done only in CompositeDataConverter, since raw value is a type-conversion concern that codecs have nothing to do with.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": ... | null |
temporalio__sdk-go__1894 | temporalio/sdk-go | 1,894 | defect | 4b15a0c73e8a0e8414d93db7c75368ec39ea338f | 714338be57daddc568e9d46ee8e199e493daccc1 | Use RawValue for built-in query responses | ## What was changed
<!-- Describe what has changed in this PR -->
Use RawValue for built-in query response, only `QueryTypeWorkflowMetadata` is being changed due to backwards compatibility issues
## Why?
<!-- Tell your future self why have you made these changes -->
So user's payload converter is not used
## ... | diff --git a/internal/internal_event_handlers.go b/internal/internal_event_handlers.go
index bc9571430..1ce744ec1 100644
--- a/internal/internal_event_handlers.go
+++ b/internal/internal_event_handlers.go
@@ -1415,9 +1415,19 @@ func (weh *workflowExecutionEventHandlerImpl) ProcessQuery(
) (*commonpb.Payloads, error) {... | 1 | 1 | 1 | [{"id": "G0", "claim": "For backwards compatibility the built-in stack trace and open sessions query responses cannot switch to RawValue; only QueryTypeWorkflowMetadata may use RawValue.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
temporalio__sdk-go__1896 | temporalio/sdk-go | 1,896 | defect | 31c4c30812adcd53554f08dfc5ca917df718ceae | 907562c27e3f9ba476d646b01b202bdcfd9fe218 | Make sure schedule Update treats CatchupWindow properly | Make sure schedule Update treats CatchupWindow properly. When we create a schedule we treat a `CatchupWindow=0` as unset, so we pass `nil` which tells the server to use the default value. On update we forgot to convert `CatchupWindow=0` causing the server to use the min. value of `10s` instead.
https://github.com/... | diff --git a/internal/internal_schedule_client.go b/internal/internal_schedule_client.go
index b6a0a6268..2f4b37465 100644
--- a/internal/internal_schedule_client.go
+++ b/internal/internal_schedule_client.go
@@ -544,12 +544,20 @@ func convertToPBSchedule(ctx context.Context, client *WorkflowClient, schedule *
if err... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new comment should be reworded to something like '// Only convert non-zero CatchWindow so server treats 0 as nil and uses the default catchup window.' since the if block handles the non-zero case and the current wording ('Convert to nil so the server uses the default catchup window') is conf... | null |
temporalio__sdk-go__1910 | temporalio/sdk-go | 1,910 | defect | 729bc240a1004e1a897c4144bed5489e61a6b768 | 687760ff4497f3ad89aaab0b7fafe304c5277e29 | Handle activity cancel due to worker shutdown properly | ## What was changed
Stop sending activity cancellation due to worker shutdown. Now we send an Application error, allowing for another worker to retry the activity.
## Why?
<!-- Tell your future self why have you made these changes -->
align behavior with core SDKs
## Checklist
<!--- add/delete as needed --->
... | diff --git a/internal/internal_task_handlers.go b/internal/internal_task_handlers.go
index 159bf0897..f8d578e77 100644
--- a/internal/internal_task_handlers.go
+++ b/internal/internal_task_handlers.go
@@ -2240,7 +2240,7 @@ func (ath *activityTaskHandlerImpl) Execute(taskQueue string, t *workflowservice
metricsHandle... | 7 | 7 | 2 | [{"id": "G0", "claim": "The pull request should not add a second flag (`canceledFromWorkerShutdown`) alongside the existing `cancelAllowed` mechanism; it should fix the broken flag instead of adding another one.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai... | null |
temporalio__sdk-go__1924 | temporalio/sdk-go | 1,924 | defect | a92189071ec5931c88a97284d60b8b06f1024fc3 | ef9150ea19d0813c8781f1419007a2f2faa4abbd | Add high level workflow describe | Add high level workflow describe
close https://github.com/temporalio/sdk-go/issues/1667
| diff --git a/client/client.go b/client/client.go
index a1d1f38f4d..0130f42253 100644
--- a/client/client.go
+++ b/client/client.go
@@ -269,6 +269,9 @@ type (
// QueryWorkflowWithOptionsResponse defines the response to QueryWorkflowWithOptions.
QueryWorkflowWithOptionsResponse = internal.QueryWorkflowWithOptionsResp... | 7 | 4 | 1 | [{"id": "G0", "claim": "The static summary and details should be fetched lazily instead of being decoded eagerly, since the result is often not required and decoding it anyway is inefficient.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The client... | null |
temporalio__sdk-go__1933 | temporalio/sdk-go | 1,933 | defect | bba43df6e70bfcff2b1ee00768596211b929f710 | b46075dffd65c40ff3617955788795f996f642b3 | Don't heartbeat local activity on non-graceful worker shutdown | ## What was changed
<!-- Describe what has changed in this PR -->
Stop local activity from heartbeating after worker has shutdown
## Why?
<!-- Tell your future self why have you made these changes -->
They shouldn't heartbeat after they've been canceled due to non-graceful shutdown
## Checklist
<!--- add/del... | diff --git a/internal/internal_task_handlers.go b/internal/internal_task_handlers.go
index 153b3541e..6fa209515 100644
--- a/internal/internal_task_handlers.go
+++ b/internal/internal_task_handlers.go
@@ -998,6 +998,17 @@ processWorkflowLoop:
case lar := <-workflowTask.laResultCh:
// local activity resul... | 3 | 3 | 2 | [{"id": "G0", "claim": "The unconditional `break processWorkflowLoop` on one canceled local activity also exits the loop while another local activity may still be pending or about to succeed, so its successful result is never recorded in the workflow task.", "category": "correctness", "verdict": "supported", "priority"... | null |
temporalio__sdk-go__1937 | temporalio/sdk-go | 1,937 | defect | bba43df6e70bfcff2b1ee00768596211b929f710 | 1c4ca23c70aeb1555c39eba09451b5adc0d4a8a5 | Handle mix of RawValue and non-RawValue inputs for CompositeDataConverter | ## What was changed
<!-- Describe what has changed in this PR -->
For data converter, support handling a mix of RawValue and non-RawValue input.
For codec, Raw Value support has been removed, as we'd only be able to conditionally support RawValue (if all inputs are RawValue), not worth the complexity to kinda supp... | diff --git a/converter/codec.go b/converter/codec.go
index fb35b8c40..c741b8662 100644
--- a/converter/codec.go
+++ b/converter/codec.go
@@ -136,6 +136,10 @@ func (*zlibCodec) Decode(payloads []*commonpb.Payload) ([]*commonpb.Payload, err
//
// CodecDataConverter provides support for RawValue handling, where it skips... | 3 | 3 | 2 | [{"id": "G0", "claim": "The RawValue handling in CodecDataConverter, which only engages when all inputs are RawValue, is confusing and cannot handle a mix consistently, so maybe it should just rely on the underlying data converter.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}... | null |
temporalio__sdk-go__1965 | temporalio/sdk-go | 1,965 | defect | a15c29414cde2ca6d4d78a3c031e2e168ec4a668 | f6bcd39be1369dd882c3d71f9a331f361d63acd9 | Fix GetWorkerStopChannel() for Local Activities | ## What was changed
<!-- Describe what has changed in this PR -->
Plumb WorkerStopChannel through for Local Activities
## Why?
<!-- Tell your future self why have you made these changes -->
Looks like this was never implemented to begin with
## Checklist
<!--- add/delete as needed --->
1. Closes #1963
... | diff --git a/internal/activity.go b/internal/activity.go
index fada8ad7d..7371b689a 100644
--- a/internal/activity.go
+++ b/internal/activity.go
@@ -340,6 +340,7 @@ func WithLocalActivityTask(
dataConverter converter.DataConverter,
interceptors []WorkerInterceptor,
client *WorkflowClient,
+ workerStopChannel <-ch... | 1 | 1 | 1 | [{"id": "G0", "claim": "For graceful shutdown, the delay between the worker stop channel closing and the activity context being cancelled should be the graceful shutdown time (the context shouldn't be cancelled during the graceful shutdown period), not the slight delay the added test comment describes.", "category": "c... | null |
temporalio__sdk-go__1968 | temporalio/sdk-go | 1,968 | defect | 28be770bd6d9b5cd827086d9a93a05847fd35d23 | 22e66562b2a67172eb87abf45f7de48ed06e8e47 | Fix canceling external workflows that are children in testsuite | ## What was changed
Dispatch a new coroutine with workflow context when canceling external workflow in workflow testsuite
## Why?
Fix testsuite specific error
## Checklist
1. Closes #1961
2. How was this tested:
Added test
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Changes test-suite ca... | diff --git a/internal/internal_workflow_testsuite.go b/internal/internal_workflow_testsuite.go
index 175e9df224..3d77861749 100644
--- a/internal/internal_workflow_testsuite.go
+++ b/internal/internal_workflow_testsuite.go
@@ -2279,13 +2279,23 @@ func (env *testWorkflowEnvironmentImpl) RequestCancelChildWorkflow(_, wor... | 6 | 2 | 2 | [{"id": "G0", "claim": "The existing postCallback mechanism may be enough, questioning whether the new spawn-coroutine refactor in RequestCancelExternalWorkflow is needed.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Running the self-cancel in a corout... | null |
temporalio__sdk-go__2026 | temporalio/sdk-go | 2,026 | defect | 9ca81c604e3eaf447ec0893cd19845676a0b8aea | 657b2a4e6c09ccae5ebaadda35ff35f8f779d52f | Do not auto-retry gRPC-message-size-too-large errors | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
<!-- Describe ... | diff --git a/internal/activity_test.go b/internal/activity_test.go
index 63989d6fb..5908ba9ff 100644
--- a/internal/activity_test.go
+++ b/internal/activity_test.go
@@ -3,6 +3,7 @@ package internal
import (
"context"
"fmt"
+ "sync/atomic"
"testing"
"time"
@@ -42,7 +43,7 @@ func (s *activityTestSuite) TearDow... | 1 | 1 | 0 | [{"id": "G0", "claim": "The TODO comment on RESOURCE_EXHAUSTED_CAUSE_EXT_GRPC_MESSAGE_TOO_LARGE should reference an issue tracking the upstream enum work.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
temporalio__sdk-go__2032 | temporalio/sdk-go | 2,032 | defect | 9ca81c604e3eaf447ec0893cd19845676a0b8aea | 112c482a47a8d822d7c8a43c49e9706b979c94ba | Add Go to Waitgroup | Add `Go` to workflow safe `Waitgroup` to match `sync.Waitgroup`
https://cs.opensource.google/go/go/+/go1.25.0:src/sync/waitgroup.go;l=235
closes https://github.com/temporalio/sdk-go/issues/2031
| diff --git a/internal/internal_workflow.go b/internal/internal_workflow.go
index a82306217c..eca3cdda39 100644
--- a/internal/internal_workflow.go
+++ b/internal/internal_workflow.go
@@ -1907,6 +1907,14 @@ func (wg *waitGroupImpl) Wait(ctx Context) {
wg.future, wg.settable = NewFuture(ctx)
}
+func (wg *waitGroupIm... | 1 | 1 | 1 | [{"id": "G0", "claim": "The test calls waitGroup.Done() inside the function passed to waitGroup.Go(), which already calls Done() itself, so the WaitGroup counter is decremented twice and goes negative, causing a panic.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
temporalio__sdk-go__2048 | temporalio/sdk-go | 2,048 | defect | a2ac97f65fb5d13c7be25d625a54f35ba9461b07 | 72a76d4228601d5deef8ccad2fd12fae7bbdf64f | OpenTelemetry: Specify span kind and don't set error type for benign exception | ## What was changed
<!-- Describe what has changed in this PR -->
1. Set span kind, `server` for inbound, and `client` for outbound
1. Also removed `ToHeader` and `FromHeader`, they appear to directly be associated with if inbound or outbound
2. Don't mark benign exceptions as Errors for otel status. Also avoid ... | diff --git a/contrib/opentelemetry/tracing_interceptor.go b/contrib/opentelemetry/tracing_interceptor.go
index 053b7565d..bb536e238 100644
--- a/contrib/opentelemetry/tracing_interceptor.go
+++ b/contrib/opentelemetry/tracing_interceptor.go
@@ -3,6 +3,7 @@ package opentelemetry
import (
"context"
+ "errors"
"fmt... | 5 | 4 | 3 | [{"id": "G0", "claim": "OpenTracing is deprecated, so the pull request should not bother fixing (adding benign-error handling to) contrib/opentracing/ or do a release to publish it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Adding an exported Outbou... | null |
temporalio__sdk-go__2054 | temporalio/sdk-go | 2,054 | defect | ef85feea1f9be63b22d01c60c59432cacb5a2f7f | ea875d11b3b35a7e4731b16aebc66060dc0a7ff3 | Add NexusInfo | closes https://github.com/temporalio/sdk-go/issues/2053 | diff --git a/internal/interceptor.go b/internal/interceptor.go
index 6a4528f631..a0a55e4921 100644
--- a/internal/interceptor.go
+++ b/internal/interceptor.go
@@ -560,6 +560,8 @@ type NexusOperationInboundInterceptor interface {
//
// Note: Experimental
type NexusOperationOutboundInterceptor interface {
+ // GetInfo... | 1 | 1 | 1 | [{"id": "G0", "claim": "In TestOperationInfo the workflow returns only an error while the operation returns \"namespace:taskqueue\", so the workflow always fails and the final assertion for the namespace:taskqueue string is unreachable; make the types consistent so the test passes and asserts the intended value.", "cat... | null |
temporalio__sdk-go__2056 | temporalio/sdk-go | 2,056 | defect | ef85feea1f9be63b22d01c60c59432cacb5a2f7f | cb0dbd6a88d65aea4431fe1bacc92e69eab838c5 | Activity reset | ## What was changed
Add support for activity reset
## Why?
Allow users to reset their activity
1. Closes #1931
2. How was this tested:
Integration test
3. Any docs updates needed?
Maybe?
| diff --git a/activity/activity.go b/activity/activity.go
index 9d47f7a55..78fae2541 100644
--- a/activity/activity.go
+++ b/activity/activity.go
@@ -34,6 +34,11 @@ var ErrResultPending = internal.ErrActivityResultPending
// WARNING: Activity pause is currently experimental
var ErrActivityPaused = internal.ErrActivity... | 1 | 1 | 1 | [{"id": "G0", "claim": "The TestActivityReset integration test does not actually verify that heartbeat details and the attempt count were reset, since the activity only runs once and the assertion just compares a hard-coded string.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"... | null |
temporalio__sdk-go__2057 | temporalio/sdk-go | 2,057 | defect | 96d9f2b67a1bbabb8be17e0debdf5f90dafcce4f | 6efe3d73a0b6fd0386460cf56f88546b9dc4cd67 | Added retry policy to activity info | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
<!-- Describe ... | diff --git a/internal/activity.go b/internal/activity.go
index 79d7b7d2cd..7ca9eb0b80 100644
--- a/internal/activity.go
+++ b/internal/activity.go
@@ -45,6 +45,10 @@ type (
//
// WARNING: Task queue priority is currently experimental.
Priority Priority
+ // Retry policy for the activity. Note that the server ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment on the RetryPolicy field should say \"nil\" rather than \"None\" for the Go nil value.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
temporalio__sdk-go__2068 | temporalio/sdk-go | 2,068 | defect | 8d4314351e5e350fc5bd8e8f9fc1a841ce940b50 | 591929199a0c4726c8795b90b800f7690d3e3518 | Implement SetWorkerDeploymentManagerIdentity | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
Implement SetW... | diff --git a/internal/internal_worker_deployment_client.go b/internal/internal_worker_deployment_client.go
index 811a0ff7a..5e79027bd 100644
--- a/internal/internal_worker_deployment_client.go
+++ b/internal/internal_worker_deployment_client.go
@@ -271,6 +271,45 @@ func (h *workerDeploymentHandleImpl) SetRampingVersion... | 4 | 4 | 0 | [{"id": "G0", "claim": "The doc comment line for the Identity field should use a hyphen ('Identity - The identity of the client who initiated this request.') to match the doclink comment style.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'E... | null |
temporalio__sdk-go__2080 | temporalio/sdk-go | 2,080 | defect | 09e063471442f30d4cedac429183c7db8e18c84e | ad057c2052a3998baaa11c3df4a8901b53b95918 | Replace tctl references with Temporal CLI | ## What was changed
<!-- Describe what has changed in this PR -->
replaced all tctl references with CLI
## Why?
<!-- Tell your future self why have you made these changes -->
tctl deprecated
## Checklist
<!--- add/delete as needed --->
1. Closes <!-- add issue number here -->
2. How was this tested:
<... | diff --git a/internal/client.go b/internal/client.go
index 066a071c7..33c1e2d54 100644
--- a/internal/client.go
+++ b/internal/client.go
@@ -809,7 +809,7 @@ type (
// history only when the activity completes or "finally" timeouts/fails. And the started event only records the last
// started time. Because of that, t... | 1 | 1 | 1 | [{"id": "G0", "claim": "The second `temporal workflow show` comment command in TestGenerateWorkflowHistory incorrectly uses `replay-tests-workflow1` as the workflow ID, so it would export workflow1's history instead of `replay-tests-workflow2`, leading to incorrect data for replay tests.", "category": "correctness", "v... | null |
temporalio__sdk-go__2088 | temporalio/sdk-go | 2,088 | defect | f7eff2ab4fafd814d7959efb38a3fd0711abad6f | d4e2367507c5a3fbe7f8e9366daabae5f716509f | Stop sending deployment info for session per-worker task queue | Stop sending deployment info for session per-worker task queue
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Temporarily disables deployment/versioning for the session activity worker on the resource-specific task queue (restored for creation worker) and adds a session build ID test.
>
> - **Worker/session handling**:
> ... | diff --git a/internal/internal_worker.go b/internal/internal_worker.go
index 31b71b1cbb..b2f51b0c45 100644
--- a/internal/internal_worker.go
+++ b/internal/internal_worker.go
@@ -448,8 +448,14 @@ func newSessionWorker(client *WorkflowClient, params workerExecutionParameters,
creationTaskqueue := getCreationTaskqueue(... | 5 | 4 | 3 | [{"id": "G0", "claim": "The newly added TestBuildIDSession test should not be skipped; the issue-1650 skip should be removed so the test actually runs.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "TestBuildIDSession starts a worker that is never stopp... | null |
temporalio__sdk-go__2112 | temporalio/sdk-go | 2,112 | defect | 7c0ebcfd3b5f9580a4fd77aefe8c87ef0aba9516 | 0b7f8f1cd21cc9ec2c24e13b5fae3910587c512b | Defer updating workflow completion metrics until completion accepted by server | ## What was changed
* Built new `workflowTaskCompletion` struct to represent workflow task completion instead of `interface{}`
* Added optional `applyCompletionMetrics` func to be called when the task completion is accepted
* Set `applyCompletionMetrics` with the workflow completed metrics to be applied on task co... | diff --git a/internal/internal_public.go b/internal/internal_public.go
index 6a8fb6cf6..a61dcd69d 100644
--- a/internal/internal_public.go
+++ b/internal/internal_public.go
@@ -15,7 +15,7 @@ import (
)
type (
- workflowTaskHeartbeatFunc func(response interface{}, startTime time.Time) (*workflowTask, error)
+ workfl... | 2 | 1 | 1 | [{"id": "G0", "claim": "The PR's deferral of workflow completion metric updates should get test coverage iterating the few other ways a workflow can complete, so the completion metrics are confirmed to still be emitted correctly.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"},... | null |
temporalio__sdk-go__2119 | temporalio/sdk-go | 2,119 | defect | 87543ca6836f1df6d2d984ca3dfe6ab0971c7cf4 | 8d6e38678da9ae1c2c1b78013b940bd5cd2ec29b | Deprecate `PreviousVersion` in Versioning responses | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
Applying depre... | diff --git a/internal/worker_deployment_client.go b/internal/worker_deployment_client.go
index 1d1c589c1..38478f681 100644
--- a/internal/worker_deployment_client.go
+++ b/internal/worker_deployment_client.go
@@ -180,6 +180,8 @@ type (
ConflictToken []byte
// PreviousVersion - The Version that was current befor... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new deprecation notices lack the canonical Go format (a blank `//` line and the `Deprecated:` prefix with a colon), so IDEs and linters will not recognize them as deprecations; format them like `//\n// Deprecated: ...`.", "category": "documentation", "verdict": "supported", "priority": "P1",... | null |
temporalio__sdk-go__2121 | temporalio/sdk-go | 2,121 | defect | 2c431943a1696c19617be7ee073a3677fc90e339 | 463a971a0df868de568f6651c2ed72091ad2d471 | Introduce SDK flag to use user DC on Memo's | ## What was changed
Introduced an SDK flag, `SDKFlagMemoUserDCEncode`, to configure new behavior, where we actually use the user data converter when encoding Memo's. If user DC errors out, the default DC will be used as a fallback. If that also returns an error, the user DC error will be returned to the caller.
SDK... | diff --git a/internal/internal_event_handlers.go b/internal/internal_event_handlers.go
index 2bbeabc97..2ca555e9b 100644
--- a/internal/internal_event_handlers.go
+++ b/internal/internal_event_handlers.go
@@ -484,7 +484,7 @@ func validateAndSerializeSearchAttributes(attributes map[string]interface{}) (*c
func (wc *w... | 5 | 4 | 4 | [{"id": "G0", "claim": "The new SDKFlagMemoUserDCEncode constant is defined but not added to the sdkFlagFromUint switch, so when the server sends flag value 6 during workflow replay it maps to SDKFlagUnknown and the workflow task handler fails with unknownSdkFlagError, breaking replay of workflows that used the new mem... | null |
temporalio__sdk-go__2122 | temporalio/sdk-go | 2,122 | defect | 13ff29d79d5345c30f3e4109c0f94b737a19ad7a | 5b7e431e5f8488d68ed2d4755d8407c984579732 | Add resource_slots_cpu/mem_usage metrics | ## What was changed
Add `resource_slots_cpu_usage` and `resource_slots_mem_usage` metrics
## Why?
Match Core and Java
## Checklist
1. Closes #2089
2. How was this tested:
Added a test
3. Any docs updates needed?
Should update https://docs.temporal.io/references/sdk-metrics#resource_slots_cpu_usage t... | diff --git a/contrib/resourcetuner/resourcetuner.go b/contrib/resourcetuner/resourcetuner.go
index f2be32150..e52fb0621 100644
--- a/contrib/resourcetuner/resourcetuner.go
+++ b/contrib/resourcetuner/resourcetuner.go
@@ -3,6 +3,7 @@ package resourcetuner
import (
"context"
"errors"
+ "go.temporal.io/sdk/internal/c... | 1 | 1 | 1 | [{"id": "G0", "claim": "The contrib package contrib/resourcetuner should not import the SDK's internal package (go.temporal.io/sdk/internal/common/metrics).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
temporalio__sdk-go__2126 | temporalio/sdk-go | 2,126 | defect | e6b89f1cb3366a350d8b52de683c5ae161f6b64b | fa2f26d064568f701306a9013ddce14441048d1c | 💥 [BREAKING] enable TLS if api key specified | ## What was changed
DWISOTT
1. Part of https://github.com/temporalio/features/issues/687
2. How was this tested:
`internals/credentials_test.go`
3. Any docs updates needed?
Maybe | diff --git a/internal/client.go b/internal/client.go
index 33c1e2d543..2eb4a4b4df 100644
--- a/internal/client.go
+++ b/internal/client.go
@@ -542,6 +542,11 @@ type (
// TLS configures connection level security credentials.
TLS *tls.Config
+ // TLSDisabled explicitly disables TLS. When true, TLS will not be us... | 2 | 2 | 1 | [{"id": "G0", "claim": "The TLSDisabled doc says TLS will not be used when it is true, but TLS is still enabled and used if the TLS field is also set, so the reviewer asks either to disallow setting both TLS and TLSDisabled or to document that the TLS field is ignored and make the code respect that.", "category": "corr... | null |
temporalio__sdk-go__2129 | temporalio/sdk-go | 2,129 | defect | 13ff29d79d5345c30f3e4109c0f94b737a19ad7a | 4e7c8f5aaba308c688f8c14f3003b663b0a60bac | Add summary to side effect and mutable side effect | <!--- Note to EXTERNAL Contributors -->
Implements https://github.com/temporalio/sdk-go/issues/2084 in Go SDK. It is already implemented in Java SDK here https://github.com/temporalio/sdk-java/pull/2699
<!--- For ALL Contributors 👇 -->
## What was changed
- Adds SideEffectOptions and MutableSideEffectOptions... | diff --git a/internal/interceptor.go b/internal/interceptor.go
index ad8e3f58f..5ac12245d 100644
--- a/internal/interceptor.go
+++ b/internal/interceptor.go
@@ -297,6 +297,11 @@ type WorkflowOutboundInterceptor interface {
// SideEffect intercepts workflow.SideEffect.
SideEffect(ctx Context, f func(ctx Context) int... | 4 | 4 | 2 | [{"id": "G0", "claim": "In the new TestSideEffectSummary and TestMutableSideEffectSummary integration tests, the summary decoding should be an assertion rather than guarded by `if event.UserMetadata != nil && event.UserMetadata.Summary != nil`, since only one side-effect event is expected and a false condition would ne... | null |
temporalio__sdk-go__2134 | temporalio/sdk-go | 2,134 | defect | 3ce60044c6300c05de2d17cab642967538880f9a | 128d3ff95fc101863d233f543e5dda41a1b7b53c | Selector Signal fix with multiple workers | ## What was changed
Fixed a scenario where selectors without default branch was having shared data `c.recValue` overwritten.
Added a new flag `SDKFlagWorkflowNewChannelLostMessages` to fix this, as there were 2 SDK versions (v1.35.0 and v1.36.0) that enabled `SDKFlagBlockedSelectorSignalReceive`, so we need a new ... | diff --git a/internal/internal_flags.go b/internal/internal_flags.go
index 456a7fe81..756ab2e09 100644
--- a/internal/internal_flags.go
+++ b/internal/internal_flags.go
@@ -34,7 +34,7 @@ const (
// unblockSelectorSignal exists to allow us to configure the default behavior of
// SDKFlagBlockedSelectorSignalReceive. ... | 2 | 1 | 1 | [{"id": "G0", "claim": "Changing the unblockSelectorSignal default raises rollback concerns, so the behaviour should be protected by another flag.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "SDKFlagBlockedSelectorSignalReceive remains false in sdkFlag... | null |
temporalio__sdk-go__2146 | temporalio/sdk-go | 2,146 | defect | 8f5fdc2441fcec214e706eec337f844138f18152 | 5eb1192c7fa494aa8aaf01201e31793b3bb96f37 | Nexus caller timeouts | ## Overview
Implements two new granular timeout types for Nexus operations, allowing callers to have fine-grained control over different phases of operation execution:
- **Schedule-to-Start Timeout**: Maximum time to wait for an operation to be started (or completed if synchronous) by the handler
- **Start-to-Cl... | diff --git a/go.mod b/go.mod
index 46648f7560..9b0eb125b9 100644
--- a/go.mod
+++ b/go.mod
@@ -33,3 +33,5 @@ require (
google.golang.org/genproto/googleapis/rpc v0.0.0-20240827150818-7e3bb234dfed // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
+
+replace go.temporal.io/api => ../api-go
diff --git a/go.sum b/go.s... | 3 | 1 | 1 | [{"id": "G0", "claim": "Integration tests asserting the runtime behavior a user would see are needed before merging/releasing; if users cannot even use the feature, there is no reason to merge or release it yet.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla... | null |
temporalio__sdk-go__2153 | temporalio/sdk-go | 2,153 | defect | 1c03dbf0ed007a994d15847dd0e4245b893804ed | 252775aba79476ae339a16a3b591a45927504e5e | Cancel timer when AwaitWithTimeout condition resolves | ## Summary
- `AwaitWithTimeout` and `AwaitWithOptions` now cancel the timer when the condition is satisfied before the timeout expires
- This prevents unnecessary timer commands from being recorded in workflow history
- If condition is already true when called, returns immediately without creating a timer
## Backgroun... | diff --git a/internal/internal_flags.go b/internal/internal_flags.go
index 456a7fe814..34fc63f91d 100644
--- a/internal/internal_flags.go
+++ b/internal/internal_flags.go
@@ -29,7 +29,11 @@ const (
// SDKFlagBlockedSelectorSignalReceive will cause a signal to not be lost
// when the Default path is blocked.
SDKFl... | 3 | 3 | 3 | [{"id": "G0", "claim": "The PR should add tests that verify both the old behavior and the new behavior by manually switching the SDK flag.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR should add replay test coverage showing that old history rec... | null |
temporalio__sdk-go__2164 | temporalio/sdk-go | 2,164 | defect | 1c03dbf0ed007a994d15847dd0e4245b893804ed | 374302e479f0780fb64e5572a1fd05be359c1150 | Enhance SDK flags so flags are off by default when first introduced | ## What was changed
- Enhance the sdk flag logic to require manual flipping to enable a flag by default.
- Added logic to automatically support env var overrides for SDK flags, as an emergancy mechanism for customers on release upgrades that flip a flag and reveal a new bug.
- centralized default flag enablement in... | diff --git a/internal/internal_coroutines_test.go b/internal/internal_coroutines_test.go
index 227752342..3b53707eb 100644
--- a/internal/internal_coroutines_test.go
+++ b/internal/internal_coroutines_test.go
@@ -529,6 +529,8 @@ func TestBlockingSelect(t *testing.T) {
}
func TestSelectBlockingDefault(t *testing.T) ... | 5 | 5 | 1 | [{"id": "G0", "claim": "The loop in loadFlagOverrides() iterates from 1 up to SDKFlagUnknown (math.MaxUint32, ~4.3 billion iterations) although only flags 1-5 are valid, and it runs in init(), causing significant SDK startup delay; it should iterate only over known valid flag values.", "category": "performance", "verdi... | null |
temporalio__sdk-go__2179 | temporalio/sdk-go | 2,179 | defect | 215920a67bd16fc97695c70e83b84a4192a99869 | 42420fc3d3cded5dd5cd638d1d33fd28696cba8d | Fix cgroup detection condition | ## What was changed
Fix condition relating to cgroup detection
Had to move `handleCGroupUpdateError` out to cgroups_common in order to test its behavior properly in CI, as CI linux always runs in a container, so we would never hit the code path we need to test. But instead we use windows/mac to simulate cgroups mis... | diff --git a/contrib/resourcetuner/cgroups.go b/contrib/resourcetuner/cgroups.go
index f6615296f..7205bf621 100644
--- a/contrib/resourcetuner/cgroups.go
+++ b/contrib/resourcetuner/cgroups.go
@@ -27,7 +27,7 @@ type cGroupInfoImpl struct {
func (p *cGroupInfoImpl) Update() (bool, error) {
err := p.updateCGroupStats(... | 1 | 1 | 1 | [{"id": "G0", "claim": "Because updateCGroupStats wraps errors with fmt.Errorf using %v instead of %w, the errors.Is(err, fs.ErrNotExist) check can never be true and, when running outside a container, Update() falls through to the error branch and returns the error instead of gracefully returning false, nil; per the ma... | null |
temporalio__sdk-go__2198 | temporalio/sdk-go | 2,198 | defect | eb239252de6540aefc20923e616abf06cae3f62a | 42df27d0602c7db1c17559ce3a214a181a851a43 | Fix standalone activity result long-poll bug | ## What was changed
Use per-RPC context deadlines in Standalone Activity result long-poll loop instead of one deadline for all RPCs.
## Why?
The long-poll loop was failing to wait for longer than 10s. This meant that `handle.Get()` could not be used for long-running activities.
## Checklist
2. How was this te... | diff --git a/internal/internal_activity_client.go b/internal/internal_activity_client.go
index 7c540cb80..46f249635 100644
--- a/internal/internal_activity_client.go
+++ b/internal/internal_activity_client.go
@@ -17,6 +17,8 @@ import (
"google.golang.org/protobuf/types/known/durationpb"
)
+const pollActivityTimeou... | 1 | 1 | 0 | [{"id": "G0", "claim": "The 60-second \"Polling does not cease prematurely\" integration test is too lengthy to merge and should be replaced with a unit test that inspects the context deadline received on each poll call.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
temporalio__sdk-go__2199 | temporalio/sdk-go | 2,199 | defect | be124f0ff0806a655cd2d7e39063351e0333c507 | 208b74e485b8000bc910e55059242eebd926cabe | No longer cancel pending polls on shutdown |
## What was changed
<!-- Describe what has changed in this PR -->
Plumbed `worker_instance_key` to all poll calls, and `TaskQueueType` and `TaskQueue` to the `ShutdownWorker` RPC call
If `worker_poll_complete_on_shutdown` namespace capability exists, then don't cancel outstanding poll requests on shutdown. Ins... | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index dc66b4a20..c87856775 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -37,6 +37,10 @@ All PR titles should start with Upper case.
## Testing
+Tests are managed through the build tool at `internal/cmd/build`. This tool handles starting an embedded Temporal d... | 7 | 4 | 2 | [{"id": "G0", "claim": "The pull request should not be merged until the graceful poll shutdown behaviour has been verified against a released server, ideally with an integration test (waiting for a CLI tag, or confirming server behaviour e.g. via gRPC interceptors).", "category": "testing", "verdict": "supported", "pri... | null |
temporalio__sdk-go__2228 | temporalio/sdk-go | 2,228 | defect | d41dc8e95ef20aa6f5379e653866ea74a410b0eb | c2d10f4450ee7282766733ce24b665a62b14d33f | Fix NDE due to task failure in sessions + cancellation | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## Summary
- Prevent workflow co... | diff --git a/internal/internal_command_state_machine.go b/internal/internal_command_state_machine.go
index 29abe3633..002738adf 100644
--- a/internal/internal_command_state_machine.go
+++ b/internal/internal_command_state_machine.go
@@ -517,6 +517,8 @@ func (d *commandStateMachineBase) cancel() {
switch d.state {
c... | 6 | 5 | 1 | [{"id": "G0", "claim": "The comments on the new tests and helper should not link the GitHub issue they resolve, since that information is already available from git blame and the test body itself; this should apply to all new tests.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "intr... | null |
temporalio__sdk-go__391 | temporalio/sdk-go | 391 | defect | 83d640e28de14ff39efc4d49901b1f0d0ffa0948 | 76f9d622364bafd5abf1c27e2d0ccc9502b67669 | Add QueryWorkflowByID to TestWorkflowEnvironment | ## What was changed:
Implements the possibility of querying child workflows by ID in the test workflow environment
## Why?
missing feature
## Closes issue:
https://github.com/temporalio/sdk-go/issues/390
## How has this been tested?
basic unit test included
## Any docs updates needed?
I can't find d... | diff --git a/internal/internal_workflow_testsuite.go b/internal/internal_workflow_testsuite.go
index 4f2f11614..3316861a3 100644
--- a/internal/internal_workflow_testsuite.go
+++ b/internal/internal_workflow_testsuite.go
@@ -2215,6 +2215,21 @@ func (env *testWorkflowEnvironmentImpl) queryWorkflow(queryType string, args... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the new test's `childWorkflowId` variable to `childWorkflowID` at all four of its usage sites in Test_QueryChildWorkflow.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
temporalio__sdk-go__393 | temporalio/sdk-go | 393 | defect | cec615e1aaf798e1b153ba3918b4d3027edde808 | 907c803f1dd344087867a7405a038ea509769456 | Support for context-aware data converters. | ## What was changed:
A new API as added so that DataConverter implementations can receive Workflow/Activity context and return a stateful version of themselves.
## Why?
This can be used to vary behaviour of the data converter, for example to vary encryption keys used by a converter based on workflow context (which... | diff --git a/converter/data_converter.go b/converter/data_converter.go
index a12d91aad..aee487465 100644
--- a/converter/data_converter.go
+++ b/converter/data_converter.go
@@ -52,4 +52,18 @@ type (
// ToStrings converts payloads object into human readable strings.
ToStrings(input *commonpb.Payloads) []string
}... | 5 | 3 | 1 | [{"id": "G0", "claim": "The new DataConverterWithContext interface should not embed DataConverter and should be renamed to something that reflects that it is a mixin rather than a DataConverter.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The WithCont... | null |
temporalio__sdk-go__436 | temporalio/sdk-go | 436 | defect | b48c8970c3bbddf8229fc9dbd24235245a0c46ce | f1bf335d6319bce1c9f123ab5d19fac8c69fb9b1 | Added ability to call local activity using nil struct pointer | ## What was changed:
Added ability to call local activity using nil struct pointer:
```go
var activities *Activities
err := workflow.ExecuteLocalActivity(ctx, activities.Function).Get(ctx, nil)
```
## Why?
It is already supported for normal activities and allows using struct implementation for the local ones.
... | diff --git a/internal/internal_activity.go b/internal/internal_activity.go
index 1752b502b..9fbe067e8 100644
--- a/internal/internal_activity.go
+++ b/internal/internal_activity.go
@@ -234,7 +234,7 @@ func validateFunctionArgs(workflowFunc interface{}, args []interface{}, isWorkfl
workflowFunc)
}
- fnName := ge... | 2 | 1 | 0 | [{"id": "G0", "claim": "A comment should be added explaining what the '*' check in getFunctionName means.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It is questioned whether '*' can be guaranteed never to appear in a function name except as pa... | null |
temporalio__sdk-go__476 | temporalio/sdk-go | 476 | defect | 9019e38d07cb61d083434ec132c27d98e4d96d2a | b02c87e293b11961805ae25b114f9aa24015f5c7 | Make deadlock detection timeout configurable | ## What was changed
Made deadlock detection timeout configurable via WorkerOptions. Default value hasn't changed and is equal to 1 second. `TEMPORAL_DEBUG` environment variable can still be used and will set unlimited deadlock detection timeout IF value is not provided in WorkerOptions.
## Why?
Initially we though... | diff --git a/internal/internal_coroutines_test.go b/internal/internal_coroutines_test.go
index 87529a1e5..d72727bef 100644
--- a/internal/internal_coroutines_test.go
+++ b/internal/internal_coroutines_test.go
@@ -66,7 +66,7 @@ func TestDispatcher(t *testing.T) {
d := createNewDispatcher(func(ctx Context) { value = "b... | 2 | 1 | 0 | [{"id": "G0", "claim": "Rename the new time.Duration parameter to deadlockDetectionTimeout in the dispatcher interfaces OnWorkflowTaskStarted and ExecuteUntilAllBlocked.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The zero-timeout defaulting ... | null |
temporalio__sdk-go__485 | temporalio/sdk-go | 485 | defect | 2f4a45f202edd9a405028d24fede60ab774b00ea | 2c8ca92ac6a88bd1a105f3c003ccaabcb3646037 | Do not allow starting child workflows from an already-cancelled context | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
Previously, ca... | diff --git a/internal/internal_workflow_test.go b/internal/internal_workflow_test.go
index bb50cc057..8541feea0 100644
--- a/internal/internal_workflow_test.go
+++ b/internal/internal_workflow_test.go
@@ -506,6 +506,34 @@ func (s *WorkflowUnitTest) Test_CancelWorkflowAfterActivity() {
s.True(env.IsWorkflowCompleted()... | 2 | 2 | 2 | [{"id": "G0", "claim": "The guard should return immediately on any context error, not only ErrCanceled, so a child workflow is never scheduled when ctx.Err() returns any error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The busy-wait for loop co... | null |
temporalio__sdk-go__522 | temporalio/sdk-go | 522 | defect | 106f3c75247f5357812d3eb39d342a11febad74e | 7b41e6dc6b334ad215bd0b249b5c5fe336a1b9b7 | Add inbound interceptors for Signal and Query | ## What was changed
Added inbound interceptors for Signal and Query
## Why?
We lack ability to intercept signals and queries.
## Checklist
1. Partially resolves issue #515
2. How was this tested: unit tested
3. Any docs updates needed?
No | diff --git a/internal/interceptors.go b/internal/interceptors.go
index 04612b746f..24bd3b56cd 100644
--- a/internal/interceptors.go
+++ b/internal/interceptors.go
@@ -28,6 +28,7 @@ import (
"time"
"github.com/uber-go/tally"
+ commonpb "go.temporal.io/api/common/v1"
"go.temporal.io/sdk/converter"
"go.tempora... | 3 | 1 | 0 | [{"id": "G0", "claim": "The ProcessSignal doc comment should read \"before the signal is passed\" instead of \"before signal is passed\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Sushisource suggests either rewording the HandleQuery doc comm... | null |
temporalio__sdk-go__673 | temporalio/sdk-go | 673 | defect | 5e5645f0c550dcf717c095ae32c76a7087d2e985 | 85b80de0e0b903150f5a078e4274ee066a3dac8f | Support pointer-to-pointer in channel receive | ## What was changed / Why?
See #665. Basically calling `Receive` with the same pointer type as `Send` was used with did not work,
## Checklist
1. Closes #665 | diff --git a/internal/encode_args.go b/internal/encode_args.go
index 9cf490af6..1b47034f2 100644
--- a/internal/encode_args.go
+++ b/internal/encode_args.go
@@ -121,11 +121,18 @@ func decodeAndAssignValue(dc converter.DataConverter, from interface{}, toValueP
} else if fv := reflect.ValueOf(from); fv.IsValid() {
f... | 1 | 1 | 0 | [{"id": "G0", "claim": "The double space in the not-assignable error message should be removed so it reads \"%s is not assignable to %s\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
temporalio__sdk-go__727 | temporalio/sdk-go | 727 | defect | edacacb64c401bc87f2614f08ae1de057746c43a | ea91842e0175ba8b6a0ee685f6f02c8c6760b5d4 | Disallow MaxConcurrentWorkflowTaskPollers to be set to 1 | ## What was changed
Disallow MaxConcurrentWorkflowTaskPollers to be set to 1
## Why?
Because worker polling is built to require at least 2 due to how stickiness preference is implemented.
## Checklist
1. Closes #719 | diff --git a/internal/internal_worker.go b/internal/internal_worker.go
index f54143f3d5..9269650086 100644
--- a/internal/internal_worker.go
+++ b/internal/internal_worker.go
@@ -1273,6 +1273,13 @@ func NewAggregatedWorker(client *WorkflowClient, taskQueue string, options Worke
}
backgroundActivityContext, backgrou... | 1 | 1 | 0 | [{"id": "G0", "claim": "The MaxConcurrentWorkflowTaskPollers doc comment should mention that the value 1 causes a panic, or alternatively the code should silently set it to 2 instead of panicking.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
temporalio__sdk-go__733 | temporalio/sdk-go | 733 | defect | 2c19379b13b04ab2cf222420b86631b2809f84ca | 0fe380a74262e66fc37b4091fbd39df7ab8213a5 | Adjust HTTP protocol to take Payloads not Payload. | ## What was changed
The Remote Encoding protocol is adjusted to take Payloads protobuf, not Payload.
## Why?
This makes for more efficient HTTP traffic. | diff --git a/converter/encoding_data_converter.go b/converter/encoding_data_converter.go
index 4ecc29fe5..e294eba4d 100644
--- a/converter/encoding_data_converter.go
+++ b/converter/encoding_data_converter.go
@@ -30,7 +30,6 @@ import (
"io"
"io/ioutil"
"net/http"
- "path"
"strings"
"github.com/gogo/protobuf... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `var _ DataConverter = &remoteDataConverter{}` interface-safety assertion is redundant and should be removed, since NewRemoteDataConverter already returns that type.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Test... | null |
temporalio__sdk-go__893 | temporalio/sdk-go | 893 | defect | 85978da96736990d1394f17f7a326d61107019d7 | 3d211c478735ac7f5fad139983fe529c57254f37 | Handle Client.Close on cloned clients | ## What was changed
Use a counter to make sure only the last `Close()` of a shared-connection set of clients applies.
## Checklist
1. Closes #886 | diff --git a/client/client.go b/client/client.go
index e6a58b9de..ca442d091 100644
--- a/client/client.go
+++ b/client/client.go
@@ -386,6 +386,11 @@ type (
WorkflowService() workflowservice.WorkflowServiceClient
// Close client and clean up underlying resources.
+ //
+ // If this client was created via NewCl... | 3 | 1 | 0 | [{"id": "G0", "claim": "TestClientCloseCount should read the shared atomic int with atomic.LoadInt32 instead of dereferencing the pointer directly, for consistency with its atomic manipulation.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The revi... | null |
temporalio__sdk-rust__1066 | temporalio/sdk-rust | 1,066 | defect | 0c5ee51a1fc66507204eb0c5ae35b3b3b25216bb | f4fae71688194afc51ea14d90e3a0aa640419798 | separate enable_activities into remote and local for task types | ## What was changed
<!-- Describe what has changed in this PR -->
Separated `WorkerTaskTypes.enable_activities` into `enable_local_activities` and `enable_remote_activities`.
Also fixed when local activity poller and other local activity resources being gated behind this new config.
## Why?
<!-- Tell your futu... | diff --git a/crates/client/src/raw.rs b/crates/client/src/raw.rs
index c826a1880..5c38ab98e 100644
--- a/crates/client/src/raw.rs
+++ b/crates/client/src/raw.rs
@@ -1870,7 +1870,8 @@ mod tests {
.expect_worker_task_types()
.return_const(WorkerTaskTypes {
enable_workflows: true... | 7 | 2 | 1 | [{"id": "G0", "claim": "When remote activities are disabled, the act_mgr_poll branch immediately returns Ok(None), causing poll_activity_task to busy-loop and, with local activities also disabled, starving the remote poller; the disabled branch should await future::pending() instead.", "category": "correctness", "verdi... | null |
temporalio__sdk-rust__1068 | temporalio/sdk-rust | 1,068 | defect | 67c986aa4381c8c26a8d2bd275063d5a358b2dd7 | 1c78e919785adba2f72e53d2f4ae0a870b75470d | Add bounds check for heartbeat interval |
## What was changed
<!-- Describe what has changed in this PR -->
Only allow worker heartbeating interval to be between 1s and 60s
Also changed heartbeat test to account for if `host_cpu_usage` is so low it rounds down to 0.0.
## Why?
<!-- Tell your future self why have you made these changes -->
## Che... | diff --git a/crates/sdk-core/src/lib.rs b/crates/sdk-core/src/lib.rs
index 663af8fd8..d46d5f311 100644
--- a/crates/sdk-core/src/lib.rs
+++ b/crates/sdk-core/src/lib.rs
@@ -241,19 +241,35 @@ pub struct CoreRuntime {
}
/// Holds telemetry options, as well as worker heartbeat_interval. Construct with [RuntimeOptionsB... | 1 | 1 | 1 | [{"id": "G0", "claim": "Debug `eprintln!` statements left in the production tuner code and the integration test will pollute logs in production and should be removed or replaced with proper telemetry logging.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
temporalio__sdk-rust__1069 | temporalio/sdk-rust | 1,069 | defect | aed367e0bd76383f56b0d15a6aa28c42004fccc5 | 60bdf6c8a5674d959610857232e41dbb358e4933 | Emit GrpcMessageTooLarge as failure_reason for WFT | If the workflow task failure is due to gRPC message too large, set GrpcMessageTooLarge as `failure_reason` on `temporal_workflow_task_execution_failed`.
closes https://github.com/temporalio/sdk-core/issues/1065
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Adds a specific failure_reason label GrpcMessageTooLarge to wor... | diff --git a/crates/sdk-core/src/telemetry/metrics.rs b/crates/sdk-core/src/telemetry/metrics.rs
index 8c06be345..270518226 100644
--- a/crates/sdk-core/src/telemetry/metrics.rs
+++ b/crates/sdk-core/src/telemetry/metrics.rs
@@ -642,6 +642,7 @@ pub(crate) enum FailureReason {
Timeout,
NexusOperation(String),
... | 3 | 1 | 0 | [{"id": "G0", "claim": "The new \"GrpcMessageTooLarge\" display string should be snake case like the other failure_reason values, unless already-released versions of the other SDKs use this form.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
temporalio__sdk-rust__1072 | temporalio/sdk-rust | 1,072 | defect | 0de27c00dd5b5fa9a1f73ae48985e8cc88fd4186 | 062dab6ec7c8be38911e7b0fbb3a0d59e4347bff | Use hashset to dedupe plugin names from Lang | ## What was changed
<!-- Describe what has changed in this PR -->
Use HashSet instead of Vec for plugins
## Why?
<!-- Tell your future self why have you made these changes -->
To better enforce deduping duplicate plugin names. Note, due to Version being a part of the struct, this doesn't fully dedupe plugins wit... | diff --git a/crates/common/src/worker.rs b/crates/common/src/worker.rs
index f397d34ef..8666583fc 100644
--- a/crates/common/src/worker.rs
+++ b/crates/common/src/worker.rs
@@ -238,7 +238,7 @@ pub struct WorkerConfig {
/// List of plugins used by lang.
#[builder(default)]
- pub plugins: Vec<PluginInfo>,
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Converting HashSet<PluginInfo> to Vec via .into_iter().collect() produces non-deterministic ordering, so the test's exact-order assertion will fail intermittently; the plugins need to be sorted for deterministic ordering or the test assertion made order-independent.", "category": "correctness", ... | null |
temporalio__sdk-rust__1082 | temporalio/sdk-rust | 1,082 | defect | b5a473d425e7d63a49f3bbcb08767b9ff46207d0 | 9d47601c47cc7cd7c3e22a8d67b27e0a54b8ba5e | Always send shutdown_worker RPC, fix WorkerStatus state when shutting down worker | ## What was changed
Always send shutdown_worker RPC, decouple disabling eager workflow start and worker heartbeat unregistration for worker shutdown
## Why?
`shutdown_worker` RPC doesn't indicate that the worker has fully shutdown, only that it has started. Server and others can tell that a worker has fully shutdo... | diff --git a/crates/client/src/worker/mod.rs b/crates/client/src/worker/mod.rs
index 741d79ad1..71a0679d5 100644
--- a/crates/client/src/worker/mod.rs
+++ b/crates/client/src/worker/mod.rs
@@ -213,26 +213,48 @@ impl ClientWorkerSetImpl {
Ok(())
}
- fn unregister(
+ /// Slot provider should be unre... | 4 | 2 | 2 | [{"id": "G0", "claim": "finalize_unregister removes the worker from all_workers before validating it was removed from slot_providers, so an out-of-order call returns an error after mutating state, leaving the worker stuck in slot_providers and making subsequent unregister_slot_provider/retry impossible, potentially lea... | null |
temporalio__sdk-rust__1106 | temporalio/sdk-rust | 1,106 | defect | f837d73ec1908679573ced8734e9a778f89956aa | 8a60672b884579aea7e8720b43cd3d5eeadd2fe1 | Fix TemporalPatchVersion search attribute type to use KeywordList format | ## What was changed
#1032 used the wrong string for SA `type` for keyword list, causing some issues in parsing in some SDKs
## Checklist
1. Closes #1105 | diff --git a/crates/sdk-core/src/worker/workflow/machines/patch_state_machine.rs b/crates/sdk-core/src/worker/workflow/machines/patch_state_machine.rs
index 6c6f14821..85b5ee72c 100644
--- a/crates/sdk-core/src/worker/workflow/machines/patch_state_machine.rs
+++ b/crates/sdk-core/src/worker/workflow/machines/patch_stat... | 1 | 1 | 0 | [{"id": "G0", "claim": "A small comment with some of the description of temporalio/sdk-core#1105 would be helpful next to the \"KeywordList\" type metadata to prevent accidental changes down the road.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
temporalio__sdk-rust__1153 | temporalio/sdk-rust | 1,153 | defect | a7611dd8c71ad41aa5ebb0013ad0e8903209529b | 45f857ad83eb20103bf33d5b9dff3b0b9f3cdb00 | fix(sdk): re-poll update futures after workflow state changes | ## Summary
- **Bug:** When both `run` and an update handler use `wait_condition` on each other's state, they deadlock. Update futures are polled before `poll_wf_future`, so the update sees stale state. After `poll_wf_future` sets the flag via `state_mut`, update futures are never re-polled within the same activation.
-... | diff --git a/crates/sdk-core/src/worker/workflow/mod.rs b/crates/sdk-core/src/worker/workflow/mod.rs
index c1beb758c..918f972c9 100644
--- a/crates/sdk-core/src/worker/workflow/mod.rs
+++ b/crates/sdk-core/src/worker/workflow/mod.rs
@@ -239,9 +239,9 @@ impl Workflows {
.expect("... | 7 | 6 | 1 | [{"id": "G0", "claim": "The worker should not silently drop activations by returning when the activation processor channel send fails; that glosses over a sign that something is wrong elsewhere.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The tes... | null |
temporalio__sdk-rust__1154 | temporalio/sdk-rust | 1,154 | defect | a7611dd8c71ad41aa5ebb0013ad0e8903209529b | b77cdcef58c4dcbe61d8ce509b24fe47ee6c33a4 | build: make otel opt-in in sdk-core | Disable sdk-core's default otel feature and wire otel explicitly where needed to reduce transitive dependencies for non-otel consumers.
| diff --git a/.cargo/config.toml b/.cargo/config.toml
index 94997223c..e8ab09dc8 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -12,6 +12,8 @@ integ-test = [
"test-utilities",
"--features",
"ephemeral-server",
+ "--features",
+ "temporalio-sdk-core/otel",
"--package",
"tempora... | 2 | 2 | 1 | [{"id": "G0", "claim": "The two-line comment above the otel feature in crates/sdk-core/Cargo.toml is not especially useful and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The --features temporalio-sdk-core/otel arguments ad... | null |
temporalio__sdk-rust__1162 | temporalio/sdk-rust | 1,162 | defect | f188eb5319fb44093e40208471d28946763c777a | de4a662214cc4df0791a61e7ea0c6b7e6808f047 | Fix possible NDE in valid child workflow cancel transition | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
Allow for a te... | diff --git a/AGENTS.md b/AGENTS.md
index 0a7a699af..6bc8a2233 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -22,6 +22,8 @@ document as your quick reference when submitting pull requests.
integration tests with `timeout 180`, as it is possible to introduce test hangs.
- DO NOT put use statements in function scope. Alway... | 3 | 2 | 0 | [{"id": "G0", "claim": "Prefer leveraging rstest instead of table tests in the cancel_in_start_event_recorded test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test would be cleaner if it passed in the expected state instead of matching on the ca... | null |
temporalio__sdk-rust__1173 | temporalio/sdk-rust | 1,173 | defect | a5e8f7f1317d821c8c10bd60f6234108c9da1a76 | 63e9cd749ba53fe2ed3f084b3fde4abc8affb998 | feat(sdk): :boom: add HasWorkflowDefinition trait | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
Add a new trai... | diff --git a/crates/client/src/lib.rs b/crates/client/src/lib.rs
index 9154188a5..adfbdc1e8 100644
--- a/crates/client/src/lib.rs
+++ b/crates/client/src/lib.rs
@@ -66,7 +66,7 @@ use std::{
time::{Duration, SystemTime},
};
use temporalio_common::{
- WorkflowDefinition,
+ HasWorkflowDefinition,
data_co... | 6 | 1 | 0 | [{"id": "G0", "claim": "The workflow ID in test_typed_signal_query_update is built with the `_untyped` suffix copied from the sibling untyped test, which does not fail the test but puts a misleading ID in server logs and history; change the suffix to `_typed`.", "category": "maintainability", "verdict": "supported", "p... | null |
temporalio__sdk-rust__1180 | temporalio/sdk-rust | 1,180 | defect | acec0e60e2d336b948477413833f98a411e8c437 | 97988eda1a7ca2bc3f9d8d66ad5df001cb79f7e6 | feat(metrics): add UpDownCounter metric instrument type | ## Summary
- Adds `UpDownCounter` metric instrument type (`i64`, signed deltas) following the existing `Counter` pattern
- Enables tracking inflight/active counts (e.g. active workflows) using the standard OTel `i64_up_down_counter` primitive
- Maps to Prometheus `IntGaugeVec` and Datadog gauge
## Changes
- **Core t... | diff --git a/crates/common/src/telemetry/metrics.rs b/crates/common/src/telemetry/metrics.rs
index 2865bb5bd..c7eb8f64e 100644
--- a/crates/common/src/telemetry/metrics.rs
+++ b/crates/common/src/telemetry/metrics.rs
@@ -169,6 +169,9 @@ pub trait CoreMeter: Send + Sync + Debug {
/// Create a new gauge instrument... | 5 | 5 | 0 | [{"id": "G0", "claim": "The UpDownCounter variant doc comment should drop the parenthetical example and just read 'An `i64` counter that can go up or down.'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The unit tests of the metric buffer should... | null |
temporalio__sdk-rust__1189 | temporalio/sdk-rust | 1,189 | defect | 4508ae7dbaee40ca3b34dd9ce646ed12cbd42c6d | cc365e350eb7a38662f267eb87e92fbdd32a0e5c | Add standalone activity run id to bridge | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
Expose stand... | diff --git a/crates/common/protos/local/temporal/sdk/core/activity_task/activity_task.proto b/crates/common/protos/local/temporal/sdk/core/activity_task/activity_task.proto
index 6664f5a3e..19313b39a 100644
--- a/crates/common/protos/local/temporal/sdk/core/activity_task/activity_task.proto
+++ b/crates/common/protos/l... | 2 | 2 | 2 | [{"id": "G0", "claim": "ActivityInfo.run_id should be Option<String> rather than String so an unset run id is not represented as an empty string.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ActivityContext construction should map an empty run_id t... | null |
temporalio__sdk-rust__1206 | temporalio/sdk-rust | 1,206 | defect | d96a8d2fea5fa32cd0caf95825c83d54ccfd7ab7 | 7ef538032e8ed755245163f3d9c6e77e3a896f26 | Make sure legacy queries are failed if gRPC message too large | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
See title
#... | diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md
index b1279d613..7b281798d 100644
--- a/ARCHITECTURE.md
+++ b/ARCHITECTURE.md
@@ -8,7 +8,7 @@ If you're newer to SDKs in general, first check out the [SDKs Intro](./arch_docs
The below diagram depicts how Core-based SDKs are split into two parts. The `sdk-core` common cod... | 2 | 1 | 1 | [{"id": "G0", "claim": "The ARCHITECTURE.md line added by this PR should name the Rust SDK crate `temporalio-sdk` instead of `temporalio-sdk-rust`.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reset_sticky_task_queue call may fail, and the P... | null |
temporalio__sdk-rust__1207 | temporalio/sdk-rust | 1,207 | defect | d96a8d2fea5fa32cd0caf95825c83d54ccfd7ab7 | 3d11fe66b9fcc9e7e9190e9b568ed6900ac9109d | :boom: Record task latency even for WFT failures that were dropped | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
See title. Thi... | diff --git a/crates/sdk-core/src/worker/workflow/managed_run.rs b/crates/sdk-core/src/worker/workflow/managed_run.rs
index d42dcd693..fb7939168 100644
--- a/crates/sdk-core/src/worker/workflow/managed_run.rs
+++ b/crates/sdk-core/src/worker/workflow/managed_run.rs
@@ -296,16 +296,17 @@ impl ManagedRun {
debug!... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new test's assertion on the latency metric should be wrapped in an `eventually` retry because the metrics may take a bit to populate and the test would fail otherwise.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
temporalio__sdk-rust__1208 | temporalio/sdk-rust | 1,208 | defect | 4f05fc583e652bc88b943a262b3cbd9b223fb2cb | e65f27adc6dd02b4a4a0d74dc03baa7989ec390d | Support `static_summary`, `static_details` and current_details` in the Rust sdk | - Implements setting `static_summary` and `static_details` at workflow start
- Implements setting and getting `current_details` during workflow execution
- Implements the `__temporal_workflow_metadata` query
- Integration tests for all three fields
Closes #1141 | diff --git a/Cargo.toml b/Cargo.toml
index 9f3843119..d07fbeb00 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -32,6 +32,7 @@ prost = "0.14"
prost-types = { version = "0.7", package = "prost-wkt-types" }
pbjson = "0.9"
pbjson-build = "0.9"
+serde_json = "1.0"
[workspace.lints.rust]
unreachable_pub = "warn"
diff --g... | 9 | 8 | 4 | [{"id": "G0", "claim": "The public docstring should not refer to the `__temporal_workflow_metadata` built-in query name.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Static user metadata (workflow start, activity, local-activity and child-workfl... | null |
temporalio__sdk-rust__1212 | temporalio/sdk-rust | 1,212 | defect | 4f05fc583e652bc88b943a262b3cbd9b223fb2cb | b186c1420dfd742896ea427612760407db80af03 | Add DNS load balancing | <!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open issue** for this.
We work best with you when we have accepted the idea first before you code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
Title
## Wh... | diff --git a/crates/client/Cargo.toml b/crates/client/Cargo.toml
index 7b538a67d..22a6f400f 100644
--- a/crates/client/Cargo.toml
+++ b/crates/client/Cargo.toml
@@ -35,7 +35,7 @@ hyper-util = "0.1.16"
opentelemetry = { workspace = true, features = ["metrics"], optional = true }
parking_lot = "0.12"
thiserror = { wor... | 1 | 1 | 1 | [{"id": "G0", "claim": "DNS load balancing should be disabled when the target host is localhost.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
temporalio__sdk-rust__1224 | temporalio/sdk-rust | 1,224 | defect | 984da134b1040d9ea303b63b35e12d2e68959429 | 022f739c1e9a2e503c91a10c83216c94319cb6e8 | Shutdown rpc initiate shutdown | Re-opening https://github.com/temporalio/sdk-core/pull/1197
On a non-fork branch to be able to run Cloud tests | diff --git a/.cargo/config.toml b/.cargo/config.toml
index e8ab09dc8..c183ad0d0 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -1,6 +1,6 @@
[env]
# This temporarily overrides the version of the CLI used for integration tests, locally and in CI
-#CLI_VERSION_OVERRIDE = "v1.4.1-cloud-v1-29-0-139-2.0"
+CLI_... | 1 | 1 | 0 | [{"id": "G0", "claim": "Move the imports inside graceful_shutdown_sends_shutdown_worker_rpc_during_initiate up to test module level.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
temporalio__sdk-typescript__1038 | temporalio/sdk-typescript | 1,038 | defect | 31c8cc27287ec91e495397e85cd52a30c0d1236a | 8237a9010c1caba6981af9767f669551b4c0327a | feat(workflow): Add support for default workflow handler and default signal handler | ## What changed
- A workflow bundle can now do `export default async function (...args: unknown[]): Promise<unknown> { ... }` to define a default workflow handler.
- A workflow function can now do `setDefaultSignalHandler((signalName: string, ...args: unknown[]) => { ... })` to set a function that will handle signa... | diff --git a/packages/test/src/test-default-workflow.ts b/packages/test/src/test-default-workflow.ts
new file mode 100644
index 0000000000..9af31e55b5
--- /dev/null
+++ b/packages/test/src/test-default-workflow.ts
@@ -0,0 +1,39 @@
+/**
+ * Test usage of a default workflow handler
+ */
+import test from 'ava';
+import {... | 12 | 10 | 1 | [{"id": "G0", "claim": "The doc-comment code example of DefaultWorkflowFunction returns a Promise<WorkflowTypeAndArgs> object, which is confusing; a console.log returning Promise<void> would be clearer.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"... | null |
temporalio__sdk-typescript__1143 | temporalio/sdk-typescript | 1,143 | defect | 38b81d37d84c62de9b40bb5dba3a964f889adacb | 46cc4b204799644583e17f1fe14017d6a38d707b | Ensure payload converters keep Uint8Array type equality (#1142) | Closes #1142
<!--- For ALL Contributors 👇 -->
## What was changed
<!-- Describe what has changed in this PR -->
Inject in the workflow context two new globals: Buffer and URL
- Buffer delegates unsafe allocation methods to safe ones.
Modify BinaryPayloadConverter and ProtobufBinaryPayloadConverter so... | diff --git a/packages/common/src/converter/payload-converter.ts b/packages/common/src/converter/payload-converter.ts
index 9e2d5330e7..e753215a56 100644
--- a/packages/common/src/converter/payload-converter.ts
+++ b/packages/common/src/converter/payload-converter.ts
@@ -209,7 +209,12 @@ export class BinaryPayloadConver... | 5 | 5 | 4 | [{"id": "G0", "claim": "SafeBuffer should keep a callable Buffer constructor, otherwise `instanceof SafeBuffer` throws for buffers allocated inside the sandbox.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The sdk-core submodule pointer bump looks... | null |
temporalio__sdk-typescript__1156 | temporalio/sdk-typescript | 1,156 | defect | 3a3acf31640f1c69caabb64c83fe0165a0628e58 | ab58f964afe2c0ffb22107b1802a656e35cdc7b6 | Add versioning intent to commands | https://github.com/temporalio/sdk-typescript/pull/1146 accidentally left out `VersioningIntent` for commands. This adds that. | diff --git a/packages/common/src/activity-options.ts b/packages/common/src/activity-options.ts
index 69300c9efa..bba6353ded 100644
--- a/packages/common/src/activity-options.ts
+++ b/packages/common/src/activity-options.ts
@@ -2,6 +2,7 @@ import type { coresdk } from '@temporalio/proto';
import { RetryPolicy } from '.... | 5 | 3 | 0 | [{"id": "G0", "claim": "The new VersioningIntent enum may not be needed at all, since with only three options it could be represented with an optional boolean and no further intent is expected.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Declaring versi... | null |
temporalio__sdk-typescript__1223 | temporalio/sdk-typescript | 1,223 | defect | 9fb84945622c5dd5894a30af2157d4cba771d5d0 | 27f27e617d2586bdb658fd6a2284cdc4101b14ff | feat(workflow): Add historySizeInBytes and continueAsNewSuggested to WorkflowInfo (#695) |
## What was changed
<!-- Describe what has changed in this PR -->
Makes visible to workflows the new info fields historySizeInBytes and continueAsNewSuggested
## Why?
Makes it easier for workflow code to decide when to continueAsNew() before history becomes too large
## Checklist
<!--- add/delete as needed... | diff --git a/packages/client/src/helpers.ts b/packages/client/src/helpers.ts
index 9520b420d1..7fd86f90b6 100644
--- a/packages/client/src/helpers.ts
+++ b/packages/client/src/helpers.ts
@@ -59,6 +59,8 @@ export async function executionInfoFromRaw<T>(
},
// Safe to convert to number, max history length is 50k... | 16 | 15 | 5 | [{"id": "G0", "claim": "The doc for continueAsNewSuggested should say the hint comes from the current WorkflowTaskStarted event rather than the last Workflow Task Started event.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "An integration test sh... | null |
temporalio__sdk-typescript__1283 | temporalio/sdk-typescript | 1,283 | defect | 444d7f95f73ebab8b1244d9209637dd6a93e371b | f0dd53ceb36e0940c01ebc0b55168f1a51e7df27 | chore: Deprecate `defaultSinks` | ## What changed
- Deprecate `defaultSink()` and `LoggerSinks`. SDK's logger sink is now forcibly injected. Registering a custom logger sink named `defaultWorkerLogger` is still supported, but discouraged and deprecated.
- Refactored sink code internally.
## Why
- These changes adds up to better DX, notably by... | diff --git a/package-lock.json b/package-lock.json
index 981f400f87..c056a728bb 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10,6 +10,7 @@
"@temporalio/client": "file:packages/client",
"@temporalio/common": "file:packages/common",
"@temporalio/create": "file:packages/create-proj... | 2 | 1 | 0 | [{"id": "G0", "claim": "The internal SDK sinks should perhaps live in a separate, unexposed field so the docstring disclaimer would not be needed.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The comment on the cloned sink args should read \"Sink funct... | null |
temporalio__sdk-typescript__1320 | temporalio/sdk-typescript | 1,320 | defect | 840fc3649690c6fc799e1f31ec7a8a31b334d30c | 9eb2b0ae57eee0f89b08fb93bd5bb2b0e04148e6 | Fix getUpdateHandle API | This PR fixes a mistake in the recently-introduced update `workflowHandle.getUpdateHandle(...)` API https://github.com/temporalio/sdk-typescript/pull/1312. It should not take `workflowId` as an argument since the appropriate `workflowId` is the one on the `workflowHandle`. | diff --git a/packages/client/src/workflow-client.ts b/packages/client/src/workflow-client.ts
index 8cf5a53529..aede884631 100644
--- a/packages/client/src/workflow-client.ts
+++ b/packages/client/src/workflow-client.ts
@@ -165,13 +165,9 @@ export interface WorkflowHandle<T extends Workflow = Workflow> extends BaseWorkf... | 1 | 1 | 1 | [{"id": "G0", "claim": "getUpdateHandle should not use GetWorkflowUpdateHandleOptions; since runId is already on the WorkflowHandle, the signature should be getUpdateHandle<Ret>(updateId: string).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
temporalio__sdk-typescript__1411 | temporalio/sdk-typescript | 1,411 | defect | df72bfb51970c4517709f49a933d5495541eab6f | ea91252a2f448a8ca4c50e2e339d6de3c32a05d1 | feat(worker): Add support for HTTP CONNECT Proxy | ## What was changed
- Added support for HTTP CONNECT Proxy on `NativeConnection`.
- Client side support for HTTP CONNECT Proxy is possible by setting the `grpc_proxy` environment variable (e.g. `http://127.0.0.1:8888` or `http://user:pass@127.0.0.1:8888` ).
## Why?
- https://github.com/temporalio/features/iss... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index af1d90eb81..e8c8299e54 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -302,6 +302,7 @@ jobs:
typescript-repo-path: ${{github.event.pull_request.head.repo.full_name}}
version: ${{github.event.pull_request.head.r... | 3 | 2 | 1 | [{"id": "G0", "claim": "The pull request should include some HTTP CONNECT feature tests (referencing the Go, Java and Python ones in temporalio/features).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It is unclear from the ConnectionOptions field name... | null |
temporalio__sdk-typescript__1513 | temporalio/sdk-typescript | 1,513 | defect | 1c6f96ce96aa1793b6d9bc95d3457dca685c5e4f | e17cd6ec9b0fcbfd2266d8cec4be6aefc5513ef2 | chore: Update Core to a8150d5c (+job ordering update) | ## What was changed
- Update Core to a8150d5c.
- Updated Workflow Activation handling to expect `InitializeWorkflow` jobs, instead of `StartWorkflow` (fix #1511).
- Delay payload conversion of workflow's memo/SA/lastfailure/etc until we're inside the sandbox, as there's no guarantee that converted payloads are saf... | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 9438a57f83..eb00ebf4d5 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -29,10 +29,10 @@ We welcome contributions from the community. To contribute, please start by open
The current maintainers are:
-- [Roey `bergundy`](https://github.com/bergundy)
-- [Jame... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment should read \"Initialization of the workflow must happen\" instead of \"must happens\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
temporalio__sdk-typescript__1574 | temporalio/sdk-typescript | 1,574 | defect | 9c0052c1d093f31c0e65226e0a08086d1163a6a8 | 8a18560403682687cf930b9bf37e45193f920046 | chore: Fix CI after GHA's drop of node16 actions | ## What changed
- Modified our GHA workflows so that when building the release-grade native artifacts on Linux targets, only the actual Rust compilation step runs inside a GLIBC 2.24-based Docker container; all other operations are performed directly on the runner, which can now be any recent Ubuntu.
This was r... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f7f890f980..c1c4f03091 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,11 +1,11 @@
name: Continuous Integration
-on: # rebuild any PRs and main branch changes
+on:
pull_request:
push:
branches:
- main
... | 3 | 1 | 0 | [{"id": "G0", "claim": "Asks whether dropping Node 16 from the CI test matrix is planned separately, questioning why the PR adds Node 22 to the matrix while keeping Node 16.", "category": "testing", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new release.yml build-packages... | null |
temporalio__sdk-typescript__158 | temporalio/sdk-typescript | 158 | defect | dfef16b7c850760a547f1ac902f4964d3ccdfbed | 259813a899467a629caabf46c25cb3aa3be0d2a0 | feat!: Use async data converter interface | Switched the data converter interface to be async to support non-blocking encryption and compression.
CC @rylandg @robholland | diff --git a/packages/client/src/workflow-client.ts b/packages/client/src/workflow-client.ts
index 99ca8c955e..129f927380 100644
--- a/packages/client/src/workflow-client.ts
+++ b/packages/client/src/workflow-client.ts
@@ -267,11 +267,11 @@ export class WorkflowClient {
if (ev.workflowExecutionCompletedEventAttrib... | 2 | 1 | 0 | [{"id": "G0", "claim": "The reviewer asks whether arrayFromPayloads needs to be declared async at all, since it never awaits and the declaration only creates an unnecessary promise.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The async converter ... | null |
temporalio__sdk-typescript__1605 | temporalio/sdk-typescript | 1,605 | defect | d8925d0ececa3b8ce2794396739bf7872e1d956b | 9ab037549ca61da2e6adc187293de3e076ff169b | fix(workflow): Fix multiple context leaks in `reuseV8Context` executor | ## What was changed
- Fix multiple context leaks and bugs in the `reuseV8Context` executor:
- …by reassigning a new object to an existing shared global variable: `globalThis.console = { ...globalThis.console, wfId: workflowInfo().workflowId }` (fixes #1476);
- …by modifying one of Node's built in global ob... | diff --git a/packages/common/src/type-helpers.ts b/packages/common/src/type-helpers.ts
index e5d87f43f0..0f6e4951d4 100644
--- a/packages/common/src/type-helpers.ts
+++ b/packages/common/src/type-helpers.ts
@@ -219,23 +219,37 @@ export function SymbolBasedInstanceOfError<E extends Error>(markerName: string):
};
}
... | 4 | 1 | 1 | [{"id": "G0", "claim": "The early return for already-frozen objects in deepFreeze() assumes a frozen object is already deep-frozen; if that holds, add a comment explaining it.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new file packages/test... | null |
temporalio__sdk-typescript__1639 | temporalio/sdk-typescript | 1,639 | defect | eb67d04fca0296372e64e2f68c88a331fde0fa8f | 061512f2af04f6a67b34089cfbf2e5800092b9b1 | (feat): add support for default query handler | Added support for to register a default query handler - a handler for queries that do not have registered query names/handlers.
1. Part of #1015
2. How was this tested:
Added small integration tests.
3. Any docs updates needed?
Maybe | diff --git a/packages/test/src/test-integration-split-two.ts b/packages/test/src/test-integration-split-two.ts
index 689ed89df1..eb71ea806a 100644
--- a/packages/test/src/test-integration-split-two.ts
+++ b/packages/test/src/test-integration-split-two.ts
@@ -14,7 +14,7 @@ import {
import { msToNumber, tsToMs } from '@... | 3 | 3 | 1 | [{"id": "G0", "claim": "In setDefaultQueryHandler the `if`/`else if` branches can be combined into a single condition.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The default query handler must receive the name of the incoming query as its fi... | null |
temporalio__sdk-typescript__1729 | temporalio/sdk-typescript | 1,729 | defect | caae0a4eec4ed489c53f102b04f7d4afde318c5b | e53fad601c65a9099f1e42b861ac111b8ccb9494 | Activity pause/unpause | ## What was changed
Added support to pause/unpause an activity. Cancellations due to pause are received through the heartbeat mechanism of the activity.
## Why?
Part of activity operator work.
1. Closes #1665
2. How was this tested:
Couple integration tests
3. Any docs updates needed?
Likely
| diff --git a/packages/activity/src/index.ts b/packages/activity/src/index.ts
index f0ba9da60d..2b97f92002 100644
--- a/packages/activity/src/index.ts
+++ b/packages/activity/src/index.ts
@@ -48,7 +48,7 @@
*
* 1. `await` on {@link Context.cancelled | `Context.current().cancelled`} or
* {@link Context.sleep | `C... | 4 | 4 | 0 | [{"id": "G0", "claim": "The `details` parameter added to `MockActivityEnvironment.cancel` is unusable in practice — it is typed `any` and `ActivityCancellationDetails` has a private constructor, so users cannot provide anything useful — and a proper API should be designed (looking at other SDKs), also typing `reason` i... | null |
temporalio__sdk-typescript__1757 | temporalio/sdk-typescript | 1,757 | defect | 544e2b291021cfa0051ae4324d0d63679ed39822 | bf336fb6d50adef95cb435ee33e59a5f4df1fdc5 | Eager Workflow Start | ## What was changed
The main change to accommodate eager workflow start was adding `startWithDetails` to `WorkflowClientInterceptor` to support a (new) return type of `WorkflowStartOutput`. This allows us to return an object, giving us the ability to add new fields without issue - we add `eagerlyStarted` in this PR. T... | diff --git a/packages/client/src/interceptors.ts b/packages/client/src/interceptors.ts
index 632a6ed71a..087ea2b07d 100644
--- a/packages/client/src/interceptors.ts
+++ b/packages/client/src/interceptors.ts
@@ -35,6 +35,12 @@ export interface WorkflowStartUpdateInput {
readonly options: WorkflowUpdateOptions;
}
+... | 8 | 5 | 0 | [{"id": "G0", "claim": "There is questionable value in exposing the supportsEagerStart capability flag publicly on ConnectionLike, given a similar internal symbol-based pattern was used before.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer ... | null |
temporalio__sdk-typescript__1786 | temporalio/sdk-typescript | 1,786 | defect | 770ef9756a16799fcf05934a679e995c240966d1 | 7ab08822fa4fe12137ac0fe56eba340fa3480a38 | Don't set error status on otel spans for benign exceptions | ## What was changed
DWISOTT
## Why?
We don't want benign exceptions to alert failures
1. Closes #1776
2. How was this tested:
Integration test
3. Any docs updates needed?
Don't think so
| diff --git a/packages/interceptors-opentelemetry/src/instrumentation.ts b/packages/interceptors-opentelemetry/src/instrumentation.ts
index 1df417b34d..78a30797c8 100644
--- a/packages/interceptors-opentelemetry/src/instrumentation.ts
+++ b/packages/interceptors-opentelemetry/src/instrumentation.ts
@@ -3,7 +3,7 @@
* @... | 2 | 2 | 1 | [{"id": "G0", "claim": "Unless otel testing is important enough to warrant its own npm script, the `test-otel` script (a development-time convenience) should not be added to packages/test/package.json.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The s... | null |
temporalio__sdk-typescript__18 | temporalio/sdk-typescript | 18 | defect | f7074cd8932cd089702898bbba90b6012cd0c639 | 749f863d6f22a1467e3bd5b369b790caf335caf1 | Test timer integration, add worker shutdown | Note that the CI does not run integration tests yet.
The tests pass on my laptop.
I have another PR (#15) which is supposed to make them run but I'm having some trouble waiting for the Temporal server to start. | diff --git a/packages/test-workflows/src/cancel-timer.ts b/packages/test-workflows/src/cancel-timer-immediately.ts
similarity index 100%
rename from packages/test-workflows/src/cancel-timer.ts
rename to packages/test-workflows/src/cancel-timer-immediately.ts
diff --git a/packages/test-workflows/src/cancel-timer-with-de... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new worker shutdown has no mechanism to drain remaining activations from poll_task until it returns CoreError::ShuttingDown, so activations already fetched from the server (e.g. while replaying a workflow to catch up to the end of history) may be dropped on shutdown.", "category": "correctne... | null |
temporalio__sdk-typescript__1847 | temporalio/sdk-typescript | 1,847 | defect | 86beac4fe94f2efc4fd6800c14a9c37c50b3dfce | 95c4d1c539c08102df33a7c36aef5d0375723cd9 | 💥 TLS enabled if API key is provided | ## What was changed
DWISOTT
1. Part of https://github.com/temporalio/features/issues/687
2. How was this tested:
Unit tests
3. Any docs updates needed?
Maybe?
| diff --git a/packages/client/src/connection.ts b/packages/client/src/connection.ts
index fb24fda7ff..ad9678c106 100644
--- a/packages/client/src/connection.ts
+++ b/packages/client/src/connection.ts
@@ -5,6 +5,7 @@ import {
normalizeTlsConfig,
TLSConfig,
normalizeGrpcEndpointAddress,
+ defaultTLSFromApiKey,
... | 2 | 2 | 1 | [{"id": "G0", "claim": "Do not introduce the new `defaultTLSFromApiKey` helper; pass the API key as a second argument to the existing `normalizeTlsConfig` instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request missed updating the `norma... | null |
temporalio__sdk-typescript__1979 | temporalio/sdk-typescript | 1,979 | defect | 91f72d2530587e30d7de9cdcbd9ae8f621cac596 | 4791bef2d5b1ec0cf3ba94c7682cadce49486268 | :boom: Add Nexus Inbound Interceptors | ## What was changed
<!-- Describe what has changed in this PR -->
- Added executeStartOperation and executeCancelOperation methods to NexusInboundCallsInterceptor, replacing the previous generic execute interceptor.
- Bypassed nexus-rpc's ServiceRegistry in favor of a local Map<string, ServiceHandler> with explic... | diff --git a/packages/test/src/test-nexus-handler.ts b/packages/test/src/test-nexus-handler.ts
index a6ace145bf..5211e46cfc 100644
--- a/packages/test/src/test-nexus-handler.ts
+++ b/packages/test/src/test-nexus-handler.ts
@@ -321,14 +321,11 @@ test('start Operation Handler errors', async (t) => {
? `Applica... | 1 | 1 | 0 | [{"id": "G0", "claim": "The Nexus inbound interceptor hook names should drop the `execute` prefix, since hook names in other TypeScript interceptors are simpler.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.