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

Kikobeats / isolated-function / 36693586950
97%

Build:
DEFAULT BRANCH: master
Ran 30 Sep 2026 09:03AM UTC
Jobs 1
Files 14
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

30 Sep 2026 09:03AM UTC coverage: 96.82% (+0.009%) from 96.811%
36693586950

push

github

web-flow
feat: let a program name spans inside its own run (#85)

* feat: let a program name spans inside its own run

`run` is one number covering everything the code did, which is fine until
that number is the one you are trying to explain. Chasing a production
tail where `run` was 6466ms while the code's own work measured 5ms, there
was no way to see which part of the wrapper around it was slow.

`globalThis.__isolated_time(name, thunk)` records how long the thunk
took, returns its value, and records the span even when it throws.
`globalThis.__isolated_phase(name, ms)` records a duration measured some
other way. A repeated name accumulates, so a span inside a loop totals.

Named spans are merged under the runner's own phases rather than over
them, so a program cannot displace `install`, `build`, `spawn`, `run` or
`total`. A program that names nothing reports exactly what it did before,
which is asserted rather than assumed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix: keep install and build out of a program's reach

The merge applied program spans after `compiled.phases`, so a span named
`install` or `build` replaced the runner's own measurement. `spawn`, `run`
and `total` are assigned after the spread and were never reachable, which
is exactly the pair the test checked, so it passed while the claim it was
meant to prove was false:

  install: 999999  <- program value
  build  : 888888  <- program value
  run    : 0.0076  <- runner value

The runner's phases are applied last. The test now asserts every owned
name rather than the two that happened to work, and fails on `install`
with the fix reverted.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>

305 of 327 branches covered (93.27%)

Branch coverage included in aggregate %.

7 of 7 new or added lines in 2 files covered. (100.0%)

1248 of 1277 relevant lines covered (97.73%)

48.74 hits per line

Jobs
ID Job ID Ran Files Coverage
1 36693586950.1 30 Sep 2026 09:03AM UTC 14
96.82
GitHub Action Run
Source Files on build 36693586950
  • Tree
  • List 14
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #36693586950
  • 445aa216 on github
  • Prev Build on master (#36459718807)
  • Next Build on master (#36833840140)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc