Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(replay): Make verify_latest_tx_replay_testnet_mainnet test more stable #5014

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jkrvivian
Copy link
Contributor

Description of change

Stabilize the verify_latest_tx_replay_testnet_mainnet test by adding a fallback checkpoint to replay a non-system transaction.

The issue is that non-system transactions are rare in the network, causing the test to spend a significant amount of time querying checkpoints (with records of querying over 2200 checkpoints). To address this, a fallback checkpoint containing a known non-system transaction is added. If a non-system transaction cannot be found during iteration, the test will use this fallback checkpoint and replay the transaction.

Links to any relevant issues

Closes #4976

Type of change

  • Enhancement

Change checklist

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have checked that new and existing unit tests pass locally with my changes

@jkrvivian jkrvivian requested a review from a team as a code owner January 24, 2025 13:19
Copy link

vercel bot commented Jan 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
apps-backend ⬜️ Ignored (Inspect) Visit Preview Jan 24, 2025 1:52pm
apps-ui-kit ⬜️ Ignored (Inspect) Visit Preview Jan 24, 2025 1:52pm
rebased-explorer ⬜️ Ignored (Inspect) Visit Preview Jan 24, 2025 1:52pm
wallet-dashboard ⬜️ Ignored (Inspect) Visit Preview Jan 24, 2025 1:52pm

@iota-ci iota-ci added core-protocol node Issues related to the Core Node team labels Jan 24, 2025
@jkrvivian jkrvivian self-assigned this Jan 24, 2025
@jkrvivian jkrvivian force-pushed the node/test/make-replay-test-stable branch 3 times, most recently from 5c1cb6b to 1f22f6b Compare January 24, 2025 13:38
@jkrvivian jkrvivian force-pushed the node/test/make-replay-test-stable branch from 1f22f6b to 09f2d9a Compare January 24, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-protocol node Issues related to the Core Node team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: iota-replay tests::verify_latest_tx_replay_testnet_mainnet is failing
3 participants