Skip to content
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

Silence many info logs in unit tests #3224

Closed
wants to merge 2 commits into from

Conversation

esantorella
Copy link
Contributor

Summary: I'm not sure if there is a nice way to do this in tests by default. This mostly silences logs about trials being generated and completed.

Differential Revision: D67815243

Summary:

This diff:
* Silences info logs about custom trials being attached, which comes from manually creating experiments for optimization traces.
* Allows Scheduler's logging level to be customized, and changes the default level from INFO to WARNING for computing baseline values only. I didn't change it overall since knowing how many trials have run is useful for understanding what is happening. I lowered the level for unit tests.
* Silences warnings about poor model fit (model fit is checked in every `gen` call).

Reviewed By: Balandat

Differential Revision: D67797711
Summary: I'm not sure if there is a nice way to do this in tests by default. This mostly silences logs about trials being generated and completed.

Differential Revision: D67815243
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jan 4, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67815243

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.88%. Comparing base (f26f931) to head (0de848c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3224   +/-   ##
=======================================
  Coverage   95.88%   95.88%           
=======================================
  Files         513      513           
  Lines       51681    51697   +16     
=======================================
+ Hits        49553    49569   +16     
  Misses       2128     2128           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 7484965.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants