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

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

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

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

4386 of 8052 relevant lines covered (54.47%)

24.88 hits per line

Source Files on job Go-1.25.x - 30631577385.2
  • Tree
  • List 59
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 30631577385
  • 4a793ddb on github
  • Prev Job for on fix/buffer-propagate-read-error (#28747999081.1)
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