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

golang-migrate / migrate / 30631577385
54%
master: 55%

Build:
Build:
LAST BUILD BRANCH: docs/cli-install-toolchain
DEFAULT BRANCH: master
Ran 31 Jul 2026 01:02PM UTC
Jobs 2
Files 59
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

31 Jul 2026 12:41PM UTC coverage: 54.471% (+0.06%) from 54.412%
30631577385

Pull #1417

github

milanobrtlik
fix: propagate migration body read errors to the database driver

Migration.Buffer closes bufferWriter in a deferred call so that readers of
BufferedBody can never block (#1308). Because io.PipeWriter.Close closes with
a nil error, the reader observes a clean io.EOF even when reading the
migration body failed.

The read error itself only reaches m.logErr in the goroutine started by
readUp/readDown, and logErr is a no-op when no logger is configured. So on a
failed body read runMigrations hands the driver a truncated (or empty) body,
Run returns nil, and the migration is recorded as applied and clean:

	SetVersion(target, dirty=true)
	Run(BufferedBody)  -> reads EOF, executes partial SQL, returns nil
	SetVersion(target, dirty=false)

Close the pipe with the read error instead, so the driver fails, the error
reaches the caller, and the version is correctly left dirty.
Pull Request #1417: fix: propagate migration body read errors to the database driver

6 of 8 new or added lines in 1 file covered. (75.0%)

4386 of 8052 relevant lines covered (54.47%)

49.77 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
87.32
4.25% migration.go
Jobs
ID Job ID Ran Files Coverage
1 Go-1.26.x - 30631577385.1 31 Jul 2026 01:02PM UTC 59
54.47
GitHub Action Run
2 Go-1.25.x - 30631577385.2 31 Jul 2026 01:02PM UTC 59
54.47
GitHub Action Run
Source Files on build 30631577385
  • Tree
  • List 59
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1417
  • PR Base - master (#28747999081)
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