Skip to content

Use broadcast TChan for campaign events#1576

Open
elopez wants to merge 1 commit into
masterfrom
tchan
Open

Use broadcast TChan for campaign events#1576
elopez wants to merge 1 commit into
masterfrom
tchan

Conversation

@elopez

@elopez elopez commented Jun 8, 2026

Copy link
Copy Markdown
Member

Replace the campaign event queue with an STM broadcast TChan so subscribers keep the existing events-after-subscribe behavior without the Chan root cursor retention issue. Producers now write through STM, and campaign/UI/SSE listeners subscribe with dupTChan/readTChan.

Avoid retaining full VM snapshots in queued TestFalsified/TestOptimized events by publishing VM-free EchidnaTest copies. The canonical testRefs state still keeps the VM so shrinking, reports, traces, and final JSON continue to work.

Replace the campaign event queue with an STM broadcast TChan so subscribers
keep the existing events-after-subscribe behavior without the Chan root
cursor retention issue. Producers now write through STM, and campaign/UI/SSE
listeners subscribe with dupTChan/readTChan.

Avoid retaining full VM snapshots in queued TestFalsified/TestOptimized
events by publishing VM-free EchidnaTest copies. The canonical testRefs
state still keeps the VM so shrinking, reports, traces, and final JSON
continue to work.
@elopez elopez marked this pull request as ready for review June 10, 2026 12:38
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