Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@carlydf
Copy link
Contributor

@carlydf carlydf commented Oct 6, 2025

What was changed

Add temporal worker deployment manager-identity commands (set and unset)

Why?

So that CLI clients of Worker Deployments that are managed by an automated system (such as the Kubernetes Worker Controller) can safely coordinate with that client to make intended changes and ensure they are not overwritten.

Checklist

  1. Closes

  2. How was this tested:
    Added a new test. Also tested in SDK and server.

  3. Any docs updates needed?

@carlydf carlydf requested review from a team as code owners October 6, 2025 06:16
)
assert.NoError(t, res.Err)
assert.Contains(t, res.Stdout.String(), deploymentName)
}, 30*time.Second, 100*time.Millisecond)
Copy link
Member

@cretz cretz Oct 9, 2025

Choose a reason for hiding this comment

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

Can this test really take 30s or is this just a common value we're using everywhere?

EDIT: I saw in downloaded junit files that this test takes 1.2s. That's not too bad. Tests TestDeployment_Describe_Drainage and TestDeployment_List take over 2s, tests TestDeployment_Ramping and TestDeployment_Set_Current_Version take over 5s, and test TestWorkflow_Batch_Update_Options_Versioning_Override takes over 10s (the slowest test in the repo). May want to open an issue to look into improving those, but not blocking this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Glad you pointed this out! I just copied that timeout from the tests Antonio wrote, didn't base it on a specific time expectation. Things may have taken longer in the initial pre-release because we weren't doing the task queue user data in batches, which we now are.

@carlydf carlydf merged commit 9999fb4 into main Oct 9, 2025
8 checks passed
@carlydf carlydf deleted the deployment-manager-identity branch October 9, 2025 16:28
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