Skip to content

[WIP] cmd/atomic-migrations-test: Atomic migrations test command

Warren Gifford requested to merge tsenart/atomic-migrations into master

Created by: tsenart

This change set introduces:

  1. An isolated atomic migrations test command that reliably reproduces https://github.com/golang-migrate/migrate/issues/55 and https://github.com/sourcegraph/sourcegraph/issues/1491.
  2. A patch to db/dbconn.go that safely ignores the error we're seeing and thus fixes #1491 (closed). See the code comment for more details.

Since I shared this PR in https://github.com/golang-migrate/migrate/issues/55 with the test case, I'd like to keep the atomic-migrations-test code around. If there's a better place for it, please advice.

Merge request reports

Loading