Skip to content

Commit 242b97e

Browse files
rkannan82claude
andcommitted
Merge main and update go.temporal.io/api to include PR #711
Resolves merge conflicts in executions.proto, mutable_state_impl_test.go, and go.sum. Updates api-go replace directive to 5423d0dd678a which includes the worker control task queue attributes from temporalio/api#711. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2 parents 5390759 + 7cc180e commit 242b97e

1,075 files changed

Lines changed: 65045 additions & 23969 deletions

File tree

Some content is hidden

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

.github/.golangci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ linters:
3434
forbid:
3535
- pattern: time.Sleep
3636
msg: "Please use require.Eventually or assert.Eventually instead unless you've no other option"
37-
- pattern: panic
37+
- pattern: "^panic$"
3838
msg: "Please avoid using panic in application code"
3939
- pattern: time\.Now
4040
msg: "Using time.Now is not allowed in chasm/lib package (non-test files), use ctx.Now(component) instead"
@@ -46,6 +46,8 @@ linters:
4646
msg: "Do not use .UnixNano() for Cassandra timestamps. Use p.UnixMilliseconds() which returns milliseconds."
4747
- pattern: FunctionalTestBase
4848
msg: "FunctionalTestBase is deprecated. Use testcore.NewEnv(t) instead. See docs/development/testing.md for details."
49+
- pattern: context\.Background\(\)
50+
msg: "Avoid context.Background() in tests; use t.Context() to respect test timeouts and cancellation"
4951
depguard:
5052
rules:
5153
main:
@@ -67,6 +69,9 @@ linters:
6769
# internal server pbs have their own suffix to avoid naming conflicts
6870
- pkg: go.temporal.io/server/api/(\w+)/v1
6971
alias: ${1}spb
72+
testifylint:
73+
disable:
74+
- suite-method-signature # parallelsuite.Run supports extra args passed to Test* methods
7075
exhaustive:
7176
# Presence of "default" case in switch statements satisfies exhaustiveness,
7277
# even if all enum members are not listed.
@@ -191,6 +196,10 @@ linters:
191196
text: "FunctionalTestBase"
192197
linters:
193198
- forbidigo
199+
- path-except: tests/.+_test\.go # only enforce in test files
200+
text: "context.Background"
201+
linters:
202+
- forbidigo
194203
- path: _test\.go|tests/.+\.go|common/testing/
195204
text: "(cyclomatic|cognitive)" # false positives when using subtests
196205
linters:

.github/CODEOWNERS

Lines changed: 93 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,96 @@
11
# Syntax is here:
22
# https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax
33

4-
* @temporalio/server @temporalio/cgs
4+
* @temporalio/server @temporalio/cgs @temporalio/nexus
5+
6+
# CHASM
7+
8+
# This only matching files directly in /chasm/ folder, but not any nested files
9+
/chasm/* @temporalio/oss-foundations
10+
11+
/chasm/lib/activity/ @temporalio/act
12+
/chasm/lib/scheduler/ @temporalio/act
13+
14+
/chasm/lib/nexusoperation/ @temporalio/act @temporalio/nexus
15+
/chasm/lib/callback/ @temporalio/act @temporalio/nexus
16+
17+
# Service Clients
18+
19+
/client/matching/ @temporalio/oss-matching
20+
21+
# Common
22+
23+
/common/taskqueue/ @temporalio/oss-matching
24+
/common/worker_versioning/ @temporalio/oss-matching
25+
/common/tqid/ @temporalio/oss-matching
26+
27+
/common/archiver/ @temporalio/oss-foundations
28+
/common/searchattribute/ @temporalio/oss-foundations
29+
30+
/common/nexus/ @temporalio/act @temporalio/nexus
31+
32+
/common/tasks/ @temporalio/oss-foundations @temporalio/cgs
33+
/common/persistence/ @temporalio/oss-foundations @temporalio/oss-matching @temporalio/cgs
34+
35+
# Components
36+
37+
/components/ @temporalio/act @temporalio/nexus
38+
39+
# Proto Definitions
40+
41+
/proto/internal/temporal/server/api/schedule/ @temporalio/act
42+
43+
/proto/internal/temporal/server/api/deployment/ @temporalio/oss-matching
44+
/proto/internal/temporal/server/api/matchingservice/ @temporalio/oss-matching
45+
/proto/internal/temporal/server/api/taskqueue/ @temporalio/oss-matching
46+
47+
/proto/internal/temporal/server/api/archiver/ @temporalio/oss-foundations
48+
49+
/proto/internal/temporal/server/api/replication/ @temporalio/cgs
50+
51+
# DB Schema
52+
/schema/**/visibility/ @temporalio/oss-foundations
53+
54+
# History Service
55+
56+
/service/history/archival/ @temporalio/oss-foundations
57+
/service/history/*chasm* @temporalio/oss-foundations
58+
/service/history/deletemanager/ @temporalio/oss-foundations
59+
/service/history/queues/ @temporalio/oss-foundations
60+
/service/history/shard/ @temporalio/oss-foundations
61+
/service/history/*queue* @temporalio/oss-foundations
62+
/service/history/*statemachine* @temporalio/oss-foundations
63+
64+
/service/history/ndc/ @temporalio/cgs
65+
/service/history/replication/ @temporalio/cgs
66+
67+
/service/history/tasks/ @temporalio/oss-foundations @temporalio/cgs
68+
/service/history/*task* @temporalio/oss-foundations @temporalio/cgs
69+
70+
# Matching Service
71+
72+
/service/matching/ @temporalio/oss-matching
73+
74+
# Worker Service
75+
76+
/service/worker/batcher/ @temporalio/act
77+
/service/worker/scheduler/ @temporalio/act
78+
79+
/service/worker/workerdeployment/ @temporalio/oss-matching
80+
81+
/service/worker/addsearchattributes/ @temporalio/oss-foundations
82+
/service/worker/deletenamespace/ @temporalio/oss-foundations
83+
/service/worker/dlq/ @temporalio/oss-foundations
84+
85+
/service/worker/scanner/ @temporalio/oss-foundations @temporalio/oss-matching
86+
/service/worker/scanner/executions/ @temporalio/oss-foundations
87+
/service/worker/scanner/history/ @temporalio/oss-foundations
88+
/service/worker/scanner/build_ids/ @temporalio/oss-matching
89+
/service/worker/scanner/taskqueue/ @temporalio/oss-matching
90+
91+
/service/worker/migration/ @temporalio/cgs
92+
/service/worker/replicator/ @temporalio/cgs
93+
94+
/service/worker/parentclosepolicy/ @temporalio/oss-foundations @temporalio/act
95+
96+
/tools/ @temporalio/server

.github/actions/build-docker-images/action.yml

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ inputs:
2323
required: false
2424
default: "false"
2525
cli-version:
26-
description: "Temporal CLI version to download"
26+
description: "Temporal CLI version to download (uses default from build helper if empty)"
2727
required: false
28-
default: "1.5.1"
28+
default: ""
2929
alpine-tag:
3030
description: "Alpine base image tag"
3131
required: false
@@ -37,6 +37,17 @@ inputs:
3737
description: "Docker Hub token"
3838
required: false
3939

40+
outputs:
41+
branch-tag:
42+
description: "Docker-safe branch tag (e.g., branch-main, branch-release-v1.30.0)"
43+
value: ${{ steps.image-tags.outputs.tag }}
44+
sha-tag:
45+
description: "Docker SHA tag (e.g., sha-abc1234)"
46+
value: ${{ steps.image-tags.outputs.sha }}
47+
sha-full-tag:
48+
description: "Docker full SHA tag (e.g., sha-abcdef123456...)"
49+
value: ${{ steps.image-tags.outputs.sha-full }}
50+
4051
runs:
4152
using: composite
4253
steps:
@@ -70,12 +81,19 @@ runs:
7081
run: |
7182
.github/actions/build-docker-images/scripts/docker-build-helper download-cli
7283
84+
- name: Extract CLI version from binary
85+
id: extract-cli-version
86+
shell: bash
87+
working-directory: ${{ github.workspace }}
88+
run: |
89+
.github/actions/build-docker-images/scripts/docker-build-helper extract-binary-version temporal cli-version
90+
7391
- name: Extract server version from binary
7492
id: extract-version
7593
shell: bash
7694
working-directory: ${{ github.workspace }}
7795
run: |
78-
.github/actions/build-docker-images/scripts/docker-build-helper extract-version
96+
.github/actions/build-docker-images/scripts/docker-build-helper extract-binary-version temporal-server server-version
7997
8098
- name: Set up QEMU
8199
uses: docker/setup-qemu-action@v3
@@ -96,12 +114,14 @@ runs:
96114
working-directory: ${{ github.workspace }}
97115
env:
98116
IMAGE_REPO: temporaliotest
99-
IMAGE_SHA_TAG: ${{ steps.image-tags.outputs.sha }}
117+
IMAGE_SHA_SHORT_TAG: ${{ steps.image-tags.outputs.sha }}
118+
IMAGE_SHA_FULL_TAG: ${{ steps.image-tags.outputs.sha-full }}
100119
IMAGE_BRANCH_TAG: ${{ steps.image-tags.outputs.tag }}
101-
TEMPORAL_SHA: ${{ github.sha }}
120+
TEMPORAL_SHA: ${{ steps.image-tags.outputs.git-sha }}
102121
TAG_LATEST: ${{ inputs.tag-latest }}
103122
ALPINE_TAG: ${{ inputs.alpine-tag }}
104123
SERVER_VERSION: ${{ steps.extract-version.outputs.server-version }}
124+
CLI_VERSION: ${{ steps.extract-cli-version.outputs.cli-version }}
105125
run: |
106126
if [ -n "${{ inputs.platform }}" ]; then
107127
docker buildx bake \
@@ -122,12 +142,14 @@ runs:
122142
working-directory: ${{ github.workspace }}
123143
env:
124144
IMAGE_REPO: temporaliotest
125-
IMAGE_SHA_TAG: ${{ steps.image-tags.outputs.sha }}
145+
IMAGE_SHA_SHORT_TAG: ${{ steps.image-tags.outputs.sha }}
146+
IMAGE_SHA_FULL_TAG: ${{ steps.image-tags.outputs.sha-full }}
126147
IMAGE_BRANCH_TAG: ${{ steps.image-tags.outputs.tag }}
127-
TEMPORAL_SHA: ${{ github.sha }}
148+
TEMPORAL_SHA: ${{ steps.image-tags.outputs.git-sha }}
128149
TAG_LATEST: ${{ inputs.tag-latest }}
129150
ALPINE_TAG: ${{ inputs.alpine-tag }}
130151
SERVER_VERSION: ${{ steps.extract-version.outputs.server-version }}
152+
CLI_VERSION: ${{ steps.extract-cli-version.outputs.cli-version }}
131153
run: |
132154
docker buildx bake \
133155
--push \

0 commit comments

Comments
 (0)