Skip to content

upgrade SDK and server to latest for demo Worker UI#314

Open
carlydf wants to merge 7 commits intomainfrom
demo-ga
Open

upgrade SDK and server to latest for demo Worker UI#314
carlydf wants to merge 7 commits intomainfrom
demo-ga

Conversation

@carlydf
Copy link
Copy Markdown
Collaborator

@carlydf carlydf commented May 1, 2026

What was changed

Upgrade SDK and server to latest.

Why?

To see demo worker in UI, need at least Go SDK v1.41.0

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?

carlydf and others added 7 commits May 1, 2026 12:06
NewWebhookManagedBy is now generic and takes the object as a second
argument; .For() is removed. WithValidator() renamed to WithCustomValidator().

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Upgrade go.temporal.io/server from v1.31.0 to v1.32.0-155.0 to match
go.temporal.io/api v1.62.11, which sdk v1.43.0 requires. The prior
upgrade commit left server at v1.31.0 (built against api v1.62.8)
while api and sdk moved to v1.62.11, causing a build failure.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
go vet now rejects passing a variable directly as the format string
to Eventf. Wrap with "%s" to satisfy the static check.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…klog metrics

Temporal Cloud now emits temporal_worker_deployment_name and temporal_worker_build_id
as separate labels, so the label_replace recording rule and adapter name alias are no
longer needed. The adapter queries temporal_cloud_v1_approximate_backlog_count directly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…klog metrics

Temporal Cloud now emits temporal_worker_deployment_name and temporal_worker_build_id
as separate opt-in labels (via params.labels in the scrape config), eliminating the
need for label_replace. The recording rule is retained for cardinality reduction —
it aggregates temporal_cloud_v1_approximate_backlog_count down to the five labels the
HPA needs (adding temporal_task_queue to preserve task queue filtering). The metric is
renamed to temporal_approximate_backlog_count. Also adds metrics API key rotation
instructions and consolidates helm install/upgrade to helm upgrade --install.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ic image tags

- Set WorkerHeartbeatInterval to 5s (was 60s default) so Worker Insights UI
  updates within seconds during a live rollout demo
- Set scaledownDelay=0s, deleteDelay=30s (was 30s/5m) so v1 disappears
  promptly after traffic drains
- Switch helloworld-worker Skaffold profile to WORKER_VERSION env template
  so `WORKER_VERSION=v1 skaffold run --profile helloworld-worker` tags the
  image and WorkerDeployment pod spec with the semantic version

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@carlydf carlydf marked this pull request as ready for review May 6, 2026 22:38
@carlydf carlydf requested review from a team and jlegrone as code owners May 6, 2026 22:38
@carlydf carlydf changed the title upgrade SDK and server to latest upgrade SDK and server to latest for demo Worker UI May 6, 2026
func (r *WorkerDeployment) SetupWebhookWithManager(mgr ctrl.Manager) error {
return ctrl.NewWebhookManagedBy(mgr).
For(r).
return ctrl.NewWebhookManagedBy(mgr, r).
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needed by new k8s version

For(&WorkerResourceTemplate{}).
WithValidator(v).
return ctrl.NewWebhookManagedBy(mgr, &WorkerResourceTemplate{}).
WithCustomValidator(v).
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needed by new k8s version

sunset:
scaledownDelay: 30s
deleteDelay: 5m
scaledownDelay: 0s
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

faster for demo

"external": map[string]interface{}{
"metric": map[string]interface{}{
"name": "temporal_backlog_count_by_version",
"name": "temporal_approximate_backlog_count",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we also have a pr description as to why we are changing this value here? (as in like we have our metric have these new sep labels now and we don't need the recording rules)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree with @Shivs11 here. This change was a surprise for me.

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