Skip to content

Commit 4cc0255

Browse files
authored
Merge branch 'main' into feature/issue-1213
2 parents ac84eb6 + 2872b53 commit 4cc0255

54 files changed

Lines changed: 6847 additions & 1073 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/heavy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: # rebuild any PRs and main branch changes
44
pull_request:
55
push:
66
branches:
7-
- master
7+
- main
88

99
permissions:
1010
contents: read

.github/workflows/per-pr.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: # rebuild any PRs and main branch changes
44
pull_request:
55
push:
66
branches:
7-
- master
7+
- main
88

99
permissions:
1010
contents: read
@@ -17,7 +17,7 @@ concurrency:
1717
jobs:
1818
build-and-lint:
1919
name: "Format, docs, and lint"
20-
timeout-minutes: ${{ github.ref == 'refs/heads/master' && 15 || 10 }}
20+
timeout-minutes: ${{ github.ref == 'refs/heads/main' && 15 || 10 }}
2121
runs-on: ubuntu-latest
2222
steps:
2323
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
@@ -33,7 +33,7 @@ jobs:
3333
- run: rustup component add rustfmt clippy
3434
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
3535
with:
36-
save-if: ${{ github.ref == 'refs/heads/master' }}
36+
save-if: ${{ github.ref == 'refs/heads/main' }}
3737
- run: cargo fmt --all --check
3838
- run: cargo doc --workspace --all-features --no-deps
3939
env:
@@ -46,7 +46,7 @@ jobs:
4646
test:
4747
name: Unit Tests
4848
# Give extra time to ensure pushes to main have time to populate the cache
49-
timeout-minutes: ${{ matrix.timeoutMinutes || (github.ref == 'refs/heads/master' && 20 || 15) }}
49+
timeout-minutes: ${{ matrix.timeoutMinutes || (github.ref == 'refs/heads/main' && 20 || 15) }}
5050
strategy:
5151
fail-fast: false
5252
matrix:
@@ -82,7 +82,7 @@ jobs:
8282
core.exportVariable('RUSTFLAGS', '-Csymbol-mangling-version=v0');
8383
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
8484
with:
85-
save-if: ${{ github.ref == 'refs/heads/master' }}
85+
save-if: ${{ github.ref == 'refs/heads/main' }}
8686
- run: cargo test -- --include-ignored --nocapture
8787
- name: Find test executable for cgroup tests
8888
id: find-cgroup-test
@@ -107,7 +107,7 @@ jobs:
107107

108108
msrv:
109109
name: "Verify MSRV"
110-
timeout-minutes: ${{ github.ref == 'refs/heads/master' && 15 || 10 }}
110+
timeout-minutes: ${{ github.ref == 'refs/heads/main' && 15 || 10 }}
111111
runs-on: ubuntu-latest
112112
steps:
113113
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
@@ -123,7 +123,7 @@ jobs:
123123
- run: rustup component add rustfmt clippy
124124
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
125125
with:
126-
save-if: ${{ github.ref == 'refs/heads/master' }}
126+
save-if: ${{ github.ref == 'refs/heads/main' }}
127127
key: msrv
128128
- run: cargo install cargo-msrv
129129
- run: cargo msrv verify
@@ -150,7 +150,7 @@ jobs:
150150
151151
integ-tests:
152152
name: Integ tests
153-
timeout-minutes: ${{ github.ref == 'refs/heads/master' && 30 || 25 }}
153+
timeout-minutes: ${{ github.ref == 'refs/heads/main' && 30 || 25 }}
154154
strategy:
155155
fail-fast: false
156156
matrix:
@@ -185,18 +185,18 @@ jobs:
185185
core.exportVariable('RUSTFLAGS', '-Csymbol-mangling-version=v0');
186186
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
187187
with:
188-
save-if: ${{ github.ref == 'refs/heads/master' }}
188+
save-if: ${{ github.ref == 'refs/heads/main' }}
189189
- run: cargo integ-test
190190

191191
cloud-tests:
192-
if: github.event.pull_request.head.repo.full_name == '' || github.event.pull_request.head.repo.full_name == 'temporalio/sdk-core'
192+
if: github.event.pull_request.head.repo.full_name == '' || github.event.pull_request.head.repo.full_name == 'temporalio/sdk-rust'
193193
name: Cloud tests
194194
env:
195195
TEMPORAL_CLOUD_ADDRESS: https://${{ vars.TEMPORAL_CLIENT_NAMESPACE }}.tmprl.cloud:7233
196196
TEMPORAL_NAMESPACE: ${{ vars.TEMPORAL_CLIENT_NAMESPACE }}
197197
TEMPORAL_CLIENT_CERT: ${{ secrets.TEMPORAL_CLIENT_CERT }}
198198
TEMPORAL_CLIENT_KEY: ${{ secrets.TEMPORAL_CLIENT_KEY }}
199-
timeout-minutes: ${{ github.ref == 'refs/heads/master' && 25 || 20 }}
199+
timeout-minutes: ${{ github.ref == 'refs/heads/main' && 25 || 20 }}
200200
runs-on: ubuntu-latest
201201
steps:
202202
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
@@ -210,7 +210,7 @@ jobs:
210210

