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

graphprotocol / indexer-rs / 21688414710
71%

Build:
DEFAULT BRANCH: main
Ran 04 Feb 2026 09:11PM UTC
Jobs 1
Files 100
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

04 Feb 2026 09:07PM UTC coverage: 69.445% (+0.001%) from 69.444%
21688414710

push

github

web-flow
feat(monitor): extract freshness tracking into reusable module with escalation (#926)

Extract staleness detection logic from allocations.rs into a dedicated
freshness.rs module with FreshnessTracker struct.

Changes:
- Add FreshnessTracker with best_timestamp and last_fresh_update tracking
- Add FreshnessResult enum (Fresh, StaleButImprovement, StaleRejected)
- Implement escalation: warn → error after 2 hours without fresh data
- Include time_since_fresh in escalated log messages for visibility
- Comprehensive test coverage for all freshness scenarios

The tracker is designed for periodic queries where:
- Fresh data is always accepted
- Stale-but-improvement data is accepted (preserves progress)
- Stale-and-worse data is rejected (preserves last-known-good state)
- First fetch is always accepted (lenient on init)

This protects against Gateway routing to stale indexers while providing
clear operational visibility through escalating log levels.

Signed-off-by: Natanael Mojica <neithanmo@gmail.com>

185 of 226 new or added lines in 2 files covered. (81.86%)

2 existing lines in 1 file now uncovered.

11164 of 16076 relevant lines covered (69.45%)

77.56 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
95.85
crates/monitor/src/freshness.rs
33
0.0
-46.09% crates/monitor/src/allocations.rs

Uncovered Existing Lines

Lines Coverage ∆ File
2
85.72
-0.13% crates/tap-agent/src/agent/sender_account.rs
Jobs
ID Job ID Ran Files Coverage
1 21688414710.1 04 Feb 2026 09:11PM UTC 100
69.45
GitHub Action Run
Source Files on build 21688414710
  • Tree
  • List 100
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21688414710
  • 4ab8001a on github
  • Prev Build on main (#21682098073)
  • Next Build on main (#21689072055)
  • 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