Skip to content

fix: Custom checker code - #22

Merged
rayokamoto merged 2 commits into
mainfrom
custom-checker-bugfix
May 19, 2026
Merged

fix: Custom checker code#22
rayokamoto merged 2 commits into
mainfrom
custom-checker-bugfix

Conversation

@xxori

@xxori xxori commented May 18, 2026

Copy link
Copy Markdown
Collaborator

Fix two custom checker bugs:

  • First, arguments should be bytes instead of strings to match the dmoj API
  • Second, we are writing the arguments to files that our Python wrapper can read instead of using argv, which could be too large for some problems

First, arguments should be `bytes` instead of strings to match the dmoj API
Second, we are writing the arguments to files that our Python wrapper can read instead of using argv, which could be too large for some problems

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates custom checker execution to avoid passing large checker arguments through argv and to align checker inputs with the DMOJ-style bytes API.

Changes:

  • Adds a Python wrapper that reads checker inputs from files.
  • Writes solution output and expected output to temporary files before invoking the checker.
  • Passes the original input file path to the wrapper instead of piping stdin.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread crates/cli/src/problem/test.rs Outdated
- Remove utf-8 roundtrip
- Change PathBuf reference to Path
- Run cargo fmt
@rayokamoto
rayokamoto merged commit 1f24a4f into main May 19, 2026
1 check passed
@rayokamoto
rayokamoto deleted the custom-checker-bugfix branch May 19, 2026 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants