-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add CI step to build using protoc
with fatal warnings
#237
Add CI step to build using protoc
with fatal warnings
#237
Conversation
ce88bd0
to
6a0add9
Compare
6a0add9
to
fcfa6d2
Compare
The steps in the CI file from the step `nox` onwards miss some cases, like unused imports. An additional step with `protoc` takes care of this. This step generates the protoc files directly using `protoc`, and treats warnings as fatal. Signed-off-by: Tiyash Basu <tiyash.basu@frequenz.com>
fcfa6d2
to
48da29a
Compare
protoc
protoc
with fatal warnings
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.
Looks good but I wonder if that checks should be moved to nox and repo-config. @llucax Opinions?
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.
LGMT!
Right, this should be added to repo-config at some point. Also, the action for setting up protoc has to be extracted into a separate action. |
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.
Just a minor comment, but I'm also fine to keep it as it is.
repo-config is needing some love, we are not being able to catch-up with the pace of new repo types (like api clients), and I want to split it in smaller repos (one for generating protobuf, one with the tools for mkdocs, one with just the cookicutter templates, etc.). We want to remove the python code generation too soon ™️ from "api" repos, so there is a lot of work to do on that side too. So I think we can wait for all that restructuring before pushing this to repo-config. Eventually I think we'll need to do a sprint to re-repo-configy all repositories. |
Yeah, that too, I started the process of splitting the big |
The steps in the CI file from the step
nox
onwards miss a few cases, like reporting unused imports. An additional step withprotoc
takes care of this. This step generates the protoc files directly usingprotoc
, and treats warnings as fatal.Closes #228