-
Notifications
You must be signed in to change notification settings - Fork 116
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
Implement check command #31
Conversation
Pinging @elastic/integrations (Team:Integrations) |
What's the point of adding a placeholder? Why not waiting for the implementation to have it exposed in the cmdline? |
The added value in this PR is the composition of multiple targets and the expected order. I suggest to look at this as a skeleton defining the development process. It would be easier to test if we have a single command "check" for the integration, which will go through multiple goals. For example: if you implement a command "validate", all you have to do is to run "check" which will iterate over other targets (build, format, etc.) and verify if there are still correct. This repository is private currently, so I hope it won't introduce much noise. |
Another pros - Imagine we decide to integrate it with integrations: |
Thanks I understand this better now. I have a few concerns about this:
|
We had an offline discussion, agreed on the following approach:
|
I think Github is facing an outage right now. Missing commits (already pushed) here: https://github.com/mtojek/elastic-package/commits/10-check-integration |
func setupCheckCommand() *cobra.Command { | ||
cmd := &cobra.Command{ | ||
Use: "check", | ||
Short: "Check the integration", |
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.
Sorry for hijacking this PR but I think we could make a more consistent use of the terms package
and integration
.
I understand that at this point in time integration
s represent the only available type
of package but this will hopefully change in the future.
So we should decide whether this tool is somehow dedicated to the development of specific packages of type: integration
, and in this case I would change the name of the tool and maybe move the source code into the elastic/integrations
repo; or we say this is a general purpose tool to support the development of packages, and in this case I'd consolidate the naming scheme around source code, docs, etc. avoiding to refer to integration
s when the command can actually work with any package type.
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.
Hey @masci, thanks for looking into this! I believe we have a discussion about this in the past.
We decided to move on with packages, but as long as there are no other types even defined (or in plans), I sticked to integrations. I can try to get rid of words referring to "integrations" in as many places as possible, but internally there will be support only for integrations.
I prefer to keep this in a separate repository as the original plan is to keep integration source in the integrations repo and nothing else (no logic, tooling, side scripting).
I'd like to listen to other opinions on this. @exekias @ruflin @ycombinator
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'm +1 on having this tool as the reference for package development, where integrations will be only a subset of that. In that sense I would refrain from mentioning "integrations" here.
In that sense I think it also makes sense to have the tool in a different repo, not only because of this "generic" soul, but also because I expect that once things get stable, elastic-package
users won't necessarily be go developers (with the go toolchain installed for instance). This project should have its own lifecycle.
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.
If you don't mind I would go over this in another PR. It's not directly in the scope of this PR.
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.
Resolving in favor of #34 |
Fixes: #10
Note: some commands are placeholders, they will be implemented in another issues.