-
Notifications
You must be signed in to change notification settings - Fork 4.5k
scripts: add linter rule for using context.WithTimeout on tests #7342
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
Merged
zasweq
merged 38 commits into
grpc:master
from
hasson82:hasson82/add-context-with-timeout-checks-to-lint
Jul 3, 2024
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
58ff83f
add context with timeout check to vet script
hasson82 7da7920
expand lint rule to avoid dealing with context.WithCancel cases
hasson82 d47051e
add context.WithTimeout to handeshaker tests
hasson82 5acc6e3
avoid context_test.go in linting
hasson82 c47300f
Change the lint rule to avoid context_test.go file
hasson82 d595842
add context with timeout to observability tests
hasson82 a1e7035
ignore credentials/google package as this package doesnt have default…
hasson82 4a7ec24
Change all context in bundle_ext_test.go to context with timeout
hasson82 912de44
Change all context in bundle_test.go to context with timeout
hasson82 150515f
Change rbac_engine_test context to context with timeout
hasson82 9cb967d
add context with timeout to method_logger_test in binary log
hasson82 53cc270
adding internal/transport package to avoid list in linter rule
hasson82 befaa3d
reduce rule in linter to avoid catching cases were context.WithTimeou…
hasson82 eaccdda
change all context usage in metadata_test to context.WithTimeout
hasson82 a4e7742
add xds/internal to avoid list of linter rule
hasson82 aa71ff0
add context.WithTimeout to peer_test
hasson82 d1aefe7
change all context usage in picker_wrapper_test to context.WithTimeout
hasson82 40a54fb
add security/advancedtls to avoid list in linter rule
hasson82 96345b1
change all usage of context in server_test.go to context.WithTimeout
hasson82 59a3855
change missing context usage in observability_test to context.WithTim…
hasson82 cfc815b
change all context usage to context.WithTimeout in gracefulstop_test
hasson82 c33cbef
remove added lint from vet.sh
hasson82 e7192b1
add lint rule of all context should have timeouts back
hasson82 689ae5b
change lint rule in all avoided packages to not grep
hasson82 6a51d0d
change lint rule to not to enforce that the grep returns nothing
hasson82 c29c45c
change lint rule to not to enforce that the grep returns nothing
hasson82 7f744cd
Merge branch 'hasson82/add-context-with-timeout-checks-to-lint' of gi…
hasson82 f0f0952
add clarifications to the comment above the lint rule
hasson82 0430481
revert const change in test
hasson82 832789b
move context creation to improve test readability
hasson82 9719207
extracted context with timeout setup to central location to improve t…
hasson82 3081de9
improve test readability
hasson82 cb43ba0
improve stream context test readability
hasson82 6c25072
rename ctxWithTimeout to ctx
hasson82 4b89735
move ctx to inside each test
hasson82 fdca263
move context creation to outside of the loops
hasson82 d76f29c
extract context creation from some more loops
hasson82 136b4ba
extract outside of all loops in bench mark server_test
hasson82 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 hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.