Skip to content

Remove WithFxOptionsForService from xdc tests#10322

Draft
stephanos wants to merge 1 commit into
stephanos/onebox-purge-dlqfrom
stephanos/hooks-dc
Draft

Remove WithFxOptionsForService from xdc tests#10322
stephanos wants to merge 1 commit into
stephanos/onebox-purge-dlqfrom
stephanos/hooks-dc

Conversation

@stephanos
Copy link
Copy Markdown
Contributor

@stephanos stephanos commented May 19, 2026

What changed

Migrated xdc suites to stop relying on WithFxOptionsForService to replace fx modules and instead use test hooks.

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 requested review from a team as code owners May 19, 2026 02:40
@stephanos stephanos force-pushed the stephanos/hooks-dc branch 10 times, most recently from d0fed76 to 58f4566 Compare May 19, 2026 15:22
@stephanos stephanos marked this pull request as draft May 19, 2026 15:42
@stephanos stephanos changed the title Add test hooks for DC replication tests Use testhook in XDC tests May 19, 2026
// scalable and flexible. The reason we need to do this on a per-service basis is that there are separate fx apps for
// each one.
//
// Deprecated: prefer dedicated TestClusterOption helpers or testhooks over injecting arbitrary Fx options.
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.

Discourage adding more callers until we removed them all and can delete this method.

@stephanos stephanos force-pushed the stephanos/hooks-dc branch 4 times, most recently from bbf001e to 618df7e Compare May 20, 2026 01:04
@stephanos stephanos changed the title Use testhook in XDC tests Remove WithFxOptionsForService from xdc tests May 20, 2026
@stephanos stephanos force-pushed the stephanos/hooks-dc branch from 618df7e to 9538f80 Compare May 20, 2026 01:04
@stephanos stephanos changed the base branch from main to stephanos/onebox-purge-dlq May 20, 2026 01:04
@stephanos stephanos force-pushed the stephanos/hooks-dc branch 2 times, most recently from cbfd59c to 174fd1c Compare May 20, 2026 01:07
@stephanos stephanos force-pushed the stephanos/hooks-dc branch from 174fd1c to 6e7049c Compare May 20, 2026 01:08
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