Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

SvizelPritula
Copy link
Collaborator

Fixed #193.

@SvizelPritula SvizelPritula changed the title [WIP] Judge: Implement opendata-v2 Judge: Implement opendata-v2 Nov 16, 2024
@SvizelPritula SvizelPritula requested a review from 5K1PY November 16, 2024 19:43
Copy link
Collaborator

@5K1PY 5K1PY left a 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)
Copy link
Collaborator

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:
Copy link
Collaborator

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.

pisek/task_jobs/judge.py Outdated Show resolved Hide resolved
"The value of the POINTS key was not a valid decimal",
result,
)

Copy link
Collaborator

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]>
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.

Implement opendata-v2 judge
2 participants