Skip to content

fix(archiver): restore pending block height metric under pipelining#22994

Merged
alexghr merged 2 commits into
merge-train/spartanfrom
palla/archiver-pending-block-height-metric
May 7, 2026
Merged

fix(archiver): restore pending block height metric under pipelining#22994
alexghr merged 2 commits into
merge-train/spartanfrom
palla/archiver-pending-block-height-metric

Conversation

@spalladino
Copy link
Copy Markdown
Contributor

Motivation

The aztec.archiver.block_height series with no status attribute (rendered as the "Pending chain" line on the network, prover, and fisherman Grafana dashboards) stopped being published a couple of weeks ago. With pipelining enabled every checkpoint arriving from L1 already has its blocks in the proposed store, so the L1 synchronizer always took the new promotion fast path introduced in #22716, leaving checkpointsToAdd empty and skipping the metric call.

Approach

Record the checkpointed block-height metrics across all valid checkpoints in the batch instead of only the ones routed through addCheckpoints, so the promoted checkpoint contributes too. The duration is averaged over the full batch since addCheckpoints performs the work for both paths in a single transaction.

Changes

  • archiver (l1_synchronizer.ts): Move the processNewCheckpointedBlocks call to use validCheckpoints rather than checkpointsToAdd, restoring the empty-status block_height, checkpoint_height, sync_block_count, and sync_per_checkpoint series under pipelining.

spalladino and others added 2 commits May 6, 2026 12:52
…omoted

Pipelining causes every checkpoint arriving from L1 to take the
proposed-promotion fast path, leaving `checkpointsToAdd` empty and
suppressing the `aztec.archiver.block_height` series without a status
attribute (the "Pending chain" line on the dashboards). Record the
metric across all valid checkpoints so the promoted path is also
covered.
@alexghr alexghr enabled auto-merge (squash) May 7, 2026 09:45
@AztecBot
Copy link
Copy Markdown
Collaborator

AztecBot commented May 7, 2026

Flakey Tests

🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry.

\033FLAKED\033 (8;;http://ci.aztec-labs.com/88b4a3c914d52ea4�88b4a3c914d52ea48;;�): yarn-project/scripts/run_test.sh bb-prover/src/avm_proving_tests/avm_check_circuit_token.test.ts (5s) (code: 0)

@alexghr alexghr merged commit c763be7 into merge-train/spartan May 7, 2026
14 checks passed
@alexghr alexghr deleted the palla/archiver-pending-block-height-metric branch May 7, 2026 10:04
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.

3 participants