Skip to content

Add CHASM test support hook#10582

Draft
stephanos wants to merge 2 commits into
mainfrom
stephanos/chasm-test-support
Draft

Add CHASM test support hook#10582
stephanos wants to merge 2 commits into
mainfrom
stephanos/chasm-test-support

Conversation

@stephanos
Copy link
Copy Markdown
Contributor

@stephanos stephanos commented Jun 6, 2026

Summary

  • add a focused HistoryChasmTestDependenciesCreated hook from the history service
  • expose ChasmTestDependencies() from onebox instead of populating raw CHASM engine, visibility manager, and registry refs through arbitrary Fx options
  • migrate CHASM tests to consume the engine, visibility manager, and registry from that hook

Why

This splits off the CHASM-specific piece of #10319 without adding broad history service refs or arbitrary Fx graph access. The hook returns only the three CHASM dependencies these tests already use.

Test plan

  • go test -tags test_dep ./tests -run 'TestChasmTestSuite/TestNewPayloadStore' -count=1
  • go test -tags test_dep ./tests/xdc -run 'TestChasmSuite/TestDeleteExecution_RunningExecution' -count=1
  • go test ./service/history -run '^$' -count=1

@stephanos stephanos mentioned this pull request Jun 6, 2026
9 tasks
Comment thread tests/testcore/onebox.go
Comment on lines -535 to -537
fx.Populate(&c.chasmEngine),
fx.Populate(&c.chasmVisibilityMgr),
fx.Populate(&c.chasmRegistry),
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.

Removing these is the goal of this PR

@stephanos stephanos force-pushed the stephanos/chasm-test-support branch from 1e3ca6b to f45324c Compare June 6, 2026 23:36
@stephanos stephanos force-pushed the stephanos/chasm-test-support branch from f45324c to f173a03 Compare June 7, 2026 00:07
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