Skip to content

It's painful to debug interactive output validators #357

@Matistjati

Description

@Matistjati

The reason is mostly that it's nontrivial for a casual user to reproduce the exact way in which we run interactive problems.
For example, I recently got a nonobvious RTE. Even when running with -l debug, the logs don't help.

DEBUG Grader flags: ['ignore_sample']
DEBUG run "/opt/venvs/kattis-problemtools/lib/python3.12/site-packages/problemtools/run/../support/default_grader ignore_sample < /tmp/tmputpeck_g > /tmp/tmpt8m08dev 2> /dev/null"
DEBUG Grade on testcase group data is RTE (0.0)
DEBUG Grading 2 results:
RTE 0.0
RTE 0.0

DEBUG Grader flags: ['ignore_sample']
DEBUG run "/opt/venvs/kattis-problemtools/lib/python3.12/site-packages/problemtools/run/../support/default_grader ignore_sample < /tmp/tmpdy3k4hft > /tmp/tmpmjs6llqc 2> /dev/null"
DEBUG Grading 2 results:
RTE 0.0
RTE 0.0

DEBUG Grader flags: ['ignore_sample']
DEBUG run "/opt/venvs/kattis-problemtools/lib/python3.12/site-packages/problemtools/run/../support/default_grader ignore_sample < /tmp/tmpkdgy474a > /tmp/tmpa5rlun1t 2> /dev/null"
ERROR AC submission randomized_only_assume_1_simd.cpp (C++) got RTE [testcase: testcase secret/g6/001-simple-1, CPU: 0.00s @ testcase secret/g1/001-simple-1]

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