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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tempesta-tech__tempesta__638 | tempesta-tech/tempesta | 638 | defect | c6d2df45f80ed4d43a7e1223dd73f6eae793020e | d1ccf32731ba563fa6eef6a2739bd449699281f5 | http parser: fix parsing connection termination during response witho… | …ut known lenght
For responses without Content-Length header parser during
`TFW_HTTP_INIT_RESP_BODY_PARSING()` procedure switches its state to
`Resp_BodyUnlimStart` state. If response body is present parser will
switch to `Resp_BodyUnlimRead` state. When server will terminate
connection to indicate that end of r... | diff --git a/tempesta_fw/http_parser.c b/tempesta_fw/http_parser.c
index ce2e95e1c1..3e08bcacc5 100644
--- a/tempesta_fw/http_parser.c
+++ b/tempesta_fw/http_parser.c
@@ -3195,7 +3195,8 @@ tfw_http_parse_terminate(TfwHttpMsg *hm)
BUG_ON(!hm);
BUG_ON(!(TFW_CONN_TYPE(hm->conn) & Conn_Srv));
- if (hm->parser.state =... | 3 | 3 | 1 | [{"id": "G0", "claim": "Move the opening curly brace of this long `if` condition to the next, separate line, as the project style requires.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Do not use slow generic format strings or length-less functions such... | null |
tempesta-tech__tempesta__650 | tempesta-tech/tempesta | 650 | defect | b2f706a73e11585006732034e02a762159fd1049 | c05dcd7f6b4da333c261521309cebc14989a92f3 | Don't cache and don't forward hop-by-hop headers | Fix issue #409
- Parse Connection header during parsing HTTP message;
- Store raw headers listed in Connection header in temporary array allocated in message's pool: every raw header is marked as hop-by-hop if it's name present in that array. When connection header parsed in the first time, parser checks already p... | diff --git a/tempesta_fw/cache.c b/tempesta_fw/cache.c
index 33e653612e..5f3d748afb 100644
--- a/tempesta_fw/cache.c
+++ b/tempesta_fw/cache.c
@@ -131,26 +131,6 @@ enum {
TFW_CACHE_REPLICA,
};
-/*
- * Non-cacheable hop-by-hop response headers in terms of RFC 2068.
- * The table is used if server doesn't specify Ca... | 27 | 25 | 3 | [{"id": "G0", "claim": "Fix the misspelled “raaw” in the mark_raw_hbh() doc comment (should be “raw”).", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A client listing end-to-end headers such as Host or User-Agent in Connection gets them removed fr... | null |
tempesta-tech__tempesta__662 | tempesta-tech/tempesta | 662 | defect | 88ffe572eb012f8111250a622b34f5274e08fa83 | 97a58eae939dbf54771e6e34cf8afd5e9cb357f0 | Resistance to misbehaving upstream server | Workaround for #651: introduce TFW_HTTP_MSG_SENT flag such that unsent requests aren't paired with inavalid responses; drop connections if unpaired responses
detected.
Fix tfw_connection_unlink_to_sk(): do the actions in reverse order as they are
done in tfw_connection_link_to_sk().
Fix multiple memory leaks in... | diff --git a/tempesta_fw/cache.c b/tempesta_fw/cache.c
index 33e653612e..68058608aa 100644
--- a/tempesta_fw/cache.c
+++ b/tempesta_fw/cache.c
@@ -210,10 +210,10 @@ __cache_method_test(tfw_http_meth_t method)
return cache_cfg.methods & (1 << method);
}
-static inline bool
+bool
tfw_cache_msg_cacheable(TfwHttpReq ... | 6 | 5 | 1 | [{"id": "G0", "claim": "The purpose of the added mb() memory barrier in tfw_http_req_cache_cb is unclear and should be explained or removed if unnecessary.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A (write) memory barrier is justified before c... | null |
tempesta-tech__tempesta__734 | tempesta-tech/tempesta | 734 | defect | 7ef13ec051bfbd35931f35d4c78cf069bb0ac774 | cc2f7e34b8fdf7b0e32f9c4fa2b73e627ae01b7b | Speed up hash scheduler | Note: patch highly rely on changes in ab-alb-2 branch, so pull request is done to that branch. Changes:
* functional tests is updated to support ratio `scheduler`
* Hash scheduler uses sorted array of connections, this improves performance (O(lg n)).
* It is possible now to _get_ connection as soon as it found. No r... | diff --git a/tempesta_fw/sched/tfw_sched_hash.c b/tempesta_fw/sched/tfw_sched_hash.c
index e809ad56d4..7930cf4832 100644
--- a/tempesta_fw/sched/tfw_sched_hash.c
+++ b/tempesta_fw/sched/tfw_sched_hash.c
@@ -45,24 +45,24 @@
MODULE_AUTHOR(TFW_AUTHOR);
MODULE_DESCRIPTION("Tempesta hash-based scheduler");
-MODULE_VERSI... | 9 | 8 | 1 | [{"id": "G0", "claim": "An unlikely() annotation should (or should it not?) be used on the `if (!cl->conn_n)` check the pull request added to __bsearch().", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The single-line `conn_n += srv->conn_n;` loop b... | null |
tempesta-tech__tempesta__740 | tempesta-tech/tempesta | 740 | defect | fbbba57ea99c28be092fb26351b95f5fa652b56b | 3942427f89c8e035facd30e3e2c2ec76915cb4a7 | Support for new HTTP methods | * fix #730
* fix parsing split Purge requests (in segments: <PURG> <E...>) | diff --git a/tempesta_fw/cache.c b/tempesta_fw/cache.c
index 9b22fb8c36..a613f8310c 100644
--- a/tempesta_fw/cache.c
+++ b/tempesta_fw/cache.c
@@ -173,20 +173,28 @@ static TfwStr g_crlf = { .ptr = S_CRLF, .len = SLEN(S_CRLF) };
/*
* The mask of non-cacheable methods per RFC 7231 4.2.3.
- * Currently none of the no... | 5 | 5 | 1 | [{"id": "G0", "claim": "The comment above tfw_cache_nc_methods in tempesta_fw/cache.c should reference issue #506 at that comment line.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "tfw_cache_cfg_method() should just print a warning instead of fa... | null |
tempesta-tech__tempesta__872 | tempesta-tech/tempesta | 872 | defect | 40dd1077b4ddd586402e6dad9fb928de5999b596 | 678a15e769bbb618f155a1cd7d966a95287efa73 | Add user-defined headers before forward response to client | fix #511 | diff --git a/etc/tempesta_fw.conf b/etc/tempesta_fw.conf
index 215b422593..416351bb18 100644
--- a/etc/tempesta_fw.conf
+++ b/etc/tempesta_fw.conf
@@ -469,6 +469,20 @@
# Default:
# None.
+# TAG: hdr_add
+#
+# Append a user-defined header to HTTP response message before forwarding
+# it to client.
+#
+# Syntax:
+#... | 23 | 21 | 2 | [{"id": "G0", "claim": "Don't forget to add the description of the new header directive to the project Wiki.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Please describe the difference between the _add and _set directives (that resp_hdr_set dele... | null |
tempesta-tech__tempesta__920 | tempesta-tech/tempesta | 920 | defect | 74ac647ed928125705c013e62e636852530632f8 | 9ef603c87c992f552f478a0388f77dc26f341f8c | Add JS challenge | Add JavaScript challenge (fix #536)
start frang on demand (#888) | diff --git a/etc/js/js_challenge.js.tpl b/etc/js/js_challenge.js.tpl
new file mode 100644
index 0000000000..4b98c519e2
--- /dev/null
+++ b/etc/js/js_challenge.js.tpl
@@ -0,0 +1,15 @@
+var prefix = "[% STICKY_NAME %]";
+var delay_min = [% DELAY_MIN %];
+var delay_range = [% DELAY_RANGE %];
+if (navigator.cookieEnabled
+... | 9 | 9 | 4 | [{"id": "G0", "claim": "The challenge responses are small and there is no CSS, so minifying the templates with the extra CSS/JS minifier Perl modules wins nothing — only compile.pl is needed, and JS obfuscation would make sense only as a separate enterprise feature.", "category": "design", "verdict": "supported", "prio... | null |
tempesta-tech__tempesta__942 | tempesta-tech/tempesta | 942 | defect | 5abfde71530da4edd2b34c5a31de350d1f1180e8 | 41e3fef65cabb6d3023d9a70fc02933816a22ac0 | Fix restarting without unloading modules | fix #893 (point 3) | diff --git a/tempesta_fw/apm.c b/tempesta_fw/apm.c
index 3e95050701..80c2136f3b 100644
--- a/tempesta_fw/apm.c
+++ b/tempesta_fw/apm.c
@@ -1,7 +1,7 @@
/*
* Tempesta FW
*
- * Copyright (C) 2016-2017 Tempesta Technologies, Inc.
+ * Copyright (C) 2016-2018 Tempesta Technologies, Inc.
*
* This program is free sof... | 2 | 1 | 0 | [{"id": "G0", "claim": "Add an enforcement for configuration structures to satisfy the rule `!cleanup && (!deflt || allow_repeat || !dest)` so that future code will not forget to add cleanups or properly initialize configuration structures.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "int... | null |
tempesta-tech__tempesta__958 | tempesta-tech/tempesta | 958 | defect | fac65f7ecdcfe974808076c2a1e33c89610cc9ea | b35a203b08f72febc6a02a2328c0517f1771253b | Warn user on config parsing errors and many fixes to functional tests | As we debugged some tests with @vladtcvs it turned out that many errors during configuration parsing may not be shown to end user due to rate limiting. Show all warnings and errors during start/stop | diff --git a/tempesta_fw/apm.c b/tempesta_fw/apm.c
index 80c2136f3b..605d446561 100644
--- a/tempesta_fw/apm.c
+++ b/tempesta_fw/apm.c
@@ -1440,8 +1440,8 @@ bool
tfw_apm_check_hm(const char *name)
{
if (!tfw_hm_codes_cnt) {
- TFW_ERR("No response codes specified for"
- " server's health monitoring\n");
+ TFW_ER... | 2 | 1 | 1 | [{"id": "G0", "claim": "The response_400() helper added to helpers/chains.py duplicates a function that is already present.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "tearDown() should check that self.r_thread is initialized before joining i... | null |
tempesta-tech__tempesta__994 | tempesta-tech/tempesta | 994 | defect | 5abfde71530da4edd2b34c5a31de350d1f1180e8 | bb88c9e2fd0d393fa7e49ca48bc1383ce84ccd39 | Fix #938 | See PoC and benchmarks at https://github.com/natsys/blog/commit/d0b016d0bd30f3fb6a4c76393c82e5d3973512ba | diff --git a/tempesta_fw/http_parser.c b/tempesta_fw/http_parser.c
index 1845b1cf1c..d282f0d8b1 100644
--- a/tempesta_fw/http_parser.c
+++ b/tempesta_fw/http_parser.c
@@ -2,7 +2,7 @@
* Tempesta FW
*
* Copyright (C) 2014 NatSys Lab. (info@natsys-lab.com).
- * Copyright (C) 2015-2017 Tempesta Technologies, Inc.
+ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The value assigned to ZERO128/ZERO256 (0xff - 0x80 + 1) is not ASCII zero or '\\0' but 0x80, so the initializer and its comment should use 0 - 0x80 for clarity.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
temporalio__sdk-core__1019 | temporalio/sdk-core | 1,019 | defect | 06729bb80b3d57bac1e7c11a105d410a4566f830 | 06c5ee9753e2dd2364cc3e6a98c3034caafb7983 | Ensure heartbeats aren't flushed on successful activity completion | <!--- 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
In title
##... | diff --git a/core/src/worker/activities.rs b/core/src/worker/activities.rs
index 505d5c840..4ec5ccb3b 100644
--- a/core/src/worker/activities.rs
+++ b/core/src/worker/activities.rs
@@ -333,7 +333,14 @@ impl WorkerActivityTasks {
if let Some(jh) = act_info.local_timeouts_task {
jh.abort()
... | 2 | 1 | 0 | [{"id": "G0", "claim": "Leftover `dbg!` macros should be removed from non-test production code, here and in the other places they were left.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR should also not flush the heartbeat when the activ... | null |
temporalio__sdk-core__1066 | temporalio/sdk-core | 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 an activity type is disabled its polling future immediately returns Ok(None), so activity_poll enters a busy loop and, with local activities disabled, the biased select starves the remote activity poller; the disabled branch should await future::pending() instead.", "category": "correctness... | null |
temporalio__sdk-core__1068 | temporalio/sdk-core | 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 production code (resource_based.rs and worker_heartbeat_tests.rs) pollute production logs and should be removed or replaced with proper telemetry logging.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
temporalio__sdk-core__1069 | temporalio/sdk-core | 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\" failure-reason string should be snake case like the other metric values, unless it has to stay CamelCase to match values already released in other SDKs.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim":... | null |
temporalio__sdk-core__1072 | temporalio/sdk-core | 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 a Vec via .into_iter().collect() produces non-deterministic ordering, which will fail intermittently when the test asserts the exact vector [plugin1, plugin2]; either the conversion must sort the plugins or the test assertion must be made order-independent.", "c... | null |
temporalio__sdk-core__1106 | temporalio/sdk-core | 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 should be added to prevent accidental changes down the road.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
temporalio__sdk-core__1153 | temporalio/sdk-core | 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 | 0 | [{"id": "G0", "claim": "The worker should not silently drop activation sends when the activation channel is closed; the reviewer wants the send failure not to be glossed over because it signals something wrong elsewhere.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id... | null |
temporalio__sdk-core__1154 | temporalio/sdk-core | 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": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The --features temporalio-sdk-core/otel added to the i... | null |
temporalio__sdk-core__1162 | temporalio/sdk-core | 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... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new cancel_in_start_event_recorded test should be restructured as a parameterized rstest case test with the expected state passed in per case, instead of a table-driven loop that matches on the cancel type.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
temporalio__sdk-core__1173 | temporalio/sdk-core | 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 typed test's workflow ID is built with the `_untyped` suffix copied from the sibling test instead of `_typed`, which does not break the test but puts a misleading ID in server logs and history.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"},... | null |
temporalio__sdk-core__1180 | temporalio/sdk-core | 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... | 4 | 4 | 1 | [{"id": "G0", "claim": "The MetricKind::UpDownCounter doc comment should drop the parenthetical \"(e.g. inflight counts)\" 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 in ... | null |
temporalio__sdk-core__1183 | temporalio/sdk-core | 1,183 | defect | 21b65b87202b6931da780f3f7f6665b90107a16d | c25d345f1a9ff88f20d1c55705089c6f16aa1d29 | Update deps & remove unused ones | Bored in the evening and did some cleanup after seeing https://www.reddit.com/r/rust/comments/1s4fch6/cargodepflame_your_dependency_tree_as_a_flamegraph/ | diff --git a/Cargo.toml b/Cargo.toml
index 5ec199aa2..9f3843119 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -31,7 +31,6 @@ opentelemetry = { version = "0.31", features = ["metrics"] }
prost = "0.14"
prost-types = { version = "0.7", package = "prost-wkt-types" }
pbjson = "0.9"
-pbjson-types = "0.9"
pbjson-build = "0... | 2 | 1 | 0 | [{"id": "G0", "claim": "Just calling out that the reqwest 0.12 to 0.13 upgrade changes TLS feature handling (rustls-tls-native-roots removed upstream, per reqwest#2891), though the reviewer thinks the resulting settings are fine.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduce... | null |
temporalio__sdk-core__1185 | temporalio/sdk-core | 1,185 | defect | 4508ae7dbaee40ca3b34dd9ce646ed12cbd42c6d | bfb56383fedfd61e3d42f8583ca4cb52a37a0cf2 | Custom async executor for workflows | <!--- 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
Replaces `toki... | diff --git a/crates/sdk-core/tests/common/mod.rs b/crates/sdk-core/tests/common/mod.rs
index d657a6a7d..68f2d6a0d 100644
--- a/crates/sdk-core/tests/common/mod.rs
+++ b/crates/sdk-core/tests/common/mod.rs
@@ -347,12 +347,13 @@ impl CoreWfStarter {
pub(crate) async fn worker(&mut self) -> TestWorker {
let ... | 5 | 4 | 1 | [{"id": "G0", "claim": "Consider failing (instead of silently forwarding) a wake that arrives while the tracking waker still holds the noop waker placeholder.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Worker::set_detect_nondeterministic_fut... | null |
temporalio__sdk-core__1189 | temporalio/sdk-core | 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... | 1 | 1 | 1 | [{"id": "G0", "claim": "ActivityInfo.run_id should be an Option<String> populated with (!run_id.is_empty()).then_some(run_id) so unset is represented as None instead of exposing \"\" to end users.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
temporalio__sdk-core__1206 | temporalio/sdk-core | 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 | 0 | [{"id": "G0", "claim": "The crate name in the example should be `temporalio-sdk` instead of `temporalio-sdk-rust`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks whether this `reset_sticky_task_queue` gRPC request fails now (afte... | null |
temporalio__sdk-core__1207 | temporalio/sdk-core | 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 | 0 | [{"id": "G0", "claim": "The test's immediate metrics assertion should be wrapped in an `eventually` in case the metrics take a moment to populate.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
temporalio__sdk-core__1208 | temporalio/sdk-core | 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... | 8 | 6 | 2 | [{"id": "G0", "claim": "The public docstring for set_current_details should not refer to the internal `__temporal_workflow_metadata` built-in query name.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The static summary/details (and related) user ... | null |
temporalio__sdk-core__1212 | temporalio/sdk-core | 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, because the example failures the change causes are real.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
temporalio__sdk-core__122 | temporalio/sdk-core | 122 | defect | e5942510f22c547ff93288cb8035faa1595b65cd | 7f9ce9b68cef3e00f993161fddd8ea7fe349306b | Enable mostly configurable TLS in core gRPC client | <!--- 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:
Enable settin... | diff --git a/Cargo.toml b/Cargo.toml
index ef13cc681..44f049881 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -32,8 +32,8 @@ rand = "0.8.3"
slotmap = "1.0"
thiserror = "1.0"
# For the full list of tokio features and what they enable see https://docs.rs/tokio/1.5.0/tokio/#feature-flags
-tokio = { version = "1.1", featu... | 4 | 3 | 3 | [{"id": "G0", "claim": "The TLS config should not require setting a custom domain; the domain should be optional and derived from the server address instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Certificates and keys must be passable as in-memo... | null |
temporalio__sdk-core__1224 | temporalio/sdk-core | 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 made inside the graceful_shutdown_sends_shutdown_worker_rpc_during_initiate test function up to test module level.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
temporalio__sdk-core__202 | temporalio/sdk-core | 202 | defect | 289da6da4d245b00155ed3fca0810cc60e30efd5 | 83ee3183da186eff039f270f739511b4b654c7fd | Stop returning tonic errors from polls instead log warnings and retry. | <!--- 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
Polling now ne... | diff --git a/.buildkite/docker/docker-compose.yaml b/.buildkite/docker/docker-compose.yaml
index 4bccd3035..9734b1caa 100644
--- a/.buildkite/docker/docker-compose.yaml
+++ b/.buildkite/docker/docker-compose.yaml
@@ -9,7 +9,7 @@ services:
# - '9042:9042'
temporal:
- image: temporalio/auto-setup:1.12.1
+... | 9 | 3 | 3 | [{"id": "G0", "claim": "Stopping all tonic-error returns from polls goes too far: the ability to return tonic errors should be kept for genuinely fatal cases (like bad auth), with poll errors otherwise handled by a custom retryer.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"},... | null |
temporalio__sdk-core__240 | temporalio/sdk-core | 240 | defect | 940a0b035ffa339ab8ed4c0816a15ef9de6fefb4 | 719e13a956040c45d21cc9654aaa4b634988e64c | Fix WFT failures sometimes getting stuck in a spam loop | <!--- 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
While working ... | diff --git a/sdk-core-protos/src/lib.rs b/sdk-core-protos/src/lib.rs
index 877249f41..b766dd16b 100644
--- a/sdk-core-protos/src/lib.rs
+++ b/sdk-core-protos/src/lib.rs
@@ -451,6 +451,7 @@ pub mod coresdk {
}
pub mod workflow_completion {
+ use crate::temporal::api::failure;
tonic::include_p... | 3 | 1 | 1 | [{"id": "G0", "claim": "The capitalization of the abbreviation in the new WFTReportOutcome type name is inconsistent (Wf vs WFT) and should be settled.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new unconditional warn! log on every workf... | null |
temporalio__sdk-core__245 | temporalio/sdk-core | 245 | defect | a0e40add5382b0b59ab5f8f0a5151890a41a3867 | d71b6ca304e1ed54940251dcc0a7c5a308c7ff22 | Local Activity Timeouts | <!--- 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 time... | diff --git a/protos/local/activity_task.proto b/protos/local/activity_task.proto
index 1f1cab953..21af9f1d7 100644
--- a/protos/local/activity_task.proto
+++ b/protos/local/activity_task.proto
@@ -13,7 +13,7 @@ import "google/protobuf/duration.proto";
message ActivityTask {
/// A unique identifier for this task
... | 8 | 3 | 2 | [{"id": "G0", "claim": "Local activity timeouts should resolve as failures (with timeout failure info) rather than as cancellations, including in the integ test assertions.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The TODO about the original s... | null |
temporalio__sdk-core__250 | temporalio/sdk-core | 250 | defect | 5925d0ad3a53d19b59a5d1ba76b3929830a1b52c | f300423a0bac3af3f0d3cf0f6142e421459256b4 | Make shutdown wait on outstanding activity tasks | <!--- 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/src/core_tests/activity_tasks.rs b/src/core_tests/activity_tasks.rs
index e75447032..7b0807c03 100644
--- a/src/core_tests/activity_tasks.rs
+++ b/src/core_tests/activity_tasks.rs
@@ -31,11 +31,11 @@ use temporal_sdk_core_protos::{
},
temporal::api::workflowservice::v1::{
PollActivityTas... | 2 | 1 | 0 | [{"id": "G0", "claim": "The polling wait_all_finished loop plus unconditional notify_waiters should be replaced with a single-notification design, such as awaiting one notified() call or using a oneshot channel with notify_one() guarded by an emptiness check.", "category": "design", "verdict": "opposed", "priority": "P... | null |
temporalio__sdk-core__253 | temporalio/sdk-core | 253 | defect | eaf4d85d0b350f35e2110f6daffd2f9419bf69a6 | 364b8b7eca431faafb2c929726aab23c2bd6cb10 | Fix possible too-early shutdown case | <!--- 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 scenario w... | diff --git a/client/src/lib.rs b/client/src/lib.rs
index 77690fa07..5a5a5b42a 100644
--- a/client/src/lib.rs
+++ b/client/src/lib.rs
@@ -14,7 +14,7 @@ pub use crate::retry::RetryGateway;
use crate::metrics::{svc_operation, MetricsContext};
use backoff::{ExponentialBackoff, SystemClock};
-use futures::{future::BoxFu... | 5 | 2 | 0 | [{"id": "G0", "claim": "The same drain-before-returning-shutdown approach could be applied to activities as well.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The shutdown_requested check in all_wfts_drained is probably unneeded since it is only called... | null |
temporalio__sdk-core__289 | temporalio/sdk-core | 289 | defect | af062fdf34cb9fbc12b60a9412647930575fbc4e | feebbd08e602820b2d1bb664a06e53411a92cbd7 | Fix possibly unflushed heartbeats if they are the first heartbeat | <!--- 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
It was possibl... | diff --git a/core/src/telemetry/prometheus_server.rs b/core/src/telemetry/prometheus_server.rs
index cfa513e49..7db9f181a 100644
--- a/core/src/telemetry/prometheus_server.rs
+++ b/core/src/telemetry/prometheus_server.rs
@@ -1,5 +1,7 @@
-use crate::telemetry::default_resource;
-use crate::telemetry::metrics::{SDKAggSel... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new `debug!(\"Recording hb {details:?}\")` log should be less verbose than debug level and have a more meaningful message.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new not-found log may duplicate a warning l... | null |
temporalio__sdk-core__302 | temporalio/sdk-core | 302 | defect | 76fe4fa7862d75220737984bdfa9075b265716c9 | 0dcff3b325e6c5e617729dcd66321b236e65579c | add activity context for rust sdk | ## What was changed
An activity context that tries to be as close to the go sdk as possible. Implementation added in sdk/src/activity_context.rs. sdk/src/lib.rs was also modified to support the new context for each activity worker function.
1. Closes https://github.com/temporalio/sdk-core/issues/301
2. How was... | diff --git a/core/src/core_tests/local_activities.rs b/core/src/core_tests/local_activities.rs
index f06a0082f..7baba9faf 100644
--- a/core/src/core_tests/local_activities.rs
+++ b/core/src/core_tests/local_activities.rs
@@ -13,7 +13,7 @@ use std::{
time::Duration,
};
use temporal_client::WorkflowOptions;
-use t... | 8 | 8 | 2 | [{"id": "G0", "claim": "The has_heartbeat_details helper is unnecessary since get_heartbeat_details already returns a reference callers can check, so it should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The inputs method should get a more... | null |
temporalio__sdk-core__322 | temporalio/sdk-core | 322 | defect | 79bc52c03917e6ad03d9d3692da2f65f8b9c9ca0 | 89b6a4c6cc263190b1020ac9a1a595c2811f0ef2 | implement appdata propagation | <!--- 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
Added an AppDa... | diff --git a/core/src/workflow/mod.rs b/core/src/workflow/mod.rs
index 021cade02..3aebe2438 100644
--- a/core/src/workflow/mod.rs
+++ b/core/src/workflow/mod.rs
@@ -354,6 +354,7 @@ pub mod managed_wf {
let (wff, activations) = func.start_workflow(
"testnamespace".to_string(),
... | 3 | 3 | 2 | [{"id": "G0", "claim": "Users may use workflow app_data to access environment-specific data, resulting in non-deterministic workflow behavior, so the API should be limited to activities.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "AppData should use a... | null |
temporalio__sdk-core__326 | temporalio/sdk-core | 326 | defect | 79bc52c03917e6ad03d9d3692da2f65f8b9c9ca0 | 6835f583c876865afc8c1237af4d041660239373 | Support modifying Client headers | Does not address need to set per-call headers, make the Client headers mutable so they can be updated from Lang
Related: #303 | diff --git a/client/src/lib.rs b/client/src/lib.rs
index 92dda2dbb..64911b688 100644
--- a/client/src/lib.rs
+++ b/client/src/lib.rs
@@ -30,7 +30,7 @@ use std::{
fmt::{Debug, Formatter},
ops::{Deref, DerefMut},
str::FromStr,
- sync::Arc,
+ sync::{Arc, Mutex},
time::{Duration, Instant},
};
us... | 2 | 2 | 1 | [{"id": "G0", "claim": "Use a parking_lot mutex instead of std's fallible-locking Mutex for the headers field to avoid fallible locking.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ClientOptions should remain static rather than carrying a mutable head... | null |
temporalio__sdk-core__360 | temporalio/sdk-core | 360 | defect | aaaa9e196afb338d26f0e117570fd11ab789b835 | 28032d36a214d571319ecee229a054fb450996d5 | implement SignalWithStartWorkflow for client + tests | <!--- 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
```WorkflowCli... | diff --git a/client/src/lib.rs b/client/src/lib.rs
index df5790a9b..42f4f8d0b 100644
--- a/client/src/lib.rs
+++ b/client/src/lib.rs
@@ -609,6 +609,20 @@ pub trait WorkflowClientTrait {
payloads: Option<Payloads>,
) -> Result<SignalWorkflowExecutionResponse>;
+ /// Send signal and start workflow tran... | 1 | 1 | 0 | [{"id": "G0", "claim": "The signal_with_start request should set the task queue kind using the named TaskQueueKind::Normal enum variant (cast to i32) instead of the hardcoded 1 and its #FIXME comment.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
temporalio__sdk-core__365 | temporalio/sdk-core | 365 | defect | e261de3c38b47b29be0db209e9a4758250593034 | 31bc384be3cd87f385ba9065b86fddf6a9e403e5 | Add more missing workflow options and add request_id as parameter for some calls | Add more missing workflow options and add request_id as parameter for some calls
<!--- 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 c... | diff --git a/client/src/lib.rs b/client/src/lib.rs
index 78aa89059..3b913233e 100644
--- a/client/src/lib.rs
+++ b/client/src/lib.rs
@@ -39,7 +39,7 @@ use temporal_sdk_core_protos::{
temporal::api::{
command::v1::Command,
common::v1::{Payload, Payloads, WorkflowExecution, WorkflowType},
- ... | 5 | 5 | 1 | [{"id": "G0", "claim": "The execution_timeout doc comment should read 'Optionally set the execution timeout for the workflow' with a docs link instead of 'Optionally indicates the default execution timeout for workflow tasks'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced... | null |
temporalio__sdk-core__379 | temporalio/sdk-core | 379 | defect | bc785a7ff515796895df10661635ac0e1af066e2 | 5e6b82031cccaae3274339c18bdc866f38dc65ea | Fix cancelling of started-but-lang-doesn't-know workflows | <!--- 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
* Created a fa... | diff --git a/core/src/core_tests/child_workflows.rs b/core/src/core_tests/child_workflows.rs
index 89a5a8c6a..d6df69989 100644
--- a/core/src/core_tests/child_workflows.rs
+++ b/core/src/core_tests/child_workflows.rs
@@ -1,12 +1,18 @@
use crate::{
replay::DEFAULT_WORKFLOW_TYPE,
- test_help::{canned_histories, ... | 3 | 2 | 1 | [{"id": "G0", "claim": "More child-cancellation scenarios should be tested — cancelling a child that is already complete (core should ignore it, as it does for activities), a not-started child, and cancellation landing while a WFT is being processed.", "category": "testing", "verdict": "supported", "priority": "P2", "s... | null |
temporalio__sdk-core__400 | temporalio/sdk-core | 400 | defect | b437737d4101812db82298770985cfe73924f025 | b668e982e74d78049153f1e3e2a056d99941b01f | Implement multiple histories support for replaying | <!--- 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
Implemented ab... | diff --git a/client/src/lib.rs b/client/src/lib.rs
index 3380efffc..cf602186c 100644
--- a/client/src/lib.rs
+++ b/client/src/lib.rs
@@ -46,13 +46,12 @@ use temporal_sdk_core_protos::{
coresdk::{workflow_commands::QueryResult, IntoPayloadsExt},
grpc::health::v1::health_client::HealthClient,
temporal::api... | 3 | 3 | 1 | [{"id": "G0", "claim": "The replay worker API taking a sync iterator of histories should instead let lang feed individual histories asynchronously after init (a struct/feeder API), with the feed method blocking once concurrently replayed histories exceed a configurable threshold, since the sync iterator approach will n... | null |
temporalio__sdk-core__415 | temporalio/sdk-core | 415 | defect | 86a5d0b9cd60ae792ce38a46b013f16d3eee3452 | dfa326332970826c720a626b8dc4bece9b395828 | Fix replaying same run id multiple times possibly hanging replay | <!--- 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
Because of the... | diff --git a/core/src/replay/mod.rs b/core/src/replay/mod.rs
index 6693a72f4..e37193439 100644
--- a/core/src/replay/mod.rs
+++ b/core/src/replay/mod.rs
@@ -10,7 +10,7 @@ use futures::{FutureExt, Stream, StreamExt};
use once_cell::sync::OnceCell;
use parking_lot::Mutex;
use std::{
- collections::HashMap,
+ col... | 2 | 1 | 1 | [{"id": "G0", "claim": "Asks in what situation the same run ID is replayed over and over, and whether the new run-ID dedup affects users who may literally pass in separate-but-same-run-ID histories or is an internal-core-only concern.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intr... | null |
temporalio__sdk-core__427 | temporalio/sdk-core | 427 | defect | 29e97aa3929fd56fda3fcef7cfb36062490244e2 | 1b8e0a5f2d1cd7eea2e9dbe2aa02655ec702a37d | Fix and add test for sending activation w/ legacy query + other job | <!--- 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
Never send a l... | diff --git a/core/src/core_tests/local_activities.rs b/core/src/core_tests/local_activities.rs
index bdef10557..d51d1c158 100644
--- a/core/src/core_tests/local_activities.rs
+++ b/core/src/core_tests/local_activities.rs
@@ -33,7 +33,9 @@ use temporal_sdk_core_protos::{
query::v1::WorkflowQuery,
},
};
-u... | 2 | 2 | 1 | [{"id": "G0", "claim": "The repro test does not accurately reproduce the reported bug, since the server cannot respond the way the test forces it to (the forced new WFT cannot carry a legacy query), so the author needs to figure out how to introduce the delay.", "category": "testing", "verdict": "supported", "priority"... | null |
temporalio__sdk-core__495 | temporalio/sdk-core | 495 | defect | 09a2e4fc2198a8906bdb3f5051531578d9c46973 | 52c7671d07a15d3c630a1cef8d8738e45c334de5 | Auto-upsert versions SA on patched calls & nondeterminism check for upserts | <!--- 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
* Auto-create ... | diff --git a/.buildkite/docker/docker-compose.yaml b/.buildkite/docker/docker-compose.yaml
index ee196c992..de6e6c5f6 100644
--- a/.buildkite/docker/docker-compose.yaml
+++ b/.buildkite/docker/docker-compose.yaml
@@ -9,7 +9,7 @@ services:
# - '9042:9042'
temporal:
- image: temporalio/auto-setup:1.18.3
+... | 8 | 4 | 1 | [{"id": "G0", "claim": "The set of patch IDs used for the TemporalChangeVersion upsert should have a user-predictable order (e.g. a sorted set or sorted vec at SA encode time) so the same command is sent in the same order every time.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "intro... | null |
temporalio__sdk-core__502 | temporalio/sdk-core | 502 | defect | 1088ef79f24f6767d3b617348acdb886b59c230d | 62046ec2f8ecfcba31713ad9989a68283f497d66 | Drop all post-terminal commands & sort activation jobs | <!--- 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
Drop & warn ab... | diff --git a/core/src/core_tests/workflow_tasks.rs b/core/src/core_tests/workflow_tasks.rs
index b7f95326a..002451211 100644
--- a/core/src/core_tests/workflow_tasks.rs
+++ b/core/src/core_tests/workflow_tasks.rs
@@ -2431,3 +2431,43 @@ async fn core_internal_flags() {
core.complete_execution(&act.run_id).await;
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new logic that drops every command after a terminal command may also drop query responses, so query results may no longer work and this should be confirmed and protected against.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai... | null |
temporalio__sdk-core__542 | temporalio/sdk-core | 542 | defect | 81ece42e3a4fda1b019d9a5d8d263916f73726a6 | a1156a6c4c5c51b09ee389273ddcbe01fac89a8b | Updated workflow function to return Payload instead of empty tuple | <!--- 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
1) Modified ... | diff --git a/README.md b/README.md
index e12b3b18a..defbfb7c1 100644
--- a/README.md
+++ b/README.md
@@ -42,6 +42,8 @@ You can buld and test the project using cargo:
Run integ tests with `cargo integ-test`. You will need to already be running the server:
`docker-compose -f .buildkite/docker/docker-compose.yaml up`
... | 3 | 3 | 2 | [{"id": "G0", "claim": "The PR should go straight to the more general abstraction (workflow functions producing Payload results) rather than staying with the empty-tuple version.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The bounds on the workflow-f... | null |
temporalio__sdk-core__545 | temporalio/sdk-core | 545 | defect | c1e7897258d744fd78ec4fb4ae6a3b35c498b90d | b65961e0dfe19e9a1289f0f3a80b897e9d14cfe2 | Poll concurrently at will | <!--- 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
Remove the sem... | diff --git a/core/src/core_tests/activity_tasks.rs b/core/src/core_tests/activity_tasks.rs
index 76461144e..6ba4239b9 100644
--- a/core/src/core_tests/activity_tasks.rs
+++ b/core/src/core_tests/activity_tasks.rs
@@ -1058,26 +1058,34 @@ async fn graceful_shutdown(#[values(true, false)] at_max_outstanding: bool) {
... | 4 | 4 | 1 | [{"id": "G0", "claim": "The new poller design may need work, plus tests, to ensure it does not take tasks when the worker is already full up.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The num_pollers metric should reflect the number of active p... | null |
temporalio__sdk-core__557 | temporalio/sdk-core | 557 | defect | 315b8f0fb22141e7278898e4f247f7d62ae24007 | 5617cbc1c934427cabe86446822beaa7f84b7ea1 | Apply rate limiter at the poller level | <!--- 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
Move ratelimit... | diff --git a/cargo-tokio-console.sh b/cargo-tokio-console.sh
new file mode 100755
index 000000000..04ddbb1b0
--- /dev/null
+++ b/cargo-tokio-console.sh
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+
+export RUSTFLAGS="--cfg tokio_unstable"
+
+cargo "$1" --features "tokio-console" "${@:2}"
diff --git a/core/Cargo.toml b/core/Ca... | 3 | 1 | 0 | [{"id": "G0", "claim": "The new `mac_worker_aps` parameter is named confusingly (it is a typo) and should be renamed to something that doesn't require guessing the meaning.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rate limits also need to ... | null |
temporalio__sdk-core__570 | temporalio/sdk-core | 570 | defect | 2c451d469fb01a2044270a0e82de98cc4473cc8d | 369b1a0e40c730bc6d1cc1e88dd747db9442391d | Expose history size in bytes and CAN suggestion | <!--- 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 these a... | diff --git a/core/src/core_tests/workflow_tasks.rs b/core/src/core_tests/workflow_tasks.rs
index f4da759cb..37ce51c9e 100644
--- a/core/src/core_tests/workflow_tasks.rs
+++ b/core/src/core_tests/workflow_tasks.rs
@@ -1648,6 +1648,45 @@ async fn cache_miss_will_fetch_history() {
worker.shutdown().await;
}
+#[tok... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new field name `continue_as_new_suggseted` is misspelled and should be spelled `continue_as_new_suggested`.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
temporalio__sdk-core__576 | temporalio/sdk-core | 576 | defect | a55e009418ff9ecadb3b38ee8b5c4047bf3eb56c | 299860043729d1432e03d012ce3248f9cdefd25a | Fix start-to-close LA timeouts not being retryable like they should be | <!--- 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 start-to-c... | diff --git a/core/src/core_tests/local_activities.rs b/core/src/core_tests/local_activities.rs
index 638525249..f86d118e3 100644
--- a/core/src/core_tests/local_activities.rs
+++ b/core/src/core_tests/local_activities.rs
@@ -884,6 +884,74 @@ async fn test_schedule_to_start_timeout_not_based_on_original_time(
worke... | 11 | 5 | 0 | [{"id": "G0", "claim": "Deduplicate the duplicated retry/backoff logic shared by the Failed and StartToClose-timeout match arms.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test name should be \"retries\", not the misspelling \"retires\".... | null |
temporalio__sdk-core__597 | temporalio/sdk-core | 597 | defect | 037616619ef3e71da49e61d51bd96164358b6a10 | f5d7ee4eac2f7989a9a0b9220a0ed3a7d82202de | Fix query related is_replay flag error | <!--- 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
In some situat... | diff --git a/core/src/core_tests/replay_flag.rs b/core/src/core_tests/replay_flag.rs
index 16e3912cd..d7ca2465b 100644
--- a/core/src/core_tests/replay_flag.rs
+++ b/core/src/core_tests/replay_flag.rs
@@ -1,8 +1,21 @@
-use crate::{test_help::canned_histories, worker::ManagedWFFunc};
+use crate::{
+ test_help::{
+ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The activation protocol should be refactored so no assumptions are needed (e.g. core attaches is_replaying at the job level, or an activation never mixes query and non-query jobs), because forcing query-only activations to always report replaying may eventually make future bugs much harder to di... | null |
temporalio__sdk-core__599 | temporalio/sdk-core | 599 | defect | e132dfe7dd4cfd0ae1fd6ebc8247e8c6acabb0f1 | 93b5c4038ac3519c368cea8430afea340440468f | Fix Metrics prefixing & remove trace export configs | <!--- 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
Metrics prefix... | diff --git a/core-api/src/telemetry.rs b/core-api/src/telemetry.rs
index 32f179c8b..b11fc1439 100644
--- a/core-api/src/telemetry.rs
+++ b/core-api/src/telemetry.rs
@@ -29,25 +29,21 @@ pub trait CoreTelemetry {
#[derive(Debug, Clone, derive_builder::Builder)]
#[non_exhaustive]
pub struct TelemetryOptions {
- /// ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new assertion `body.contains(\"mygauge 42\")` doesn't verify that the temporal prefix isn't added to the non-temporal meter's gauge, since a prefixed name would still satisfy it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
temporalio__sdk-core__616 | temporalio/sdk-core | 616 | defect | dd610947468ec760601b57c93f76532d08739168 | 502d9fcc215fd42ef256852864b6de6e25c78c2c | Workflow Update small fixes | <!--- 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
The main fix r... | diff --git a/client/src/lib.rs b/client/src/lib.rs
index a1e0f1896..d86eadd03 100644
--- a/client/src/lib.rs
+++ b/client/src/lib.rs
@@ -77,7 +77,11 @@ use uuid::Uuid;
static CLIENT_NAME_HEADER_KEY: &str = "client-name";
static CLIENT_VERSION_HEADER_KEY: &str = "client-version";
/// These must match the gRPC method ... | 2 | 1 | 0 | [{"id": "G0", "claim": "Fix the compiler warning for an unnecessary `.borrow()` near the bottom of core/src/worker/workflow/machines/workflow_machines.rs (around line 1493).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Enable warnings-as-err... | null |
temporalio__sdk-core__619 | temporalio/sdk-core | 619 | defect | 7545ad126166412d282c8dfe43d1650d607867dd | b34c009134b05e532f520466fac23619b3fba3ea | Attach current Build ID to workflow activations | <!--- 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 current bu... | diff --git a/core/src/core_tests/workflow_tasks.rs b/core/src/core_tests/workflow_tasks.rs
index 37ce51c9e..06622c2f2 100644
--- a/core/src/core_tests/workflow_tasks.rs
+++ b/core/src/core_tests/workflow_tasks.rs
@@ -45,7 +45,7 @@ use temporal_sdk_core_protos::{
default_act_sched, default_wes_attribs,
tempora... | 1 | 1 | 1 | [{"id": "G0", "claim": "The attach-build-id logic should not live on the proto struct, which doesn't know when attaching is needed; it should be moved into the worker logic before handing over the activation, or better yet applied where the activation is created to avoid mutating unnecessarily.", "category": "design", ... | null |
temporalio__sdk-core__622 | temporalio/sdk-core | 622 | defect | 35cbbc4b0c1c1a73104c99c8d2af1d0eb4d5689a | 833610ac2e0aa855fde624430a59bb482eee4968 | Eager Workflow Start (#606) |
## What was changed
Adding to clients the ability of tracking workers that are attached to them, so that we can implement Eager Workflow Start,
a latency optimization that allows the client to directly dispatch the first workflow task to the worker, eliminating a server round-trip.
<!-- Describe what has changed i... | diff --git a/.gitignore b/.gitignore
index e7c54e24a..c81a5cf2e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@ Cargo.lock
/.idea/
*.iml
+*~
# Ignore generated protobuf files
src/protos/*.rs
diff --git a/client/Cargo.toml b/client/Cargo.toml
index 065ac6ade..90c6f8154 100644
--- a/client/Cargo.toml
+++... | 23 | 20 | 1 | [{"id": "G0", "claim": "The RwLock should be an implementation detail hidden inside SlotManager instead of being exposed to callers of ConfiguredClient::workers().", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "schedule_wft should take self (consume the ... | null |
temporalio__sdk-core__631 | temporalio/sdk-core | 631 | defect | a1351da1c8033a3fb818c0fd1aca562564212329 | 1d815b4838592e1a7d69fcda4b9661d539264040 | Fix worker shutdown during replay test | This fixes issue #630 by closing the external channel early when we are using a mock client associated with the worker.
This will disable Eager Start Workflow with mock clients, but since ESW is a latency optimization, and we do not use mock clients during its testing, this has no practical consequences.
1. Clos... | diff --git a/client/src/worker_registry/mod.rs b/client/src/worker_registry/mod.rs
index 302c622b0..cfa8b95e7 100644
--- a/client/src/worker_registry/mod.rs
+++ b/client/src/worker_registry/mod.rs
@@ -113,6 +113,8 @@ impl SlotManagerImpl {
#[derive(Default, Debug)]
pub struct SlotManager {
manager: RwLock<SlotMa... | 1 | 1 | 0 | [{"id": "G0", "claim": "It would be cleaner to add `is_mock` to the `WorkerClient` trait and simply not instantiate/merge the external WFT channel when the client is a mock, rather than adding a `mock` flag to `SlotManager`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
temporalio__sdk-core__636 | temporalio/sdk-core | 636 | defect | 29b4fcff41096320ebfab7ddc7e65392bb2e5afe | 14a41f3bd63e6b91a4bb9684e2d864bf502ff477 | Better WFT buffer |
## What was changed
Better task buffering.
## Why?
To avoid timing out concurrent queries. There is no reason to buffer more than one WFT, speculative or not, for the reasons described in the second issue. We already definitely will never try to apply more than one WFT at a time if the split brain edge case me... | diff --git a/core/src/worker/workflow/history_update.rs b/core/src/worker/workflow/history_update.rs
index 3ff9197c0..819c8e3a2 100644
--- a/core/src/worker/workflow/history_update.rs
+++ b/core/src/worker/workflow/history_update.rs
@@ -55,8 +55,10 @@ impl Debug for HistoryUpdate {
if self.is_real() {
... | 4 | 3 | 1 | [{"id": "G0", "claim": "The TODO on buffered_polls_need_cache_slot asks whether that buffer still needs to exist at all, and the author asked to check this (removing it if it does not).", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The task_buffe... | null |
temporalio__sdk-core__700 | temporalio/sdk-core | 700 | defect | bcda5d9f73b082ddf6816921e15db5e68a8ce47e | a290d6e1cfe8aa72afba1309e4467a8c3a783b9a | UpdateAdmitted event processing | This PR adds handling for the new `WorkflowExecutionUpdateAdmitted` event ("UAdm") that the server is going to start sending for reapplied updates (i.e. after reset / conflict resolution).
If the server does request an update by sending the new event type, then:
1. It will not send a protocol message.
2. The e... | diff --git a/core/src/protosext/protocol_messages.rs b/core/src/protosext/protocol_messages.rs
index 448470dd1..538555443 100644
--- a/core/src/protosext/protocol_messages.rs
+++ b/core/src/protosext/protocol_messages.rs
@@ -2,6 +2,7 @@ use anyhow::{anyhow, bail};
use std::collections::HashMap;
use temporal_sdk_core_... | 2 | 1 | 0 | [{"id": "G0", "claim": "Add context (use `.context`) when bubbling up the error from `IncomingProtocolMessage::try_from(&event)` in the update-admitted/requested path, and likewise at the update-accepted site.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2"... | null |
temporalio__sdk-core__721 | temporalio/sdk-core | 721 | defect | 409e74ec8e80ae4c1f9043e8b413b1371b65f946 | be276fe5f36f2a76942cfff04d762a95f881d2f0 | Worker client replacement | ## What was changed
Added `Worker::replace_client`. Notes:
* Replacement unregisters itself with old client and re-registers with new client for eager workflow start
* Uses lock of arc, so no currently operating poll on existing client will be interrupted (this has been tested)
* This is as close as we can reas... | diff --git a/client/src/lib.rs b/client/src/lib.rs
index 71aa6ad3d..fd6dd58d3 100644
--- a/client/src/lib.rs
+++ b/client/src/lib.rs
@@ -296,7 +296,7 @@ pub struct ConfiguredClient<C> {
options: Arc<ClientOptions>,
headers: Arc<RwLock<ClientHeaders>>,
/// Capabilities as read from the `get_system_info` R... | 10 | 10 | 2 | [{"id": "G0", "claim": "The capabilities field should not be wrapped in an Arc since it is just a bunch of bools (a Copy derive could even be added).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use parking_lot::RwLock instead of std::sync::RwLock for ... | null |
temporalio__sdk-core__732 | temporalio/sdk-core | 732 | defect | 8efbd22bf997ed846e34e4efd20c06e2dac4c956 | 56168486a3d3f2e3f8214cc57981a3863d20939d | Remove temporalite ephemeral server and expose child process ID | ## What was changed
* Remove Temporalite as an ephemeral server option
* Expose child process ID for ephemeral servers
* Add assertion for CLI dev server that process is gone after shutdown
Done as part of https://github.com/temporalio/features/issues/470
## Checklist
<!--- add/delete as needed --->
1. C... | diff --git a/core/Cargo.toml b/core/Cargo.toml
index 25378ef7a..21ebdea94 100644
--- a/core/Cargo.toml
+++ b/core/Cargo.toml
@@ -93,6 +93,7 @@ bimap = "0.6.1"
clap = { version = "4.0", features = ["derive"] }
criterion = "0.5"
rstest = "0.18"
+sysinfo = "0.30"
temporal-sdk-core-test-utils = { path = "../test-utils"... | 1 | 1 | 0 | [{"id": "G0", "claim": "The deleted temporalite_shutdown_port_reuse coverage is specific to the Temporalite removal, and the reviewer asks whether it would be pertinent to repurpose that test for the CLI rather than delete it.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
temporalio__sdk-core__776 | temporalio/sdk-core | 776 | defect | 5e3b2749e2040e5d60695b253b94b21b0075c14a | 1d2cfc04d3ab935c7963c39a49a03056fae7efca | Honor all non-terminal commands | Fixes #778
- Previously, core was truncating commands received from lang at the first terminal command.
- With this PR, if there are terminal commands, we remove them all and replace the first one at the end of the command sequence.
### Evidence this is correct
- unit tests added for new and old logic
- TODO:... | diff --git a/core/src/core_tests/workflow_tasks.rs b/core/src/core_tests/workflow_tasks.rs
index 9c158284d..d2efc187a 100644
--- a/core/src/core_tests/workflow_tasks.rs
+++ b/core/src/core_tests/workflow_tasks.rs
@@ -2505,7 +2505,7 @@ async fn core_internal_flags() {
}
#[tokio::test]
-async fn post_terminal_command... | 6 | 5 | 1 | [{"id": "G0", "claim": "The new ReorderCommands enum variant should be moved above `TooHigh` and renamed to something more explicit such as `ReorderTerminalCommands`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The post-terminal-commands test... | null |
temporalio__sdk-core__783 | temporalio/sdk-core | 783 | defect | 2bc8d7fd244a320cf9bbbc26145f36a57ffb87dc | d696a12fb5b69d4d7e2860b4d64afcc0c3a4a303 | Attach `temporal-namespace` header to namespace requests | <!--- 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
Attach `tempor... | diff --git a/client/src/lib.rs b/client/src/lib.rs
index 68a8ae7e4..7cc18d4ab 100644
--- a/client/src/lib.rs
+++ b/client/src/lib.rs
@@ -85,6 +85,7 @@ use uuid::Uuid;
static CLIENT_NAME_HEADER_KEY: &str = "client-name";
static CLIENT_VERSION_HEADER_KEY: &str = "client-version";
+static TEMPORAL_NAMESPACE_HEADER_KEY... | 3 | 1 | 1 | [{"id": "G0", "claim": "The reviewer questions whether the new namespaced_request code needs to be a macro at all.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "When the namespace cannot be parsed the code inserts an empty header value rather than omittin... | null |
temporalio__sdk-core__789 | temporalio/sdk-core | 789 | defect | e79eb1124c891d33bfb9a4c5e6a41eaddbf1325b | 3470d30792ade3fad15741e933458fe0c41059fc | Job ordering updates | ## What was changed
Make `UpdateRandomSeed` jobs come after start workflow, but before everything else.
## Why?
These could technically have consequences for later actions, and should go first. It's intuitive.
The more delicate change here is actually sorting `StartWorkflow` before other stuff, which also seems... | diff --git a/core/src/core_tests/updates.rs b/core/src/core_tests/updates.rs
index 5ce1bdf07..218af0376 100644
--- a/core/src/core_tests/updates.rs
+++ b/core/src/core_tests/updates.rs
@@ -46,10 +46,10 @@ async fn replay_with_empty_first_task() {
task.jobs.as_slice(),
[
WorkflowActivation... | 1 | 1 | 1 | [{"id": "G0", "claim": "In the activation job ordering, workflow start must be ordered after signal and update jobs in the same activation (signal/update handlers must run before the primary method for data-loss reasons); concretely, InitializeWorkflow should have ordinal 0 with NotifyHasPatch at 1, rather than Initial... | null |
temporalio__sdk-core__808 | temporalio/sdk-core | 808 | defect | ae98adb3c3952a3eddb30c41a359a7ebfa9d8e21 | 278a25223e0e3d849460e703cf7e09f44cc67f0b | Fix possible NDEs caused by LAs & immediate cancels resolving in different order upon replay | <!--- 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
Always resolve... | diff --git a/core/src/core_tests/workflow_tasks.rs b/core/src/core_tests/workflow_tasks.rs
index 2a30265f6..135a46351 100644
--- a/core/src/core_tests/workflow_tasks.rs
+++ b/core/src/core_tests/workflow_tasks.rs
@@ -125,10 +125,10 @@ async fn single_timer(#[case] worker: Worker, #[case] evict: WorkflowCachingPoli
}
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Python's own job-ordering logic has not been updated to handle the workflow-init job first and probably needs to be updated to do so.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
temporalio__sdk-core__843 | temporalio/sdk-core | 843 | defect | 4925755d17464fd28898e515ac69ccf3fb0d1e65 | 5b1624a652ef2a10054c6c989c65027e529194e8 | Call ShutdownWorker API on worker shutdown | ## What was changed
<!-- Describe what has changed in this PR -->
Added a new call to ShutdownWorker that was recently implemented in the server.
## Why?
<!-- Tell your future self why have you made these changes -->
New server feature already implemented in Go and Java, implementing in core to match.
## Chec... | diff --git a/client/src/raw.rs b/client/src/raw.rs
index 0d12dc261..53bae6e6e 100644
--- a/client/src/raw.rs
+++ b/client/src/raw.rs
@@ -1128,7 +1128,6 @@ proxier! {
shutdown_worker,
ShutdownWorkerRequest,
ShutdownWorkerResponse,
- // TODO: need the namespaced_request label?
|... | 4 | 4 | 1 | [{"id": "G0", "claim": "The three shutdown tests share a lot of code and could be combined into one test using the `rstest` macro.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment \"Call shutdownWorker API to initiate server side shutd... | null |
temporalio__sdk-core__844 | temporalio/sdk-core | 844 | defect | dd37e2946a385090ded0fc3312180027002d4b16 | 3f0e595ecf3b355b4cb930357362f8caa77145e8 | Custom metric buckets | <!--- 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 configur... | diff --git a/Cargo.toml b/Cargo.toml
index 59f2c6c1d..3005b381d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -9,6 +9,7 @@ license-file = "LICENSE.txt"
[workspace.dependencies]
derive_builder = "0.20"
derive_more = { version = "1.0", features = ["constructor", "display", "from", "into", "debug"] }
+thiserror = "2"
to... | 2 | 1 | 1 | [{"id": "G0", "claim": "The `overrides` keys in `HistogramBucketOverrides` probably cannot be `&'static str` since metric names come from users on the lang side at runtime, so they may have to be `String`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "C... | null |
temporalio__sdk-core__846 | temporalio/sdk-core | 846 | defect | dd37e2946a385090ded0fc3312180027002d4b16 | 6b075c1242a97dc277702d6f9290e1db43a6f101 | Support user metadata in child workflow, timer, and activity | ## What was changed
<!-- Describe what has changed in this PR -->
added `static_summary` and `static_details` to child workflow
added `summary` to timer and activity
and plumbed all new fields to user_metadata in command sent to server.
## Why?
<!-- Tell your future self why have you made these changes --... | diff --git a/core/src/core_tests/activity_tasks.rs b/core/src/core_tests/activity_tasks.rs
index b67f94e7f..9c7161711 100644
--- a/core/src/core_tests/activity_tasks.rs
+++ b/core/src/core_tests/activity_tasks.rs
@@ -2,9 +2,9 @@ use crate::{
advance_fut, job_assert, prost_dur,
test_help::{
build_fake... | 4 | 3 | 0 | [{"id": "G0", "claim": "The clone of the timer's shared attrs into the command shouldn't be needed, since the codebase generally doesn't want to clone entire attributes for commands.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'NOTE: Experiment... | null |
temporalio__sdk-core__853 | temporalio/sdk-core | 853 | defect | 52d1bb62aa2b2fc94dc037954a53759a12023bf6 | 859ac125339c988ccc310ccc1a4124c419ae17ef | Add OTel HTTP support | <!--- 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/.github/workflows/per-pr.yml b/.github/workflows/per-pr.yml
index 39542012d..4e134aada 100644
--- a/.github/workflows/per-pr.yml
+++ b/.github/workflows/per-pr.yml
@@ -84,3 +84,31 @@ jobs:
- uses: Swatinem/rust-cache@v2
- run: cargo integ-test
+
+ docker-integ-tests:
+ name: Docker inte... | 7 | 5 | 0 | [{"id": "G0", "claim": "If feasible, the new docker-compose-ci.yaml should be avoided by reusing the existing telemetry compose file (e.g. via an argument or env var), though an almost-copy is acceptable if env vars cannot restructure the containers.", "category": "maintainability", "verdict": "opposed", "priority": "P... | null |
temporalio__sdk-core__864 | temporalio/sdk-core | 864 | defect | f0418936c4eec664faab931d0b174b9e57c65668 | 7ba5caf75a1b46ea66f7106c2dc1beb4f7b131b1 | Write sdk name & version to WFT completes | <!--- 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. Automat... | diff --git a/.gitignore b/.gitignore
index c81a5cf2e..5eb7db15f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,3 +16,4 @@ src/protos/*.rs
/bindings/
/core/machine_coverage/
/.cloud_certs/
+.aider*
diff --git a/core/src/core_tests/workers.rs b/core/src/core_tests/workers.rs
index 44bc5f419..9076b80f1 100644
--- a/co... | 1 | 1 | 1 | [{"id": "G0", "claim": "SDK name and version should be compared independently so that when only the version changed, only the version is written to the WFT completion metadata instead of both being written together.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
temporalio__sdk-core__896 | temporalio/sdk-core | 896 | defect | 93471ac6d8bbf62839148a1bf97ef6dfd49aead0 | e18c2efb22089cd8f7ad9d39e187451505277dbc | Worker Deployment Versioning | <!--- 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
Added necessar... | diff --git a/core-api/src/worker.rs b/core-api/src/worker.rs
index 0be577b6b..857f41048 100644
--- a/core-api/src/worker.rs
+++ b/core-api/src/worker.rs
@@ -5,8 +5,9 @@ use std::{
sync::Arc,
time::Duration,
};
-use temporal_sdk_core_protos::coresdk::{
- ActivitySlotInfo, LocalActivitySlotInfo, NexusSlotIn... | 3 | 3 | 0 | [{"id": "G0", "claim": "The error message should read \"deployment-based versioning\" with a hyphen in \"deployment-based\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The error message should read \"Legacy build id-based versioning\" with a h... | null |
temporalio__sdk-core__909 | temporalio/sdk-core | 909 | defect | 6f2dd3743e788f81afa839d7a423007ce4e6cb46 | 2a017f0ace00af9b59d5a45d928fd44b4fb70705 | Activity pause interrupt heartbeat | ## What was changed
Add `Pause` as a reason for activity cancellations.
## Why?
Provide visibility to consuming lang-SDKs to discern whether the activity has been paused.
Note that if both the cancellation and activity flags are set, the activity will be *cancelled*, **not** paused. This follows the same priori... | diff --git a/core/src/core_tests/activity_tasks.rs b/core/src/core_tests/activity_tasks.rs
index 045ada976..a05408fc9 100644
--- a/core/src/core_tests/activity_tasks.rs
+++ b/core/src/core_tests/activity_tasks.rs
@@ -1241,3 +1241,163 @@ async fn pass_activity_summary_to_metadata() {
.unwrap();
worker.run_... | 4 | 2 | 1 | [{"id": "G0", "claim": "The single-line conditional building the cancel reason in activity_heartbeat_manager.rs is not formatted as rustfmt would, so cargo fmt should be run (or the conditional rewritten).", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
temporalio__sdk-core__916 | temporalio/sdk-core | 916 | defect | 8e5ae54acf6cffdc6aa2273a22b3cc8a11c282cd | c2c7b108537b2deac0fe952715dae746157f1a83 | Don't retry on grpc message 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
Don't retry on... | diff --git a/client/src/retry.rs b/client/src/retry.rs
index 9bc8d5ce1..9f1ae30d8 100644
--- a/client/src/retry.rs
+++ b/client/src/retry.rs
@@ -201,7 +201,11 @@ where
{
type OutError = tonic::Status;
- fn handle(&mut self, current_attempt: usize, e: tonic::Status) -> RetryPolicy<tonic::Status> {
+ fn han... | 5 | 5 | 1 | [{"id": "G0", "claim": "Extract the message-too-large marker out to a static that can be re-used from the worker side.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the OVERSIZE_GRPC_MESSAGE_RUN static inside the test function to avoid acc... | null |
temporalio__sdk-core__925 | temporalio/sdk-core | 925 | defect | cffd7780eb73762d94a0cbe8b4d672b46100b1cc | ee26a92994087e85ed0cf0162476b2cde17dc11c | Fix bad balacing between sticky & nonsticky WFT polling with low slot/poller counts | Fixes an issue that could cause task timeouts when using very small (<2) numbers of WFT slots or pollers. | diff --git a/core-api/src/worker.rs b/core-api/src/worker.rs
index b0a0c56f5..816ada170 100644
--- a/core-api/src/worker.rs
+++ b/core-api/src/worker.rs
@@ -389,6 +389,11 @@ impl SlotSupplierPermit {
pub fn user_data_mut<T: Any + Send + Sync>(&mut self) -> Option<&mut T> {
self.user_data.as_mut().and_then... | 8 | 8 | 4 | [{"id": "G0", "claim": "The sticky-backlog wait condition should be written as `.wait_for(|v| *v == 0)` instead of `*v < 1`, since `v` is a `&usize` and the clearer form says what is meant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A commen... | null |
temporalio__sdk-core__927 | temporalio/sdk-core | 927 | defect | 4d8275431bc92de8ddf62eab9b81e2fbb771b9ea | b8e345b7a3ac1040186669cf3019cc42c82870e3 | Nexus cancellation types | <!--- 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
Added nexus ca... | diff --git a/core/src/worker/workflow/machines/nexus_operation_state_machine.rs b/core/src/worker/workflow/machines/nexus_operation_state_machine.rs
index f59f83c0f..ab408fa62 100644
--- a/core/src/worker/workflow/machines/nexus_operation_state_machine.rs
+++ b/core/src/worker/workflow/machines/nexus_operation_state_ma... | 4 | 4 | 1 | [{"id": "G0", "claim": "The comment explaining the wait in the test should also mention the specifics of why that's the case as it relates to try cancel.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should eliminate the sleep (and the w... | null |
temporalio__sdk-core__961 | temporalio/sdk-core | 961 | defect | c8230579d82f360372abb6c3081b2583de271b5b | ca8d49bdfaaaa488649415ce944e3832ebfd9a52 | Update after skipped WFT NDE fix | <!--- 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
Do not eagerly... | diff --git a/core/src/worker/workflow/history_update.rs b/core/src/worker/workflow/history_update.rs
index d243f7206..6604ac8d9 100644
--- a/core/src/worker/workflow/history_update.rs
+++ b/core/src/worker/workflow/history_update.rs
@@ -8,7 +8,7 @@ use crate::{
use futures_util::{FutureExt, Stream, TryFutureExt, futur... | 2 | 2 | 1 | [{"id": "G0", "claim": "It would be simpler and less bug-prone if wft_started_info only contained indexes of unskipped WFT Started events, so callers would not have to explicitly ignore was_skipped entries.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "... | null |
temporalio__sdk-core__963 | temporalio/sdk-core | 963 | defect | 49a0af54ff88b13c5b906a74df8f283601c2b962 | d252337ba2ae93236892fa8a8ccf4b488a672f3d | Callback-based gRPC client with C interface | ## What was changed
* Added `temporal_client::callback_based` module with a Tonic-compatible Tower service implementation that invokes a callback instead of making a network call
* Added `connect_no_namespace_with_service_override` overload that accepts an optional callback service (and moved stuff from `connect_no... | diff --git a/client/src/callback_based.rs b/client/src/callback_based.rs
new file mode 100644
index 000000000..616a5c21d
--- /dev/null
+++ b/client/src/callback_based.rs
@@ -0,0 +1,125 @@
+//! This module implements support for callback-based gRPC service that has a callback invoked for
+//! every gRPC call instead of ... | 8 | 6 | 1 | [{"id": "G0", "claim": "The raw boxed request leaks if the user callback is never invoked, because on a spawn_blocking error the function returns without freeing the pointer, so the error path should free the box when user code did not run.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope":... | null |
temporalio__sdk-core__967 | temporalio/sdk-core | 967 | defect | d2426f75c70528fc6b4cdb341e666c161fcf195b | dc05b5b3427c0e42c472f4680c2ef8cdd88f2f82 | Fail Nexus start operations on sync failure | <!--- 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
Changed core t... | diff --git a/core/src/worker/workflow/machines/nexus_operation_state_machine.rs b/core/src/worker/workflow/machines/nexus_operation_state_machine.rs
index 86d48c8d0..d24a6fce8 100644
--- a/core/src/worker/workflow/machines/nexus_operation_state_machine.rs
+++ b/core/src/worker/workflow/machines/nexus_operation_state_ma... | 1 | 1 | 1 | [{"id": "G0", "claim": "Confirm, including in the proto comment, that when the start resolution carries a `failed` failure the subsequent `ResolveNexusOperation` job is never sent.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
temporalio__sdk-core__986 | temporalio/sdk-core | 986 | defect | eb74c70c2f4b6d3f56f364b06d6bbc09d01be809 | 9a9cbe7cba3c2fb26d68c48b8ed05efea6d9c857 | feat: Expose envconfig functionality through C bridge | ## What was changed
C bridge code for .NET env config
1. Part of https://github.com/temporalio/sdk-dotnet/issues/490
2. How was this tested:
Integration tests lang-side
3. Any docs updates needed?
No
| diff --git a/core-api/src/envconfig.rs b/core-api/src/envconfig.rs
index 90797dbeb..a43d89727 100644
--- a/core-api/src/envconfig.rs
+++ b/core-api/src/envconfig.rs
@@ -1129,7 +1129,7 @@ namespace = "my-namespace"
..Default::default()
};
- let profile = load_client_config_profile(options,... | 8 | 7 | 3 | [{"id": "G0", "claim": "The docs should be more specific about what format the callback receives on success and failure, since both are just byte arrays.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The load functions should accept a ClientConfi... | null |
temporalio__sdk-core__997 | temporalio/sdk-core | 997 | defect | 3a6e5ffc18a717be7a3670d1880882d70c92af80 | deeb57a717c754fcb3086e2cf52d9c59f9bb00f2 | Add support for configuring client-wide gRPC binary metadata values, validate metadata earlier | <!--- 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
This PR allows... | diff --git a/client/src/lib.rs b/client/src/lib.rs
index 6135acdcb..984e37b59 100644
--- a/client/src/lib.rs
+++ b/client/src/lib.rs
@@ -78,7 +78,10 @@ use tonic::{
body::Body,
client::GrpcService,
codegen::InterceptedService,
- metadata::{MetadataKey, MetadataMap, MetadataValue},
+ metadata::{
+ ... | 2 | 1 | 0 | [{"id": "G0", "claim": "Using a plain anyhow::Error instead of the verbose InvalidHeaderError enum would also have been acceptable to keep things simple since invalid headers are rare, though the reviewer concedes the verbose enum is probably fine too.", "category": "design", "verdict": "uncertain", "priority": "P3", "... | null |
temporalio__sdk-go__1159 | temporalio/sdk-go | 1,159 | defect | e1d76b7c798828302980d483f0981128c97a20c2 | 5f92a356908ee47949de1ff338f2b3b80b62592c | Prevent modifying workflow state in read only contexts | Prevent modifying workflow state in read only contexts. Track the current execution state in the `dispatcher`
An alternative approach would be to check the state when the command is being recorded, I didn't like that option because workflow state can be modified without a command being generated (like reading from a... | diff --git a/internal/internal_update.go b/internal/internal_update.go
index 2b8b1bc57f..634f95147f 100644
--- a/internal/internal_update.go
+++ b/internal/internal_update.go
@@ -66,7 +66,7 @@ type (
Complete(success interface{}, err error)
}
- // UpdateScheduluer allows an update state machine to spawn coroutin... | 6 | 5 | 1 | [{"id": "G0", "claim": "ExecutionState and all of its values should not be exported from the internal package.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The read-only check would read clearer as a method on ExecutionState, or its logic could be move... | null |
temporalio__sdk-go__1180 | temporalio/sdk-go | 1,180 | defect | 746bcf2c3cd9c5cc177d7d1f560736414f8515e3 | e305c8dd8a616d14b6e09b5eb7f181a2991a79af | Fix LA start to close timeout | This PR fixes a few issues with local activities in Got
- `ScheduleToCloseTimeout` was overriding `StartToCloseTimeout` if both were set
- The docs in `LocalActivityOptions` were not accurate
- If a local activity did timeout it would always be considered a `SCHEDULE_TO_CLOSE` timeout and that is not retry able
-... | diff --git a/internal/activity.go b/internal/activity.go
index 5a7fe749ac..67e4287681 100644
--- a/internal/activity.go
+++ b/internal/activity.go
@@ -156,11 +156,13 @@ type (
// LocalActivityOptions stores local activity specific parameters that will be stored inside of a context.
LocalActivityOptions struct {
... | 5 | 3 | 0 | [{"id": "G0", "claim": "The expireTime check — calculated from ScheduleToCloseTimeout and workflow time but applied only on the second attempt — seems wrong and may be removable.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The comments on both Lo... | null |
temporalio__sdk-go__1219 | temporalio/sdk-go | 1,219 | defect | a7f9cdf20a9a2e5fc57684882947b3c3386f5c23 | a6a5910ced5262d9933cae38def7f251fb07b048 | Add slog adapter | Add an adapter for the new `slog` and add support for an optional interface `Logger` can implement to skip caller stacks.
Marking as draft because the adapter and skip feature need unit tests and I need to read how to test `slog`
closes https://github.com/temporalio/sdk-go/issues/1158
closes https://github.com... | diff --git a/internal/internal_event_handlers.go b/internal/internal_event_handlers.go
index 3bb3f05894..e72286f28d 100644
--- a/internal/internal_event_handlers.go
+++ b/internal/internal_event_handlers.go
@@ -239,7 +239,8 @@ func newWorkflowExecutionEventHandler(
mutableSideEffectCallCounter: make(map[string]int),... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new optional logger interface should be renamed to a method name common loggers are unlikely to already implement (e.g. WithCallerSkip / AddCallerSkipTemporal / TemporalSkipLogger), because users whose loggers coincidentally implement AddCallerSkip with a matching signature could break when ... | null |
temporalio__sdk-go__1230 | temporalio/sdk-go | 1,230 | defect | 7bf78b86091e162fce54727dd406898aab4dff95 | f63ec591e75467c83184dae6c1dfa573500ed847 | Code inside workflow.SideEffect is deterministic | ## What was changed
Now code inside `workflow.SideEffect` is not analyzed
| diff --git a/contrib/tools/workflowcheck/determinism/checker.go b/contrib/tools/workflowcheck/determinism/checker.go
index 852e13a907..3175ba56e7 100644
--- a/contrib/tools/workflowcheck/determinism/checker.go
+++ b/contrib/tools/workflowcheck/determinism/checker.go
@@ -34,6 +34,7 @@ import (
"strings"
"sync"
+ "... | 4 | 3 | 1 | [{"id": "G0", "claim": "The deterministic-wrapper default for workflow.SideEffect should be hardcoded as always safe rather than exposing the DeterministicWrappers map through configuration.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The default wrap... | null |
temporalio__sdk-go__1245 | temporalio/sdk-go | 1,245 | defect | 22435a7a0b22d16e6f1c0b9159b6c6be3edb1d45 | c84f1d138d8a73bdac1217f6a3be612dbc0f1d24 | Add SDK version and name to history | Add SDK name and version to the SDK metadata on WFT complete. Only write if this is the first time or a change.
closes https://github.com/temporalio/sdk-go/issues/1194
| diff --git a/internal/internal_event_handlers.go b/internal/internal_event_handlers.go
index e72286f28d..881aa8fe16 100644
--- a/internal/internal_event_handlers.go
+++ b/internal/internal_event_handlers.go
@@ -166,6 +166,10 @@ type (
contextPropagators []ContextPropagator
deadlockDetectionTimeout time.Dura... | 2 | 1 | 0 | [{"id": "G0", "claim": "Rename the getter `getNewSdkName` to `getNewSdkNameAndReset` so the name conveys that the getter mutates state, the reviewer noting this is a bit pedantic and not required.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "W... | null |
temporalio__sdk-go__1247 | temporalio/sdk-go | 1,247 | defect | 9dc99edfa118527c1ca866919d0975987e0b9c45 | ee2567bb9b55f4ca9bed3a635f0cec61e94d79ae | Add TaskReachability API | Add task reachability API `GetWorkerTaskReachability` to Go.
closes https://github.com/temporalio/sdk-go/issues/1237 | diff --git a/.github/workflows/docker/dynamic-config-custom.yaml b/.github/workflows/docker/dynamic-config-custom.yaml
index a77f023b96..c586461ebf 100644
--- a/.github/workflows/docker/dynamic-config-custom.yaml
+++ b/.github/workflows/docker/dynamic-config-custom.yaml
@@ -14,4 +14,6 @@ frontend.workerVersioningDataAP... | 4 | 4 | 1 | [{"id": "G0", "claim": "The Reachable field should be renamed BuildIDReachability to match the names used by sibling SDKs.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "BuildIDReachability should have an UnretrievedTaskQueues container like other SDKs."... | null |
temporalio__sdk-go__1267 | temporalio/sdk-go | 1,267 | defect | 83199af7357c499bed439814dd67373fded73e3c | 5f2116808334e03a060555456d6cce5565b5b92e | loggerWith.WithCallerSkip expand keyvals | Fix a regression introduced in https://github.com/temporalio/sdk-go/pull/1219 that caused loggers wrapped with `withLogger` to log key values as a slice
another option is to remove `WithCallerSkip` from `withLogger`
closes https://github.com/temporalio/sdk-go/issues/1266
| diff --git a/internal/log/logger_test.go b/internal/log/logger_test.go
index 66a6195d46..a9772f4733 100644
--- a/internal/log/logger_test.go
+++ b/internal/log/logger_test.go
@@ -42,6 +42,16 @@ func TestMemoryLogger_With(t *testing.T) {
assert.Equal(t, "INFO message2 p4 4\n", logger.Lines()[1])
}
+func TestMemory... | 2 | 2 | 0 | [{"id": "G0", "claim": "The pre-existing comment above With contains typos ('returns new logger the prepend every log entry') and should be fixed while the PR touches this file.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The docstring of the... | null |
temporalio__sdk-go__1325 | temporalio/sdk-go | 1,325 | defect | f823b641db34a51bf9a48289e188c0be64fe1cb1 | a3026d84581e29d8e1cd872ba91a44e53f58e9ed | Always yield when registering update handles | Always yield when registering update handles. When we register an update handle we need to yield to allow any queued update to run. Previously we only yielded if we knew we had queued updates to run, but that logic does not work since on rejected updates are not stored in history we can't know if we should yield or not... | diff --git a/internal/internal_event_handlers.go b/internal/internal_event_handlers.go
index d201601f3c..57447d7661 100644
--- a/internal/internal_event_handlers.go
+++ b/internal/internal_event_handlers.go
@@ -894,19 +894,13 @@ func (wc *workflowEnvironmentImpl) QueueUpdate(name string, f func()) {
wc.bufferedUpdate... | 3 | 1 | 0 | [{"id": "G0", "claim": "The tests added for the rejected validator update don't seem to do anything that would trigger a replay of the bug being fixed; the reviewer expected them to force a replay (e.g. kill and restart a worker).", "category": "testing", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, ... | null |
temporalio__sdk-go__1335 | temporalio/sdk-go | 1,335 | defect | 5a64898282bacafc6becd41a5c87ef224a805cc1 | 97e65831b59e056e704bb6423ed6b3c4c53f8668 | Add last BuildID to workflow 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
Add the BuildI... | diff --git a/internal/internal_task_handlers.go b/internal/internal_task_handlers.go
index f146e52960..f59c71c936 100644
--- a/internal/internal_task_handlers.go
+++ b/internal/internal_task_handlers.go
@@ -179,6 +179,7 @@ type (
next []*historypb.HistoryEvent
nextFlags []sdkFlag
binaryChecksum ... | 3 | 1 | 0 | [{"id": "G0", "claim": "The nil check could be simplified to a single line: buildID = completedAttrs.GetWorkerVersion().GetBuildId().", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test does not need worker versioning; build IDs work wit... | null |
temporalio__sdk-go__1338 | temporalio/sdk-go | 1,338 | defect | 2f61d2f81fbb21e246965814d5e76be9a5c09974 | 47f7c579610d54bb36b6391a422bf15baaa6bb34 | Fix flaky build id issue | This should fix the only case where I could imagine the id not being set. Could not repro locally. | diff --git a/internal/internal_task_handlers.go b/internal/internal_task_handlers.go
index 6bd5b1e2d..433990617 100644
--- a/internal/internal_task_handlers.go
+++ b/internal/internal_task_handlers.go
@@ -1028,10 +1028,16 @@ ProcessEvents:
}
if isReplay {
w.workflowInfo.currentTaskBuildID = currentBuildID
- ... | 3 | 2 | 0 | [{"id": "G0", "claim": "The comment above the worker-build-ID assignment ('Query only tasks should use the build ID from the workflow task...') seems irrelevant now that the branch condition no longer excludes replays.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id... | null |
temporalio__sdk-go__1340 | temporalio/sdk-go | 1,340 | defect | c1744ee2c8cb684c1faaa895c497c23a8591b5a5 | d97434f81c2d154a6c41a83d9a1714042c66ddeb | Add deterministic range over map helper | Add deterministic range over map helpers for ordered and unordered maps.
Ideally this would be implemented with [range over func](https://github.com/golang/go/wiki/RangefuncExperiment), but it is only experimental in golang 1.22 so we would have to wait over a year to use it assuming it is stabilized in 1.23.
Clo... | diff --git a/internal/workflow.go b/internal/workflow.go
index 0ef1c26350..55a2fbc628 100644
--- a/internal/workflow.go
+++ b/internal/workflow.go
@@ -31,6 +31,9 @@ import (
"strings"
"time"
+ "golang.org/x/exp/constraints"
+ "golang.org/x/exp/slices"
+
"google.golang.org/protobuf/types/known/durationpb"
co... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new public helpers are inconsistently named — the workflow wrappers are called SortedKeys/SortedKeysFunc while their doc comments and the internal functions say DeterministicKeys — and the reviewer asks the author to pick one of the two names.", "category": "maintainability", "verdict": "sup... | null |
temporalio__sdk-go__1362 | temporalio/sdk-go | 1,362 | defect | 41d2288301cc205de56e1d7f5841e56edcb5f40d | d4d317e4d8f2a9a809016a0f3668655de499b37b | Exit coroutine in order | Run coroutine exit in sequence to avoid race detector errors on defers in coroutines.
closes https://github.com/temporalio/sdk-go/issues/1235 | diff --git a/internal/internal_coroutines_test.go b/internal/internal_coroutines_test.go
index 1854c4dee7..af1ac672ba 100644
--- a/internal/internal_coroutines_test.go
+++ b/internal/internal_coroutines_test.go
@@ -28,7 +28,10 @@ import (
"errors"
"fmt"
"runtime"
+ "strconv"
"strings"
+ "sync/atomic"
+
"testi... | 1 | 1 | 1 | [{"id": "G0", "claim": "The reviewer asks for confirmation that returning from dispatcher Close() before the exit/unblock signals have even been sent is safe, noting exit may have always been non-blocking and the early return may therefore be unsafe.", "category": "correctness", "verdict": "supported", "priority": "P1"... | null |
temporalio__sdk-go__1391 | temporalio/sdk-go | 1,391 | defect | 30da688037d1943506d704942eccd3327f152bdb | 63ca612bd4fcc689115be6432fbffb8c22c26e71 | Clarify OnUpsertTypedSearchAttributes and exclude nil attributes from SearchAttributes | Clarify `OnUpsertTypedSearchAttributes` does not expect the actual args to `workflow.UpsertTypedSearchAttributes` , but the result `temporal.SearchAttributes`. We can't take the actual args since we can't have mock asserts on functions. | diff --git a/internal/internal_search_attributes.go b/internal/internal_search_attributes.go
index 59344d0d9d..23f1f70c28 100644
--- a/internal/internal_search_attributes.go
+++ b/internal/internal_search_attributes.go
@@ -287,19 +287,13 @@ func NewSearchAttributes(attributes ...SearchAttributeUpdate) SearchAttributes ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment in GetUntypedValues misspells \"Filter\" as \"Filer\" and should read \"// Filter out nil values\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
temporalio__sdk-go__1407 | temporalio/sdk-go | 1,407 | defect | d9a574d4ffa4f43e4a9ea4e133feeb5fedb0392c | 0bcc0796f4469bee90969bd689c9ca50964eee6a | Update api-go to allow invalid UTF-8 in proto strings | ## What was changed
I've upgraded the version of our Go API in order to allow invalid UTF-8 data in our proto strings.
Note that the tests for this behavior are in a separate pr (#1408) as they require unreleased changes to the server.
## Why?
The version of gogo/protobuf we used allowed invalid UTF-8 in string... | diff --git a/contrib/datadog/go.mod b/contrib/datadog/go.mod
index 4d759c9f1..141af4eff 100644
--- a/contrib/datadog/go.mod
+++ b/contrib/datadog/go.mod
@@ -25,7 +25,7 @@ require (
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/mock v1.6.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
-... | 3 | 3 | 3 | [{"id": "G0", "claim": "A note about the protolegacy build tag being effectively required should be added to the documentation.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The TestBasic_InvalidUTF8 test exercises no invalid UTF-8 despite its na... | null |
temporalio__sdk-go__1416 | temporalio/sdk-go | 1,416 | defect | 34ef0a7d426e58ae09544098f3b7e1503173b21f | 9076bc3835b46a7114d5a570e62da999e6a187df | Make client Dial context controlable by callers | <!--- 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/client/client.go b/client/client.go
index e9b822acc5..f40089a83e 100644
--- a/client/client.go
+++ b/client/client.go
@@ -668,7 +668,14 @@ var MetricsNopHandler = metrics.NopHandler
// to the server eagerly and will return an error if the server is not
// available.
func Dial(options Options) (Client, e... | 3 | 3 | 2 | [{"id": "G0", "claim": "Removing the hardcoded 5s timeout whenever the caller's context already has a deadline is not backwards compatible; the get-system-info call should have a timeout applied on top of the given context no matter what (min of user deadline or 5s, still cancelable).", "category": "correctness", "verd... | null |
temporalio__sdk-go__1470 | temporalio/sdk-go | 1,470 | defect | e8147ac49434c03e54e65218e90374951050faba | 006f34dc3bfd317f7148dc514bef09624f726228 | Add new VersioningIntent options | <!--- 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/worker_version_sets.go b/internal/worker_version_sets.go
index b2aa792ee..23bf99102 100644
--- a/internal/worker_version_sets.go
+++ b/internal/worker_version_sets.go
@@ -45,10 +45,20 @@ const (
// VersioningIntentCompatible indicates that the command should run on a worker with compatible
// ... | 3 | 2 | 0 | [{"id": "G0", "claim": "One unrelated integration test (TestScheduleBackfillCreate) fails when run against the new server; add the provided one-line fix (time.Sleep from 5s to 10s in test/integration_test.go) so the test suite passes.", "category": "testing", "verdict": "uncertain", "priority": "P0", "scope": "pre_exis... | null |
temporalio__sdk-go__1472 | temporalio/sdk-go | 1,472 | defect | c69831e92d7f52e564421fcb99ed49f693c5acbe | ed21e614fc5ae5621be33f34f750c4eb26ba263f | Add request failure code label to metrics | <!--- 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
Added error co... | diff --git a/internal/client.go b/internal/client.go
index 3a8084e55..609ee9d5a 100644
--- a/internal/client.go
+++ b/internal/client.go
@@ -471,6 +471,9 @@ type (
// worker options, the ones here wrap the ones in worker options. The same
// interceptor should not be set here and in worker options.
Interceptor... | 1 | 1 | 0 | [{"id": "G0", "claim": "Replace the Rust-style triple-slash doc comment on DisableErrorCodeMetricTags with a standard Go `//` comment.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
temporalio__sdk-go__1498 | temporalio/sdk-go | 1,498 | defect | 486c233b290e4d018f3218042c644eefdae992d1 | 6afc6844c177a23e2c24beadb2942f27441638f9 | testsuite.StartDevServer: Respect timeout during dial | ## What was changed
**Background:**
testsuite.StartDevServer accepts a context.Context
meant to indicate how long the caller is willing to wait for the result.
This context is used when downloading the Temporal CLI,
but is not considered when trying to dial to the server in
`waitServerReady`.
**Change:**
This changes... | diff --git a/testsuite/devserver.go b/testsuite/devserver.go
index 8b922a66f6..ba10b5e7ed 100644
--- a/testsuite/devserver.go
+++ b/testsuite/devserver.go
@@ -339,9 +339,9 @@ func extractZip(r io.Reader, toExtract string, w io.Writer) error {
// Returns a connected client created using the provided options.
func wait... | 1 | 1 | 0 | [{"id": "G0", "claim": "Would prefer a ticker (time.Ticker) instead of time.After for the interval wait between retry attempts in retryFor.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
temporalio__sdk-go__1509 | temporalio/sdk-go | 1,509 | defect | d4ff1f6353f292fe412d061dec8dca498ad5bb26 | 9716d58053879380971afb33a94a8a3ee61526f9 | Allow SDK to handle speculative WFT with command events | Allow SDK to handle speculative WFT with command events. Originally I thought this change was going to be quite bad, but I realized I didn't need to touch the cacheing logic and could keep it all in the history iteration. | diff --git a/internal/internal_task_handlers.go b/internal/internal_task_handlers.go
index 70b718f84..201414ae8 100644
--- a/internal/internal_task_handlers.go
+++ b/internal/internal_task_handlers.go
@@ -115,8 +115,10 @@ type (
isWorkflowCompleted bool
result *commonpb.Payloads
err ... | 4 | 4 | 0 | [{"id": "G0", "claim": "The comment above previousStartedEventID should be reworded, per the suggested block, to \"previousStartedEventID is the ID of the workflow task started event of the previous workflow task.\"", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.