Skip to content

fix(opendata): Add contestant output normalization#526

Merged
5K1PY merged 1 commit intomasterfrom
fix/opendata-normalization
Nov 17, 2025
Merged

fix(opendata): Add contestant output normalization#526
5K1PY merged 1 commit intomasterfrom
fix/opendata-normalization

Conversation

@5K1PY
Copy link
Collaborator

@5K1PY 5K1PY commented Nov 17, 2025

Fixes #520

@5K1PY 5K1PY requested a review from SvizelPritula November 17, 2025 21:09
@5K1PY 5K1PY self-assigned this Nov 17, 2025
@5K1PY 5K1PY added high priority Urgent opendata Opendata task preparation labels Nov 17, 2025
Comment on lines +124 to +146
self._check = checker_job(
self._input,
self._correct_output,
self._contestant_output,
self._contestant_output.to_sanitized_output(),
self._test,
self._seed,
None,
self._env,
)

return [self._check]
sanitize = sanitize_job_direct(
self._env,
self._contestant_output,
self._contestant_output.to_sanitized_output(),
False,
)
if sanitize is not None:
jobs.append(sanitize)
self._check.add_prerequisite(sanitize, name="sanitize")

return jobs + [self._check]
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Isn't it a bit confusing to create the jobs in reverse order? Especially if only one uses the jobs list?

@5K1PY 5K1PY force-pushed the fix/opendata-normalization branch from 1e3b02e to d45db8d Compare November 17, 2025 21:23
@5K1PY 5K1PY requested a review from SvizelPritula November 17, 2025 21:23
Copy link
Contributor

@SvizelPritula SvizelPritula left a comment

Choose a reason for hiding this comment

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

LGTM

@5K1PY 5K1PY merged commit bfc2402 into master Nov 17, 2025
2 checks passed
@5K1PY 5K1PY deleted the fix/opendata-normalization branch November 17, 2025 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

high priority Urgent opendata Opendata task preparation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Opendata: The library does not sanitize outputs

2 participants