Skip to content

Remove one more WithFxOptionsForService from tests/dlq_test.go#10336

Open
stephanos wants to merge 1 commit into
mainfrom
stephanos/onebox-testhooks
Open

Remove one more WithFxOptionsForService from tests/dlq_test.go#10336
stephanos wants to merge 1 commit into
mainfrom
stephanos/onebox-testhooks

Conversation

@stephanos
Copy link
Copy Markdown
Contributor

@stephanos stephanos commented May 19, 2026

What changed

Replaced one WithFxOptionsForService with fault injection.

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-testhooks branch 11 times, most recently from a5d1270 to 8065d96 Compare May 20, 2026 00:54
@stephanos stephanos changed the base branch from main to stephanos/onebox-purge-dlq May 20, 2026 00:54
@stephanos stephanos changed the title Add history queue test hooks Remove one more WithFxOptionsForService from tests/dlq_test.go May 20, 2026
@stephanos stephanos force-pushed the stephanos/onebox-testhooks branch 3 times, most recently from a4f956a to 72aa7e0 Compare May 20, 2026 16:45
func (d {{$decorator}}) {{$method.Declaration}} {
err = d.generator.generate("{{ $method.Name }}").inject(func() error {
{{- $request := (index $method.Params 1) }}
err = d.generator.generate("{{ $method.Name }}", {{ $request.Name }}).inject(func() error {
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.

This opens the gate for more targeted fault injection tests

@stephanos stephanos force-pushed the stephanos/onebox-purge-dlq branch 4 times, most recently from 7c286b5 to 43acb27 Compare May 21, 2026 01:16
@stephanos stephanos mentioned this pull request May 21, 2026
11 tasks
Base automatically changed from stephanos/onebox-purge-dlq to main May 22, 2026 21:17
@stephanos stephanos force-pushed the stephanos/onebox-testhooks branch from 72aa7e0 to 2b42e10 Compare May 26, 2026 03:31
@stephanos stephanos marked this pull request as ready for review May 26, 2026 03:34
@stephanos stephanos requested review from a team as code owners May 26, 2026 03:34
@stephanos stephanos requested a review from a team as a code owner May 26, 2026 03:34
@stephanos stephanos requested review from long-nt-tran and spkane31 and removed request for spkane31 May 26, 2026 03:34
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