• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

graphprotocol / indexer-rs / 21634667492
69%

Build:
DEFAULT BRANCH: main
Ran 03 Feb 2026 02:47PM UTC
Jobs 1
Files 97
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Feb 2026 02:39PM UTC coverage: 68.849% (+0.02%) from 68.828%
21634667492

push

github

web-flow
Add network subgraph data staleness protection (#916)

* chore: log block number

* feat(monitor): add timestamp-based freshness validation for allocations

Prevent stale network subgraph data from replacing fresher data when the
Gateway routes queries to indexers synced to different blocks.

Acceptance rules:
- Fresh data (within max_data_staleness_mins): always accepted
- Stale but fresher than current best: accepted (improvement)
- Stale and not fresher than current: rejected

This ensures:
- Service always starts (any data beats initial state)
- Stale-but-better data progressively improves state
- Fresh data always wins (even with 0 allocations)
- Bad data never replaces good data

Add AllocationQueryResponse struct with block metadata, AtomicI64 to
track best known timestamp, and check_and_update_freshness() for
validation logic.

* chore: apply formatting

112 of 171 new or added lines in 4 files covered. (65.5%)

3 existing lines in 2 files now uncovered.

10697 of 15537 relevant lines covered (68.85%)

79.9 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
72.55
-0.29% crates/service/src/service/router.rs
2
79.67
-0.36% crates/config/src/config.rs
2
27.18
-0.28% crates/tap-agent/src/agent.rs
54
46.09
46.09% crates/monitor/src/allocations.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
79.67
-0.36% crates/config/src/config.rs
2
46.09
46.09% crates/monitor/src/allocations.rs
Jobs
ID Job ID Ran Files Coverage
1 21634667492.1 03 Feb 2026 02:47PM UTC 97
68.85
GitHub Action Run
Source Files on build 21634667492
  • Tree
  • List 97
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21634667492
  • d5b4c224 on github
  • Prev Build on main (#21612257228)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc