Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[docs] Add guidance on ENVOY_BUG in STYLE.md #14575
[docs] Add guidance on ENVOY_BUG in STYLE.md #14575
Changes from 6 commits
d028a4c
9e02271
7cc91cc
884f1d4
1be2915
c51bfca
94568b0
8d8e10d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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 think making this more precise would make sense, since the goal of this PR is to avoid any ambiguity around things like "external environment" (which is kind of clarified above but lost to the reader by this point).
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 wonder if we can enforce this in CI. I.e. in a coverage-ish job, ensure that every
ENVOY_BUG
fires at least once across all tests. I think this is the only way we will get reliable enforcement of this requirement. One thing to keep in mind is that this is going to force gymnastics in testing; e.g. we will need things like testing peers to be able to force invariant violations, asENVOY_BUG
covers things that are usually beneath the intentionally exposed API surface.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.
Yep, I see -- these places are going to be difficult to test by design.
My other concern is that if we can't use llvm-cov, it may be difficult to design a job that does it. My only idea is that we grep for the error string in an ENVOY_BUG and check that it appears in a test file as a log/crash message.
#14766
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.
Yeah, fine to make this a followup. I think if we don't have some enforcement here, we are going to reach an end state in which some reasonable fraction of
ENVOY_BUG
that should have tests are missing this.