Skip to content

node(svm): add incomplete log replay coverage - #12

Open
ayushmishra2005 wants to merge 1 commit into
johnsaigle:feat-svm-watcher-regression-testsfrom
ayushmishra2005:test/solana-watcher-incomplete-logs
Open

node(svm): add incomplete log replay coverage#12
ayushmishra2005 wants to merge 1 commit into
johnsaigle:feat-svm-watcher-regression-testsfrom
ayushmishra2005:test/solana-watcher-incomplete-logs

Conversation

@ayushmishra2005

Copy link
Copy Markdown

Adds a focused Solana watcher replay case on top of wormhole-foundation#4924 for incomplete transaction logs.

The new fixture keeps the transaction/account data valid but preserves only the core program invoke log and omits the Sequence line. This covers the current behavior across the replay paths:

  • block observation: no publication
  • transaction reobservation: one publication
  • polling: one publication
  • account reobservation: one publication

The three successful paths produce the same VAA signing digest.

This also includes the minimum testgen compatibility update needed for the current wormhole-foundation#4924 head. MessagePublicationAccount now uses VaaTime and VaaSignatureAccount instead of the removed fields. The stale pm_reliable_not_finalized scenario was removed because it depended on the removed MessageStatus field.

Validation:

  • go test ./pkg/watchers/solana/testgen/...
  • go run ./pkg/watchers/solana/testgen/cmd static
  • UPDATE_SOLANA_REPLAY_FIXTURES=1 go test -v ./pkg/watchers/solana/ -run TestReplayGeneratedBundles
  • go test ./pkg/watchers/solana/ -run TestReplayGeneratedBundles
  • go test ./pkg/watchers/solana/...
  • git diff --check

All pass.

@djb15 this is the test-only follow-up you suggested around wormhole-foundation#4924.

@djb15

djb15 commented Aug 26, 2026

Copy link
Copy Markdown

Thank you!

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