Repository navigation
test(probes,detectors): add unit tests for several uncovered modules - #1853
nuthalapativarun wants to merge 1 commit into
Conversation
9f17cce to
0e3b160
Compare
|
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! |
|
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. |
|
Hi team — following up on PR #1853 (unit test coverage sweep). CI green, been open ~4 weeks. Happy to address any feedback. Thanks! |
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 <[email protected]>
0e3b160 to
7c1fc7b
Compare
|
Rebased this branch onto current upstream/main and force-pushed - it's mergeable again. One conflict: tests/detectors/test_detectors_goodside.py had been added independently on main (a config_root/skip test for RileyIsnt) while this branch adds a separate, non-overlapping set of tests for RileyIsnt.detect, PlainJSON, and Glitch. Merged both into a single file rather than dropping either side. All 44 tests across the new/merged files pass locally. This PR hasn't had a first review yet - would appreciate someone taking a look when there's bandwidth. |
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/