Skip to content

Conversation

@codchen
Copy link
Collaborator

@codchen codchen commented Jan 15, 2026

Describe your changes and provide context

Add github.com/sei-protocol/sei-wasmvm v1.5.4-sei.0.0.2 as a legacy VM to be used prior to v6.3.0 (specifically for tracing where old transactions need to be executed with the old logic exactly). For transactions post v6.3.0, they will use the monorepo sei-wasmvm.

Testing performed to validate your change

regression tests

@github-actions
Copy link

github-actions bot commented Jan 15, 2026

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

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedJan 16, 2026, 8:16 PM

@codecov
Copy link

codecov bot commented Jan 15, 2026

Codecov Report

❌ Patch coverage is 37.44589% with 867 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.31%. Comparing base (4082665) to head (56d7116).
⚠️ Report is 1 commits behind head on release/v6.3.

Files with missing lines Patch % Lines
sei-wasmd/x/wasm/artifacts/v154/api/mocks.go 34.29% 214 Missing and 14 partials ⚠️
sei-wasmd/x/wasm/artifacts/v154/lib.go 0.00% 228 Missing ⚠️
sei-wasmd/x/wasm/artifacts/v154/api/lib.go 57.31% 135 Missing and 8 partials ⚠️
sei-wasmd/x/wasm/artifacts/v154/api/callbacks.go 58.33% 66 Missing and 19 partials ⚠️
...ei-wasmd/x/wasm/artifacts/v154/api/testdb/memdb.go 0.00% 83 Missing ⚠️
...x/wasm/artifacts/v154/api/testdb/memdb_iterator.go 0.00% 80 Missing ⚠️
sei-wasmd/x/wasm/artifacts/v154/lib_no_cgo.go 0.00% 11 Missing ⚠️
sei-wasmd/x/wasm/keeper/keeper.go 33.33% 3 Missing and 1 partial ⚠️
sei-wasmd/x/wasm/artifacts/v154/api/version.go 66.66% 1 Missing and 1 partial ⚠️
sei-wasmd/x/wasm/artifacts/v154/version_cgo.go 0.00% 2 Missing ⚠️
... and 1 more

❌ Your project status has failed because the head coverage (38.19%) is below the target coverage (40.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@               Coverage Diff                @@
##           release/v6.3    #2703      +/-   ##
================================================
- Coverage         43.79%   43.31%   -0.48%     
================================================
  Files              1293     1866     +573     
  Lines            105129   155279   +50150     
================================================
+ Hits              46036    67257   +21221     
- Misses            54929    82010   +27081     
- Partials           4164     6012    +1848     
Flag Coverage Δ
sei-chain 42.46% <0.00%> (?)
sei-cosmos 37.95% <ø> (ø)
sei-db 44.92% <ø> (ø)
sei-ibc-go 55.96% <ø> (ø)
sei-tendermint 47.49% <ø> (-0.02%) ⬇️
sei-wasmd 41.56% <37.47%> (?)
sei-wasmvm 39.88% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
sei-wasmd/x/wasm/artifacts/v154/api/iterator.go 100.00% <100.00%> (ø)
sei-wasmd/x/wasm/artifacts/v154/api/memory.go 100.00% <100.00%> (ø)
...ei-wasmd/x/wasm/artifacts/v154/api/mock_failure.go 100.00% <100.00%> (ø)
x/evm/ante/preprocess.go 77.50% <0.00%> (ø)
sei-wasmd/x/wasm/artifacts/v154/api/version.go 66.66% <66.66%> (ø)
sei-wasmd/x/wasm/artifacts/v154/version_cgo.go 0.00% <0.00%> (ø)
sei-wasmd/x/wasm/keeper/keeper.go 81.63% <33.33%> (ø)
sei-wasmd/x/wasm/artifacts/v154/lib_no_cgo.go 0.00% <0.00%> (ø)
...x/wasm/artifacts/v154/api/testdb/memdb_iterator.go 0.00% <0.00%> (ø)
...ei-wasmd/x/wasm/artifacts/v154/api/testdb/memdb.go 0.00% <0.00%> (ø)
... and 4 more

... and 576 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.

Comment on lines +438 to +442
for k, v := range balances {
dst := make([]types.Coin, len(v))
copy(dst, v)
bal[k] = dst
}

Check warning

Code scanning / CodeQL

Iteration over map Warning

Iteration over map may be a possible source of non-determinism

func (i *memDBIterator) assertIsValid() {
if !i.Valid() {
panic("iterator is invalid")

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods Warning test

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
Comment on lines +48 to +95
go func() {
if useMtx {
defer db.mtx.RUnlock()
}
// Because we use [start, end) for reverse ranges, while btree uses (start, end], we need
// the following variables to handle some reverse iteration conditions ourselves.
var (
skipEqual []byte
abortLessThan []byte
)
visitor := func(i btree.Item) bool {
item := i.(*item)
if skipEqual != nil && bytes.Equal(item.key, skipEqual) {
skipEqual = nil
return true
}
if abortLessThan != nil && bytes.Compare(item.key, abortLessThan) == -1 {
return false
}
select {
case <-ctx.Done():
return false
case ch <- item:
return true
}
}
switch {
case start == nil && end == nil && !reverse:
db.btree.Ascend(visitor)
case start == nil && end == nil && reverse:
db.btree.Descend(visitor)
case end == nil && !reverse:
// must handle this specially, since nil is considered less than anything else
db.btree.AscendGreaterOrEqual(newKey(start), visitor)
case !reverse:
db.btree.AscendRange(newKey(start), newKey(end), visitor)
case end == nil:
// abort after start, since we use [start, end) while btree uses (start, end]
abortLessThan = start
db.btree.Descend(visitor)
default:
// skip end and abort after start, since we use [start, end) while btree uses (start, end]
skipEqual = end
abortLessThan = start
db.btree.DescendLessOrEqual(newKey(end), visitor)
}
close(ch)
}()

Check notice

Code scanning / CodeQL

Spawning a Go routine Note test

Spawning a Go routine may be a possible source of non-determinism
codchen and others added 2 commits January 16, 2026 18:28
## Describe your changes and provide context
We will disallow unsafe tx starting v6.3.0, but unsafe txs that were
sent before v6.3.0 should still be traceable

## Testing performed to validate your change
tested on rpc node
@masih masih enabled auto-merge (squash) January 16, 2026 20:45
@masih masih merged commit 14c4257 into release/v6.3 Jan 16, 2026
57 of 64 checks passed
@masih masih deleted the tony/v6.3 branch January 16, 2026 20:46
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.

5 participants