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

Enforce warning output for garak classes. #605

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

jmartin-tech
Copy link
Collaborator

Introduction of the litellm package caused test runs to report warnings about pending deprecations in dependency code not directly in scope of this project.

This change raises lib warnings more clearly and has an effect of suppressing warnings from dependency classes. While not optimal, the explicit check for warnings from repo code is a reasonable trade off.

A separate maintenance action should be added in a future iteration to add checks for warnings introduced when updating dependency versions.

The changes to lib files resolve warnings primarily related file handles that are opened and never closed. Changes to the tests may be be worth an extended look as most are related to not closing the _config.TransientConfig.reportfile when the object is reloaded or goes out of scope.

This change raises lib warnings more clearly and has an effect of suppressing
warnings from dependency classes. While not optimal, the explicit check for
warnings from repo code is a reasonable trade off.

A separate maintenance action should be added in a future iteration to
add checks for warnings introduced when updating dependency versions.

Signed-off-by: Jeffrey Martin <jemartin@nvidia.com>
tests/buffs/test_buff_config.py Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
@leondz leondz merged commit 4e5cec4 into leondz:main Apr 18, 2024
4 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 18, 2024
@jmartin-tech jmartin-tech deleted the feature/enforce-test-warnings branch April 18, 2024 17:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants