-
-
Notifications
You must be signed in to change notification settings - Fork 720
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
Reduce noise from GC-related logging #8804
Conversation
Unit Test ResultsSee test report for an extended history of previous test failures. This is useful for diagnosing flaky tests. 29 files ±0 29 suites ±0 11h 55m 10s ⏱️ +55s For more details on these failures, see this check. Results for commit 1da9819. ± Comparison against base commit 40fcd65. This pull request removes 3 and adds 3 tests. Note that renamed tests count towards both.
This pull request removes 1 skipped test and adds 1 skipped test. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
|
||
logger = _logger = logging.getLogger(__name__) | ||
logger.addFilter(RateLimiterFilter("full garbage collections took", rate="60s")) |
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.
This limits the amount of logs if they are captured.
@@ -97,6 +97,7 @@ def _initialize_logging_old_style(config: dict[Any, Any]) -> None: | |||
loggers: dict[str, str | int] = { # default values | |||
"distributed": "info", | |||
"distributed.client": "warning", | |||
"distributed.gc": "warning", |
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.
This PR renames utils_perf
to gc
, both the file and the logger. This is breaking, but I don't think too many people use this. If anything, I can perceive people importing disable_gc_diagnosis
. If worthwhile, we can run a deprecation cycle for these imports.
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.
From what I can tell, https://github.com/AlexeyPechnikov/pygmtsar/blob/b5c58d61f00350cc4115d63985af9caa2c7cd9de/pygmtsar/pygmtsar/IO.py#L455 is the only package with many users that does this.
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.
Is there any real benefit of renaming? Otherwise I'd keep as is if there are actual users out there. Not sure if this package counts as actual users?
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.
Is there any real benefit of renaming? Otherwise I'd keep as is if there are actual users out there. Not sure if this package counts as actual users?
Mostly, I really hate the name as it's completely non-descriptive.
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.
Once again, we could add a deprecation cycle, but I'd like to get rid of the name sooner or 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.
yeah lets change it now
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.
Can you open an issue there just to be nice?
(Partially?) addresses #8543
pre-commit run --all-files