Skip to content

Replace onebox.go [wip]#10319

Draft
stephanos wants to merge 1 commit into
stephanos/dlq-testhooksfrom
stephanos/rm-onebox
Draft

Replace onebox.go [wip]#10319
stephanos wants to merge 1 commit into
stephanos/dlq-testhooksfrom
stephanos/rm-onebox

Conversation

@stephanos
Copy link
Copy Markdown
Contributor

@stephanos stephanos commented May 18, 2026

What changed?

This is the root onebox replacement branch. Keep it draft until the remaining customization points below are split out or resolved.

Goal

The only public temporal package addition should be WithTestHooks. All other onebox customizations must either move to existing config/dynamic config, become a focused testhook, or find a test-side workaround.

Remaining blockers

  • Base this branch on the DLQ hook cleanup: Replace DLQ Fx wrappers with test hook #10541.
  • Remove frontend service refs by creating onebox test clients directly: Extract clients from onebox.go #10575.
  • Remove namespace registry refs and use namespace cache refresh behavior instead: add system.forceNamespaceCacheRefreshOnRead #10565.
  • Move archival setup out of onebox and into the archival suite/config: Migrate archival_test.go #10563.
  • Remove HistoryServiceRefsCreated with a focused CHASM dependency hook: Add CHASM test support hook #10582.
  • Resolve replication stream recorder customization. ServiceGrpcInterceptors and ServiceClientDialOptions are broad global hooks today; either narrow them to recorder-specific testhooks or find another workaround. No PR yet.
  • Replace PersistenceExecutionManagerWrapper with an opt-in TaskQueueRecorder backed by a focused history task write hook: Add history task write test hook #10583.
  • Resolve ChasmRegistryInitializer. It is currently a broad any hook for registering the test CHASM library; make it typed/focused or replace it with a test-side registration path. No PR yet.
  • Re-check the public temporal package diff. Keep WithTestHooks and required internal plumbing only; remove or split any other behavior change, including the static-host validation relaxation if it is still needed. No PR yet.

@stephanos stephanos force-pushed the stephanos/rm-onebox branch 14 times, most recently from 6e911b9 to d2bd371 Compare May 18, 2026 22:56
Comment thread tests/testcore/onebox.go
@@ -69,8 +59,6 @@ import (

type (
TemporalImpl struct {
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.

There are many more refactorings that can be done here, but keeping it to an absolute minimum here.

@stephanos stephanos force-pushed the stephanos/rm-onebox branch 3 times, most recently from e935010 to 4f3cee0 Compare May 18, 2026 23:04
@stephanos stephanos changed the title Replace onebox.go Replace onebox.go [wip] May 18, 2026
@stephanos stephanos force-pushed the stephanos/rm-onebox branch 11 times, most recently from 832deab to 6ea1fbd Compare May 19, 2026 02:57
@stephanos stephanos force-pushed the stephanos/rm-onebox branch from 6ea1fbd to d59e4f0 Compare May 27, 2026 21:45
@stephanos stephanos force-pushed the stephanos/rm-onebox branch from d59e4f0 to 6c02558 Compare June 5, 2026 18:28
@stephanos stephanos changed the base branch from main to stephanos/dlq-testhooks June 5, 2026 18:28
@stephanos stephanos force-pushed the stephanos/dlq-testhooks branch 2 times, most recently from f161a36 to 9a2d942 Compare June 5, 2026 18:53
@stephanos stephanos force-pushed the stephanos/rm-onebox branch 6 times, most recently from 98a8892 to 6357fc6 Compare June 5, 2026 19:54
// WithFxOptions appends fx options to a specific service's fx graph. This
// implies a dedicated cluster because custom fx options cannot be shared
// across tests.
func WithFxOptions(serviceName primitives.ServiceName, opts ...fx.Option) TestOption {
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.

unused

Comment thread tests/xdc/base.go
// RPCAddress and HTTPAddress will be filled in
},
}
clusterConfigs[clusterIndex].ServiceFxOptions = params.ServiceOptions
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.

unused

@stephanos stephanos force-pushed the stephanos/rm-onebox branch 2 times, most recently from 82e8481 to 4e8718a Compare June 5, 2026 21:02
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