211211
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
212212
with:
213-
save-if: ${{ github.ref == 'refs/heads/master' }}
213+
save-if: ${{ github.ref == 'refs/heads/main' }}
214214
- run: cargo test --features=test-utilities --test cloud_tests
215215

216216
docker-integ-tests:
@@ -221,7 +221,7 @@ jobs:
221221
TEMPORAL_CLIENT_CERT: ${{ secrets.TEMPORAL_CLIENT_CERT }}
222222
TEMPORAL_CLIENT_KEY: ${{ secrets.TEMPORAL_CLIENT_KEY }}
223223
DOCKER_PROMETHEUS_RUNNING: true
224-
timeout-minutes: ${{ github.ref == 'refs/heads/master' && 25 || 20 }}
224+
timeout-minutes: ${{ github.ref == 'refs/heads/main' && 25 || 20 }}
225225
runs-on: ubuntu-latest
226226
steps:
227227
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
@@ -238,7 +238,7 @@ jobs:
238238
compose-file: ./etc/docker/docker-compose-ci.yaml
239239
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
240240
with:
241-
save-if: ${{ github.ref == 'refs/heads/master' }}
241+
save-if: ${{ github.ref == 'refs/heads/main' }}
242242
- run: cargo integ-test docker_
243243

244244
examples:
@@ -255,7 +255,7 @@ jobs:
255255
repo-token: ${{ secrets.GITHUB_TOKEN }}
256256
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
257257
with:
258-
save-if: ${{ github.ref == 'refs/heads/master' }}
258+
save-if: ${{ github.ref == 'refs/heads/main' }}
259259
- name: Build examples
260260
run: cargo build --examples -p temporalio-sdk --features examples
261261
- name: Install Temporal CLI

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributor Guidance for `sdk-core`
1+
# Contributor Guidance for `sdk-rust`
22

33
This repository provides a Rust workspace for the Temporal Core SDK and related crates. Use this
44
document as your quick reference when submitting pull requests.

ARCHITECTURE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ definitions. The actual implementations of this "service" are not generated by g
112112
the messages themselves are, and make it easier to hit the ground running in new languages.
113113

