Skip to content

feat(probe): include route fee in reports#191

Merged
piotr-iohk merged 2 commits into
mainfrom
feat/route-fee
Jun 30, 2026
Merged

feat(probe): include route fee in reports#191
piotr-iohk merged 2 commits into
mainfrom
feat/route-fee

Conversation

@pwltr

@pwltr pwltr commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Include route fee in reports

Currently only works with bitkit-android synonymdev/bitkit-android#1052

@piotr-iohk

Copy link
Copy Markdown
Collaborator

@cursor review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the mainnet Lightning “probe” E2E flow to capture and report the route fee returned by the underlying devtools probe command (currently noted as Android-only support).

Changes:

  • Parse a richer probe command result (success + optional duration + optional route fee) instead of only a boolean success.
  • Include routeFeeMsat in ProbeResult and render it as a new column in the generated markdown probe report.
  • Harden JSON fetching by erroring on successful HTTP responses with empty bodies (to avoid JSON parse failures with unclear errors).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
test/specs/mainnet/probe.e2e.ts Switches probe execution to use parsed command result and plumbs routeFeeMsat/duration into probe outcomes.
test/helpers/probe.ts Adds ProbeCommandResult parsing, extends ProbeResult with routeFeeMsat, and renders the new report column.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/specs/mainnet/probe.e2e.ts
Comment thread test/specs/mainnet/probe.e2e.ts
Comment thread test/helpers/probe.ts Outdated
@piotr-iohk

Copy link
Copy Markdown
Collaborator

This seems not compatible with bitkit-andorid master -> https://github.com/synonymdev/bitkit-nightly/actions/runs/28435762229/job/84263122193 so will not merge until synonymdev/bitkit-android#1052 lands.

@piotr-iohk

Copy link
Copy Markdown
Collaborator

It seems good after d3a101d. Tested on master and synonymdev/bitkit-android#1052.

@piotr-iohk piotr-iohk merged commit 2a58e38 into main Jun 30, 2026
@piotr-iohk piotr-iohk deleted the feat/route-fee branch June 30, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants