Skip to content

Skip or re-enable tests for TVM/EVM divergences#70

Open
km631 wants to merge 1 commit into
feat/tvm-test-helpersfrom
feat/tvm-test-skips
Open

Skip or re-enable tests for TVM/EVM divergences#70
km631 wants to merge 1 commit into
feat/tvm-test-helpersfrom
feat/tvm-test-skips

Conversation

@km631
Copy link
Copy Markdown
Collaborator

@km631 km631 commented May 29, 2026

Part 3 of 3 splitting #64. Stacked on feat/tvm-test-helpers (part 2) — review/merge last.

What

Skip or re-enable tests for TVM/EVM divergences.

  • Skip TrieProof (needs un-bridged anvil ethers + EVM trie roots).
  • Skip the Blockhash future-block case (TVM BLOCKHASH returns non-zero for future blocks).
  • Skip the sanity snapshot block-rollback assertion (TVM block number is monotonic through tre_revert).
  • Skip the TRC20Votes one-checkpoint-per-block test (TRE cannot stage N transactions into one block; depends on the dual-mode batchInBlock from part 2).
  • Re-enable 4 RelayedCall tests that were over-skipped; they pass on TVM.

🤖 Generated with Claude Code

Comment thread test/utils/Blockhash.test.js Outdated
// (past) block hashes, where `recent block` and `old block` above already
// verify correct behavior. The spike (source of truth) has no Blockhash
// test at all.
it.skip('future block', async function () {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is not correct. The TVM and EVM BLOCKHASH opcode work the same way, this is an issue on the runtime. The issue was fixed differently on #67

@km631 km631 force-pushed the feat/tvm-test-skips branch from 710e881 to bc545b6 Compare May 30, 2026 08:02
@km631 km631 mentioned this pull request May 30, 2026
@km631 km631 force-pushed the feat/tvm-test-helpers branch from af46156 to adfb2fc Compare May 30, 2026 08:05
Skip TrieProof (needs un-bridged anvil ethers and EVM trie roots), the
sanity snapshot block-rollback assertion (TVM block number is monotonic
through tre_revert), and the TRC20Votes one-checkpoint-per-block test
(TRE cannot stage N transactions into one block). Re-enable 4 RelayedCall
tests that were over-skipped; they pass on TVM.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@km631 km631 force-pushed the feat/tvm-test-skips branch from bc545b6 to ee9eb5c Compare May 30, 2026 08:06
@km631
Copy link
Copy Markdown
Collaborator Author

km631 commented May 30, 2026

Good catch — you're right that BLOCKHASH behaves identically on TVM and EVM and the real cause was the stale fixture-cached latestBlock (monotonic block number through tre_revert). Since #67 already fixed Blockhash.test.js correctly on master, I've dropped the Blockhash change from this PR entirely (rebased onto current master, so the file now matches #67). This PR now only skips TrieProof, the sanity snapshot assertion, and the TRC20Votes one-checkpoint-per-block test, and re-enables the 4 RelayedCall tests.

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