114114
See the latest API
115-
definition [here](https://github.com/temporalio/sdk-core/tree/master/sdk-core-protos/protos/local/temporal/sdk/core)
115+
definition [here](https://github.com/temporalio/sdk-rust/tree/main/crates/common/protos/local/temporal/sdk/core)
116116

117117
## Other topics
118118

crates/client/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
22
name = "temporalio-client"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "2024"
55
authors = ["Temporal Technologies Inc. <sdk@temporal.io>"]
66
license-file = { workspace = true }
77
description = "Clients for interacting with Temporal"
88
homepage = "https://temporal.io/"
9-
repository = "https://github.com/temporalio/sdk-core"
9+
repository = "https://github.com/temporalio/sdk-rust"
1010
keywords = ["temporal", "workflow"]
1111
categories = ["development-tools"]
1212
readme = "README.md"
@@ -51,7 +51,7 @@ rand = "0.10"
5151

5252
[dependencies.temporalio-common]
5353
path = "../common"
54-
version = "0.2"
54+
version = "0.3"
5555

5656
[dev-dependencies]
5757
assert_matches = "1"

crates/client/src/grpc.rs

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,6 +1582,114 @@ proxier! {
15821582
r.extensions_mut().insert(labels);
15831583
}
15841584
);
1585+
(
1586+
count_nexus_operation_executions,
1587+
CountNexusOperationExecutionsRequest,
1588+
CountNexusOperationExecutionsResponse,
1589+
|r| {
1590+
let labels = namespaced_request!(r);
1591+
r.extensions_mut().insert(labels);
1592+
}
1593+
);
1594+
(
1595+
create_worker_deployment,
1596+
CreateWorkerDeploymentRequest,
1597+
CreateWorkerDeploymentResponse,
1598+
|r| {
1599+
let labels = namespaced_request!(r);
1600+
r.extensions_mut().insert(labels);
1601+
}
1602+
);
1603+
(
1604+
create_worker_deployment_version,
1605+
CreateWorkerDeploymentVersionRequest,
1606+
CreateWorkerDeploymentVersionResponse,
1607+
|r| {
1608+
let labels = namespaced_request!(r);
1609+
r.extensions_mut().insert(labels);
1610+
}
1611+
);
1612+
(
1613+
delete_nexus_operation_execution,
1614+
DeleteNexusOperationExecutionRequest,
1615+
DeleteNexusOperationExecutionResponse,
1616+
|r| {
1617+
let labels = namespaced_request!(r);
1618+
r.extensions_mut().insert(labels);
1619+
}
1620+
);
1621+
(
1622+
describe_nexus_operation_execution,
1623+
DescribeNexusOperationExecutionRequest,
1624+
DescribeNexusOperationExecutionResponse,
1625+
|r| {
1626+
let labels = namespaced_request!(r);
1627+
r.extensions_mut().insert(labels);
1628+
}
1629+
);
1630+
(
1631+
list_nexus_operation_executions,
1632+
ListNexusOperationExecutionsRequest,
1633+
ListNexusOperationExecutionsResponse,
1634+
|r| {
1635+
let labels = namespaced_request!(r);
1636+
r.extensions_mut().insert(labels);
1637+
}
1638+
);
1639+
(
1640+
poll_nexus_operation_execution,
1641+
PollNexusOperationExecutionRequest,
1642+
PollNexusOperationExecutionResponse,
1643+
|r| {
1644+
let labels = namespaced_request!(r);
1645+
r.extensions_mut().insert(labels);
1646+
}
1647+
);
1648+
(
1649+
request_cancel_nexus_operation_execution,
1650+
RequestCancelNexusOperationExecutionRequest,
1651+
RequestCancelNexusOperationExecutionResponse,
1652+
|r| {
1653+
let labels = namespaced_request!(r);
1654+
r.extensions_mut().insert(labels);
1655+
}
1656+
);
1657+
(
1658+
start_nexus_operation_execution,
1659+
StartNexusOperationExecutionRequest,
1660+
StartNexusOperationExecutionResponse,
1661+
|r| {
1662+
let labels = namespaced_request!(r);
1663+
r.extensions_mut().insert(labels);
1664+
}
1665+
);
1666+
(
1667+
terminate_nexus_operation_execution,
1668+
TerminateNexusOperationExecutionRequest,
1669+
TerminateNexusOperationExecutionResponse,
1670+
|r| {
1671+
let labels = namespaced_request!(r);
1672+
r.extensions_mut().insert(labels);
1673+
}
1674+
);
1675+
(
1676+
update_worker_deployment_version_compute_config,
1677+
UpdateWorkerDeploymentVersionComputeConfigRequest,
1678+
UpdateWorkerDeploymentVersionComputeConfigResponse,
1679+
|r| {
1680+
let labels = namespaced_request!(r);
1681+
r.extensions_mut().insert(labels);
1682+
}
1683+
);
1684+
(
1685+
validate_worker_deployment_version_compute_config,
1686+
ValidateWorkerDeploymentVersionComputeConfigRequest,
1687+
ValidateWorkerDeploymentVersionComputeConfigResponse,
1688+
|r| {
1689+
let labels = namespaced_request!(r);
1690+
r.extensions_mut().insert(labels);
1691+
}
1692+
);
15851693
}
15861694

15871695
proxier! {

crates/common/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
22
name = "temporalio-common"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "2024"
55
authors = ["Temporal Technologies Inc. <sdk@temporal.io>"]
66
license-file = { workspace = true }
77
description = "Common functionality for the Temporal SDK Core, Client, and Rust SDK"
88
homepage = "https://temporal.io/"
9-
repository = "https://github.com/temporalio/sdk-core"
9+
repository = "https://github.com/temporalio/sdk-rust"
1010
keywords = ["temporal", "workflow"]
1111
categories = ["development-tools"]
1212
exclude = ["protos/*/.github/*"]

crates/common/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ const SERDE_DERIVE_PREFIXES: &[&str] = &[
3030
".grpc",
3131
".temporal.api.activity",
3232
".temporal.api.batch",
33+
".temporal.api.callback",
3334
".temporal.api.cloud",
3435
".temporal.api.command",
36+
".temporal.api.compute",
3537
".temporal.api.deployment",
3638
".temporal.api.filter",
3739
".temporal.api.history",

crates/common/protos/api_upstream/.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
_**READ BEFORE MERGING:** All PRs require approval by both Server AND SDK teams before merging! This is why the number of required approvals is "2" and not "1"--two reviewers from the same team is NOT sufficient. If your PR is not approved by someone in BOTH teams, it may be summarily reverted._
2-
31
<!-- Describe what has changed in this PR -->
42
**What changed?**
53

crates/common/protos/api_upstream/.github/workflows/trigger-api-go-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
esac
5757
5858
gh workflow run update-proto.yml -R https://github.com/temporalio/api-go \
59-
-r master \
59+
-r "${BRANCH}" \
6060
-f branch="${BRANCH}" \
6161
-f commit_author="${COMMIT_AUTHOR}" \
6262
-f commit_author_email="${COMMIT_AUTHOR_EMAIL}" \

0 commit comments

Comments
 (0)