Skip to content

refactor: make reporter traits and writers synchronous#269

Merged
branchseer merged 3 commits intomainfrom
sync-reporter
Mar 18, 2026
Merged

refactor: make reporter traits and writers synchronous#269
branchseer merged 3 commits intomainfrom
sync-reporter

Conversation

@branchseer
Copy link
Member

@branchseer branchseer commented Mar 18, 2026

Summary

  • Remove async_trait from GraphExecutionReporter and LeafExecutionReporter traits, making all reporter callbacks synchronous
  • Switch StdioConfig writers and spawn_with_tracking writer params from tokio::io::AsyncWrite to std::io::Write
  • Convert reporter tests from #[tokio::test] async to plain #[test]

Child process stdout/stderr reading remains async via tokio::select!, but all reporter callbacks and output writing are now synchronous.

Test plan

  • cargo check -p vite_task compiles cleanly
  • cargo check -p vite_task_bin compiles cleanly
  • All 6 reporter unit tests pass (cargo test -p vite_task -- reporter)
  • E2E snapshot tests pass
  • Plan snapshot tests pass

🤖 Generated with Claude Code

Replace async_trait on GraphExecutionReporter and LeafExecutionReporter
with plain sync traits. Switch StdioConfig writers and spawn_with_tracking
writer params from tokio AsyncWrite to std::io::Write. Child process
stdout/stderr reading remains async via tokio::select, but all reporter
callbacks and output writing are now synchronous.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

branchseer and others added 2 commits March 18, 2026 19:46
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@branchseer branchseer merged commit a739a2f into main Mar 18, 2026
9 checks passed
@branchseer branchseer deleted the sync-reporter branch March 18, 2026 12: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