• 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

btcsuite / btcd / 8811320930
56%
master: 55%

Build:
Build:
LAST BUILD BRANCH: spellcheck
DEFAULT BRANCH: master
Ran 29 Apr 2024 12:47PM UTC
Jobs 4
Files 235
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

24 Apr 2024 05:06AM UTC coverage: 56.878% (-0.008%) from 56.886%
8811320930

Pull #2177

github

web-flow
fix: use HOME dir if set

HOME directory should be preferred source of home directory information.

It's a common pattern to run software with a custom HOME to temporarily isolate it from the system-set home directory. All Unix software I ever worked with would respect HOME.

Preferring `user.Current()` (which I guess reads from `/etc/passwd`) make it impossible to temporarily change effective home, as changing `/etc/passwd` is not an option.

I'm currently migrating things to a self-hosted github-actions runner, where one system user is used for all github actions runners, but each instance gets a different `HOME`, and is otherwise sandboxed to not even have permissions to touch the original home. Everything works except `lncli` which fails with:

```
[lncli] could not load global options: could not read profile file /home/github-runner/.lncli/profiles.json: could not load profile file /home/github-runner/.lncli/profiles.json: open /home/github-runner/.lncli/profiles.json: permission denied
```

and I traced it to this code.
Pull Request #2177: fix: use HOME dir if set

4 of 5 new or added lines in 1 file covered. (80.0%)

6 existing lines in 1 file now uncovered.

29452 of 51781 relevant lines covered (56.88%)

474069.16 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
84.44
0.0% btcutil/appdata.go

Uncovered Existing Lines

Lines Coverage ∆ File
6
74.16
-0.44% peer/peer.go
Jobs
ID Job ID Ran Files Coverage
1 btcutil - 8811320930.1 29 Apr 2024 12:47PM UTC 21
87.22
GitHub Action Run
2 btcd - 8811320930.2 29 Apr 2024 12:47PM UTC 186
52.99
GitHub Action Run
3 btcutilpsbt - 8811320930.3 29 Apr 2024 12:47PM UTC 13
76.43
GitHub Action Run
4 btcec - 8811320930.4 29 Apr 2024 12:47PM UTC 15
86.5
GitHub Action Run
Source Files on build 8811320930
  • Tree
  • List 235
  • Changed 43
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #2177
  • PR Base - master (#8802845904)
  • 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