Conversation
63ac2dd to
09139d1
Compare
|
Claude finished @infrmtcs's task in 9m 6s —— View job Reviewing PR #4071
SummaryReviewed all 13 files ( The PR is clean — no blockers, no important issues. Specifically verified and found no problems in:
No tests are included, but this matches the precedent set by the sibling tool |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Codecov Report❌ Patch coverage is ❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (60.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #4071 +/- ##
==========================================
- Coverage 79.48% 78.19% -1.29%
==========================================
Files 466 477 +11
Lines 36009 36597 +588
==========================================
- Hits 28620 28617 -3
- Misses 7380 7971 +591
Partials 9 9 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
09139d1 to
59a8139
Compare
|
Claude finished @infrmtcs's task in 18m 34s —— View job Reviewing PR #4071
SummaryReviewed all 13 files ( Nit
No blockers or important issues. Specifically checked and found no problems in:
No tests included, consistent with the precedent set by the sibling tool |
Standalone PR ReviewPR-Agent could not safely update the persistent review. This standalone result will not replace the canonical review. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
| if key.BlockNumber < server.config.from { | ||
| return fmt.Errorf( | ||
| "block %d is below --%s %d; Juno's DB is probably not at %d", | ||
| key.BlockNumber, fromFlag, server.config.from, server.config.from-1, | ||
| ) |
There was a problem hiding this comment.
Nit: server.config.from-1 underflows to math.MaxUint64 when --from 0, producing a nonsensical number in the error/log message instead of a meaningful one.
| if key.BlockNumber < server.config.from { | |
| return fmt.Errorf( | |
| "block %d is below --%s %d; Juno's DB is probably not at %d", | |
| key.BlockNumber, fromFlag, server.config.from, server.config.from-1, | |
| ) | |
| if key.BlockNumber < server.config.from { | |
| message := fmt.Sprintf("block %d is below --%s %d", key.BlockNumber, fromFlag, server.config.from) | |
| if server.config.from > 0 { | |
| message += fmt.Sprintf("; Juno's DB is probably not at %d", server.config.from-1) | |
| } | |
| return errors.New(message) |
PR Type
Enhancement, Documentation
Description
Introduce
feeder-sim, a tool to simulate the Starknet feeder gateway for sync benchmarks.Add capabilities to capture, compress (gzip), and cache data from the real feeder gateway.
Implement an HTTP server to mock Starknet's feeder gateway, capable of advancing the chain tip sequentially.
Provide configurable simulation features via CLI, including latency, replay speed, and fixed tip intervals.
File Walkthrough
11 files
Simulation logic for advancing chain block tipFile system operations and gzip handling for datasetsDecoders for Starknet JSON structures and resourcesFeeder gateway endpoint resource representations and URLsCLI flags handling and validation for simulation configurationApplication entrypoint and root command declarationData structures for HTTP query arguments encodingHTTP server that serves dataset responses as feeder endpointsDataset downloader to capture live feeder gateway responsesIn-memory storage and concurrency control for cached datasetsConcurrent walker utility to pre-fetch blocks and classes1 files
Add makefile target to build `feeder-sim`1 files
Usage instructions and dataset specification for `feeder-sim`