Skip to content

Document that @EXPECTED_RESULTS@: tag is ignored for standard submission directories #1861

Closed
@mpsijm

Description

@mpsijm

Description of the problem

The @EXPECTED_RESULTS@: tag is ignored when an imported submission is one of the standard submission directories (e.g., accepted/, wrong_answer/) since 3b9ec83. This is not documented anywhere and led to confusion for me during the last few contests.

Your environment

DOMjudge, since 7.0.0

Current behaviour

Some examples, when importing a problem zip:

  • For submissions/accepted/solution.py, the expected result is ["CORRECT"].
  • For submissions/accepted/solution.py with any @EXPECTED_RESULTS@: (...) tag, the expected result is ["CORRECT"].
  • For submissions/mixed/solution.py with @EXPECTED_RESULTS@: ACCEPTED,TIME_LIMIT_EXCEEDED tag, the expected result is ["CORRECT","TIMELIMIT"].
    • Also, after importing, the info alert at the top of the page says "Annotated result 'CORRECT, TIMELIMIT' does not match directory for submissions/mixed/solution.py".
  • For submissions/mixed/solution.py without any @EXPECTED_RESULTS@: tag, the expected result is ["MIXED"].
    • The info alert at the top of the page shows no warning for this, but perhaps that would be a good idea to add 😛

Any other information that you want to share?

I wouldn't mind if the commit linked above would be reverted (i.e., that the @EXPECTED_RESULTS@: tag would take precedence over the submission's directory name again). But you probably have a good reason to keep the current behaviour 😇

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions