fix(cli): suppress noisy warnings in experiment output#1
Merged
Conversation
User experiment code and third-party libraries (httpx, asyncio, duckduckgo_search) emit unclosed socket/transport ResourceWarnings and package-rename RuntimeWarnings that clutter CI output without being actionable. Filter them out before running experiment modules. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Suppresses Python warnings that clutter CI logs during experiment runs by adding warnings.filterwarnings calls before experiment execution.
Changes:
- Adds blanket
ignorefilters forResourceWarningandRuntimeWarningin the CLIruncommand
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
| # code and third-party libraries — these clutter CI output without being | ||
| # actionable by the experiment author. | ||
| warnings.filterwarnings("ignore", category=ResourceWarning) | ||
| warnings.filterwarnings("ignore", category=RuntimeWarning) |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
ResourceWarning(unclosed sockets/transports from httpx, asyncio) that clutter CI logsRuntimeWarning(package rename notices like duckduckgo_search → ddgs)Before
(repeated dozens of times per experiment run)
After
Clean output — only experiment results and evaluator tables shown.
Test plan
cobalt run --cion llm-obs-benchmark — verify warning noise is gone🤖 Generated with Claude Code