Skip to content

test(cli-wallet): wait for checkpointed in serial sandbox flow tests#23916

Merged
spalladino merged 1 commit into
merge-train/spartan-v5from
cb/fix-spartan-v5-cli-flow-reorg
Jun 5, 2026
Merged

test(cli-wallet): wait for checkpointed in serial sandbox flow tests#23916
spalladino merged 1 commit into
merge-train/spartan-v5from
cb/fix-spartan-v5-cli-flow-reorg

Conversation

@AztecBot

@AztecBot AztecBot commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Why

The merge-train/spartan-v5 PR (#23910) was dequeued from the merge queue: the merge-queue-heavy run failed on one of its 10 grind runs, on the cli-wallet flow test cli-wallet/test/flows/shield_and_transfer.sh.

The fatal error was a fee-juice claim failing after a chain reorg:

WARN  pxe:block_synchronizer  Pruning data after block 7 due to reorg
ERROR wallet  Error: No L1 to L2 message found for message hash 0x008e9f1b...
Simulation error: No L1 to L2 message found ... at FeeJuice.claim_and_end_setup

Root cause

The cli-wallet send / deploy / create-account / deploy-account commands wait for tx status proposed by default. In the serial, single-block local-network sandbox a proposed block can be orphaned and pruned before its checkpoint is published — exactly the reorg above. When that happens, a tx the caller already moved on from is dropped, and the bridged fee-juice L1→L2 message that the next deploy-account --payment fee_juice,claim depends on disappears, so the claim fails with No L1 to L2 message found. It is intermittent (1/10 grinds here), which is why it only bit in the heavy merge-queue run.

Fix

Scoped entirely to the flow-test harness: the aztec-wallet wrapper in shared/setup.sh now passes --wait-for-status checkpointed for the tx-producing commands (send, deploy, deploy-account, create-account), so each tx is durably included before the next is sent. Commands that pass --no-wait (e.g. bridge-fee-juice) or already set --wait-for-status are left untouched.

The cli-wallet itself is unchanged — its default is still proposed. This addresses the earlier review note to not change the wallet default and keep the change within the tests.

@AztecBot AztecBot added ci-draft Run CI on draft PRs. ci-no-squash claudebox Owned by claudebox. it can push to this PR. labels Jun 5, 2026
The cli-wallet flow tests run serially against the single-block local-network
sandbox, where a proposed block can be orphaned and pruned before its checkpoint
is published (a reorg). When that happens a tx the caller already moved on from
is dropped, and a later step that depends on it breaks: in shield_and_transfer.sh
the bridged fee-juice L1->L2 message is discarded and the subsequent fee_juice
claim fails with "No L1 to L2 message found". This intermittently dequeued the
merge-train/spartan-v5 PR from the merge queue.

Make the flow-test aztec-wallet wrapper pass --wait-for-status checkpointed for
the tx-producing commands (send/deploy/deploy-account/create-account), so each
tx is durably included before the next is sent. Scoped to the test harness only;
the cli-wallet default is unchanged (still 'proposed').
@AztecBot AztecBot changed the title fix(cli-wallet): wait for checkpointed in serial sandbox flow tests test(cli-wallet): wait for checkpointed in serial sandbox flow tests Jun 5, 2026
@AztecBot AztecBot force-pushed the cb/fix-spartan-v5-cli-flow-reorg branch from 53f912d to 70cf7ae Compare June 5, 2026 23:21

@spalladino spalladino left a comment

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.

Pending rollback after #23821 lands

@spalladino spalladino marked this pull request as ready for review June 5, 2026 23:25
@spalladino spalladino enabled auto-merge (squash) June 5, 2026 23:25
@spalladino spalladino merged commit 7626594 into merge-train/spartan-v5 Jun 5, 2026
17 of 21 checks passed
@spalladino spalladino deleted the cb/fix-spartan-v5-cli-flow-reorg branch June 5, 2026 23:50
spalladino added a commit that referenced this pull request Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-draft Run CI on draft PRs. ci-no-squash claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants