feat: custom-checker#13
Merged
rayokamoto merged 4 commits intomainfrom Apr 28, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds support for DMOJ-style custom Python checkers to aucpl problem test, allowing problems to define a checker.py that determines pass/fail instead of strict output byte comparison.
Changes:
- Add embedded Python runner script and Rust glue code to execute
checker.pyper test case and parse a boolean result. - Detect
checker.pyin the problem directory and switch the test verdict mechanism accordingly. - Document
checker.pyusage and expected function signature inREADME.md.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| crates/cli/src/problem/test.rs | Adds checker.py discovery and per-test execution via python3, wiring outputs into a check() call. |
| README.md | Documents custom checker behavior and shows folder structure including checker.py. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
rayokamoto
requested changes
Apr 17, 2026
…ecker Agent-Logs-Url: https://github.com/AdelaideCPC/aucpl-cli/sessions/2ca88d5a-8040-4312-a253-d1368bb24036 Co-authored-by: xxori <55019674+xxori@users.noreply.github.com>
rayokamoto
approved these changes
Apr 28, 2026
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.
Add custom checker python support for
aucpl problem test. It will check forchecker.pyfiles next toproblem.md, and execute them instead of just doing string comparison if they exist. Here is an example of a valid checker.py:Limitation: Often you will import dmoj things in the checkers, which doesn't work here. The functions can only be raw Python scripts. Also, you can only use the process output and judge output, although DMOJ passes in much more information to their custom judges. https://docs.dmoj.ca/#/problem_format/custom_checkers?id=custom-checkers-1