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

graphprotocol / indexer-rs / 14363300516
64%

Build:
DEFAULT BRANCH: main
Ran 09 Apr 2025 05:32PM UTC
Jobs 1
Files 89
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

09 Apr 2025 05:25PM UTC coverage: 74.257% (-0.01%) from 74.269%
14363300516

push

github

web-flow
Fix/v2 crash (#685)

* feat(agent): Add config toggle for Horizon functionality

Introduces a `horizon_enabled` boolean flag within `SenderAccountConfig`, populated from the main application configuration (`config.horizon.enabled`).

This flag gates Horizon-specific functionality within the TAP agent:

- In `SenderAccount`:
    - Database operations (fetching RAVs, querying/updating denylist) for `SenderType::Horizon` are now conditional on this flag being true.
    - The `todo!()` for querying unfinalized V2 transactions is now only relevant if Horizon is enabled.
    - A temporary check (`FIXME`) is added to `deny_sender_if_insolvent` to bypass denial logic for Horizon senders if the feature is disabled via config.
- In `SenderAccountsManager`:
    - Fetching pending V2 (Horizon) sender allocations is skipped if the flag is false.
    - The `new_receipts_watcher` task for V2/Horizon is only spawned if the flag is true.

This allows Horizon-related features, which may still be under development, to be effectively disabled via configuration, simplifying testing and allowing for incremental rollout without impacting existing functionality if Horizon support is not desired or ready.

* fix(test): Remove database migration by default

* fix(config): Add missing horizon setting to config files

fix(config): add missing config field

* chore(test): Change test function name to indicate it works for RAV V1 only

* fix(testnet): Remove commented code

22 of 60 new or added lines in 5 files covered. (36.67%)

3 existing lines in 2 files now uncovered.

8873 of 11949 relevant lines covered (74.26%)

110.15 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
77.83
0.16% crates/tap-agent/src/agent/sender_accounts_manager.rs
1
0.0
0.0% integration-tests/src/main.rs
1
0.0
0.0% integration-tests/src/rav_tests.rs
35
77.58
-0.88% crates/tap-agent/src/agent/sender_account.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% integration-tests/src/rav_tests.rs
2
76.32
0.1% crates/tap-agent/src/agent/sender_allocation.rs
Jobs
ID Job ID Ran Files Coverage
1 14363300516.1 09 Apr 2025 05:32PM UTC 89
74.26
GitHub Action Run
Source Files on build 14363300516
  • Tree
  • List 89
  • Changed 7
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14363300516
  • 26a6f568 on github
  • Prev Build on main (#14323791406)
  • Next Build on main (#14382999578)
  • 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

© 2025 Coveralls, Inc