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

pkhuong / kismet-cache / 6461524775 / 1
99%
main: 99%

Build:
DEFAULT BRANCH: main
Ran 09 Oct 2023 08:45PM UTC
Files 11
Run time 0s
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 Oct 2023 08:42PM UTC coverage: 98.924% (+0.07%) from 98.852%
6461524775.1

push

github

pkhuong
benign_error: small module to handle ESTALE like ENOENT

Most cases where we check for ENOENT, we want to bubble that up like
a non-erroneous cache miss. ESTALE means we thought there was something
there, but that handle (inode) has since disappeared, either because
the file was unlinked or because it was replaced with another.

Either way, it seems simplest to treat such stale filehandles like
missing files.

We don't expect this to happen a lot, except for cleanups: files in the
kismet cache should mostly be write-once (content addressed), until the
cache grows too large and old unused files are reaped to make room. In
that situation, a stale filehandle means the file was deleted, and it's
fine to treat that like ENOENT.

Alternatively, one could also flush the client-side filehandle cache
and retry, but that's more work for marginal benefits.

3771 of 3812 relevant lines covered (98.92%)

320.18 hits per line

Source Files on job 6461524775.1
  • Tree
  • List 0
  • Changed 8
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 6461524775
  • b3091a1e on github
  • Prev Job for on main (#6207687088.1)
  • Next Job for on main (#9688087245.1)
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