Skip to content

ci: add Autobahn EVM Module; drop sei_getEvmTx test (CON-256)#3468

Merged
wen-coding merged 7 commits into
mainfrom
wen/add_autobahn_evm_hardhat_tests
May 21, 2026
Merged

ci: add Autobahn EVM Module; drop sei_getEvmTx test (CON-256)#3468
wen-coding merged 7 commits into
mainfrom
wen/add_autobahn_evm_hardhat_tests

Conversation

@wen-coding
Copy link
Copy Markdown
Contributor

@wen-coding wen-coding commented May 20, 2026

Adds Autobahn EVM Module CI. Drops EVMCompatabilityTest string-var
test (sei_getEvmTx has been on the decomm list, it's not supported in Autobahn).

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

@cursor
Copy link
Copy Markdown

cursor Bot commented May 20, 2026

PR Summary

Low Risk
Low risk: changes are limited to CI matrix configuration and test-suite cleanup, with no production logic modifications.

Overview
Adds a new GitHub Actions integration-test matrix entry for Autobahn EVM Module, running the existing EVM + FlatKV fixture/verification scripts under AUTOBAHN=true and related GIGA flags.

Removes the EVMCompatabilityTest case that depended on deprecated sei_getEvmTx/sei_getCosmosTx helpers (and drops those imports), keeping the remaining variable-type/event tests intact.

Reviewed by Cursor Bugbot for commit bd295fe. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 20, 2026

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedMay 21, 2026, 6:23 AM

@github-actions
Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedMay 20, 2026, 12:20 AM

@wen-coding wen-coding force-pushed the wen/add_autobahn_evm_hardhat_tests branch 2 times, most recently from f3976e9 to 6accbac Compare May 20, 2026 00:22
@wen-coding wen-coding marked this pull request as draft May 20, 2026 00:46
@wen-coding
Copy link
Copy Markdown
Contributor Author

This should succeed after PR#3452 lands.

Mirrors the existing "EVM Module" CI job with AUTOBAHN=true plus the
GIGA_EXECUTOR/GIGA_STORAGE/GIGA_OCC flag set used by the "Autobahn
EVM GIGA Module" job. Same 4 steps as the CometBFT job:

  - evm_tests.sh                          (EVMCompatabilityTest,
                                           EVMPrecompileTest,
                                           SeiEndpointsTest,
                                           AssociateTest)
  - deploy_flatkv_evm_fixture.sh          (seeds historical EVM
                                           state: balance, storage,
                                           code)
  - flatkv_evm_test.yaml                  (historical EVM RPC reads
                                           via cast: balance, storage,
                                           code at past block heights)
  - verify_flatkv_evm_store.sh            (seidb dump-flatkv smoke
                                           check on the on-disk
                                           storage bucket)

Complements the narrower "Autobahn EVM GIGA Module" (smoke-tests
EVMGigaTest.js on native+ERC20 transfers only) by adding broader
EVM-compat + Sei-precompile + sei-endpoint + association coverage
plus historical-state correctness, none of which are exercised
elsewhere under Autobahn.

Verified locally on a 4-node Autobahn docker cluster:
  evm_tests.sh:                  101 passing, 1 pending, 0 failing
  deploy_flatkv_evm_fixture.sh:  fixture seeded at heights 17567/17571
  (flatkv yaml + verify steps deferred to CI; the 3 flatkv components
  have zero -b block usages and use only EVM RPC + seid queries, so
  they're Autobahn-clean.)

Autobahn EVM Interoperability deferred until #3406 (lib.js
response-reading helper migration) lands; without it, the
suite's CW-deploy setup hooks depend on unmigrated -b block
helpers and CI passing would be accidental rather than verified.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@wen-coding wen-coding force-pushed the wen/add_autobahn_evm_hardhat_tests branch from 6accbac to a9bb50e Compare May 20, 2026 00:56
@codecov
Copy link
Copy Markdown

codecov Bot commented May 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.02%. Comparing base (5f0a0a2) to head (bd295fe).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3468      +/-   ##
==========================================
- Coverage   59.08%   59.02%   -0.06%     
==========================================
  Files        2187     2188       +1     
  Lines      182281   181836     -445     
==========================================
- Hits       107699   107334     -365     
+ Misses      64936    64893      -43     
+ Partials     9646     9609      -37     
Flag Coverage Δ
sei-db 70.41% <ø> (-0.22%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 52 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

… (CON-256)

Under Autobahn the cosmos tx indexer isn't wired, so sei_getEvmTx
(cosmos->evm reverse lookup) can't resolve. String-variable coverage is
preserved by sibling bytes/mapping/private-var cases in the same
Variable Types block.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@wen-coding wen-coding changed the title ci: add Autobahn EVM Module (CON-256) ci: add Autobahn EVM Module; drop string-var test using sei_getEvmTx (CON-256) May 20, 2026
@wen-coding wen-coding changed the title ci: add Autobahn EVM Module; drop string-var test using sei_getEvmTx (CON-256) ci: add Autobahn EVM Module; drop sei_getEvmTx test (CON-256) May 20, 2026
@wen-coding wen-coding marked this pull request as ready for review May 20, 2026 18:47
@wen-coding wen-coding marked this pull request as draft May 20, 2026 18:58
Under Autobahn, /block_results returns a stub ResultBlockResults with
empty TxsResults (see sei-tendermint/internal/rpc/core/blocks.go). Indexing
TxsResults[msg.index] for Wasm or bank txs trips an out-of-range access
and surfaces as "method handler crashed" on sei_getBlockByNumber and
sei_getBlockByHash.

Bounds-check before indexing: for Wasm, fall back to receipt.GasUsed
(receipt is already fetched and guaranteed by filterTransactions); for
bank, skip the gas increment (no receipt is fetched in that branch).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Supersedes df033b7's bounds-check fix on this branch with #3477's
final shape: removes the blockRes parameter from EncodeTmBlock
entirely, using receipt.GasUsed (already fetched for wasm; newly
fetched for bank) as the per-tx gas source. Verifies that #3477's
refactor unblocks this PR's Autobahn EVM Module CI job.

Will collapse with df033b7 on rebase once #3477 merges.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@wen-coding wen-coding marked this pull request as ready for review May 21, 2026 06:22
@wen-coding wen-coding enabled auto-merge May 21, 2026 06:23
@wen-coding wen-coding added this pull request to the merge queue May 21, 2026
Merged via the queue into main with commit 0c00f61 May 21, 2026
44 checks passed
@wen-coding wen-coding deleted the wen/add_autobahn_evm_hardhat_tests branch May 21, 2026 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants