8000 feat(node/engine): Add `info` log for safe head promotion by clabby · Pull Request #1948 · op-rs/kona · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(node/engine): Add info log for safe head promotion #1948

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2025

Conversation

clabby
Copy link
Collaborator
@clabby clabby commented Jun 3, 2025

Overview

Adds an info log for when the ConsolidateTask successfully promotes the safe head of the chain.

@clabby clabby self-assigned this Jun 3, 2025
@Copilot Copilot AI review requested due to automatic review settings June 3, 2025 03:12
@clabby clabby added the K-feature Kind: feature label Jun 3, 2025
@clabby clabby added A-node Area: cl node (eq. Go op-node) handles single-chain consensus W-node Workstream: kona-node A-engine Area: engine labels Jun 3, 2025
Copy link
Contributor
@Copilot 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

Adds structured timing logs upon successful safe head promotion in ConsolidateTask.

  • Introduce Instant timers to measure total, block-fetch, and fork-choice-update durations
  • Emit an info! log with block hash, number, and timing details on successful consolidation
  • Change fallback log for build task from trace! to debug!
Comments suppressed due to low confidence (1)

crates/node/engine/src/task_queue/tasks/consolidate/task.rs:120

  • [nitpick] There are no tests verifying that this info! log is emitted with the correct fields after successful consolidation. Consider adding or updating integration tests that assert the structured log includes hash, number, and all timing fields.
info!(

Copy link
codecov bot commented Jun 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.7%. Comparing base (07709ae) to head (d5e6a12).
Report is 3 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.

Copy link
Member
@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.

this would be nice as a metric too, wdyt?

@github-project-automation github-project-automation bot moved this to In Review in Project Tracking Jun 3, 2025
@refcell refcell added this pull request to the merge queue Jun 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 3, 2025
@clabby
Copy link
Collaborator Author
clabby commented Jun 3, 2025

this would be nice as a metric too, wdyt?

This already has a metric :D

@clabby clabby added this pull request to the merge queue Jun 3, 2025
Merged via the queue into main with commit 559fdc3 Jun 3, 2025
23 checks passed
@clabby clabby deleted the cl/safe-head-log branch June 3, 2025 12:26
@github-project-automation github-project-automation bot moved this from In Review to Done in Project Tracking Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-engine Area: engine 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.

3 participants
0