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

feat: PRT: Block Hash Cache #1623

Closed
wants to merge 74 commits into from

Merge branch 'PRT-block-hash-cache' of github.com:lavanet/lava into P…

3d661b4
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Closed

feat: PRT: Block Hash Cache #1623

Merge branch 'PRT-block-hash-cache' of github.com:lavanet/lava into P…
3d661b4
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Results failed Aug 19, 2024 in 0s

1 errors, 2 fail, 2 026 pass in 25m 41s

2 029 tests   - 141   2 026 ✅  - 144   25m 41s ⏱️ +59s
  142 suites  -   2       0 💤 ±  0 
    6 files    -   1       2 ❌ +  2   1 🔥 +1 

Results for commit 3d661b4. ± Comparison against earlier commit 9b7822c.

Annotations

Check warning on line 0 in github.com/lavanet/lava/v2/protocol/rpcconsumer

See this annotation in the file changed.

@github-actions github-actions / Test Results

TestRelayProcessorHappyFlow (github.com/lavanet/lava/v2/protocol/rpcconsumer) failed

artifacts/Test Results (Protocol)/protocol-report.xml [took 0s]
Raw output
Failed

Check warning on line 0 in github.com/lavanet/lava/v2/protocol/rpcconsumer

See this annotation in the file changed.

@github-actions github-actions / Test Results

TestRelayProcessorHappyFlow/happy (github.com/lavanet/lava/v2/protocol/rpcconsumer) failed

artifacts/Test Results (Protocol)/protocol-report.xml [took 0s]
Raw output
Failed
Aug 19 10:15:04 INF setting log level loglevel=debug
Aug 19 10:15:04 ERR URL scheme should be (http/https), got: ws apiInterface=rest url=ws://127.0.0.1:38193
Aug 19 10:15:04 ERR usedProvidersKey was not found in used providers map, returning default usedProvidersKey=||
    relay_processor_test.go:46: 
        	Error Trace:	/home/runner/work/lava/lava/protocol/rpcconsumer/relay_processor_test.go:46
        	            				/opt/hostedtoolcache/go/1.20.14/x64/src/runtime/asm_amd64.s:1598
        	Error:      	Received unexpected error:
        	            	usedProvidersKey was not found in used providers map, returning default {usedProvidersKey:||}
        	Test:       	TestRelayProcessorHappyFlow/happy
Aug 19 10:15:04 WRN cancelled relay processor total responses=0
    relay_processor_test.go:222: 
        	Error Trace:	/home/runner/work/lava/lava/protocol/rpcconsumer/relay_processor_test.go:222
        	Error:      	Received unexpected error:
        	            	cancelled relay processor {total responses:0}
        	Test:       	TestRelayProcessorHappyFlow/happy

Check failure on line 0 in github.com/lavanet/lava/v2/protocol/rpcconsumer

See this annotation in the file changed.

@github-actions github-actions / Test Results

TestRelayProcessorNodeErrorRetryFlow (github.com/lavanet/lava/v2/protocol/rpcconsumer) with error

artifacts/Test Results (Protocol)/protocol-report.xml [took 0s]
Raw output
No test result found
Aug 19 10:15:04 INF setting log level loglevel=debug
Aug 19 10:15:04 ERR URL scheme should be (http/https), got: ws apiInterface=rest url=ws://127.0.0.1:43825
Aug 19 10:15:04 ERR usedProvidersKey was not found in used providers map, returning default usedProvidersKey=||
    relay_processor_test.go:86: 
        	Error Trace:	/home/runner/work/lava/lava/protocol/rpcconsumer/relay_processor_test.go:86
        	            				/opt/hostedtoolcache/go/1.20.14/x64/src/runtime/asm_amd64.s:1598
        	Error:      	Received unexpected error:
        	            	usedProvidersKey was not found in used providers map, returning default {usedProvidersKey:||}
        	Test:       	TestRelayProcessorNodeErrorRetryFlow
2024/08/19 10:17:34 http: panic serving 127.0.0.1:47046: got error in ReadMessage
goroutine 45 [running]:
net/http.(*conn).serve.func1()
	/opt/hostedtoolcache/go/1.20.14/x64/src/net/http/server.go:1854 +0xbf
panic({0x269dde0, 0x36dd890})
	/opt/hostedtoolcache/go/1.20.14/x64/src/runtime/panic.go:890 +0x263
github.com/lavanet/lava/v2/protocol/chainlib.genericWebSocketHandler.func1({0x370cc10?, 0xc000562fc0?}, 0x28411c0?)
	/home/runner/work/lava/lava/protocol/chainlib/common_test_utils.go:107 +0x245
net/http.HandlerFunc.ServeHTTP(0x0?, {0x370cc10?, 0xc000562fc0?}, 0x470b6e?)
	/opt/hostedtoolcache/go/1.20.14/x64/src/net/http/server.go:2122 +0x2f
net/http.serverHandler.ServeHTTP({0xc001af41e0?}, {0x370cc10, 0xc000562fc0}, 0xc0002e7500)
	/opt/hostedtoolcache/go/1.20.14/x64/src/net/http/server.go:2936 +0x316
net/http.(*conn).serve(0xc001bfe000, {0x3710368, 0xc00147cbd0})
	/opt/hostedtoolcache/go/1.20.14/x64/src/net/http/server.go:1995 +0x612
created by net/http.(*Server).Serve
	/opt/hostedtoolcache/go/1.20.14/x64/src/net/http/server.go:3089 +0x5ed
panic: test timed out after 10m0s
running tests:
	TestRelayProcessorNodeErrorRetryFlow (10m0s)

goroutine 47 [running]:
testing.(*M).startAlarm.func1()
	/opt/hostedtoolcache/go/1.20.14/x64/src/testing/testing.go:2241 +0x3c5
created by time.goFunc
	/opt/hostedtoolcache/go/1.20.14/x64/src/time/sleep.go:176 +0x32

goroutine 1 [chan receive, 9 minutes]:
testing.(*T).Run(0xc000571040, {0x2bd0f79?, 0x541185?}, 0x3259c90)
	/opt/hostedtoolcache/go/1.20.14/x64/src/testing/testing.go:1630 +0x405
testing.runTests.func1(0x4f5dfe0?)
	/opt/hostedtoolcache/go/1.20.14/x64/src/testing/testing.go:2036 +0x45
testing.tRunner(0xc000571040, 0xc000defc88)
	/opt/hostedtoolcache/go/1.20.14/x64/src/testing/testing.go:1576 +0x10b
testing.runTests(0xc00034eb40?, {0x4f1d300, 0xf, 0xf}, {0xd0?, 0x1000004f5dfe0?, 0x4f54b20?})
	/opt/hostedtoolcache/go/1.20.14/x64/src/testing/testing.go:2034 +0x489
testing.(*M).Run(0xc00034eb40)
	/opt/hostedtoolcache/go/1.20.14/x64/src/testing/testing.go:1906 +0x63a
main.main()
	_testmain.go:75 +0x1aa

goroutine 19 [select]:
github.com/golang/glog.(*fileSink).flushDaemon(0x4f54a38)
	/home/runner/go/pkg/mod/github.com/golang/[email protected]/glog_file.go:351 +0xcd
created by github.com/golang/glog.init.1
	/home/runner/go/pkg/mod/github.com/golang/[email protected]/glog_file.go:166 +0x145

goroutine 6 [IO wait, 10 minutes]:
internal/poll.runtime_pollWait(0x7f883027dae0, 0x72)
	/opt/hostedtoolcache/go/1.20.14/x64/src/runtime/netpoll.go:306 +0x89
internal/poll.(*pollDesc).wait(0xc00043d600?, 0xc00049d3d0?, 0x0)
	/opt/hostedtoolcache/go/1.20.14/x64/src/internal/poll/fd_poll_runtime.go:84 +0x32
internal/poll.(*pollDesc).waitRead(...)
	/opt/hostedtoolcache/go/1.20.14/x64/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).ReadMsg(0xc00043d600, {0xc00049d3d0, 0x10, 0x10}, {0xc00033f320, 0x1000, 0x1000}, 0x1?)
	/opt/hostedtoolcache/go/1.20.14/x64/src/internal/poll/fd_unix.go:304 +0x3aa
net.(*netFD).readMsg(0xc00043d600, {0xc00049d3d0?, 0x1ab?, 0xc00050fce0?}, {0xc00033f320?, 0x2000?, 0x0?}, 0x1302690a8?)
	/opt/hostedtoolcache/go/1.20.14/x64/src/net/fd_posix.go:78 +0x37
net.(*UnixConn).readMsg(0xc000120588, {0xc00049d3d0?, 0xc00050fd50?, 0x425425?}, {0xc00033f320?, 0x40f71e?, 0x7f885983a7e8?})
	/opt/hostedtoolcache/go/1.20.14/x64/src/net/unixsock_posix.go:115 +0x4f
net.(*UnixConn).ReadMsgUnix(0xc000120588, {0xc00049d3d0?, 0x4182b0?, 0x41d6d1?}, {0xc00033f320?, 0x40feaa?, 0xc000012780?})
	/opt/hostedtoolcache/go/1.20.14/x64/src/net/unixsock.go:143 +0x3c
github.com/godbus/dbus.(*oobReader).Read(0xc00033f300, {0xc00049d3d0?, 0xc00050fe28?, 0x410287?})
	/home/runner/go/pkg/mod/github.com/godbus/[email protected]/transport_unix.go:21 +0x45
io.ReadAtLeast({0x36e4a20, 0xc00033f300}, {0xc00049d3d0, 0x10, 0x10}, 0x10)
	/opt/hostedtoolcache/go/1.20.14/x64/src/io/io.go:332 +0x9a
io.ReadFull(...)
	/opt/hostedtoolcache/go/1.20.14/x64/src/io/io.go:351
github.com/godbus/dbus.(*unixTransport).ReadMessage(0xc0003c2cf0)
	/home/runner/go/pkg/mod/github.com/godbus/[email protected]/transport_unix.go:91 +0x11e
github.com/godbus/dbus.(*Conn).inWorker(0xc0002fc750)
	/home/runner/go/pkg/mod/github.com/godbus/[email protected]/conn.go:294 +0x3b
created by github.com/godbus/dbus.(*Conn).Auth
	/home/runner/go/pkg/mod/github.com/godbus/[email protected]/auth.go:118 +0x9ee

goroutine 24 [select]:
go.opencensus.io/stats/view.(*worker).start(0xc00043d880)
	/home/runner/go/pkg/mod/[email protected]/stats/view/worker.go:292 +0xad
created by go.opencensus.io/stats/view.init.0
	/home/runner/go/pkg/mod/[email protected]/stats/view/worker.go:34 +0x96

goroutine 8 [select, 10 minutes]:
github.com/desertbit/timer.timerRoutine()
	/home/runner/go/pkg/mod/github.com/desertbit/[email protected]/timers.go:119 +0xba
created by github.com/desertbit/timer.init.0
	/home/runner/go/pkg/mod/github.com/desertbit/[email protected]/timers.go:15 +0x25

goroutine 25 [select, 10 minutes]:
github.com/dgraph-io/ristretto.(*defaultPolicy).processItems(0xc000c6cc00)
	/home/runner/go/pkg/mod/github.com/dgraph-io/[email protected]/policy.go:102 +0x91
created by github.com/dgraph-io/ristretto.newDefaultPolicy
	/home/runner/go/pkg/mod/github.com/dgraph-io/[email protected]/policy.go:86 +0x156

goroutine 26 [select]:
github.com/dgraph-io/ristretto.(*Cache).processItems(0xc00024c800)
	/home/runner/go/pkg/mod/github.com/dgraph-io/[email protected]/cache.go:452 +0x15e
created by github.com/dgraph-io/ristretto.NewCache
	/home/runner/go/pkg/mod/github.com/dgraph-io/[email protected]/cache.go:207 +0x6a5

