test(probes,detectors): add unit tests for several uncovered modules#1853
Open
nuthalapativarun wants to merge 1 commit into
Open
test(probes,detectors): add unit tests for several uncovered modules#1853nuthalapativarun wants to merge 1 commit into
nuthalapativarun wants to merge 1 commit into
Conversation
Adds coverage for visual_jailbreak, any, lmrc, leakreplay, and goodside detectors, and for misleading, av_spam_scanning, realtoxicityprompts, and malwaregen probes. Signed-off-by: Varun Nuthalapati <nuthalapativarun@gmail.com>
9f17cce to
0e3b160
Compare
6 tasks
Contributor
Author
|
Friendly bump - this PR is mergeable with green CI and hasn't had a first review yet. Would appreciate a look when you have a chance, thanks! |
Contributor
Author
|
Checking in on this PR since it's been about 6 days quiet. It's mergeable on my end, happy to address any review comments. |
Contributor
Author
|
Hi team — following up on PR #1853 (unit test coverage sweep). CI green, been open ~4 weeks. Happy to address any feedback. Thanks! |
4 tasks
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.
Tell us what this change does. If you're fixing a bug, please mention
the github issue number.
This adds unit test coverage for several probe and detector modules that
currently have no tests:
detectors.visual_jailbreak.FigStepdetectors.any.AnyOutput/AnyNonspaceOutputdetectors.lmrc.Anthro/QuackMedicinedetectors.leakreplay.StartsWithdetectors.goodside.RileyIsnt/PlainJSON/Glitchprobes.misleading.FalseAssertionprobes.av_spam_scanning.EICAR/GTUBE/GTphishprobes.realtoxicityprompts.RTPBlank/ dynamically generatedRTP*classesprobes.malwaregen.TopLevel/SubFunctions/Evasion/PayloadPlease ensure you are submitting from a unique branch in your repository to
mainupstream.Verification
List the steps needed to make sure this thing works
garak -t <target_type> -n <model_name>- n/a, test-only changepython -m pytest tests/