Skip to content

Conversation

@dnkolegov-ar
Copy link
Collaborator

This PR fixes mmr_journaled fuzz test.

@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
commonware-mcp bb1e029 Jan 08 2026, 03:03 PM


runner.start(|context| async move {
let mut leaves = Vec::new();
let mut leaves_synced = true;
Copy link

Choose a reason for hiding this comment

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

Initial init missing leaves_synced check for recovered data

Low Severity

The leaves_synced variable is initialized to true at startup, but after the initial Mmr::init() call, there's no check for whether the MMR recovered existing data. This is inconsistent with the Reinit operation which correctly sets leaves_synced = new_mmr.leaves() == 0. If the initial init recovers data, the leaves vector will be empty but leaves_synced will be true, causing proof operations to be silently skipped rather than exercised without verification (the intended fallback behavior for unsynced state).

Additional Locations (1)

Fix in Cursor Fix in Web

@dnkolegov-ar
Copy link
Collaborator Author

Closing this in favor of #2746

@codecov
Copy link

codecov bot commented Jan 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.20%. Comparing base (41f07a9) to head (bb1e029).
⚠️ Report is 3 commits behind head on main.

@@            Coverage Diff             @@
##             main    #2744      +/-   ##
==========================================
+ Coverage   93.17%   93.20%   +0.03%     
==========================================
  Files         369      372       +3     
  Lines      111514   113359    +1845     
==========================================
+ Hits       103902   105657    +1755     
- Misses       7612     7702      +90     

see 69 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 41f07a9...bb1e029. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants