Skip to content

Mention EXPECTED_RESULTS in the docs #1862

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

Merged
merged 5 commits into from
May 7, 2023
Merged

Mention EXPECTED_RESULTS in the docs #1862

merged 5 commits into from
May 7, 2023

Conversation

vmcj
Copy link
Member

@vmcj vmcj commented Dec 30, 2022

Closes: #1861

Currently the EXPECTED_RESULTS are not part of the ICPC problem package and I'm not sure if they will be soon. We mention the EXPECTED_RESULTS in the README of the example problems but not in the doc. This PR tries to fix this.

I'm not sure how much we want to mention here as it will become part of the spec?

Still need to link to the Judging verifier also but that is hard to do in a PR via GitHub itself. If we agree on the wording I'll also make that link so the functionality is bundled together with its primary usage in the docs. We already link from the Judging Verifier to this page which is most likely the better route.

@vmcj vmcj marked this pull request as ready for review January 26, 2023 18:43
@@ -12,6 +12,9 @@ On top, DOMjudge defines a few extensions:
distributed to participants. The file extension determines any of
three supported formats. If multiple files matching this pattern are
available, any one of those will be used.
* Annotation with ``EXPECTED_RESULTS`` for jury solutions. The ICPC
problem package specification always has precedence. Use this to annotate
possible outcomes a submission can have to use together with the Judging verifier.
Copy link
Member

Choose a reason for hiding this comment

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

It would be good to clarify how these tags should be used exactly, and maybe also refer to a sample submission.
BTW, if you're importing submissions from a problem package, then they have to be located inside a submissions/* directory, so will always be overridden, I guess.

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed that a clarification on the usage would be nice. Perhaps a link to Kattis/problem-package-format#4 suffices, but I would at least write the tag in the exact required format (i.e., two @s and a space after the :).

Indeed, the @EXPECTED_RESULTS@: tag is overridden when the submission is in one of the standard submission directories (which are submissions/{accepted,wrong_answer,time_limit_exceeeded,run_time_error}/. Perhaps we can explicitly state that this tag therefore only works in non-standard submission directories (like mixed/ or rejected/).

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe also refer to a sample submission

I also agree with this one, but the current example submissions in https://github.com/DOMjudge/domjudge/tree/main/example_problems do not exactly match the spec, so linking to them in their current state may be confusing. For many of these submissions, the @EXPECTED_RESULTS@: tag is ignored because it lives in a "standard" submission directory. For BAPCtools, I've had to re-arrange many of these submissions to keep the tests passing (see RagnarGrootKoerkamp/BAPCtools@8b12d05) 😛

@@ -12,6 +12,9 @@ On top, DOMjudge defines a few extensions:
distributed to participants. The file extension determines any of
three supported formats. If multiple files matching this pattern are
available, any one of those will be used.
* Annotation with ``EXPECTED_RESULTS`` for jury solutions. The ICPC
problem package specification always has precedence. Use this to annotate
possible outcomes a submission can have to use together with the Judging verifier.
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe also refer to a sample submission

I also agree with this one, but the current example submissions in https://github.com/DOMjudge/domjudge/tree/main/example_problems do not exactly match the spec, so linking to them in their current state may be confusing. For many of these submissions, the @EXPECTED_RESULTS@: tag is ignored because it lives in a "standard" submission directory. For BAPCtools, I've had to re-arrange many of these submissions to keep the tests passing (see RagnarGrootKoerkamp/BAPCtools@8b12d05) 😛

@vmcj
Copy link
Member Author

vmcj commented May 5, 2023

After #2006 is merged there will be a file we can link to as an example.

@vmcj
Copy link
Member Author

vmcj commented May 6, 2023

image

@eldering eldering merged commit 970207e into main May 7, 2023
@eldering eldering deleted the vmcj-patch-1 branch May 7, 2023 09:26
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.

Document that @EXPECTED_RESULTS@: tag is ignored for standard submission directories
3 participants