Skip to content

Serverless Feature Integration#9779

Merged
ShahabT merged 17 commits intomainfrom
serverless
Apr 3, 2026
Merged

Serverless Feature Integration#9779
ShahabT merged 17 commits intomainfrom
serverless

Conversation

@ShahabT
Copy link
Copy Markdown
Contributor

@ShahabT ShahabT commented Apr 2, 2026

ShahabT and others added 11 commits February 18, 2026 16:50
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… (or not)

This adds a hook point to the matching service once it has matched a task or decided to spool it. This can be leveraged to react to task sync or no-sync match events, while keeping matching service decoupled from the event handling logic.
* origin/main:
  CHASM: improve support for implementing Terminate method (#9351)
  Add testhooks package documentation (#9373)
  Improve re-usability of ringpop membership & PerNamespaceWorker (#9321)
  Fairness counter: fix heap bug in map counter (#9370)
  Avoid finalGC when ack level is zero (#9371)
  Fairness counter: persist top K keys (#9188)
  Flake Fix: In Reactivation Cache tests, wait for appropriate delays when confirming expected drainage status (#9352)
  Include transient and speculative WFT events in GetWorkflowExecutionHistoryResponse (#9325)
  Fix flaky test TestTransitionDuringTransientTask (#9356)
  Add per-workflow scheduler for history task processing (#9141)
  Populate currentAttemptScheduledTime on PollActivityTaskQueueResponse for standalone activities (#9333)
  Standalone activity heartbeating bug fix (#9354)
  Revert "Last part of making Nexus work OOTB" (#9343)
  Convert flake report from Python to Go (#9334)
  Do not enforce payload limits for system nexus endpoint (#9344)
- **Point go.temporal.io/api to serverless branch of api-go**
- **Add CreateWorkerDeployment API**

## What changed?
New API added for explicitly creating a worker deployment. also supports
passing Compute Config

## Why?
Needed for serverless workers.

## How did you test it?
- [ ] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [ ] added new unit test(s)
- [x] added new functional test(s)

## Potential risks
None
# Conflicts:
#	go.mod
#	go.sum
#	service/frontend/workflow_handler.go
#	service/worker/workerdeployment/version_workflow_test.go
#	service/worker/workerdeployment/workflow_test.go
… status (#9651)

## Summary
- Add `CreateWorkerDeploymentVersion` frontend API that explicitly
creates a version in an existing deployment with optional compute config
and scaling group validation
- Add `WORKER_DEPLOYMENT_VERSION_STATUS_CREATED` status for explicitly
created versions that transitions to `INACTIVE` once a poller registers
a task queue
- Validate scaling groups in compute config have no overlapping task
queue types (extracted as reusable
`ValidateWorkerDeploymentVersionComputeConfig` in `util.go`)
- Pass compute config through the full flow: frontend → client →
deployment workflow → activity → version workflow initial state

## Test plan
- [x] Unit tests for `CreateWorkerDeploymentVersion` success,
idempotency, and rejection cases in `workflow_test.go`
- [x] Functional tests for success, idempotency, already-exists,
deployment-not-found, invalid args, auto-created conflict, multiple
versions, and task queue registration in
`worker_deployment_version_test.go`
- [x] Functional tests for invalid/valid scaling group configurations
- [x] Functional test verifying CREATED → INACTIVE status transition on
poll
- [x] Compute config round-trip verified via
`DescribeWorkerDeploymentVersion`
## What changed?
Enable the integration between matching service and the worker
controller by registering a matching service hook.

## Why?
So the worker controller can auto-scale based on matching performance

## How did you test it?
- [X] built
- [X] run locally and tested manually
- [X] covered by existing tests
- [ ] added new unit test(s)
- [ ] added new functional test(s)
## What changed?
Implement UpdateWorkerDeploymentVersionComputeConfig

## Why?
For server-scaled workers

## How did you test it?
- [ ] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [x] added new unit test(s)
- [x] added new functional test(s)

## Potential risks
None
## What changed?
- Implement ValidateWorkerDeploymentVersionComputeConfig.
- Implement `last_modifier_identity` for Version
- Refactor the workflows/activities to send incremental compute config
to WCI

## Why?
Needed for  server-scaled workers

## How did you test it?
- [x] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [x] added new unit test(s)
- [x] added new functional test(s)

## Potential risks
None
# Conflicts:
#	api/deployment/v1/message.pb.go
#	go.mod
#	go.sum
#	proto/internal/temporal/server/api/deployment/v1/message.proto
#	service/worker/workerdeployment/client.go
#	tests/worker_deployment_version_test.go
@ShahabT ShahabT requested review from a team as code owners April 2, 2026 00:05
@ShahabT ShahabT enabled auto-merge (squash) April 2, 2026 23:50
@ShahabT ShahabT merged commit d8813fd into main Apr 3, 2026
46 checks passed
@ShahabT ShahabT deleted the serverless branch April 3, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants