Skip to content

metrics, node: lean_block_proposal attestation build metrics#914

Merged
anshalshukla merged 5 commits into
mainfrom
metrics/block-proposal-attestation-build
May 22, 2026
Merged

metrics, node: lean_block_proposal attestation build metrics#914
anshalshukla merged 5 commits into
mainfrom
metrics/block-proposal-attestation-build

Conversation

@ch4r10t33r
Copy link
Copy Markdown
Contributor

Summary

Adds cross-client lean_block_proposal_* metrics for block-proposal attestation selection in getProposalAttestationsUnlocked, aligned with leanSpec #753:

  • lean_block_proposal_attestation_build_phase_seconds{phase}select_payloads, compact_ffi, stf_simulate
  • lean_block_proposal_attestation_builds_total
  • lean_block_proposal_child_payloads_consumed_total
  • lean_block_proposal_attestation_data_selected
  • lean_block_proposal_aggregates_selected

These are not the same as zeam_compact_attestations_* (per-compactAttestations FFI time and attestation row in/out only). lean_block_building_payload_aggregation_time_seconds remains the wall-clock total for the whole call.

Test plan

  • zig build test
  • CI green

Instrument getProposalAttestations with cross-client lean_* phase timing,
build/child-payload counters, and attestation-data/aggregate histograms.
Distinct from zeam_compact_attestations_* (compactAttestations FFI only).
Align phase label with leanSpec #753; compact is spec-level recursive
merge, not an FFI-specific step name.
anshalshukla
anshalshukla previously approved these changes May 21, 2026
CI stalled finalization at slot 12 so node3 never emitted its own
new_finalization within 480s. Accept head-event progress after the
delayed node3 start (original #484 approach) while still honoring
node3 finalization or a later global finalization when they occur.
Remove the per-event SUCCESS log that fired before assertions.
ch4r10t33r and others added 2 commits May 21, 2026 21:29
CI records ~25 new_head events by first finalization and only one more
before the chain stalls; requiring +5 never tripped got_node3_sync.
Use strictly-more-than baseline and re-check at timeout exit.
@ch4r10t33r ch4r10t33r requested a review from anshalshukla May 21, 2026 22:20
@anshalshukla anshalshukla merged commit 9602ba3 into main May 22, 2026
13 checks passed
@anshalshukla anshalshukla deleted the metrics/block-proposal-attestation-build branch May 22, 2026 08:19
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