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

avito-tech / go-transaction-manager / 36240638299
94%

Build:
DEFAULT BRANCH: main
Ran 26 Sep 2026 12:04PM UTC
Jobs 1
Files 43
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

26 Sep 2026 12:01PM UTC coverage: 93.75% (+0.1%) from 93.616%
36240638299

push

github

web-flow
fix: prevent context leak on error (#174)

* fix: prevent context leak on error

* docs(manager): state that Init cancels the derived context on error

Also assert the returned context is non-nil before reading its Err in
the cancel-on-error tests, so a factory that returns a nil context fails
with a clear message instead of a nil pointer dereference.

* fix(manager): keep Init minimal and cover every cancel-on-error path

- UnSkippable is back to comparing with ErrSkip directly: errors.Is dropped
  a wrapped leaf together with its message, and it is unrelated to the leak.
- Only err is a named result; the cancel != nil guard is gone (withCancel
  never returns nil).
- The cancel-on-error test is a table over the four error paths: a failed
  Begin, ErrNestedBegin, ErrPropagationMandatory and ErrPropagationNever,
  with WithCancelable instead of a timeout.
- CHANGELOG entry under 2.0.4.

* style: satisfy wsl and unparam in the manager package

* test(trm): UnSkippable drops only the bare ErrSkip, a wrapped one is kept

* docs: move the Init context leak entry to 2.0.5

* test(trm): snake_case name for the UnSkippable case

---------

Co-authored-by: maranqz <ilia.sergunin@gmail.com>

1575 of 1680 relevant lines covered (93.75%)

11.03 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
93.94
2.36% trm/v2/manager/manager.go
Jobs
ID Job ID Ran Files Coverage
1 36240638299.1 26 Sep 2026 12:04PM UTC 43
93.75
GitHub Action Run
Source Files on build 36240638299
  • Tree
  • List 43
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #36240638299
  • 3b4ecd00 on github
  • Prev Build on main (#36238770836)
  • Next Build on main (#36240700601)
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