Skip to content
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

protos: Remove unused proto import #16834

Merged
merged 1 commit into from
Jun 9, 2021
Merged

Conversation

phlax
Copy link
Member

@phlax phlax commented Jun 6, 2021

Signed-off-by: Ryan Northey ryan@synca.io

Commit Message: protos: Remove unused proto import
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]
[Optional API Considerations:]

@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/envoy/.
envoyproxy/api-shepherds assignee is @lizan
CC @envoyproxy/api-watchers: FYI only for changes made to api/envoy/.

🐱

Caused by: #16834 was opened by phlax.

see: more, trace.

Signed-off-by: Ryan Northey <ryan@synca.io>
@phlax phlax assigned htuch and unassigned lizan Jun 7, 2021
@daixiang0
Copy link
Member

I am wondering is there a tool to check unused proto import?

@phlax
Copy link
Member Author

phlax commented Jun 8, 2021

I am wondering is there a tool to check unused proto import?

not afaiaa but i would be very happy to be corrected

see #15589 for related discussion

@daixiang0
Copy link
Member

Happy to see those clean :)

Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@phlax can you add to CI some auto-detection of these warnings and then we can prevent regression? I don't mind approving this, but ideally we automate ourselves out of our job here.

@phlax
Copy link
Member Author

phlax commented Jun 9, 2021

can you add to CI some auto-detection of these warnings

@htuch not trivially as explained before - the obvious way would be to fail on warning - but bazel rules_proto emits useless warnings about missing directories which massively complicates that

here is our tracking ticket #15589

and here is me moaning on the very aged upstream ticket about lack of progress bazelbuild/bazel#7157 (comment)

i guess there are some hacky workarounds - but its pretty annoying because i think the proper fix should be fairly trivial

@phlax
Copy link
Member Author

phlax commented Jun 9, 2021

one thing i would also say is that i was cleaning up 2-3 of these per week - but fixing the docs seems to have reduced this down to 1 or 2 a month

@htuch
Copy link
Member

htuch commented Jun 9, 2021

I was thinking something like tee-ing the output somewhere and grepping for the specific unused import warnings. I don't mind merging, but I rather not whackamole longer term.

@repokitteh-read-only repokitteh-read-only bot removed the api label Jun 9, 2021
@htuch htuch merged commit 9962e59 into envoyproxy:main Jun 9, 2021
leyao-daily pushed a commit to leyao-daily/envoy that referenced this pull request Sep 30, 2021
Signed-off-by: Ryan Northey <ryan@synca.io>
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.

None yet

4 participants