• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Warning: This build has drifted.
The coverage report for this pull request build may be inaccurate because its base commit is no longer the HEAD of its target branch.
This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

    • Learn more: For more information on this, see Tracking coverage changes for pull request builds.
    • Fix now: For a quick fix, rebase this PR at GitHub. Your next report should be accurate.
    • Prevent going forward: To avoid this issue with future PRs, see these Recommended CI Configurations.
New Repo Setting:
INCLUDE COVERAGE % WITH WARNINGS ABOUT DRIFTED BUILDS?

Enabling this setting will include a (potentially inaccurate) coverage % with warning messages in status updates for drifted builds.

Adjust setting

lightningnetwork / lnd / 13458015710
49%
master: 65%

Build:
Build:
LAST BUILD BRANCH: bugfix/fix-peer-disconnect-log
DEFAULT BRANCH: master
Ran 21 Feb 2025 01:53PM UTC
Jobs 4
Files 976
Run time 3min
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

21 Feb 2025 01:39PM UTC coverage: 58.816% (-0.02%) from 58.831%
13458015710

Pull #9534

github

ellemouton
graph: refactor Builder network message handling

The exposed AddNode, AddEdge and UpdateEdge methods of the Builder are
currently synchronous since even though they pass messages to the
network handler which spins off the handling in a goroutine, the public
methods still wait for a response from the handling before returning.
The only part that is actually done asynchronously is the topology
notifications.

We previously tried to simplify things in [this
commit](https://github.com/lightningnetwork/lnd/pull/9476/commits/d757b3bcf)
but we soon realised that there was a reason for sending the messages to
the central/synchronous network handler first: it was to ensure
consistency for topology clients: ie, the ordering between when there is
a new topology client or if it is cancelled needs to be consistent and
handled synchronously with new network updates. So for example, if a new
update comes in right after a topology client cancels its subscription,
then it should _not_ be notified. Similariy for new subscriptions. So
this commit was reverted soon after.

We can, however, still simplify things as is done in this commit by
noting that _only topology subscriptions and notifications_ need to be
handled separately. The actual network updates do not need to. So that
is what is done here.

This refactor will make moving the topology subscription logic to a new
subsystem later on much easier.
Pull Request #9534: graph: refactor Builder network message handling

35 of 36 new or added lines in 1 file covered. (97.22%)

70 existing lines in 19 files now uncovered.

136302 of 231742 relevant lines covered (58.82%)

19254.91 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
78.33
0.27% graph/builder.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
73.79
-0.14% htlcswitch/mock.go
1
66.48
-0.55% netann/channel_update.go
2
86.36
-4.55% blockcache/blockcache.go
2
85.75
-0.22% discovery/syncer.go
2
56.52
-2.9% fn/v2/set.go
2
85.71
-0.17% invoices/invoiceregistry.go
2
67.71
0.0% lnwallet/sigpool.go
2
76.15
0.0% peer/brontide.go
3
90.05
0.0% chainio/dispatcher.go
3
89.86
-0.72% discovery/sync_manager.go
3
78.33
0.27% graph/builder.go
3
78.14
-0.11% htlcswitch/link.go
3
51.72
-0.8% watchtower/wtdb/migration4/range_index.go
4
81.75
-0.57% chainntnfs/btcdnotify/btcd.go
4
97.48
-2.52% fn/v2/list.go
5
74.07
-0.14% funding/manager.go
7
83.3
-0.33% contractcourt/channel_arbitrator.go
10
82.8
-1.1% contractcourt/chain_watcher.go
11
79.38
-0.46% discovery/gossiper.go
Jobs
ID Job ID Ran Files Coverage
1 itest-btcd - 13458015710.1 21 Feb 2025 01:52PM UTC 824
48.35
GitHub Action Run
2 itest-bitcoind - 13458015710.2 21 Feb 2025 01:55PM UTC 824
48.42
GitHub Action Run
3 itest-neutrino - 13458015710.3 21 Feb 2025 01:54PM UTC 824
47.91
GitHub Action Run
4 unit - 13458015710.4 21 Feb 2025 02:04PM UTC 854
57.7
GitHub Action Run
Source Files on build 13458015710
  • Tree
  • List 976
  • Changed 226
  • Source Changed 0
  • Coverage Changed 45
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #9534
  • PR Base - master (#13455503531)
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