Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

feat(node): Propagate engine reset to pipeline#1789

Merged
clabby merged 1 commit intomainfrom
cl/engine-reset-2
May 16, 2025
Merged

feat(node): Propagate engine reset to pipeline#1789
clabby merged 1 commit intomainfrom
cl/engine-reset-2

Conversation

@clabby
Copy link
Contributor

@clabby clabby commented May 15, 2025

Overview

Builds on #1771, adding support for propagating the engine reset back to the derivation pipeline.

@clabby clabby self-assigned this May 15, 2025
Copilot AI review requested due to automatic review settings May 15, 2025 20:59
@clabby clabby added the K-feature Kind: feature label May 15, 2025
@clabby clabby added A-node Area: cl node (eq. Go op-node) handles single-chain consensus W-node Workstream: kona-node labels May 15, 2025
@clabby clabby marked this pull request as draft May 15, 2025 20:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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");

@clabby clabby force-pushed the cl/engine-reset-2 branch from 6ac0a1a to d665e78 Compare May 15, 2025 21:01
@codecov
Copy link

codecov bot commented May 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.8%. Comparing base (4de57ac) to head (4ab7f80).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@clabby clabby force-pushed the cl/engine-reset-2 branch from d665e78 to 2442176 Compare May 16, 2025 03:08
@clabby clabby marked this pull request as ready for review May 16, 2025 03:45
@clabby clabby force-pushed the cl/engine-reset-2 branch from 2442176 to 91d8e83 Compare May 16, 2025 12:01
Copy link
Contributor

@emhane emhane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super nice !

Copy link
Contributor

@refcell refcell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comments, none are strict blockers. This looks great

Co-Authored-By: theo <80177219+theochap@users.noreply.github.com>
@clabby clabby force-pushed the cl/engine-reset-2 branch from 91d8e83 to 4ab7f80 Compare May 16, 2025 12:32
@clabby clabby enabled auto-merge May 16, 2025 12:45
@clabby clabby added this pull request to the merge queue May 16, 2025
Merged via the queue into main with commit 77842a5 May 16, 2025
21 checks passed
@clabby clabby deleted the cl/engine-reset-2 branch May 16, 2025 13:06
@github-project-automation github-project-automation bot moved this from In Review to Done in Project Tracking May 16, 2025
theochap added a commit to ethereum-optimism/optimism that referenced this pull request Dec 10, 2025
## 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>
theochap added a commit to ethereum-optimism/optimism that referenced this pull request Jan 14, 2026
## 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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A-node Area: cl node (eq. Go op-node) handles single-chain consensus K-feature Kind: feature W-node Workstream: kona-node

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants