Skip to content

Conversation

@ganeshvanahalli
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Dec 17, 2025

Codecov Report

❌ Patch coverage is 1.54799% with 318 lines in your changes missing coverage. Please review.
✅ Project coverage is 33.84%. Comparing base (5a7085d) to head (767f30d).

Additional details and impacted files
@@                    Coverage Diff                     @@
##           raul/mel-inbox-reading    #4152      +/-   ##
==========================================================
- Coverage                   34.04%   33.84%   -0.21%     
==========================================================
  Files                         478      480       +2     
  Lines                       57130    57385     +255     
==========================================================
- Hits                        19451    19423      -28     
- Misses                      34268    34543     +275     
- Partials                     3411     3419       +8     

@github-actions
Copy link
Contributor

github-actions bot commented Dec 17, 2025

❌ 9 Tests Failed:

Tests completed Failed Passed Skipped
3954 9 3945 0
View the top 3 failed tests by shortest run time
TestVersion30
Stack Traces | 6.410s run time
... [CONTENT TRUNCATED: Keeping last 20 lines]
        testing.tRunner(0xc02f079500, 0x3cf1e80)
        	/opt/hostedtoolcache/go/1.25.5/x64/src/testing/testing.go:1934 +0xea
        created by testing.(*T).Run in goroutine 1
        	/opt/hostedtoolcache/go/1.25.5/x64/src/testing/testing.go:1997 +0x465
        
    precompile_inclusion_test.go:94: �[31;1m [] execution aborted (timeout = 5s) �[0;0m
INFO [01-22|14:21:31.226] Persisted trie from memory database      nodes=23  flushnodes=0 size=3.61KiB   flushsize=0.00B time="167.682µs"  flushtime=0s gcnodes=0 gcsize=0.00B gctime=950ns      livenodes=0    livesize=0.00B
INFO [01-22|14:21:31.226] Writing cached state to disk             block=1   hash=951212..977f91 root=d45d64..4e7811
INFO [01-22|14:21:31.226] Persisted trie from memory database      nodes=0   flushnodes=0 size=0.00B     flushsize=0.00B time="1.113µs"    flushtime=0s gcnodes=0 gcsize=0.00B gctime=0s         livenodes=0    livesize=0.00B
INFO [01-22|14:21:31.226] Writing snapshot state to disk           root=28fb26..40a768
INFO [01-22|14:21:31.226] Persisted trie from memory database      nodes=0   flushnodes=0 size=0.00B     flushsize=0.00B time=401ns        flushtime=0s gcnodes=0 gcsize=0.00B gctime=0s         livenodes=0    livesize=0.00B
INFO [01-22|14:21:31.226] Writing cached state to disk             block=1   hash=6f24bb..64bc58 root=8448b4..050cee
INFO [01-22|14:21:31.226] Persisted trie from memory database      nodes=20  flushnodes=0 size=3.26KiB   flushsize=0.00B time="108.452µs"  flushtime=0s gcnodes=0 gcsize=0.00B gctime="1.612µs"  livenodes=0    livesize=0.00B
INFO [01-22|14:21:31.227] Writing cached state to disk             block=1   hash=6f24bb..64bc58 root=8448b4..050cee
INFO [01-22|14:21:31.227] Persisted trie from memory database      nodes=0   flushnodes=0 size=0.00B     flushsize=0.00B time=711ns        flushtime=0s gcnodes=0 gcsize=0.00B gctime=0s         livenodes=0    livesize=0.00B
INFO [01-22|14:21:31.227] Writing snapshot state to disk           root=6b754c..7398ca
INFO [01-22|14:21:31.227] Persisted trie from memory database      nodes=0   flushnodes=0 size=0.00B     flushsize=0.00B time=440ns        flushtime=0s gcnodes=0 gcsize=0.00B gctime=0s         livenodes=0    livesize=0.00B
INFO [01-22|14:21:31.227] Blockchain stopped
INFO [01-22|14:21:31.226] Blockchain stopped
--- FAIL: TestVersion30 (6.41s)
TestVersion40
Stack Traces | 6.570s run time
... [CONTENT TRUNCATED: Keeping last 20 lines]
    precompile_inclusion_test.go:94: goroutine 598383 [running]:
        runtime/debug.Stack()
        	/opt/hostedtoolcache/go/1.25.5/x64/src/runtime/debug/stack.go:26 +0x5e
        github.com/offchainlabs/nitro/util/testhelpers.RequireImpl({0x40b5ef0, 0xc02f0796c0}, {0x40729c0, 0xc0e85fc450}, {0x0, 0x0, 0x0})
        	/home/runner/work/nitro/nitro/util/testhelpers/testhelpers.go:29 +0x55
        github.com/offchainlabs/nitro/system_tests.Require(0xc02f0796c0, {0x40729c0, 0xc0e85fc450}, {0x0, 0x0, 0x0})
        	/home/runner/work/nitro/nitro/system_tests/common_test.go:2065 +0x5d
        github.com/offchainlabs/nitro/system_tests.testPrecompiles(0xc02f0796c0, 0x28, {0xc0c357ddf8, 0x5, 0x39?})
        	/home/runner/work/nitro/nitro/system_tests/precompile_inclusion_test.go:94 +0x371
        github.com/offchainlabs/nitro/system_tests.TestVersion40(0xc02f0796c0?)
        	/home/runner/work/nitro/nitro/system_tests/precompile_inclusion_test.go:71 +0x64b
        testing.tRunner(0xc02f0796c0, 0x3cf1e88)
        	/opt/hostedtoolcache/go/1.25.5/x64/src/testing/testing.go:1934 +0xea
        created by testing.(*T).Run in goroutine 1
        	/opt/hostedtoolcache/go/1.25.5/x64/src/testing/testing.go:1997 +0x465
        
    precompile_inclusion_test.go:94: �[31;1m [] execution aborted (timeout = 5s) �[0;0m
WARN [01-22|14:21:31.226] Served eth_call                          reqid=12    duration=6.359216381s  err="execution aborted (timeout = 5s)"
INFO [01-22|14:21:31.226] Writing cached state to disk             block=1   hash=951212..977f91 root=d45d64..4e7811
--- FAIL: TestVersion40 (6.57s)
TestSequencerInboxReader
Stack Traces | 20.700s run time
... [CONTENT TRUNCATED: Keeping last 20 lines]
DEBUG[01-22|14:17:08.880] Journaled pathdb diff layer              root=605551..6fc2b9 parent=4a93fe..8cb893 id=95                 block=94
DEBUG[01-22|14:17:08.880] Journaled pathdb diff layer              root=e11281..ad9f06 parent=605551..6fc2b9 id=96                 block=95
DEBUG[01-22|14:17:08.880] Journaled pathdb diff layer              root=081089..f6aff7 parent=e11281..ad9f06 id=97                 block=96
DEBUG[01-22|14:17:08.880] Journaled pathdb diff layer              root=62e4e2..456295 parent=081089..f6aff7 id=98                 block=97
DEBUG[01-22|14:17:08.880] Journaled pathdb diff layer              root=4e7331..0e17a3 parent=62e4e2..456295 id=99                 block=98
DEBUG[01-22|14:17:08.880] Journaled pathdb diff layer              root=0169bc..62f3db parent=4e7331..0e17a3 id=100                block=99
DEBUG[01-22|14:17:08.880] Journaled pathdb diff layer              root=8f3d99..805c4d parent=0169bc..62f3db id=101                block=100
DEBUG[01-22|14:17:08.880] Journaled pathdb diff layer              root=79bfb5..61e153 parent=8f3d99..805c4d id=102                block=101
DEBUG[01-22|14:17:08.880] Journaled pathdb diff layer              root=29b798..d8a0bd parent=79bfb5..61e153 id=103                block=102
DEBUG[01-22|14:17:08.880] Journaled pathdb diff layer              root=9bda82..a31968 parent=29b798..d8a0bd id=104                block=103
DEBUG[01-22|14:17:08.880] Journaled pathdb diff layer              root=5ed948..90511e parent=9bda82..a31968 id=105                block=104
DEBUG[01-22|14:17:08.880] Journaled pathdb diff layer              root=434474..ed0d54 parent=5ed948..90511e id=106                block=105
DEBUG[01-22|14:17:08.880] Journaled pathdb diff layer              root=99d981..46bef4 parent=434474..ed0d54 id=107                block=106
DEBUG[01-22|14:17:08.880] Journaled pathdb diff layer              root=36b0a3..833985 parent=99d981..46bef4 id=108                block=107
DEBUG[01-22|14:17:08.880] Journaled pathdb diff layer              root=2f781f..c20209 parent=36b0a3..833985 id=109                block=108
DEBUG[01-22|14:17:08.880] Journaled pathdb diff layer              root=71f407..e56cf3 parent=2f781f..c20209 id=110                block=109
INFO [01-22|14:17:08.880] Persisted dirty state to disk            size=501.85KiB elapsed=5.193ms
INFO [01-22|14:17:08.881] Blockchain stopped
TRACE[01-22|14:17:08.881] P2P networking is spinning down
--- FAIL: TestSequencerInboxReader (20.70s)

📣 Thoughts on this report? Let Codecov know! | Powered by Codecov


func (mv *MELValidator) Start(ctx context.Context) {
mv.CallIteratively(func(ctx context.Context) time.Duration {
latestStaked, err := mv.rollup.LatestStakedAssertion(&bind.CallOpts{}, mv.boldStakerAddr)
Copy link
Contributor

Choose a reason for hiding this comment

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

This will only work if the current node's mv.boldStakerAddress is the one that is staked on the chain (needs $10 million USD). We should instead fetch the latest assertion we locally agree with. I think we need to expose a helper method for this, and I can do this once I return from holiday

if state.Hash() != wantState.Hash() {
return nil, fmt.Errorf("calculated MEL state hash in recording mode doesn't match the one computed in native mode, parentchainBlocknumber: %d", i)
}
if state.MsgCount >= toValidateMsgExtractionCount {
Copy link
Contributor

Choose a reason for hiding this comment

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

Very nice!

melValidator := staker.NewMELValidator(builder.L2.ConsensusNode.ArbDB, builder.L1.Client, builder.L2.ConsensusNode.MessageExtractor, blobReaderRegistry)
extractedMsgCount, err := builder.L2.ConsensusNode.TxStreamer.GetMessageCount()
Require(t, err)
entry, err := melValidator.CreateNextValidationEntry(ctx, startBlock, uint64(extractedMsgCount))
Copy link
Contributor

Choose a reason for hiding this comment

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

To test out multiple validations, we'll probably need to setup assertion posting...I can also help with this once Im back

@ganeshvanahalli ganeshvanahalli force-pushed the mel-validator-createvalidationentry branch from 5cfa36b to 2cea9a2 Compare January 5, 2026 06:30
@ganeshvanahalli ganeshvanahalli changed the base branch from raul/mel-inbox-reading to fetching-melobjectsfrom-preimages January 5, 2026 06:31
Base automatically changed from fetching-melobjectsfrom-preimages to raul/mel-tx-record January 6, 2026 09:57
Base automatically changed from raul/mel-tx-record to raul/mel-inbox-reading January 9, 2026 09:20
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.

4 participants