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

ory / lumen / 23403265328
68%

Build:
DEFAULT BRANCH: main
Ran 22 Mar 2026 12:43PM UTC
Jobs 1
Files 30
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

22 Mar 2026 12:40PM UTC coverage: 68.398% (-0.7%) from 69.139%
23403265328

push

github

aeneasr
fix(cmd): add TestMain to prevent fork-bomb in TestSpawnBackgroundIndexer

spawnBackgroundIndexer uses os.Executable() to find the binary to spawn.
In a test context, os.Executable() returns the test binary itself (cmd.test).
Spawning it with \"index <path>\" args causes the test binary to execute all
tests (since \"index\" is a positional arg that the test framework ignores),
including TestSpawnBackgroundIndexer_DoesNotPanic, which spawns another copy,
and so on — an exponential fork-bomb.

The symptom was the CI Test job hanging for 8+ minutes (hundreds of test
binary processes competing for SQLite locks and CPU) before the runner was
killed by the OS/GitHub infrastructure.

Fix: add TestMain that detects the subprocess invocation pattern
(os.Args[1] == \"index\") and exits cleanly instead of running the full suite.
This matches the existing guard in the generateSessionContext tests which
already document this exact fork-bomb risk.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

2344 of 3427 relevant lines covered (68.4%)

47.43 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
92.54
0.11% internal/tui/progress.go
7
94.52
-4.67% internal/merkle/ignore.go
8
88.71
2.85% internal/chunker/treesitter.go
11
82.81
0.85% internal/merkle/merkle.go
16
31.48
-4.69% internal/config/config.go
27
47.71
2.09% cmd/hook.go
34
5.05
-1.2% cmd/index.go
48
79.18
3.38% internal/index/index.go
58
71.93
-1.09% internal/store/store.go
280
53.98
0.38% cmd/stdio.go
Jobs
ID Job ID Ran Files Coverage
1 23403265328.1 22 Mar 2026 12:43PM UTC 30
68.4
GitHub Action Run
Source Files on build 23403265328
  • Tree
  • List 30
  • Changed 10
  • Source Changed 10
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23403265328
  • 19849aac on github
  • Prev Build on main (#23319481140)
  • Next Build on main (#23404198169)
  • 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

© 2026 Coveralls, Inc