Skip to content

Add test cluster DC redirection policy option#10328

Merged
stephanos merged 1 commit into
mainfrom
stephanos/onebox-dc-policy
May 19, 2026
Merged

Add test cluster DC redirection policy option#10328
stephanos merged 1 commit into
mainfrom
stephanos/onebox-dc-policy

Conversation

@stephanos
Copy link
Copy Markdown
Contributor

@stephanos stephanos commented May 19, 2026

What changed?

Pass custom DCRedirectionPolicy directly instead of going through WithFxOptionsForService.

Why?

We want to eliminate WithFxOptionsForService as it is blocking us from migrating away from the onebox.go approach (which duplicates the fx setup) since we don't want to expose an equivalent method in temporal/fx.go.

@stephanos stephanos force-pushed the stephanos/onebox-dc-policy branch from 3fc1e7f to f624941 Compare May 19, 2026 17:38
@stephanos stephanos force-pushed the stephanos/onebox-dc-policy branch from f624941 to 1766d14 Compare May 19, 2026 17:48
Comment thread tests/testcore/onebox.go
fx.Provide(func() listenHostPort { return listenHostPort(host) }),
fx.Provide(func() httpPort { return mustPortFromAddress(c.FrontendHTTPAddress()) }),
fx.Provide(func() config.DCRedirectionPolicy { return config.DCRedirectionPolicy{} }),
fx.Provide(func() config.DCRedirectionPolicy { return c.dcRedirectionPolicy }),
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

eventually this be will passed to temporal/fx.go's params directly (see #10319)

@stephanos stephanos marked this pull request as ready for review May 19, 2026 18:45
@stephanos stephanos requested review from a team as code owners May 19, 2026 18:45
@stephanos stephanos merged commit 7ddfc53 into main May 19, 2026
51 checks passed
@stephanos stephanos deleted the stephanos/onebox-dc-policy branch May 19, 2026 19:31
@stephanos stephanos mentioned this pull request May 21, 2026
11 tasks
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.

2 participants