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

cameri / nostream / 43976483504
78%
main: 79%

Build:
Build:
LAST BUILD BRANCH: rewrite/main
DEFAULT BRANCH: main
Ran 16 Nov 2026 11:12PM UTC
Jobs 1
Files 321
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

16 Nov 2026 11:07PM UTC coverage: 75.031% (-2.6%) from 77.582%
43976483504

push

github

web-flow
fix(hooks): decline when a worktree has no dependencies (#1095)

## What was wrong

A factory worktree cannot commit. `git worktree add` does not run
`prepare`, so the new checkout has neither `.husky/_` nor
`node_modules`, and the first line of both hooks aborts:

```
$ git commit -q --allow-empty -m probe
.husky/pre-commit: 2: .: cannot open .husky/_/husky.sh: No such file
rc=1
```

`sh` exits a non-interactive script when a `.` fails, so no gate ever
runs and the commit never happens. The workaround every agent finds is
`--no-verify`, which skips the gates the hooks exist to enforce.

Six tool-call rows across 2026-11-06..09 were this failure, from both
the primary and job subagents, all inside
`projects/nostream-worktrees/*`.

## What this changes

Both hooks now decline when the checkout has nothing to run, and source
the shim only when it exists:

```sh
[ -d node_modules ] || exit 0
_root=$(dirname -- "$0")
[ -f "$_root/_/husky.sh" ] && . "$_root/_/husky.sh"
```

A checkout that can run its gates is unchanged: `pnpm run lint`,
`build:check`, `test:unit` and `commitlint` still run, and still block
on failure.

## Verified in a fresh worktree off this base

| state | before | after |
|---|---|---|
| no `node_modules`, no `.husky/_` | `rc=1`, no commit | `rc=0`, commit
lands |
| `node_modules` + `.husky/_` present | shim runs | shim runs
(`HOOK-RAN`), `pnpm run lint` executes |

## Out of scope

The deeper cause is that a worktree is expected to install before
committing. Making `prepare` run per worktree would put a full
dependency install on every factory job, so declining is the cheaper and
more honest behaviour for a checkout with no dependencies: there is
nothing for the gates to check against.

4353 of 6342 branches covered (68.64%)

Branch coverage included in aggregate %.

9470 of 12081 relevant lines covered (78.39%)

747.54 hits per line

Coverage Regressions

Lines Coverage ∆ File
101
11.15
-47.84% src/utils/relay-probe/ws-protocol-probe.ts
30
67.53
-14.94% src/scripts/export-events.ts
20
9.62
-55.77% src/controllers/admission/get-admission-check-controller.ts
16
64.82
-13.57% src/import-events.ts
14
50.91
-38.18% src/utils/admin-health.ts
11
54.17
-45.83% src/factories/web-app-factory.ts
10
12.0
-56.0% src/controllers/invoices/get-invoice-status-controller.ts
9
17.5
-32.5% src/handlers/request-handlers/rate-limiter-middleware.ts
8
93.85
-2.77% src/repositories/event-repository.ts
7
32.0
-44.0% src/factories/payments-processors/lnbits-payments-processor-factory.ts
7
29.63
-40.74% src/factories/payments-processors/opennode-payments-processor-factory.ts
7
33.33
-52.38% src/factories/rate-limiter-factory.ts
7
63.64
-21.21% src/utils/relay-probe/dns-probe.ts
6
57.14
-42.86% src/factories/controllers/post-invoice-controller-factory.ts
6
18.0
-12.0% src/utils/relay-probe/tls-probe.ts
5
64.06
-15.63% src/cache/client.ts
5
58.33
-41.67% src/factories/controllers/get-admission-check-controller-factory.ts
5
50.0
-31.25% src/factories/payments-processor-factory.ts
4
41.67
-41.67% src/factories/payments-processors/lnurl-payments-processor-factory.ts
4
42.86
-57.14% src/handlers/request-handlers/nodeinfo-handler.ts
4
57.14
-42.86% src/utils/monitor-identity.ts
3
74.77
-5.61% src/adapters/redis-adapter.ts
3
37.5
-12.5% src/app/worker.ts
3
57.14
-42.86% src/factories/controllers/get-invoice-status-controller-factory.ts
3
78.38
-21.62% src/routes/index.ts
3
93.01
-2.18% src/utils/event.ts
3
41.67
-5.21% src/utils/relay-probe/nip11-probe.ts
2
78.57
-7.14% src/repositories/invoice-repository.ts
2
80.56
-2.78% src/services/event-import-service.ts
2
33.33
-66.67% src/utils/misc.ts
2
76.79
-2.68% src/utils/nip66-events.ts
2
85.11
-4.26% src/utils/relay-probe-targets.ts
2
86.81
-0.5% src/utils/settings-config.ts
1
96.67
-3.33% src/adapters/web-server-adapter.ts
1
85.71
-2.14% src/app/relay-monitor-worker.ts
1
83.33
-16.67% src/factories/controllers/lnbits-callback-controller-factory.ts
1
75.0
-25.0% src/factories/controllers/opennode-callback-controller-factory.ts
1
81.48
-5.56% src/utils/nip66-nip11-tags.ts
1
87.88
-6.06% src/utils/relay-probe-snapshot.ts
Jobs
ID Job ID Ran Files Coverage
1 Unit - 43976483504.1 16 Nov 2026 11:12PM UTC 321
75.03
GitHub Action Run
Source Files on build 43976483504
  • Tree
  • List 321
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #43976483504
  • 67ff5d1f on github
  • Prev Build on rewrite/main (#43904420785)
  • Next Build on rewrite/main (#43976899489)
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