Skip to content

test(builder): stop deriving multiplex smoke timestamps from wall clock - #6455

Merged
meyer9 merged 1 commit into
mainfrom
fix-ci-20261105
Nov 5, 2026
Merged

meyer9 merged 1 commit into
mainfrom
fix-ci-20261105

Conversation

@meyer9

@meyer9 meyer9 commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Failing check

CI / ci / Rust failed on main at e4fd821: base-builder-multiplex::in_process_smoke::payload_builder_modes_match_flashblocks_baseline failed deterministically (two attempts) with RPC ServerError(-38003): "Invalid payload attributes" at crates/builder/multiplex/tests/in_process_smoke.rs:147.

Root cause

Denim activated on Base mainnet at timestamp 1_793_901_600 (Nov 5, 2026 18:00 UTC). The smoke test derived its payload-attribute timestamp from max(parent + 2s, wall clock + 2s), so once wall-clock time crossed Denim activation, every run produced post-Denim attributes. Post-Denim, the engine's validate_payload_attributes_against_header requires a BaseTimeUpdateTx deposit at tx[1] (crates/execution/node/src/engine.rs), and the test sends empty transactions — hence -38003 on every attempt. This is why CI passed on abdd59e0 (built before 18:00 UTC) and failed on e4fd821 (built after).

The engine behavior is correct and already unit-tested (test_payload_attributes_post_denim_require_base_time_transaction); the smoke test was authored with pre-Denim assumptions.

Fix

Anchor the build timestamp to the last legacy block slot before Denim activation (denim_activation_timestamp - legacy_block_interval), derived from BaseChainSpec::mainnet()'s schedule rather than hardcoded:

  • Past every scheduled fork, so withdrawals and the Jovian base-fee fields are expected and provided.
  • Still pre-Denim, so the single legacy block the smoke nodes build needs no BaseTime deposit and no 200ms-cadence handling.
  • Stable regardless of when the test runs — no wall-clock dependency.

The built blocks were previously compared across all four builder modes; that assertion is unchanged.

Verification

  • cargo test -p base-builder-multiplex --tests — 12/12 pass locally on the fix (the smoke test reproduces the -38003 failure before it).
  • Note: post-Denim multiplex coverage (base-time deposit flow across all four builder modes) is worth a follow-up; this PR only restores CI-green semantics for the legacy-block path.

@cb-heimdall

cb-heimdall commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Heimdall Review Status

Requirement Status More Info
Reviews ✅ 3/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
1 if authored by an app that is not allowlisted and lacks verified human attribution 0
Sum 1

// engine rejects unless they carry the BaseTime update deposit at tx[1] and follow the
// deterministic 200ms cadence. These smoke nodes build a single legacy block, so anchor the
// timestamp to the final pre-Denim slot: past every scheduled fork (so withdrawals and the
// Jovian base-fee fields are expected) and still far from Denim activation.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"still far from Denim activation" contradicts the code: build_timestamp is exactly one legacy interval (2s) before activation, so this should say "just before Denim activation". As written, someone could later move the anchor closer to the boundary thinking there's slack, and the test would quietly start depending on post-Denim behavior.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 65bd0ec — the comment now says "exactly one legacy interval before Denim activation" and warns against adding slack past the anchor. (Amended the single commit since the PR is unreviewed; re-ran the smoke test locally, still green.)

Denim activated on mainnet, so the smoke test's wall-clock-based payload
attributes became post-Denim attributes, which the engine rejects unless
they carry the BaseTime update deposit at tx[1]. Anchor the build
timestamp to the last legacy block slot before Denim activation instead:
past every scheduled fork and still pre-Denim, so a single legacy block
stays valid regardless of when the test runs.

Co-authored-by: Julian Meyer <[email protected]>
Amp-Thread-ID: https://ampcode.com/threads/T-09d6a81e-204d-45bb-a227-69764d686e37
@meyer9
meyer9 enabled auto-merge November 5, 2026 19:37
@meyer9
meyer9 requested a review from jowparks November 5, 2026 19:38
@meyer9
meyer9 added this pull request to the merge queue Nov 5, 2026
Merged via the queue into main with commit 407af44 Nov 5, 2026
27 checks passed
@meyer9
meyer9 deleted the fix-ci-20261105 branch November 5, 2026 20:14
fahimahmedx pushed a commit that referenced this pull request Nov 12, 2026
…ck (#6455)

Denim activated on mainnet, so the smoke test's wall-clock-based payload
attributes became post-Denim attributes, which the engine rejects unless
they carry the BaseTime update deposit at tx[1]. Anchor the build
timestamp to the last legacy block slot before Denim activation instead:
past every scheduled fork and still pre-Denim, so a single legacy block
stays valid regardless of when the test runs.

Amp-Thread-ID: https://ampcode.com/threads/T-09d6a81e-204d-45bb-a227-69764d686e37

Co-authored-by: Amp <[email protected]>
(cherry picked from commit 407af44)
haardikk21 pushed a commit that referenced this pull request Nov 12, 2026
… layer (backport #6557 to v1.5.5) (#6567)

* feat(sequencer): seal payloads on execution freeze notifications

Backport of #6557 to releases/v1.5.5.

* test(builder): exercise native payload-ready wiring

* test(sequencer): cover searcher next-block inclusion with early broadcast

* docs: update the docs index for frozen payload notifications

* chore(payload): order the tokio dependency by line length

* feat(sequencer): add early-seal metrics

Count seals by trigger, record when getPayload and gossip happen relative to the slot start, and count frozen-payload hints sent by the builder and dropped by the sequencer.

* docs(runner): note the exported prefix of early-seal metrics

* fix(sequencer): seal early when a hinted rebuild reuses the last sealed payload id

Track the frozen hint on the payload handle so it cannot outlive its build, and treat a hint as having lost to the deadline only when it matches no active build.

* refactor(sequencer): drop the gossip offset metric

It stopped at the handoff to the network actor rather than the publish, so it added little over the getPayload offset.

* feat(sequencer): record when each block build starts in its slot

A Denim build reads the transaction pool once, after the build is requested, so this offset is the deadline for landing in that block.

* fix(sequencer): measure slot start from the parent timestamp on the release branch

The isolated-sequencer schedule delay that block_deadline applies on main is not on releases/v1.5.5.

* test(sequencer): pin when early-seal offsets are taken

Cover build starts recorded outside the ticker, assert the getPayload offset is taken before the request, and describe the build start offset as part of the searcher reaction window.

* docs: restamp the runner README in the docs index

* test(builder): stop deriving multiplex smoke timestamps from wall clock (#6455)

Denim activated on mainnet, so the smoke test's wall-clock-based payload
attributes became post-Denim attributes, which the engine rejects unless
they carry the BaseTime update deposit at tx[1]. Anchor the build
timestamp to the last legacy block slot before Denim activation instead:
past every scheduled fork and still pre-Denim, so a single legacy block
stays valid regardless of when the test runs.

Amp-Thread-ID: https://ampcode.com/threads/T-09d6a81e-204d-45bb-a227-69764d686e37

Co-authored-by: Amp <[email protected]>
(cherry picked from commit 407af44)

---------

Co-authored-by: Julian Meyer <[email protected]>
Co-authored-by: Amp <[email protected]>
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.

6 participants