goroutine 63 [select, 9 minutes]:
github.com/lavanet/lava/v2/protocol/rpcconsumer.(*RelayProcessor).WaitForResults(0xc001ddb680, {0x37102f8, 0xc00012e000})
	/home/runner/work/lava/lava/protocol/rpcconsumer/relay_processor.go:568 +0x11c
github.com/lavanet/lava/v2/protocol/rpcconsumer.TestRelayProcessorNodeErrorRetryFlow(0xc000c0eea0)
	/home/runner/work/lava/lava/protocol/rpcconsumer/relay_processor_test.go:262 +0x5c5
testing.tRunner(0xc000c0eea0, 0x3259c90)
	/opt/hostedtoolcache/go/1.20.14/x64/src/testing/testing.go:1576 +0x10b
created by testing.(*T).Run
	/opt/hostedtoolcache/go/1.20.14/x64/src/testing/testing.go:1629 +0x3ea

goroutine 28 [select, 10 minutes]:
github.com/dgraph-io/ristretto.(*defaultPolicy).processItems(0xc000c6d500)
	/home/runner/go/pkg/mod/github.com/dgraph-io/[email protected]/policy.go:102 +0x91
created by github.com/dgraph-io/ristretto.newDefaultPolicy
	/home/runner/go/pkg/mod/github.com/dgraph-io/[email protected]/policy.go:86 +0x156

goroutine 29 [select]:
github.com/dgraph-io/ristretto.(*Cache).processItems(0xc00024c880)
	/home/runner/go/pkg/mod/github.com/dgraph-io/[email protected]/cache.go:452 +0x15e
created by github.com/dgraph-io/ristretto.NewCache
	/home/runner/go/pkg/mod/github.com/dgraph-io/[email protected]/cache.go:207 +0x6a5

goroutine 31 [select, 10 minutes]:
github.com/dgraph-io/ristretto.(*defaultPolicy).processItems(0xc000c6d640)
	/home/runner/go/pkg/mod/github.com/dgraph-io/[email protected]/policy.go:102 +0x91
created by github.com/dgraph-io/ristretto.newDefaultPolicy
	/home/runner/go/pkg/mod/github.com/dgraph-io/[email protected]/policy.go:86 +0x156

goroutine 32 [select]:
github.com/dgraph-io/ristretto.(*Cache).processItems(0xc00024c900)
	/home/runner/go/pkg/mod/github.com/dgraph-io/[email protected]/cache.go:452 +0x15e
created by github.com/dgraph-io/ristretto.NewCache
	/home/runner/go/pkg/mod/github.com/dgraph-io/[email protected]/cache.go:207 +0x6a5

goroutine 99 [IO wait, 9 minutes]:
internal/poll.runtime_pollWait(0x7f883027d9f0, 0x72)
	/opt/hostedtoolcache/go/1.20.14/x64/src/runtime/netpoll.go:306 +0x89
internal/poll.(*pollDesc).wait(0xc00051de00?, 0xc001882d58?, 0x0)
	/opt/hostedtoolcache/go/1.20.14/x64/src/internal/poll/fd_poll_runtime.go:84 +0x32
internal/poll.(*pollDesc).waitRead(...)
	/opt/hostedtoolcache/go/1.20.14/x64/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Accept(0xc00051de00)
	/opt/hostedtoolcache/go/1.20.14/x64/src/internal/poll/fd_unix.go:614 +0x2bd
net.(*netFD).accept(0xc00051de00)
	/opt/hostedtoolcache/go/1.20.14/x64/src/net/fd_unix.go:172 +0x35
net.(*TCPListener).accept(0xc001b3a468)
	/opt/hostedtoolcache/go/1.20.14/x64/src/net/tcpsock_posix.go:148 +0x25
net.(*TCPListener).Accept(0xc001b3a468)
	/opt/hostedtoolcache/go/1.20.14/x64/src/net/tcpsock.go:297 +0x3d
