-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d028a4c
draft
asraa 9e02271
fix markdown format
asraa 7cc91cc
markdown style
asraa 884f1d4
fix indent
asraa 1be2915
fix wording
asraa c51bfca
fix format
asraa 94568b0
update
asraa 8d8e10d
address comments
asraa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.