Skip to content

Commit

Permalink
run perf workflow on PR
Browse files Browse the repository at this point in the history
avoid clang tidy warning in test
  • Loading branch information
canepat committed Apr 6, 2024
1 parent 50555cf commit eaa477b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/rpc-performance-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: QA - RPC Performance Tests

on:
pull_request:
branches:
- master
types:
- opened
- ready_for_review
- synchronize
schedule:
- cron: '0 0 * * *' # Run every day at 00:00 AM UTC

Expand Down
22 changes: 11 additions & 11 deletions silkworm/rpc/core/evm_debug_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class TestDebugExecutor : DebugExecutor {
TestDebugExecutor(const TestDebugExecutor&) = delete;
TestDebugExecutor& operator=(const TestDebugExecutor&) = delete;

Task<void> execute(json::Stream& stream, const ChainStorage& storage, const silkworm::Block& block, const Call& call) {
Task<void> exec(json::Stream& stream, const ChainStorage& storage, const silkworm::Block& block, const Call& call) {
return DebugExecutor::execute(stream, storage, block, call);
}
};
Expand Down Expand Up @@ -150,7 +150,7 @@ TEST_CASE_METHOD(DebugExecutorTest, "DebugExecutor::execute precompiled") {
const RemoteChainStorage storage{db_reader, backend.get()};

stream.open_object();
spawn_and_wait(executor.execute(stream, storage, block, call));
spawn_and_wait(executor.exec(stream, storage, block, call));
stream.close_object();
spawn_and_wait(stream.close());

Expand Down Expand Up @@ -305,7 +305,7 @@ TEST_CASE_METHOD(DebugExecutorTest, "DebugExecutor::execute call 1") {
const RemoteChainStorage storage{db_reader, backend.get()};

stream.open_object();
spawn_and_wait(executor.execute(stream, storage, block, call));
spawn_and_wait(executor.exec(stream, storage, block, call));
stream.close_object();
spawn_and_wait(stream.close());

Expand Down Expand Up @@ -368,7 +368,7 @@ TEST_CASE_METHOD(DebugExecutorTest, "DebugExecutor::execute call 1") {
const RemoteChainStorage storage{db_reader, backend.get()};

stream.open_object();
spawn_and_wait(executor.execute(stream, storage, block, call));
spawn_and_wait(executor.exec(stream, storage, block, call));
stream.close_object();
spawn_and_wait(stream.close());

Expand Down Expand Up @@ -479,7 +479,7 @@ TEST_CASE_METHOD(DebugExecutorTest, "DebugExecutor::execute call 1") {
const RemoteChainStorage storage{db_reader, backend.get()};

stream.open_object();
spawn_and_wait(executor.execute(stream, storage, block, call));
spawn_and_wait(executor.exec(stream, storage, block, call));
stream.close_object();
spawn_and_wait(stream.close());

Expand Down Expand Up @@ -581,7 +581,7 @@ TEST_CASE_METHOD(DebugExecutorTest, "DebugExecutor::execute call 1") {
const RemoteChainStorage storage{db_reader, backend.get()};

stream.open_object();
spawn_and_wait(executor.execute(stream, storage, block, call));
spawn_and_wait(executor.exec(stream, storage, block, call));
stream.close_object();
spawn_and_wait(stream.close());

Expand Down Expand Up @@ -688,7 +688,7 @@ TEST_CASE_METHOD(DebugExecutorTest, "DebugExecutor::execute call 1") {
const RemoteChainStorage storage{db_reader, backend.get()};

stream.open_object();
spawn_and_wait(executor.execute(stream, storage, block, call));
spawn_and_wait(executor.exec(stream, storage, block, call));
stream.close_object();
spawn_and_wait(stream.close());

Expand Down Expand Up @@ -796,7 +796,7 @@ TEST_CASE_METHOD(DebugExecutorTest, "DebugExecutor::execute call 1") {
const RemoteChainStorage storage{db_reader, backend.get()};

stream.open_object();
spawn_and_wait(executor.execute(stream, storage, block, call));
spawn_and_wait(executor.exec(stream, storage, block, call));
stream.close_object();
spawn_and_wait(stream.close());

Expand Down Expand Up @@ -891,7 +891,7 @@ TEST_CASE_METHOD(DebugExecutorTest, "DebugExecutor::execute call 1") {
const RemoteChainStorage storage{db_reader, backend.get()};

stream.open_object();
spawn_and_wait(executor.execute(stream, storage, block, call));
spawn_and_wait(executor.exec(stream, storage, block, call));
stream.close_object();
spawn_and_wait(stream.close());

Expand Down Expand Up @@ -1102,7 +1102,7 @@ TEST_CASE_METHOD(DebugExecutorTest, "DebugExecutor::execute call 2") {
const RemoteChainStorage storage{db_reader, backend.get()};

stream.open_object();
spawn_and_wait(executor.execute(stream, storage, block, call));
spawn_and_wait(executor.exec(stream, storage, block, call));
stream.close_object();
spawn_and_wait(stream.close());

Expand Down Expand Up @@ -1263,7 +1263,7 @@ TEST_CASE_METHOD(DebugExecutorTest, "DebugExecutor::execute call with error") {
const RemoteChainStorage storage{db_reader, backend.get()};

stream.open_object();
spawn_and_wait(executor.execute(stream, storage, block, call));
spawn_and_wait(executor.exec(stream, storage, block, call));
stream.close_object();
spawn_and_wait(stream.close());

Expand Down

0 comments on commit eaa477b

Please sign in to comment.