net/http.(*Server).Serve(0xc00114c870, {0x370ca00, 0xc001b3a468})
	/opt/hostedtoolcache/go/1.20.14/x64/src/net/http/server.go:3059 +0x385
net/http/httptest.(*Server).goServe.func1()
	/opt/hostedtoolcache/go/1.20.14/x64/src/net/http/httptest/server.go:310 +0x6a
created by net/http/httptest.(*Server).goServe
	/opt/hostedtoolcache/go/1.20.14/x64/src/net/http/httptest/server.go:308 +0x6a

goroutine 100 [IO wait, 9 minutes]:
internal/poll.runtime_pollWait(0x7f883027d900, 0x72)
	/opt/hostedtoolcache/go/1.20.14/x64/src/runtime/netpoll.go:306 +0x89
internal/poll.(*pollDesc).wait(0xc00051de80?, 0xc000482d58?, 0x0)
	/opt/hostedtoolcache/go/1.20.14/x64/src/internal/poll/fd_poll_runtime.go:84 +0x32
internal/poll.(*pollDesc).waitRead(...)
	/opt/hostedtoolcache/go/1.20.14/x64/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Accept(0xc00051de80)
	/opt/hostedtoolcache/go/1.20.14/x64/src/internal/poll/fd_unix.go:614 +0x2bd
net.(*netFD).accept(0xc00051de80)
	/opt/hostedtoolcache/go/1.20.14/x64/src/net/fd_unix.go:172 +0x35
net.(*TCPListener).accept(0xc001b3a498)
	/opt/hostedtoolcache/go/1.20.14/x64/src/net/tcpsock_posix.go:148 +0x25
net.(*TCPListener).Accept(0xc001b3a498)
	/opt/hostedtoolcache/go/1.20.14/x64/src/net/tcpsock.go:297 +0x3d
net/http.(*Server).Serve(0xc00114ca50, {0x370ca00, 0xc001b3a498})
	/opt/hostedtoolcache/go/1.20.14/x64/src/net/http/server.go:3059 +0x385
net/http/httptest.(*Server).goServe.func1()
	/opt/hostedtoolcache/go/1.20.14/x64/src/net/http/httptest/server.go:310 +0x6a
created by net/http/httptest.(*Server).goServe
	/opt/hostedtoolcache/go/1.20.14/x64/src/net/http/httptest/server.go:308 +0x6a

goroutine 66 [chan receive (nil chan), 9 minutes]:
github.com/lavanet/lava/v2/protocol/chainlib/chainproxy.(*Connector).connectorLoop(0xc00012e000?, {0x37102f8?, 0xc00012e000?})
	/home/runner/work/lava/lava/protocol/chainlib/chainproxy/connector.go:148 +0x33
created by github.com/lavanet/lava/v2/protocol/chainlib/chainproxy.addClientsAsynchronously
	/home/runner/work/lava/lava/protocol/chainlib/chainproxy/connector.go:90 +0x35f

goroutine 55 [select, 7 minutes]:
github.com/lavanet/lava/v2/protocol/chainlib/chainproxy/rpcclient.(*Client).dispatch(0xc00024c500, {0x3717348?, 0xc00054cd80})
	/home/runner/work/lava/lava/protocol/chainlib/chainproxy/rpcclient/client.go:668 +0x2cc
created by github.com/lavanet/lava/v2/protocol/chainlib/chainproxy/rpcclient.initClient
	/home/runner/work/lava/lava/protocol/chainlib/chainproxy/rpcclient/client.go:241 +0x311

goroutine 46 [chan receive (nil chan), 9 minutes]:
github.com/lavanet/lava/v2/protocol/chainlib/chainproxy.(*Connector).connectorLoop(0xc00012e000?, {0x37102f8?, 0xc00012e000?})
	/home/runner/work/lava/lava/protocol/chainlib/chainproxy/connector.go:148 +0x33
created by github.com/lavanet/lava/v2/protocol/chainlib/chainproxy.addClientsAsynchronously
	/home/runner/work/lava/lava/protocol/chainlib/chainproxy/connector.go:90 +0x35f