Skip to content

migrate: fix the red CI on master - #12

Merged
emoss08 merged 1 commit into
masterfrom
migrate-ci
Nov 25, 2026
Merged

emoss08 merged 1 commit into
masterfrom
migrate-ci

Conversation

@emoss08

@emoss08 emoss08 commented Nov 25, 2026

Copy link
Copy Markdown
Owner

What changes

  • Removes migrate/code.go. codeOf, isComment, lineDiff and maxDiffLines have no caller, so golangci-lint's unused check failed every run on master. The code-only checksum and diff it began stay in efc15bd, ready to be wired in later.
  • Makes TestRequireWait reliable. The test opened the pool's first connection inside its 150 ms deadline. On a slow runner, connecting used up the deadline, so the first check failed before it could report ErrBehind. The pool is now pinged first, so the deadline times only the wait.

Test-only and dead-code changes; not breaking.

Checks

golangci-lint run ./... reports 0 issues. go vet ./... passes. go test -race -count=3 -run TestRequire ./migrate/ passes against Postgres.

🤖 Generated with Claude Code

Remove migrate/code.go: codeOf, isComment, lineDiff and maxDiffLines have no caller, so the
unused linter failed every run. The work stays in efc15bd for when the code-only checksum is
wired in.

TestRequireWait opened the pool's first connection inside its 150ms deadline, so a slow runner
spent the deadline connecting and the first check failed before it could report ErrBehind.
The pool is pinged first, so the deadline times the wait alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@emoss08
emoss08 merged commit 20502f7 into master Nov 25, 2026
2 checks passed
@emoss08
emoss08 deleted the migrate-ci branch November 25, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant