Skip to content

Conversation

@mmsqe
Copy link
Contributor

@mmsqe mmsqe commented Nov 11, 2025

Description

for test info


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • tackled an existing issue or discussed with a team member
  • left instructions on how to review the changes
  • targeted the main branch

Comment on lines +343 to +349
for blocks, client := range b.BackupQueryClients {
// b1-b2 -> g1
// b3-b4 -> g2
if int64(blocks[0]) <= height && int64(blocks[1]) >= height {
return client
}
}

Check warning

Code scanning / CodeQL

Iteration over map Warning

Iteration over map may be a possible source of non-determinism
Comment on lines +691 to +709
for k, address := range grpcBlockAddresses {
grpcAddr, err := parseGrpcAddress(address)
if err != nil {
return nil, clientCtx, backupGRPCClientConns, err
}
c, err := grpc.NewClient(
grpcAddr,
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithDefaultCallOptions(
grpc.ForceCodec(codec.NewProtoCodec(clientCtx.InterfaceRegistry).GRPCCodec()),
grpc.MaxCallRecvMsgSize(maxRecvMsgSize),
grpc.MaxCallSendMsgSize(maxSendMsgSize),
),
)
if err != nil {
return nil, clientCtx, backupGRPCClientConns, err
}
backupGRPCClientConns[k] = c
}

Check warning

Code scanning / CodeQL

Iteration over map Warning

Iteration over map may be a possible source of non-determinism
@codecov
Copy link

codecov bot commented Nov 11, 2025

Codecov Report

❌ Patch coverage is 41.44144% with 65 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.07%. Comparing base (6de21f7) to head (7e05c8a).

Files with missing lines Patch % Lines
server/start.go 0.00% 32 Missing ⚠️
server/config/config.go 63.15% 13 Missing and 1 partial ⚠️
rpc/apis.go 11.11% 8 Missing ⚠️
rpc/backend/backend.go 16.66% 4 Missing and 1 partial ⚠️
rpc/backend/utils.go 28.57% 3 Missing and 2 partials ⚠️
server/json_rpc.go 0.00% 1 Missing ⚠️

❌ Your project check has failed because the head coverage (65.07%) is below the target coverage (90.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #815      +/-   ##
==========================================
+ Coverage   64.96%   65.07%   +0.10%     
==========================================
  Files         317      317              
  Lines       21604    21661      +57     
==========================================
+ Hits        14036    14096      +60     
- Misses       6349     6400      +51     
+ Partials     1219     1165      -54     
Files with missing lines Coverage Δ
rpc/backend/account_info.go 86.20% <100.00%> (+0.49%) ⬆️
rpc/backend/blocks.go 55.85% <ø> (ø)
rpc/backend/call_tx.go 60.80% <100.00%> (+0.15%) ⬆️
rpc/backend/chain_info.go 78.65% <100.00%> (+0.12%) ⬆️
rpc/backend/comet_to_eth.go 80.74% <ø> (ø)
rpc/backend/tracing.go 65.40% <100.00%> (ø)
server/flags/flags.go 0.00% <ø> (ø)
server/json_rpc.go 0.00% <0.00%> (ø)
rpc/backend/backend.go 60.71% <16.66%> (-12.02%) ⬇️
rpc/backend/utils.go 51.63% <28.57%> (-0.92%) ⬇️
... and 3 more

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

@mmsqe mmsqe changed the title feat: support for multi gRPC query clients serve with old binary feat: support proxy with grpc-only mode Nov 11, 2025
Comment on lines +470 to +480
for address, blockRange := range data {
if blockRange[0] < 0 || blockRange[1] < 0 {
return Config{}, fmt.Errorf("invalid block range [%d, %d] for address %s: block numbers cannot be negative",
blockRange[0], blockRange[1], address)
}
if blockRange[0] > blockRange[1] {
return Config{}, fmt.Errorf("invalid block range [%d, %d] for address %s: start block must be <= end block",
blockRange[0], blockRange[1], address)
}
backupGRPCBlockAddressBlockRange[blockRange] = address
}

Check warning

Code scanning / CodeQL

Iteration over map Warning

Iteration over map may be a possible source of non-determinism
@mmsqe mmsqe marked this pull request as ready for review November 13, 2025 04:08
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.

1 participant