forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
134317: testutils: roachtest log import linter r=srosenberg a=herkolategan Previously, it was possible to add the CRDB log or the standard golang log as an import in roachtests. This adds a new linter that prevents using incorrect logging in roachtests. The logger supplied by the test framework to a test should be used in all circumstances. Epic: None Release note: None 134408: roachtest: minor task manager refactoring r=srosenberg a=herkolategan Implement a few refactoring changes based on recent feedback. 1. Rename the `ExpectedCancel` event field to `TriggeredByTest` as it makes more sense in the context of the flag that gets set on the event. A comment has been added to explain the reasoning behind this flag. 2. Update the commentary on task termination to indicate that it does not wait indefinitely for tasks to stop. 3. Update the test framework panic handler logging to be more inline with how panics are logged in a test's main goroutine. Informs: cockroachdb#133263 Epic: None Release note: None Co-authored-by: Herko Lategan <[email protected]>
- Loading branch information
Showing
5 changed files
with
104 additions
and
41 deletions.
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
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
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
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
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