feat(node): Propagate engine reset to pipeline#1789
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR propagates the engine reset to the derivation pipeline by integrating a reset call during engine initialization and extending reset signal handling in the pipeline. Key changes include:
- Propagation of L1 RPC URL and integration of engine reset in the engine launcher.
- Enhanced signal handling in the derivation actor to manage reset requests.
- Updates to the engine task queue, client API, and error type definitions, along with the removal of unused unknowns utilities.
Reviewed Changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| crates/node/service/src/service/standard/builder.rs | Propagates the L1 RPC URL to the EngineLauncher. |
| crates/node/service/src/actors/engine.rs | Integrates the engine reset call during initialization and updates error handling. |
| crates/node/service/src/actors/derivation.rs | Reorders select! branches to improve reset signal handling and removes duplicate signal handling. |
| crates/node/engine/src/task_queue/tasks/unknowns.rs | Removes the unused unknowns initialization utilities. |
| crates/node/engine/src/task_queue/tasks/task.rs | Updates error type definitions for improved thread safety. |
| crates/node/engine/src/task_queue/tasks/forkchoice/task.rs | Modifies forkchoice update to trigger optimistic pipeline synchronization. |
| crates/node/engine/src/task_queue/core.rs | Introduces an async reset function to reorg the execution layer using a new starting forkchoice. |
| crates/node/engine/src/client.rs | Updates EngineClient to separately handle L1 and L2 providers. |
| crates/node/engine/Cargo.toml | Adds the kona-sources workspace dependency. |
Comments suppressed due to low confidence (1)
crates/node/service/src/actors/engine.rs:154
- Avoid using 'expect' for handling errors during engine reset. Consider returning a proper error to handle failures gracefully in production.
.await.expect("TODO: Handled in follow-up PR");
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
refcell
left a comment
There was a problem hiding this comment.
Small comments, none are strict blockers. This looks great
Co-Authored-By: theo <80177219+theochap@users.noreply.github.com>
## Overview Builds on op-rs/kona#1771, adding support for propagating the engine reset back to the derivation pipeline. Co-authored-by: theo <80177219+theochap@users.noreply.github.com>
## Overview Builds on #1771, adding support for propagating the engine reset back to the derivation pipeline. Co-authored-by: theo <80177219+theochap@users.noreply.github.com>
Overview
Builds on #1771, adding support for propagating the engine reset back to the derivation pipeline.