Extract ExecutionContext to executor/context.rs module #14
No reviewers
Labels
No labels
adr
automated
bug
chore
dependencies
documentation
enhancement
epic
github-actions
P1-high
P2-medium
P3-low
release
research
rust
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jwilger/eventcore!14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refactor-executor-extract-context"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Type of Change
Testing Checklist
Performance Impact
No performance impact expected - pure code organization change with identical runtime behavior.
Security Checklist
Code Quality
Reviewer Checklist
Review Focus
This is a pure refactoring with no functional changes. Focus on:
🤖 Generated with Claude Code
Pull Request Overview
This PR refactors the
executormodule by extracting the execution context and retry logic into their own modules and updatingexecutor.rsto use these new abstractions. All public APIs and behavior remain unchanged.ExecutionContextintoexecutor/context.rsRetryConfigandRetryPolicyintoexecutor/retry.rsexecutor.rsto useStreamDiscoveryContext, pull in the new modules, and streamline the command execution pipelinePLANNING.mdto reflect completed refactoring steps and enforce the next-task reminderReviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
retrymodule withRetryConfigandRetryPolicycontextmodule withExecutionContextComments suppressed due to low confidence (3)
eventcore/src/executor.rs:916
PLANNING.md:327
eventcore/src/executor/context.rs:22
uuid::Uuid,uuid::Timestamp, anduuid::NoContextwithout importing them; adduse uuid::{Uuid, Timestamp, NoContext};at the top of this module to ensure it compiles.@ -813,0 +894,4 @@CommandError::from(err)})} else {warn!([nitpick] The logic for reading streams with and without timeouts is now split across two similar functions (
read_streams_with_timeout_and_circuit_breakerandread_streams_with_circuit_breaker_only), leading to duplication. Consider unifying these into a single helper that takes an optional timeout parameter.Closing this PR. Similar to PR #13, while ExecutionContext is still in executor.rs, the major functional refactoring in PR #10 has significantly changed the structure of the executor module. The benefit of extracting this small type is now minimal compared to the effort required to rebase and maintain this change.
Pull request closed