feat(l1): add full-sync throughput regression watch #7114
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.55) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.55 · 529 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.375
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #7114"
general
weight: 0.35
ElFantasma
Motivation
We have no continuous signal for execution throughput on real mainnet blocks. The per-PR CI benchmark runs a synthetic dense-ERC20 import, and multisync validates snap sync completion — so a change that lands on
mainand slows mainnet full sync stays invisible until someone runs a manual benchmark. We did that manually for #7008/#7023 and it cost days of setup each time.Implements the design in #7111. Sibling manual A/B tool is #7112; both are meant to share the leg primitive added here.
Description
tooling/sync/fullsync_bench.pykeeps a node a fixed distance behind head and, per cycle per network:The base creeps forward at chain rate, so the node never ages and there is no anchor or reference commit to maintain.
Mis fixed and independent of the base's movement, so consecutive measurements overlap heavily — that overlap is what keeps day-to-day workload variation small enough for the series to be meaningful.The advance targets
head − GAPrather than a fixed block count, so it self-calibrates to each network's real block production and absorbs missed slots (relevant on testnets).run_legis deliberately pure — it never decides what happens to the resulting state, never assumes a particular ref, and never rotates anything. That is what lets #7112 reuse it unchanged.Reuses multisync's per-network service pairs via a compose override (
--syncmode full,mem_limit, published beacon APIs) rather than duplicating them, and its Slack webhook conventions.Scope of this PR
Observe-only. It measures, records one JSON per leg, and posts a Slack summary with the delta against the trailing median. Alerting and step detection are deliberately not here: the real day-to-day σ is unknown, and thresholds should be derived from 2–3 weeks of collected data rather than guessed. Multi-network config is in place; the default is mainnet only.
Testing
The metric extraction is split into
fullsync_metrics.pyprecisely so it can be tested without a node, a box or Docker — it is also the part most likely to be silently wrong.make fullsync-bench-testruns 7 tests against real log lines captured from the #7008/#7023 runs, covering: batch throughput mean/samples, the(unified pipeline)wording variant, blocks/s, gas-normalised phase timings, phase lines with no preceding block header (a truncated log must not skew the ratio), state-regeneration timing, and — importantly — that a run with no batches yieldsNonerather than0 Ggas/s, so a dead run is reported invalid instead of as a catastrophic regression.The orchestration itself needs a box with a synced node and cannot be exercised in CI;
make fullsync-bench-onceis the intended first real run.Operational invariants encoded in the code
These come from the manual benchmarking, not from preference:
docker stop -t 300only — repeated abrupt stops previously left the canonical head ahead of any durably-flushed state, after which the node could not regenerate and needed a full re-synceth_blockNumber, nevereth_syncing.currentBlock, which goes stale during catch-up and once let a leg overshoot its target badlyrsync --link-dest) base generations, so rollback costs deltas rather than full copiesFollow-ups (not in this PR)
Ggas/sis likely wrong for light testnet blocks, whereblocks/sor the phase timings may carry the signalChecklist
STORE_SCHEMA_VERSION(crates/storage/lib.rs) if the PR includes breaking changes to theStorerequiring a re-sync. — N/A: tooling only, no client code touched.