#6261 Switch workflowengine compiler mock to mockery generated
Pull request opened by
luckyarthur
Tracking issue
Related to
#149
Why are the changes needed?
FlyteAdmin currently relies on manually crafted mocks, which are cumbersome to maintain and extend for new interfaces. Switching to Mockery v2 generated mocks is a more efficient approach, eliminating repetitive boilerplate code and streamlining the development process, also add the go generate comment which automates update of mocks
What changes were proposed in this pull request?
this PR includes changes of mock for flyteadmin/pkg/workflowengine/interfaces/compiler.go, and update unit test usage of the new mockery generated mock
Check all the applicable boxes
• All new and existing tests passed.
• All commits are signed-off.
Summary by Bito
Modernization of testing infrastructure by replacing manual mocks with Mockery v2 generated mocks for the workflow engine compiler interface. The update includes adding go:generate directives and implementing new Mockery v2-based mocks. The changes streamline the codebase by removing old manual mock implementations while enhancing maintainability and consistency of test files.
Unit tests added: True
Estimated effort to review (1-5, lower is better): 2
flyteorg/flyte