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

dangernoodle-io / ouroboros / 29160321384
92%

Build:
DEFAULT BRANCH: main
Ran 11 Jul 2026 04:44PM UTC
Jobs 1
Files 63
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

11 Jul 2026 04:43PM UTC coverage: 89.478% (+0.05%) from 89.432%
29160321384

push

github

web-flow
refactor: single transaction for backlog batch write (#132)

handleBacklog's entries[] batch previously ran each entry (update or
create, plus its edge links) in its OWN transaction, committing after
every entry. A batch of N entries was N independently-committed
transactions, so a failure on entry k left entries 1..k-1 permanently
persisted -- decision-128 calls for whole-batch atomicity, not
per-entry atomicity, so this realigns the implementation with that
decision.

Wrap the entire entries[] loop in one shared *sql.Tx: every entry's
epic validation, item write (create/update), and edge linking now run
against that single tx, and it commits once after the loop completes
with no error. Any entry error returns immediately, so the deferred
Rollback aborts the WHOLE batch -- nothing from any entry persists.

The store enforces SetMaxOpenConns(1), so holding the batch's shared
tx open for project resolution required moving resolveProject (and
backlog.GetProjectByName) off *sql.DB onto the package's existing
Executor interface -- a second *sql.DB-level query while the tx holds
the only connection would otherwise deadlock.

This is PR1 of backlog-populate-for-epics; the `$N` epic-by-position
back-reference is a separate, follow-on PR and is not touched here.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>

6565 of 7337 relevant lines covered (89.48%)

1.05 hits per line

Coverage Regressions

Lines Coverage ∆ File
56
74.68
0.0% backlog/projects.go
22
92.95
1.12% app/handlers_backlog.go
Jobs
ID Job ID Ran Files Coverage
1 29160321384.1 11 Jul 2026 04:44PM UTC 63
89.48
GitHub Action Run
Source Files on build 29160321384
  • Tree
  • List 63
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29160321384
  • 41027110 on github
  • Prev Build on main (#29145187965)
  • Next Build on main (#29160905822)
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