Skip to content

Display warning when grader compilation fails when testing submissions #133

@Binaryvector

Description

@Binaryvector

When running problemtools with the flag -p submissions, no warning or any other message is displayed, when the grader program fails to compile. Instead, problemtools silently switches to the default grader.

Currently an error is only displayed when also adding graders to the problem part flag, but I think it makes sense to add a warning even if that flag is not used, because:

  1. When testing only submissions, the grader program has to be compiled anyway, so one might as well display a warning if the compilation fails.
  2. Runtime errors in the grader cause a JE, i.e. they are considered errors when testing submissions. So maybe a compilation error should be considered an error too?
  3. Since the verdict of a submission depends on the used grader, I think that information is important to be displayed when testing submissions. Currently problemtools just fails silently and uses the default grader instead, which might give the wrong verdict.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions