Skip to content

fix: limit FCU tag fallback to historical sync - #45

Closed
panos-xyz wants to merge 1 commit into
panos/pre-audit-fixesfrom
codex/fcu-fallback-guard
Closed

panos-xyz wants to merge 1 commit into
panos/pre-audit-fixesfrom
codex/fcu-fallback-guard

Conversation

@panos-xyz

Copy link
Copy Markdown
Contributor

Summary

  • keep the FCU safe/finalized fallback-to-head behavior only for clearly historical blocks
  • stop synthesizing safe/finalized near wall-clock time and wait for real set_block_tags updates
  • add unit coverage for L1 tag passthrough, historical fallback, and near-live zero fallback

Test Plan

  • cargo test -p morph-engine-api
  • cargo fmt --all --check

@coderabbitai

coderabbitai Bot commented Mar 11, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ccb08952-a22f-44d1-9df4-29b2150d7129

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch codex/fcu-fallback-guard

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@panos-xyz panos-xyz closed this Mar 11, 2026
@panos-xyz
panos-xyz deleted the codex/fcu-fallback-guard branch March 11, 2026 10:25
panos-xyz added a commit that referenced this pull request Nov 24, 2026
… restarts

Extend PR 233's series-churn fix from State & History Growth to the rest of
the morph-reth Grafana dashboard so long time ranges (30d/60d/90d) render
accurately when pod restarts or redeploys change the instance label:

- Snapshot pie charts and bar gauge (#3, #45, #47, #51, #104): switch to
  instant queries and aggregate with max by (service, ...) (two-level sum/max
  for DB Pages) so historical dead instances no longer duplicate slices.
- Broken aggregations (#39 DB Average Commit Time, #41 DB Average Transaction
  Open Time, #120 CPU, #40/#62/#64 heatmaps): compute weighted averages via
  sum(rate(sum)) / sum(rate(count)) instead of summing/averaging per-series
  ratios, fix CPU from avg(rate(...[1m])) to sum(rate(...[$__rate_interval])),
  and use max for peak latency heatmaps.
- Unaggregated rate/increase panels (17 panels, e.g. Block Import Rate, Engine
  Tree, Proof History, TxPool, P2P) and rate(sum)/rate(count) panels (9 panels):
  aggregate with sum by (service[, segment]) to eliminate multi-hour 50% dips
  and duplicate legends at restart boundaries.
- Raw gauge sum-by-service panels (14 panels including Node Storage & Height,
  DB Growth, Static Files Growth, State Size, History Size, RPC Active
  Connections): replace raw sum by (service) with max by (service) or
  two-level sum by (service) (max by (service, table|segment)) to eliminate
  2x spikes during restart overlap.
- Remaining unaggregated gauge/summary/stat timeseries panels: wrap with
  max by (service, <legend labels>) (avg by (service) for avg_over_time) to
  preserve continuous single lines and clean legends across restarts.

Verified all 258 PromQL expressions against live Prometheus 3.5.0 (0 errors)
and compared before/after query outputs via Grafana 13.3.1 over a 30-day
synthetic dataset with 5 instance restarts and rolling overlap.
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.

1 participant