Skip to content

Conversation

@ankitkumarsingh1702
Copy link

Summary

This PR addresses #6815 by moving all //go:generate mockery comments to a centralized .mockery.yaml configuration file.

Changes

  • Added .mockery.yaml with all mockery definitions organized by package sections:

    • datacatalog (6 interfaces)
    • flytectl (7 packages)
    • flytepropeller (16 packages)
    • flytestdlib (5 packages)
    • flyteplugins (11 packages)
    • flyteadmin (17 packages)
    • flyteidl (3 packages)
  • Removed //go:generate mockery comments from 107 Go files across the codebase

Benefits

  1. Centralized configuration: All mockery settings in one place
  2. Easier maintenance: Modify mock generation settings without touching source files
  3. Consistency: Uniform mockery options across all packages
  4. Better discoverability: Easy to see all mocked interfaces at a glance

Testing

Run mockery from the repository root to regenerate all mocks:

mockery

Fixes #6815

Checklist

  • Added .mockery.yaml configuration file
  • Removed all //go:generate mockery comments
  • Verified no remaining mockery generate comments in codebase

This PR moves all //go:generate mockery comments to a centralized
.mockery.yaml configuration file, making it easier to manage mock
generation across the codebase.

Changes:
- Added .mockery.yaml with all mockery definitions organized by package
- Removed //go:generate mockery comments from 107 Go files

Fixes flyteorg#6815

Signed-off-by: Ankit Kumar Singh <ankitkumarsingh1702@gmail.com>
@codecov
Copy link

codecov bot commented Jan 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.95%. Comparing base (4399ba8) to head (f177fb5).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6877      +/-   ##
==========================================
- Coverage   56.95%   56.95%   -0.01%     
==========================================
  Files         929      929              
  Lines       58151    58151              
==========================================
- Hits        33120    33119       -1     
- Misses      21989    21990       +1     
  Partials     3042     3042              
Flag Coverage Δ
unittests-datacatalog 53.51% <ø> (ø)
unittests-flyteadmin 53.10% <ø> (ø)
unittests-flytecopilot 43.06% <ø> (ø)
unittests-flytectl 64.02% <ø> (ø)
unittests-flyteidl 75.71% <ø> (ø)
unittests-flyteplugins 60.13% <ø> (ø)
unittests-flytepropeller 53.63% <ø> (ø)
unittests-flytestdlib 63.27% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ankitkumarsingh1702
Copy link
Author

Closing this PR as Issue #6815 was already solved by PR #6829. Thank you @machichima for the heads up!

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.

[Refactor] Define all mockery in .mockery.yaml

1 participant