<#7148 Migrate mockery from v2 to v3.7.0> Pull req...
# flyte-github
a
#7148 Migrate mockery from v2 to v3.7.0 Pull request opened by SVilgelm Summary • Upgrade mockery from v2 (v2.52.1/v2.53.5) to v3.7.0 across all install locations (Dockerfile, boilerplate tools, scripts) • Convert
.mockery.yaml
to v3 format using
mockery migrate
, consolidate 5 packages from scattered
go:generate
directives into central config • Remove 11 unused mock packages and 3 hand-written fakes (2 unused, 1 replaced with mockery-generated mock) • Remove all 9
go:generate mockery
directives from source files • Regenerate all mocks with v3, fix test code for v3 API changes (
OnMethodName
→
EXPECT().MethodName()
) Commits 1.
build: update mockery from v2 to v3.7.0 in all install locations
2.
build: convert .mockery.yaml to v3 format using mockery migrate
3.
build: add 5 packages to .mockery.yaml from go:generate directives
4.
refactor: replace hand-written mock fakes with mockery-generated mocks
5.
cleanup: remove 11 unused mock packages and their directories
6.
refactor: remove all go:generate mockery directives
7.
build: regenerate all mocks with mockery v3
8.
fix: update test code for mockery v3 API changes
Test plan •
go build ./...
passes •
go test ./...
passes (3 pre-existing failures unrelated to mockery:
executor/pkg/controller
,
flytestdlib/config/tests
,
runs/test/api
) • Verify
make mocks
works in CI • Verify Docker image builds with new mockery version 🤖 Generated with Claude Code •
main
• #6583 • Migrate mockery from v2 to v3.7.0 👈 flyteorg/flyte