Skip to content

fix(test): Fix flaky TestDeployment_List JSON assertion - #1252

Open
ks-temporal wants to merge 1 commit into
mainfrom
ks/fix-flaky-deployment-list-test
Open

ks-temporal wants to merge 1 commit into
mainfrom
ks/fix-flaky-deployment-list-test

Conversation

@ks-temporal

Copy link
Copy Markdown
Contributor

What changed?

TestDeployment_List retries the text worker deployment list until two deployments appear. It then
checks --output json only once.
Since, deployment list reads from visibility, which can lag after set-current-version, the JSON
call sometimes returns one deployment. This PR wraps the assertions in EventuallyWithT, the same
that the text check uses.

It is rare, but seen on build-test (macos-15-intel) in #1250:
commands.worker.deployment_test.go:586: expected: 2, actual: 1.

How was this tested?

  • go test ./internal/temporalcli/ -run 'TestSharedServerSuite/TestDeployment_List$' -count=5 passes
  • go vet clean

@ks-temporal ks-temporal changed the title Fix flaky TestDeployment_List JSON assertion fix(test): Fix flaky TestDeployment_List JSON assertion Nov 3, 2026
@ks-temporal
ks-temporal marked this pull request as ready for review November 3, 2026 02:56
@ks-temporal
ks-temporal requested a review from a team as a code owner November 3, 2026 02:56
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T02:58:22.385730Z d3771db Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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