-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Judge: Implement opendata-v2 #269
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some issues
@@ -579,6 +573,7 @@ def __init__( | |||
) | |||
self.judge = judge | |||
self.seed = seed | |||
self.points_file = TaskPath.points_file(self._env, self.judge_log_file.name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What? Judge is supposed to report everything to stderr
.
def return_code_wa(self) -> int: | ||
return 1 | ||
assert isinstance(result.stdout_file, TaskPath) | ||
with open(result.stdout_file.path) as file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stderr
parsing deserves it's own function.
"The value of the POINTS key was not a valid decimal", | ||
result, | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be best to allow only LOG
and NOTE
as the other keys.
Co-authored-by: Daniel Skýpala <[email protected]>
Fixed #193.