Skip to content

Drop support for multiple output validators + move test case execution from verifyproblem to a new module#410

Merged
pehrsoderman merged 8 commits into
Kattis:masterfrom
gkreitz:398_split_verifyproblem
Apr 24, 2026
Merged

Drop support for multiple output validators + move test case execution from verifyproblem to a new module#410
pehrsoderman merged 8 commits into
Kattis:masterfrom
gkreitz:398_split_verifyproblem

Conversation

@gkreitz
Copy link
Copy Markdown
Contributor

@gkreitz gkreitz commented Apr 24, 2026

PR is a bit too large, but I failed to come up with a better way to do this, or a smaller one that made sense to me. Trying to clean up a tangled mess of code spread over 2200+ lines in one file makes for messy PR:s. Who could have guessed? :)

Moves the code to run a single test case out of verifyproblem and into a new module, problemtools.judge which will eventually own the logic for judging a submission (for the purposes of problemtools usage when checking a problem package).

While moving the code, I decided to take the opportunity to drop support for multiple output validators. Multiple validators were (partially) specified in legacy, but never supported in Kattis. Problemtools had some support, but it was incomplete. I doubt many problem packages ever used this. It was a bit unfortunate to add a behavioral change like this to this PR, but I felt it was preferable to wasting time moving code that would then be immediately thrown away in a follow up.

Progress on #398

gkreitz added 8 commits April 22, 2026 19:06
Multiple output validators were technically allowed in legacy, but were
never supported by Kattis. They were likely not used elsewhere either.

Problemtools had some support, but it was never properly finished. As
the standard has moved to only allowing a single output validator for
new versions, we drop support here.
@pehrsoderman pehrsoderman merged commit 4d536ca into Kattis:master Apr 24, 2026
5 checks passed
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.

2 participants