-
Notifications
You must be signed in to change notification settings - Fork 174
Refactor: extract common loader/saver interfaces (Github Workflow generation prep). #3262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor: extract common loader/saver interfaces (Github Workflow generation prep). #3262
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3262 +/- ##
==========================================
- Coverage 57.26% 54.56% -2.70%
==========================================
Files 162 164 +2
Lines 14811 19231 +4420
==========================================
+ Hits 8481 10493 +2012
- Misses 5322 7697 +2375
- Partials 1008 1041 +33
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am wondering, if we should have them in the pkg/functions package instead, like we have it for some function related interfaces too 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept in in the cmd layer because it just a thin wrapper around very little functionality of the Function package which is not used outside the cmd layer.
i.e. it is not a real extension of the Functions API...just a facade.
Move FunctionLoader, FunctionSaver, and FunctionLoaderSaver interfaces along with standardLoaderSaver implementation into new cmd/common package to enable reuse across commands. Add tests and a common testing factory function which will be used in the upcoming tests for config ci subcommand too. Issue knative#3256 Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
787aa4c to
a62ee65
Compare
|
/lgtm |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: matejvasek, twoGiants The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Ah it looks like you are not project reviewer/approver so you PRs are not auto approved. |
Changes
cmd/commonpackagecmd/commonas DefaultLoaderSaverCreateFuncInTempDirfor reuse in upcoming tests/kind cleanup
Subtask of #3256.
Release Note
Docs