Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions problemtools/verifyproblem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1854,9 +1854,12 @@ def start_background_work(self, context: Context) -> None:
# Send off an early background compile job for each submission and
# validator, to avoid a bottleneck step at the start of each test run.
self.problem.output_validators.start_background_work(context)
Copy link
Contributor

Choose a reason for hiding this comment

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

It can't have been intentional to remove this line (compiling the output validator), right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, reverted.

for acr in self._submissions:
for verdict in Submissions._VERDICTS:
acr = verdict[0]
for sub in self._submissions[acr]:
context.submit_background_work(lambda s: s.compile(), sub)
sub_name = sub.name # type: ignore
if context.submission_filter.search(os.path.join(verdict[1], sub_name)):
context.submit_background_work(lambda s: s.compile(), sub)

def _compute_time_limit(self, fixed_limit: float | None, lower_bound_runtime: float | None) -> tuple[float, float]:
if fixed_limit is None and lower_bound_runtime is None:
Expand Down