Skip to content

engine: select restart floor through SyncPlan - #38

Merged
patrick-ogrady merged 9 commits into
mainfrom
cl/fix-sync-plan
Jul 16, 2026
Merged

engine: select restart floor through SyncPlan#38
patrick-ogrady merged 9 commits into
mainfrom
cl/fix-sync-plan

Conversation

@clabby

@clabby clabby commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Overview

Fixes the startup wiring to use SyncPlan. The existing method violated the contract of glue::stateful and could cause the floor of marshal to be ahead of the QMDB instances.

@clabby clabby self-assigned this Jul 13, 2026
@clabby clabby added this to Tracker Jul 13, 2026
@clabby
clabby marked this pull request as draft July 13, 2026 16:11
@clabby
clabby force-pushed the cl/fix-sync-plan branch from 3295c8a to 9f31932 Compare July 13, 2026 16:11
@clabby clabby moved this to In Progress in Tracker Jul 13, 2026
@clabby
clabby marked this pull request as ready for review July 13, 2026 16:13
@clabby clabby moved this from In Progress to Ready for Review in Tracker Jul 13, 2026
Comment thread crates/engine/src/engine.rs Outdated
Comment thread crates/engine/src/engine.rs Outdated
Comment thread crates/engine/src/engine.rs Outdated

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2f92aa0. Configure here.

Comment thread crates/engine/src/engine.rs Outdated
Comment thread crates/engine/src/engine.rs Outdated
patrick-ogrady and others added 4 commits July 16, 2026 14:29
Conflicts resolved:
- EngineConfig keeps both this branch's prunable_items_per_section and
  main's state/other page cache byte fields (engine.rs, run.rs, tests).
- Startup flow keeps this branch's SyncPlan-driven floor selection and
  canonical-genesis metadata; main's only change in that region was the
  now-synchronous ManagedDb::sync_target, applied to the first-boot
  genesis target derivation.
- tests/common.rs keeps this branch's TestReporter/RestartBarrier and the
  removal of state_sync_done (main only touched that deleted code).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.46%. Comparing base (cf6253d) to head (a641287).

Files with missing lines Patch % Lines
bin/validator/src/run.rs 0.00% 3 Missing ⚠️
@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
- Coverage   77.48%   77.46%   -0.02%     
==========================================
  Files          52       52              
  Lines       12780    12752      -28     
==========================================
- Hits         9902     9878      -24     
+ Misses       2878     2874       -4     
Files with missing lines Coverage Δ
crates/engine/src/engine.rs 97.41% <100.00%> (-0.13%) ⬇️
bin/validator/src/run.rs 42.67% <0.00%> (+0.21%) ⬆️

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cf6253d...a641287. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@patrick-ogrady
patrick-ogrady merged commit 42d0b3a into main Jul 16, 2026
17 checks passed
@github-project-automation github-project-automation Bot moved this from Ready for Review to Done in Tracker Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants