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

enboxorg / gitd / 22596904216
83%

Build:
DEFAULT BRANCH: main
Ran 02 Mar 2026 09:41PM UTC
Jobs 1
Files 82
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

02 Mar 2026 09:39PM UTC coverage: 84.007% (-0.5%) from 84.482%
22596904216

push

github

web-flow
fix: resolve push auth deadlock by delegating token generation to daemon (#165)

* fix: resolve push auth deadlock by delegating token generation to daemon

The credential helper (git-remote-did-credential) was opening the agent's
LevelDB stores directly, which deadlocked when the daemon (gitd serve)
already held the exclusive lock. LevelDB only allows one process to hold
the lock — the second process hangs forever.

Add POST /auth/token endpoint to the git server that generates DID-signed
push credentials using the daemon's already-unlocked identity. Rewrite the
credential helper to call this endpoint when a daemon is running, falling
back to direct agent connection only when no daemon is found.

- Add generateToken callback to GitServerOptions and POST /auth/token route
- Wire token generation in serve.ts using the agent identity's BearerDid
- Rewrite credential-main.ts to prefer daemon endpoint over direct agent
- Add E2E test exercising the real credential helper binary via /auth/token

* test: add real daemon E2E test for push auth LevelDB lock fix

Replaces the in-process E2E test with a real multi-process test:
- test-daemon.ts: standalone daemon process that holds LevelDB lock
- e2e.spec.ts: spawns daemon, verifies /health, /auth/token, clone, push

Fixes: async Array.find() bug, nonce replay in test authenticator,
ownerDid assignment order, unused mkdirSync import.

4 of 57 new or added lines in 2 files covered. (7.02%)

1 existing line in 1 file now uncovered.

7837 of 9329 relevant lines covered (84.01%)

28.86 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
23
21.1
-2.49% src/cli/commands/serve.ts
30
77.42
-18.48% src/git-server/server.ts

Uncovered Existing Lines

Lines Coverage ∆ File
1
21.1
-2.49% src/cli/commands/serve.ts
Jobs
ID Job ID Ran Files Coverage
1 22596904216.1 02 Mar 2026 09:41PM UTC 82
84.01
GitHub Action Run
Source Files on build 22596904216
  • Tree
  • List 82
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22596904216
  • 3adf6ad8 on github
  • Prev Build on main (#22588811181)
  • Next Build on main (#22596944385)
  • 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