Skip to content

feat(e2e): add temporal-deployment-worker image#249

Draft
veeral-patel wants to merge 1 commit into
kedacore:mainfrom
veeral-patel:add-temporal-deployment-worker
Draft

feat(e2e): add temporal-deployment-worker image#249
veeral-patel wants to merge 1 commit into
kedacore:mainfrom
veeral-patel:add-temporal-deployment-worker

Conversation

@veeral-patel
Copy link
Copy Markdown

Summary

Adds a minimal Temporal worker binary to `e2e/images/temporal-deployment-worker/`. The build pipeline will publish it as `ghcr.io/kedacore/tests-temporal-deployment-worker:latest`.

Why

The KEDA Temporal scaler's e2e test has a new subtest (in kedacore/keda#7672) for scaling by Worker Deployment Version backlog. That path exercises the server's `DescribeWorkerDeploymentVersion` API, which only returns populated stats when a worker has registered against a given deployment version using the Go SDK's `worker.DeploymentOptions{UseVersioning: true, Version: ...}` option.

The existing `temporaliotest/omes` image that KEDA's other Temporal e2e subtests use supports only the legacy build-id versioning (`--build-id`); it doesn't expose a flag to enable deployment versioning. So the KEDA PR needs its own minimal worker image — this one.

What it is

  • ~50 lines of Go using the Temporal SDK (`go.temporal.io/sdk v1.42.0`)
  • Flags: `--address`, `--task-queue`, `--deployment-name`, `--build-id`
  • Registers a no-op workflow with `VersioningBehaviorAutoUpgrade` and starts a long-running worker that polls the specified task queue

Companion PR

kedacore/keda#7672 — which will switch its e2e test template from the locally-built `temporal-deployment-worker:latest` to `ghcr.io/kedacore/tests-temporal-deployment-worker:latest` once this image is published.

Adds a minimal Temporal worker that enables Worker Deployment
Versioning via the Go SDK's `DeploymentOptions{UseVersioning: true}`
option. Needed by the KEDA Temporal scaler e2e test for the new
deployment-version code path (kedacore/keda#7672).

The existing `temporaliotest/omes` image supports build-id versioning
but not deployment versioning, so KEDA cannot reuse it.

The build script will publish this as
ghcr.io/kedacore/tests-temporal-deployment-worker:latest based on
the directory name.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Veeral Patel <veeral.patel@temporal.io>
@veeral-patel veeral-patel marked this pull request as draft April 24, 2026 19:40
@veeral-patel
Copy link
Copy Markdown
Author

Created this PR but not ready for review yet.

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.

1 participant