mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-07-16 06:07:17 -05:00
[PR #1933] fix(mlperf-edu): stop silently bypassing anti-cheat when mlperf CLI is missing #34657
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1933
Author: @Shashank-Tripathi-07
Created: 7/7/2026
Status: 🔄 Open
Base:
dev← Head:fix/grader-anticheat-silent-bypass📝 Commits (1)
d1f0c16fix(mlperf-edu): stop silently bypassing anti-cheat when mlperf CLI is missing📊 Changes
1 file changed (+3 additions, -3 deletions)
View changed files
📝
mlperf-edu/scripts/autograder/grade_all.py(+3 -3)📄 Description
Summary
GraderPipeline._process_zip()runsmlperf verifyas the only anti-cheat check. If themlperfCLI isn't on PATH (the common case for a bare grading checkout that hasn'tpip install -e'd the package), theFileNotFoundErrorwas caught and silentlypassed, and the pipeline fell straight through to parsing the submission's self-reported JSON metrics with"Cheating": "NO"unconditionally.VALIDATEDwith no verification at all.Test plan
mlperfis not on PATH in a clean grading environment (where mlperffails).achieved_accuracy: 0.99,throughput_qps: 99999) and ran the real_process_zip()against it before the fix: returned{'Status': 'VALIDATED', 'Score': 0.99, 'Cheating': 'NO'}.{'Status': 'VERIFY_UNAVAILABLE', 'Score': 0.0, 'Cheating': 'UNVERIFIED'}and logs the failure instead of silently grading it.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.